tmp88cs38ng TOSHIBA Semiconductor CORPORATION, tmp88cs38ng Datasheet - Page 125

no-image

tmp88cs38ng

Manufacturer Part Number
tmp88cs38ng
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
AD conversion
result
2.11.6
FDH
FFH
FEH
03H
02H
01H
(3) Trigger start mode
Analog Input Voltage and AD Conversion Result
shown in Figure 2.11.6.
Example:
SLOOP:
The analog input voltage is corresponded to the 8-bit digital value converted by the AD as
0
from Key-on wakeup circuit is set as trigger, the conversion result is stored in the
ADCDR1.
request signal occurs.
executed again.
Figure 2.11.6 Analog Input Voltage and AD Conversion Result (typ.)
The AD conversion of a specified single channel is executed when input (AD8TRG)
The EOCF (Bit5 in ADCDR2) is set to “1” at end of one conversion, and an interrupt
It needs to be set the STOP mode by bit5 to 6 in ADCCRA before the AD conversion is
1
;AIN SELECT
LD
LD
LD
LD
LD
LD
; AD CONVERT START
SET
TEST
JRS
; RESULT DATA READ
LD
The AD conversion starts after 19.5 μs (at fc = 16 MHz) and AIN4 pin are selected as the conversion time
and the analog input channel. Confirming the EOCF, the converted value is read out, and the 8 bits data
is stored to address 009EH in RAM. The operation mode is a signal mode.
2
(P5), 00000000B
(P5CR1), 00000000B
(P6), 00000000B
(P6CR), 00000000B
(ADCCRA), 00100100B
(ADCCRB), 00011000B
(ADCCR2). 5
(ADCCRA). 7
T, SLOOP
(9EH), (ADCDR1)
3
Analog input voltage
88CS38-125
253
254
;
;
;
;
Selects AIN4, selects the software start mode
Selects the conversion time and the operation mode.
ADRS = 1
EOCF = 1 ?
255
256
TMP88CS38/CM38A/CP38A
×
V
DD
256
− V
SS
2007-09-12

Related parts for tmp88cs38ng