tmp89fm42k TOSHIBA Semiconductor CORPORATION, tmp89fm42k Datasheet - Page 206

no-image

tmp89fm42k

Manufacturer Part Number
tmp89fm42k
Description
8 Bit Microcontroller Tlcs-870/c1 Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
14.4
Functions
RA005
Table 14-5 8-bit Timer Mode Resolution and Maximum Time Setting
T00MOD
<TCK0>
000
001
010
011
100
101
110
111
of the T00MOD<DBE0> setting.
(Example) Operate TC00 in the 8-bit timer mode with the operation clock of fcgck/2
SYSCR1<DV9CK>
When a read instruction is executed on T00REG, the last value written into T00REG is read out, regardless
NORMAL1/2 or IDLE1/2 mode
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck
= "0"
be longer than the selected time. If the value set to T00REG is equal to the up counter value, the
match detection is executed immediately after data is written into T00REG. Therefore, the interrupt
request interval may not be an integral multiple of the source clock (Figure 14-3). If these are
problems, enable the double buffer.
immediately stored in T00REG.
11
10
8
6
4
2
μs intervals (fcgck = 4 MHz)
When a write instruction is executed on T00REG while the timer is stopped, the set value is
LD
DI
SET
EI
LD
LD
SET
Source clock [Hz]
SYSCR1<DV9CK>
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck/2
fcgck
= "1"
fs/2
fs/2
4
3
8
6
4
2
(POFFCR0),0x10
(EIRH).4
(T00MOD),0xE8
(T00REG),0x40
(T001CR).0
SLEEP1 mode
SLOW1/2 or
fs/2
fs/2
fs/2
Page 188
-
-
-
-
-
4
3
2
fcgck=4MHz
; Sets TC001EN to "1"
; Sets the interrupt master enable flag to "disable"
; Sets the INTTC00 interrupt enable register to "1"
; Sets the interrupt master enable flag to "enable"
; Selects the 8-bit timer mode and fcgck/2
; Sets the timer register (64μs / (2
; Starts TC00
512μs
256μs
500ns
250ns
64μs
16μs
4μs
1μs
Resolution
fs=32.768kHz
488.2μs
244.1μs
122.1μs
-
-
-
-
-
2
[Hz] and generate interrupts at 64
fcgck=4MHz
2
/fcgck) = 0x40)
130.6ms
127.5μs
65.3ms
16.3ms
1020μs
63.8μs
255μs
4.1ms
Maximum time setting
2
TMP89FM42K
fs=32.768kHz
124.5ms
62.3ms
31.1ms
-
-
-
-
-

Related parts for tmp89fm42k