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
Содержание mPD780973 Series
Страница 2: ...2 MEMO ...
Страница 66: ...66 MEMO ...
Страница 98: ...98 MEMO ...
Страница 138: ...138 MEMO ...
Страница 164: ...164 MEMO ...
Страница 182: ...182 MEMO ...
Страница 204: ...204 MEMO ...
Страница 244: ...244 MEMO ...
Страница 262: ...262 MEMO ...
Страница 278: ...278 MEMO ...
Страница 290: ...290 MEMO ...