English
Language : 

TMP86PM47AUG_07 Datasheet, PDF (140/170 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
12. 10-bit AD Converter (ADC)
12.2 Register configuration
TMP86PM47AUG
12.2 Register configuration
The AD converter consists of the following four registers:
1. AD converter control register 1 (ADCCR1)
This register selects the analog channels and operation mode (Software start or repeat) in which to per-
form AD conversion and controls the AD converter as it starts operating.
2. AD converter control register 2 (ADCCR2)
This register selects the AD conversion time and controls the connection of the DA converter (Ladder
resistor network).
3. AD converted value register 1 (ADCDR1)
This register used to store the digital value fter being converted by the AD converter.
4. AD converted value register 2 (ADCDR2)
This register monitors the operating status of the AD converter.
AD Converter Control Register 1
ADCCR1
7
6
5
4
3
(001CH)
ADRS
AMD
AINDS
2
1
SAIN
0
(Initial value: 0001 0000)
ADRS AD conversion start
0:
-
1:
AD conversion start
AMD AD operating mode
00:
AD operation disable
01:
Software start mode
10:
Reserved
11:
Repeat mode
AINDS Analog input control
0:
Analog input enable
1:
Analog input disable
0000: AIN0
0001: AIN1
0010: AIN2
0011: AIN3
R/W
0100: AIN4
0101: AIN5
0110: AIN6
SAIN
0111: AIN7
Analog input channel select
1000: Reserved
1001: Reserved
1010: Reserved
1011: Reserved
1100: Reserved
1101: Reserved
1110: Reserved
1111: Reserved
Note 1: Select analog input channel during AD converter stops (ADCDR2<ADBF> = "0").
Note 2: When the analog input channel is all use disabling, the ADCCR1<AINDS> should be set to "1".
Note 3: During conversion, Do not perform port output instruction to maintain a precision for all of the pins because analog input
port use as general input port. And for port near to analog input, Do not input intense signaling of change.
Note 4: The ADCCR1<ADRS> is automatically cleared to "0" after starting conversion.
Note 5: Do not set ADCCR1<ADRS> newly again during AD conversion. Before setting ADCCR1<ADRS> newly again, check
ADCDR2<EOCF> to see that the conversion is completed or wait until the interrupt signal (INTADC) is generated (e.g.,
interrupt handling routine).
Note 6: After STOP or SLOW/SLEEP mode are started, AD converter control register1 (ADCCR1) is all initialized and no data can
be written in this register. Therfore, to use AD converter again, set the ADCCR1 newly after returning to NORMAL1 or
NORMAL2 mode.
Page 130