Other Parts Discussed in Thread: HALCOGEN
While playing with ADC calibration using the HalCoGen provided functions in adc.c, i found some strange behavior.
With VCCAD (and ADREFHI, tied together) missing, calibration hangs on waiting for the CAL_ST bit.
/* Wait for calibration conversion to complete */
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
while((adc->CALCR & 0x00010000U)==0x00010000U)
Also, normal conversions never finish without VCCAD.
I know there is no sense in using the ADC without power, but is there a way to detect VCCAD?
What can be done to prevent the hang without relaying on external monitoring?
Regards,
Kurt.