Download Print this page

Toshiba TLCS-900/H1 Series Manual page 307

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

3.11.1
Analog/Digital Converter Registers
The AD converter is controlled by the three AD mode control registers: ADMOD0,
ADMOD1 and ADMOD2. The four AD conversion data result registers (ADREG0H/L to
ADREG3H/L) store the results of AD conversion.
Figure 3.11.2 shows the registers related to the AD converter.
ADMOD0
Bit symbol
EOCF
(12B8H)
Read/Write
Reset State
Function
AD
conversion
end flag
0: Conversion
in progress
1: Conversion
complete
AD Mode Control Register 0
7
6
5
ADBF
R
0
0
0
AD conversion
Always write
busy flag
"0"
0: Conversion
stopped
1: Conversion
in progress
Figure 3.11.2 AD Converter Related Register
92CH21-305
4
3
ITM0
REPEAT
R/W
0
0
Always write
Interrupt
Repeat mode
"0"
specification
specification
in conversion
0: Single
channel fixed
repeat mode
1: Repeat
0: Every
conversion
1: Every
fourth
conversion
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
TMP92CH21
2
1
SCAN
ADS
0
0
Scan mode
AD
specification
conversion
0: Conversion
start
channel
conversion
0: Don't care
fixed mode
1: Start
1: Conversion
conversion
conversion
channel
mode
scan mode
Always "0"
when read
2009-06-19
0
0

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21