tmp88fw45afg TOSHIBA Semiconductor CORPORATION, tmp88fw45afg Datasheet - Page 143

no-image

tmp88fw45afg

Manufacturer Part Number
tmp88fw45afg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
Example :Setting the timer mode with source clock fc/2
13.3.5
(fc = 20.0 MHz)
to form a 16-bit timer.
timer is started by setting TC6CR<TC6S> to 1, an INTTC6 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.)
Table 13-5 Source Clock for 16-Bit Timer Mode
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 the
Note 3: j = 5, 6
In the timer mode, the up-counter counts up using the internal clock. The TimerCounter 5 and 6 are cascadable
When a match between the up-counter and the timer register (TTREG5, TTREG6) value is detected after the
16-Bit Timer Mode (TC5 and 6)
DV1CK = 0
fc/2
fc/2
fc/2
fc/2
NORMAL, IDLE mode
11
shift register configuration in the timer mode, the new value programmed in TTREGj is in effect immediately
after programming of TTREGj. Therefore, if TTREGj is changed while the timer is running, an expected
operation may not be obtained.
7
5
3
Source Clock
LDW
DI
SET
EI
LD
LD
LD
DV1CK = 1
fc/2
fc/2
fc/2
fc/2
12
8
6
4
(TTREG5), 927CH
(EIRD). EF28
(TC5CR), 13H
(TC6CR), 04H
(TC6CR), 0CH
fc = 20 MHz
DV1CK = 0
102.4 μs
6.4 μs
1.6 μs
0.4 μs
7
Page 129
[Hz], and generating an interrupt 240 ms later
Resolution
: Sets the timer register (300 ms ÷ 2
: Enables INTTC6 interrupt.
:Sets the operating cock to fc/2
(lower byte).
: Sets the 16-bit timer mode (upper byte).
: Starts the timer.
fc = 20 MHz
DV1CK = 1
204.8 μs
12.8 μs
3.2 μs
0.8 μs
fc = 20 MHz
DV1CK = 0
419.4 ms
104.9 μs
26.2 μs
6.7 s
Maximum Time Setting
7
, and 16-bit timer mode
7
/fc = 927CH).
fc = 20 MHz
DV1CK = 1
838.8 ms
209.7 ms
52.4 ms
13.4 s
TMP88FW45AFG

Related parts for tmp88fw45afg