tmp86c408idmg TOSHIBA Semiconductor CORPORATION, tmp86c408idmg Datasheet - Page 135

no-image

tmp86c408idmg

Manufacturer Part Number
tmp86c408idmg
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
Example :After selecting the conversion time of 19.5 µs at 16 MHz and the analog input channel AIN3 pin, perform AD
12.3.3 STOP and SLOW Mode during AD Conversion
conversion once. After checking EOCF, read the converted value and store the 8-bit data in address 009FH on
RAM.
pended and the AD converter is initialized (ADCCR1 and ADCCR2 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 STOP or SLOW mode.) When restored from STOP or SLOW
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 the STOP or SLOW mode is entered forcibly during AD conversion, the AD convert operation is sus-
SLOOP:
; AIN SELECT
:
:
LD
LD
; AD CONVERT START
SET
TEST
JRS
; RESULT DATA READ
LD
LD
:
:
(ADCCR1), 00100011B
(ADCCR2), 11011000B
(ADCCR1). 7
(ADCDR2). 5
T, SLOOP
A, (ADCDR1)
(9FH), A
Page 125
; Before setting the AD converter register, set each port reg-
ister suitably (For detail, see chapter of I/O port.)
; Select AIN3
; Select conversion time (312/fc) and operation mode
; ADRS = 1
; EOCF = 1 ?
TMP86C408IDMG

Related parts for tmp86c408idmg