tmp86c847iug TOSHIBA Semiconductor CORPORATION, tmp86c847iug Datasheet - Page 83

no-image

tmp86c847iug

Manufacturer Part Number
tmp86c847iug
Description
8 Bit Microcontroller
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
(EIRL). 7
(TC1CR), 00100110B
(INTTC1SW). 0
F, SINTTC1
A, (TC1DRBL)
W,(TC1DRBH)
(HPULSE), WA
A, (TC1DRBL)
W,(TC1DRBH)
(WIDTH), WA
PINTTC1
7
[Hz])
HPULSE
Page 75
WIDTH
; INTTC1 service switch initial setting
; Sets the TC1 mode and source clock
; 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
; Duty calculation
; IMF= “0”
; Enables INTTC1
; Reads TC1DRB (Cycle)
; Stores cycle in RAM
; INTTC1 Interrupt vector
Address set to convert INTTC1SW at each INTTC1
TMP86C847IUG

Related parts for tmp86c847iug