211
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
9.3.4
Internal channel
The temperature sensor is connected to channel ADC1_IN16.
V
BAT/2
is connected to channel ADC1_IN17.
Internal reference voltage VREFINT is connected to ADCx_IN18.
V
OP1OUT
output is connected to channel ADC1_IN3.
V
OP2OUT
output is connected to channel ADC2_IN3.
V
OP3OUT
output is connected to channel ADC3_IN1.
V
OP4OUT
output is connected to channel ADC4_IN3.
Internal channels can be converted by injection or regular channels.
Note: The temperature sensor, V
BAT/2
can only be used in the ADC1.
9.3.5
Single conversion mode
The ADC can enter the single conversion mode by configuring ADC_CTRL2.CTU to 0. In this mode, external
triggering(for regular channels or injection channels) or setting ADC_CTRL2.ON=1(for regular channels only) can
start the ADC to start conversion, and the ADC only performs one conversion.
After the conversion starts, when an injection channel conversion is completed, the injection channel conversion end
flag(ADC_STS.JENDC) will be set to 1. If the injection channel conversion end interrupt enable
(ADC_CTRL1.JENDCIEN) bit is set to 1, an interrupt will be generated at this time, and the converted data will be
stored in the ADC_JDATx register.
After the conversion starts, when a regular channel conversion is completed, the regular channel conversion end
flag(ADC_STS.ENDC) will be set to 1. If the regular channel conversion end interrupt enable
(ADC_CTRL1.ENDCIEN) bit is set to 1, an interrupt will be generated at this time, and the converted data will be
stored in the ADC_DAT register.
After single conversion, the ADC stops.
9.3.6
Continuous conversion mode
The ADC can enter the continuous conversion mode by configuring ADC_CTRL2.CTU to 1. In this mode, external
triggering or setting ADC_CTRL2.ON to 1 can start the ADC to start conversion, and the ADC will continuously
convert the selected channel. Continuous mode is only valid for regular channels, not for injection channels.
After the conversion starts, when a regular channel conversion is completed, the regular channel end of conversion
flag bit (ADC_STS.ENDC) will be set to 1. If the regular channel conversion end interrupt enable bit
(ADC_CTRL1.ENDCIEN) is set to 1 at this time, an interrupt will be generated . The converted data will be stored
in the ADC_DAT register.