Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

User8819
Level 4
Level 4
Hello,

What is the duration of startup calibration of ADC on xmc4500? How many cycles and which clock? Is there any possibility that bit "VADC_G ARBCFG: CAL" is not set?

I mean, is it always guaranteed that "while" in code is completed?

// start calibration allowed only after ANONS set
SET_BIT( VADC->GLOBCFG, VADC_GLOBCFG_SUCAL_Pos);
// wait for calibration completed
while(VADC_G0->ARBCFG & VADC_G_ARBCFG_CAL_Msk)
{}; //TODO dangerous wait

thanks

rum
0 Likes
0 Replies