tmp88fw45afg TOSHIBA Semiconductor CORPORATION, tmp88fw45afg Datasheet - Page 230

no-image

tmp88fw45afg

Manufacturer Part Number
tmp88fw45afg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
18.3
Function
ADCCRA<AMD>
ADCCRA<ADRS>
Conversion operation
ADCDRH,ADCDRL
ADCDRL<EOCF>
INTADC interrupt request
ADCDRH
ADCDRL
18.3.2.1
Register Setting
1. Set up the AD converter control register 1 (ADCCRA) as follows:
2. Set up the AD converter control register 2 (ADCCRB) as follows:
3. After setting up (1) and (2) above, set AD conversion start (ADRS) of AD converter control register
4. After an elapse of the specified AD conversion time, the AD converted value is stored in AD
5. EOCF is cleared to “0” by a read of the conversion result. However, if reconverted before a register
1 (ADCCRA) to “1”. If software start mode has been selected, AD conversion starts immediately.
converted value register 1 (ADCDRH) and the AD conversion finished flag (EOCF) of AD con-
verted value register 2 (ADCDRL) is set to “1”, upon which time AD conversion interrupt
INTADC is generated.
read, although EOCF is cleared the previous conversion result is retained until the next conversion
is completed.
Indeterminate
・ Choose the channel to AD convert using AD input channel select (SAIN).
・ Specify analog input enable for analog input control (AINDS).
・ Specify AMD for the AD converter control operation mode (software or repeat mode).
・ Set the AD conversion time using AD conversion time (ACK). For details on how to set the
・ Choose IREFON for DA converter control.
AD conversion start
1st conversion
conversion time, refer to Figure 18-1, Figure 18-2 and AD converter control register 2.
result
Figure 18-3 Repeat Mode
2nd conversion result
1st conversion result
Conversion
result read
Conversion
result read
“11”
Page 216
3rd conversion result
2nd conversion result
Conversion
result read
Conversion
result read
3rd conversion result
Conversion
result read
AD convert operation suspended.
Conversion result is not stored.
Conversion
result read
EOCF cleared by reading
conversion result
“00”
TMP88FW45AFG

Related parts for tmp88fw45afg