tmp86c408idmg TOSHIBA Semiconductor CORPORATION, tmp86c408idmg Datasheet - Page 88

no-image

tmp86c408idmg

Manufacturer Part Number
tmp86c408idmg
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
8.3 Function
8. 16-Bit TimerCounter 1 (TC1)
Example :Generating a pulse which is high-going for 800 µs and low-going for 200 µs
Example :After stopping PPG, setting the PPG pin to a high-level to restart PPG
Match to TC1DRB
Match to TC1DRA
Write to TC1CR
TC1CR<TFF1>
(fc = 16 MHz)
(fc = 16 MHz)
Internal reset
LD
LDW
LDW
LD
LD
LDW
LDW
LD
:
LD
LD
LD
LD
Setting port
(TC1CR), 10000111B
(TC1DRA), 007DH
(TC1DRB), 0019H
(TC1CR), 10010111B
Setting port
(TC1CR), 10000111B
(TC1DRA), 007DH
(TC1DRB), 0019H
(TC1CR), 10010111B
:
(TC1CR), 10000111B
(TC1CR), 10000100B
(TC1CR), 00000111B
(TC1CR), 00010111B
Figure 8-7
Data output
Page 78
shared with PPG output
Timer F/F1
TC1CR<TC1S> clear
Set
Clear
Toggle
INTTC1 interrupt request
I/O port output latch
PPG
; Sets the PPG mode, selects the source clock
; Sets the cycle (1 ms ÷ 2
; Sets the low-level pulse width (200 µs ÷ 2
; Starts the timer
; Sets the PPG mode, selects the source clock
; Sets the cycle (1 ms ÷ 2
; Sets the low-level pulse width (200 µs ÷ 2
; Starts the timer
; Stops the timer
; Sets the timer mode
; Sets the PPG mode, TFF1 = 0
; Starts the timer
D
Q
Output
R
Q
Function output
7
7
/fc ms = 007DH)
/fc µs = 007DH)
Port output
enable
7
7
/fc = 0019H)
/fc = 0019H)
PPG pin
TMP86C408IDMG

Related parts for tmp86c408idmg