Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
363
/
631
Internal channel
The temperature sensor is connected to channel ADC_IN17.
V
REFBUFF
is connected to ADC_IN18.
V
REFINT
is connected to channel ADC_IN0.
V
OP1OUT
output is connected to channel ADC_IN3.
V
OP2OUT
output is connected to channel ADC_IN7.
Internal channels can be converted by injection or regular channels.
Note: For the use of V
REFBUFF
,please contact Nations
to obtain relevant information.
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.
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.
Timing diagram
When ADC_CTRL2.ON is set to 1 for the first time, the ADC is powered on. After the ADC is powered on, the ADC
needs a certain time(t
STAB
) to ensure its stability. After the ADC is stable, write 1 to ADC_CTRL2.ON again, the