tmp88f846ug TOSHIBA Semiconductor CORPORATION, tmp88f846ug Datasheet - Page 185

no-image

tmp88f846ug

Manufacturer Part Number
tmp88f846ug
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP88F846UG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(CZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(ZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Example :After selecting the conversion time 15.6 µs at 20 MHz and the analog input channel AIN4 pin, perform AD con-
17.3.4 INTPWM Start Mode
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.
the AD converter is in this state, generation of an INTPWM interrupt set ADCCRA<ADRS> to "1" and starts
AD conversion.
registers (ADCDRH, ADCDRL). At the same time, ADCDRL<EOCF> is set to "1" and an end-of-conversion
interrupt (INTADC) is generated.
disable) and then set ADCCRA<AINDS> to "0" (to analog input enable) to put the AD converter in a standby
state.
ation in progress. At this time, the conversion value is not stored in the AD conversion value registers, and the
AD converter immediately exits a standby state.
AD conversion can be started by the PWM interrupt (INTPWM) provided as part of the PMD function.
To use INTPWM start mode, set ADCCRA<AMD> to "10" to put the AD converter in a standby state. While
After the AD conversion operation is completed, the conversion result is stored in the AD conversion value
To perform the next AD conversion in INTPWM start mode, set ADCCRA<AINDS> to "1" (to analog input
To stop AD conversion, write "0" to ADCCRA<AMD>. This will immediately stop the AD conversion oper-
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 175
;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
TMP88F846UG

Related parts for tmp88f846ug