Example
The order of the ADC1 rule channels is CH0,CH1,CH2,CH3,
Do not start scan mode:
In one-time conversion mode:
Start ADC1, then
1. Start converting CH1 (First channel of ADC_SQR)
Stop when the conversion is complete, wait for the ADC to start the next time, and continue to convert from the first step
In Continuous conversion mode:
Start ADC1, then
1. Start converting CH0 (First channel of ADC_SQR)
Go back to the first step after the conversion is complete, and continue converting
Start the scan mode
In one-time conversion mode:
Start ADC1, then
1. Start converting CH0,
2. Start conversion automatically after conversion is complete CH1
3. Start conversion automatically after conversion is complete CH2
4. Start conversion automatically after conversion is complete CH3
5. Stop when the conversion is complete, wait for the next ADC to start the next time the ADC starts and starts the conversion from the first step
In Continuous conversion mode:
Start ADC1, then
1. Start converting CH0
2. Start conversion automatically after conversion is complete CH1
3. Start conversion automatically after conversion is complete CH2
4. Start conversion automatically after conversion is complete CH3
5. Return to the first step after the conversion is complete, continue the conversion
The DMA function must be paired to enable the data processing of the ADC when scanning mode is turned on
Original link: http://blog.csdn.net/kiti1013/article/details/44172161
Understanding of the STM32 ADC single conversion mode continuous conversion Mode scanning mode