CHAPTER 10 WATCH TIMER
Preliminary User’s Manual U17260EJ3V1UD
291
10.4 Watch Timer Operations
10.4.1 Watch timer operation
The watch timer generates an interrupt request signal (INTWT) at a specific time interval by using the peripheral
hardware clock or subsystem clock.
When bit 0 (WTM0) and bit 1 (WTM1) of the watch timer operation mode register (WTM) are set to 1, the count
operation starts. When these bits are cleared to 0, the 5-bit counter is cleared and the count operation stops.
When the interval timer is simultaneously operated, zero-second start can be achieved only for the watch timer by
clearing WTM1 to 0. In this case, however, the 11-bit prescaler is not cleared. Therefore, an error up to 2
9
×
1/f
W
seconds occurs in the first overflow (INTWT) after zero-second start.
The interrupt request is generated at the following time intervals.
Table 10-4. Watch Timer Interrupt Time
WTM3
WTM2
Interrupt Time
Selection
When Operated at
f
SUB
= 32.768 kHz
(WTM7 = 1)
When Operated at
f
PRS
= 2 MHz
(WTM7 = 0)
When Operated at
f
PRS
= 5 MHz
(WTM7 = 0)
When Operated at
f
PRS
= 10 MHz
(WTM7 = 0)
When Operated at
f
PRS
= 20 MHz
(WTM7 = 0)
0 0
2
14
/f
W
0.5 s
1.05 s
0.419 s
0.210 s
0.105 s
0 1
2
13
/f
W
0.25 s
0.52 s
0.210 s
0.105 s
52.5 ms
1 0
2
5
/f
W
977
µ
s 2.05
ms
819
µ
s 410
µ
s 205
µ
s
1 1
2
4
/f
W
488
µ
s 1.02
ms
410
µ
s 205
µ
s 102
µ
s
Remarks 1.
f
W
: Watch timer clock frequency (f
PRS
/2
7
or f
SUB
)
2.
f
PRS
: Peripheral hardware clock frequency
3.
f
SUB
: Subsystem clock frequency
10.4.2 Interval timer operation
The watch timer operates as interval timer which generates interrupt request signals (INTWTI) repeatedly at an
interval of the preset count value.
The interval time can be selected with bits 4 to 6 (WTM4 to WTM6) of the watch timer operation mode register
(WTM).
When bit 0 (WTM0) of the WTM is set to 1, the count operation starts. When this bit is set to 0, the count operation
stops.
Table 10-5. Interval Timer Interval Time
WTM6
WTM5
WTM4
Interval Time
When Operated
at f
SUB
= 32.768
kHz (WTM7 = 1)
When Operated
at f
PRS
= 2 MHz
(WTM7 = 0)
When Operated
at f
PRS
= 5 MHz
(WTM7 = 0)
When Operated
at f
PRS
= 10 MHz
(WTM7 = 0)
When Operated
at f
PRS
= 20 MHz
(WTM7 = 0)
0 0 0
2
4
/f
W
488
µ
s 1.02
ms
410
µ
s 205
µ
s 102
µ
s
0 0 1
2
5
/f
W
977
µ
s 2.05
ms
820
µ
s 410
µ
s 205
µ
s
0 1 0
2
6
/f
W
1.95 ms
4.10 ms
1.64 ms
820
µ
s 410
µ
s
0 1 1
2
7
/f
W
3.91 ms
8.20 ms
3.28 ms
1.64 ms
820
µ
s
1 0 0
2
8
/f
W
7.81 ms
16.4 ms
6.55 ms
3.28 ms
1.64 ms
1 0 1
2
9
/f
W
15.6 ms
32.8 ms
13.1 ms
6.55 ms
3.28 ms
1 1 0
2
10
/f
W
31.3 ms
65.5 ms
26.2 ms
13.1 ms
6.55 ms
1 1 1
2
11
/f
W
62.5 ms
131.1 ms
52.4 ms
26.2 ms
13.1 ms
Remarks 1.
f
W
: Watch timer clock frequency (f
PRS
/2
7
or f
SUB
)
2.
f
PRS
: Peripheral hardware clock frequency
3.
f
SUB
: Subsystem clock frequency