tmp86fh46bng TOSHIBA Semiconductor CORPORATION, tmp86fh46bng Datasheet - Page 111

no-image

tmp86fh46bng

Manufacturer Part Number
tmp86fh46bng
Description
8 Bit Microcontroller Tlcs-870/c Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP86FH46BNG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Example :Setting the timer mode with source clock fc/2
9.3.5
Table 9-6 Source Clock for 16-Bit Timer Mode
DV7CK = 0
NORMAL1/2, IDLE1/2 mode
(fc = 16.0 MHz)
fc/2
fc/2
fc/2
fc/2
able to form a 16-bit timer.
the timer is started by setting TC4CR<TC4S> to 1, an INTTC4 interrupt is generated and the up-counter is
cleared. After being cleared, the up-counter continues counting. Program the lower byte and upper byte in
this order in the timer register. (Programming only the upper or lower byte should not be attempted.)
11
16-Bit Timer Mode (TC3 and 4)
7
5
3
Note 1: In the timer mode, fix TCjCR<TFFj> to 0. If not fixed, the PDOj, PWMj, and PPGj pins may output a pulse.
Note 2: In the timer mode, do not change the TTREGj setting while the timer is running. Since TTREGj is not in
Note 3: j = 3, 4
In the timer mode, the up-counter counts up using the internal clock. The TimerCounter 3 and 4 are cascad-
When a match between the up-counter and the timer register (TTREG3, TTREG4) value is detected after
the shift register configuration in the timer mode, the new value programmed in TTREGj is in effect imme-
diately after programming of TTREGj. Therefore, if TTREGj is changed while the timer is running, an expec-
ted operation may not be obtained.
Source Clock
DV7CK = 1
fs/2
fc/2
fc/2
fc/2
LDW
DI
SET
EI
LD
LD
LD
3
7
5
3
(TTREG3), 927CH
(EIRH). 1
(TC3CR), 13H
(TC4CR), 04H
(TC4CR), 0CH
SLOW1/2,
SLEEP1/2
mode
fs/2
-
-
-
3
fc = 16 MHz
7
Page 93
[Hz], and generating an interrupt 300 ms later
128 μs
500 ns
8 μs
2 μs
; Sets the timer register (300 ms ÷ 2
; Enables INTTC4 interrupt.
; Sets the operating clock to fc/2
; (lower byte).
; Sets the 16-bit timer mode (upper byte).
; Starts the timer.
Resolution
fs = 32.768 kHz
244.14 μs
-
-
-
7
fc = 16 MHz
, and 16-bit timer mode
524.3 ms
131.1 ms
32.8 ms
8.39 s
7
/fc = 927CH).
Maximum Setting Time
TMP86FH46BNG
fs = 32.768 kHz
16 s
-
-
-

Related parts for tmp86fh46bng