tmp88ch40mg TOSHIBA Semiconductor CORPORATION, tmp88ch40mg Datasheet - Page 135

no-image

tmp88ch40mg

Manufacturer Part Number
tmp88ch40mg
Description
8 Bit Microcontroller
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 con-
version 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 :
: (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 127
;Set port register approrriately 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
TMP88CH40MG

Related parts for tmp88ch40mg