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
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