www
.mcu.com.cn
213
/
239
Rev.
1.00
CMS80F731x Reference Manual
⚫
Select the format of the result;
⚫
Start the ADC module.
4)
Wait for the required acquisition time.
5)
Set ADGO to 1 to start the conversion.
6)
Wait for the ADC conversion to finish by one of the following methods:
⚫
Query ADGO bits;
⚫
Wait for the ADC to interrupt (interrupt Enabled).
7)
Read the ADC results.
8)
Zero out the ADC interrupt flag bit (this is required if interrupts are Enabled).
Note: If the user attempts to resume sequential code execution after waking the device from sleep mode, the global
interrupt must be suppressed.
23.5.5
Go to Sleep During the Conversion Process
When the system enters hibernation, it is recommended that you wait for the ADC to complete the transition in progress
before entering hibernation.
If you go hibernation during an ongoing conversion of the ADC, the conversion is terminated. The conversion operation
needs to be restarted after waking up.