![Nations N32G43 Series Скачать руководство пользователя страница 394](http://html1.mh-extra.com/html/nations/n32g43-series/n32g43-series_user-manual_3408051394.webp)
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
371
/
631
V
30
= V
SENSE
at 30 degrees celsius
Avg_Slope = temperature and Average slope of a V
SENSE
curve (mV/°C or μV/°C)
T
offset
= empirical value for temperature error compensation (°C)
Refer to the values of V
30
and Avg_Slope in the electrical characteristics chapter of the datasheet.
Note: There is a settling time before the sensor wakes up from the power-off mode to the correct output of VSENSE;
there is also a settling time after the ADC is powered on, so in order to shorten the delay, the ADC_CTRL2.TEMPEN
and ADC_CTRL2.ON bits should be set at the same time.
ADC interrupt
ADC interrupts can be from an end of regular or injection sequence conversion, an analog watchdog event when
input voltage exceeds the threshold, any end of regular or injection channel conversion. These interrupts have
independent interrupt enable bits.
There are 2 status flags in the ADC_STS register: injection sequence channel conversion started (JSTR) and regular
sequence channel conversion started (STR). But there are no interrupts associated with these two flags in the ADC.
Table 17-7 ADC interrupt
Interrupt event
Event flags
Enable control bit
Regular or injection sequence conversion is complete
ENDC
ENDCIEN
Injection sequence conversion is complete
JENDC
JENDCIEN
Analog watchdog status bit is set
AWDG
AWDGIEN
Any regular channel interruption is enabled
ENDCA
ENDCAIEN
Any injection channel interruption is enabled
JENDCA
JENDCAIEN
ADC registers
ADC register overview
Table 17-8 ADC register overview
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
000h
ADC_STS
Reserved
JE
ND
C
A
E
ND
C
A
S
T
R
JS
T
R
JE
ND
C
E
ND
C
AW
DG
Reset Value
0
0
0
0
0
0
0
004h
ADC_CTRL1
Reserved
AW
DG
E
R
C
H
AW
DG
E
JC
H
R
es
er
ve
d
DCTU[2:0]
DJ
C
H
DR
E
GC
H
AU
T
OJ
C
AW
DG
S
GL
E
N
S
C
AN
M
D
JE
ND
C
IE
N
AW
DG
IE
N
E
ND
IE
N
AWDGCH[4:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
008h
ADC_CTRL2
Reserved
T
E
M
P
E
N
S
W
S
T
R
R
C
H
S
W
S
T
R
JC
H
E
XT
R
T
R
IG
E
XT
R
S
E
L
[2:0]
R
es
er
ve
d
E
XT
JT
R
IG
E
XT
JS
E
L
[2:0]
AL
IG
R
es
er
ve
d
E
ND
M
A
R
es
er
ve
d
E
NC
AL
C
T
U
ON
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0