Register Configuration - Toshiba TLCS-870/C Series Manual

8 bit microcontroller
Hide thumbs Also See for TLCS-870/C Series:
Table of Contents

Advertisement

13. 10-bit AD Converter (ADC)

13.2 Register configuration

13.2 Register configuration
The AD converter consists of the following four registers:
1. AD converter control register 1 (ADCCR1)
form AD conversion and controls the AD converter as it starts operating.
2. AD converter control register 2 (ADCCR2)
resistor network).
3. AD converted value register 1 (ADCDR1)
4. AD converted value register 2 (ADCDR2)
AD Converter Control Register 1
ADCCR1
(000EH)
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.
This register selects the analog channels and operation mode (Software start or repeat) in which to per-
This register selects the AD conversion time and controls the connection of the DA converter (Ladder
This register used to store the digital value fter being converted by the AD converter.
This register monitors the operating status of the AD converter.
7
6
5
ADRS
AMD
ADRS
AD conversion start
AMD
AD operating mode
AINDS
Analog input control
SAIN
Analog input channel select
4
3
2
AINDS
SAIN
0:
-
1:
AD conversion start
00:
AD operation disable
01:
Software start mode
10:
Reserved
11:
Repeat mode
0:
Analog input enable
1:
Analog input disable
0000:
AIN0
0001:
AIN1
0010:
AIN2
0011:
AIN3
0100:
AIN4
0101:
AIN5
0110:
AIN6
0111:
AIN7
1000:
Reserved
1001:
Reserved
1010:
Reserved
1011:
Reserved
1100:
Reserved
1101:
Reserved
1110:
Reserved
1111:
Reserved
Page 142
1
0
(Initial value: 0001 0000)
TMP86PM29BUG
R/W

Advertisement

Table of Contents
loading

Table of Contents