TMP91C824
91C824-183
2008-02-20
3.11.1 Analog/Digital Converter Registers
The AD converter is controlled by the two AD mode control registers: ADMOD0 and
ADMOD1. The AD conversion results are stored in 8 kinds of AD conversion data upper
and lower registers: ADREG04H/L, ADREG15H/L, ADREG26H/L and ADREG37H/L.
Figure 3.11.2 shows the registers related to the AD converter.
AD Mode Control Register 0
7 6 5 4 3 2 1 0
Bit symbol
EOCF
ADBF
−
−
ITM0 REPEAT
SCAN ADS
Read/Write R
R/W
After
reset
0 0 0 0 0 0 0 0
Function
AD
conversion
end flag
0: Conversion
in
progress
1: Conversion
complete
AD
conversion
busy flag
0: Conversion
stopped
1: Conversion
in
progress
Always
write 0
Always
write 0
Interrupt
specification
in conversion
channel fixed
repeat mode
0: Every
conversion
1: Every
fourth
conversion
Repeat mode
specification
0: Single
conversion
1: Repeat
conversion
mode
Scan mode
specification
0: Conversion
channel
fixed
mode
1: Conversion
channel
scan
mode
AD
conversion
start
0: Don’t care
1: Start
conversion
Always 0
when read
AD conversion start
0
Don’t care
1
Start AD conversion
Note: Always read as 0.
AD scan mode setting
0
AD conversion channel fixed mode
1
AD conversion channel scan mode
AD repeat mode setting
0
AD single conversion mode
1
AD repeat conversion mode
Specify AD conversion interrupt for channel fixed
repeat conversion mode
Channel fixed repeat conversion mode
<SCAN>
=
0, <REPEAT>
=
1
0
Generates interrupt every conversion.
1
Generates interrupt every fourth conversion.
AD conversion busy flag
0
AD conversion stopped
1
AD conversion in progress
AD conversion end flag
0
Before or during AD conversion
1
AD conversion complete
Figure 3.11.2 AD Converter Related Register
ADMOD0
(02B0H)