tmp88fw45afg TOSHIBA Semiconductor CORPORATION, tmp88fw45afg Datasheet - Page 231

no-image

tmp88fw45afg

Manufacturer Part Number
tmp88fw45afg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
Example :After selecting the conversion time 15.6 μs at 20 MHz and the analog input channel AIN4 pin, perform AD
18.4
and the AD converter is initialized (ADCCRA and ADCCRB are initialized to initial value). Also, the conversion
result is indeterminate. (Conversion results up to the previous operation are cleared, so be sure to read the conversion
results before entering standby mode (STOP mode).) When restored from standby mode (STOP mode), AD conversion
is not automatically restarted, so it is necessary to restart AD conversion. Note that since the analog reference voltage
is automatically disconnected, there is no possibility of current flowing into the analog reference voltage.
When standby mode (STOP mode) is entered forcibly during AD conversion, the AD convert operation is suspended
conversion once. After checking EOCF, read the converted value, store the lower 2 bits in address 0009EH and
store the upper 8 bits in address 0009FH in RAM. The operation mode is software start mode.
SLOOP :
STOP mode during AD Conversion
: (port setting)
:
LD
LD
SET
TEST
JRS
LD
LD
LD
LD
:
:
(ADCCRA) , 00100100B
(ADCCRB) , 00011000B
(ADCCRA) . 7
(ADCDRB) . 5
T, SLOOP
A , (ADCDRL)
(9EH) , A
A , (ADCDRH)
(9FH), A
Page 217
;Set port register appropriately before setting AD
converter registers.
; (Refer to section I/O port in details)
; Select Software start mode, Analog input enable,
and AIN4
;Select conversion time(312/fc) and operation mode
; ADRS = 1(AD conversion start)
; EOCF= 1 ?
; Read result data
; Read result data
TMP88FW45AFG

Related parts for tmp88fw45afg