136
CHAPTER 10 WATCH TIMER
10.4 Watch Timer Operations
10.4.1 Watch timer operation
When the 8.38-MHz main system clock is used, the timer operates as a watch timer with a 0.25-second interval.
The watch timer generates interrupt requests at a constant time interval.
When bit 0 (WTM0) and bit 1 (WTM1) of the watch timer mode control register are set to 1, the count operation
starts. When set to 0, the 5-bit counter is cleared and the count operation stops.
For simultaneous operation of the interval timer, zero-second start can be set only for the watch timer by setting
WTM1 to 0. However, since the 9-bit prescaler is not cleared the first overflow of the watch timer (INTWT) after zero-
second start may include an error of up to 2
9
×
1/f
W
.
10.4.2 Interval timer operation
The watch timer operates as interval timer which generates interrupt request 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 mode control register (WTM).
Table 10-3. Interval Timer Interval Time
WTM6
WTM5
WTM4
Interval Time
When Operated at
When Operated at
f
W
= 65.4 kHz
f
W
= 4.09 kHz
0
0
0
2
4
×
1/f
W
244
µ
s
3.91 ms
0
0
1
2
5
×
1/f
W
489
µ
s
7.81 ms
0
1
0
2
6
×
1/f
W
978
µ
s
15.6 ms
0
1
1
2
7
×
1/f
W
1.96 ms
31.3 ms
1
0
0
2
8
×
1/f
W
3.91 ms
62.5 ms
1
0
1
2
9
×
1/f
W
7.82 ms
125 ms
Other than above
Setting prohibited
Remark
f
W
: Watch timer clock frequency
Summary of Contents for mPD780973 Series
Page 2: ...2 MEMO ...
Page 66: ...66 MEMO ...
Page 98: ...98 MEMO ...
Page 138: ...138 MEMO ...
Page 164: ...164 MEMO ...
Page 182: ...182 MEMO ...
Page 204: ...204 MEMO ...
Page 244: ...244 MEMO ...
Page 262: ...262 MEMO ...
Page 278: ...278 MEMO ...
Page 290: ...290 MEMO ...