tmp88fw45afg TOSHIBA Semiconductor CORPORATION, tmp88fw45afg Datasheet - Page 105

no-image

tmp88fw45afg

Manufacturer Part Number
tmp88fw45afg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
Example :Duty measurement (resolution fc/2
PINTTC1:
SINTTC1:
VINTTC1:
TC1 pin
INTTC1 interrupt request
INTTC1SW
CLR
LD
DI
SET
EI
LD
:
CPL
JRS
LD
LD
LD
RETI
LD
LD
LD
:
RETI
:
DW
(INTTC1SW). 0
(TC1CR), 00000110B
(EIRD). 2
(TC1CR), 00100110B
(INTTC1SW). 0
F, SINTTC1
A, (TC1DRBL)
W,(TC1DRBH)
(HPULSE), WA
A, (TC1DRBL)
W,(TC1DRBH)
(WIDTH), WA
PINTTC1
7
[Hz], CGCR<DV1CK> = “0”)
HPULSE
Page 91
; INTTC1 service switch initial setting
Address set to convert INTTC1SW at each INTTC1
; Sets the TC1 mode and source clock
; IMF= “0”
; Enables INTTC1
; IMF= “1”
; Starts TC1 with an external trigger at MCAP1 = 0
; INTTC1 interrupt, inverts and tests INTTC1 service switch
; Reads TC1DRB (High-level pulse width)
; Stores high-level pulse width in RAM
; Reads TC1DRB (Cycle)
; Stores cycle in RAM
; Duty calculation
; INTTC1 Interrupt vector
WIDTH
TMP88FW45AFG

Related parts for tmp88fw45afg