274
CHAPTER 11 WATCH TIMER
11.4 Watch Timer Operations
11.4.1
Watch timer operation
When the 32.768-kHz subsystem clock or 4.19-MHz main system clock is used, the timer operates as a watch
timer with a 0.5-second or 0.25-second interval.
The watch timer sets the test input flag (WTIF) to 1 at the constant time interval. The standby state (STOP mode/
HALT mode) can be cleared by setting WTIF to 1.
When bit 2 (TMC22) of the watch timer mode control register (TMC2) is 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 achieved by setting TMC22 to 0
(maximum error: 26.2 ms when operated at f
XX
= 5.0 MHz).
11.4.2
Interval timer operation
The watch timer operates as interval timer which generates interrupt requests repeatedly at an interval of the
preset count value.
The interval time can be selected with bits 4 to 6 (TMC24 to TMC26) of the watch timer mode control register
(TMC2).
Table 11-3. Interval Timer Interval Time
TMC26 TMC25 TMC24
Interval Time
When operated at
When operated at
When operated at
f
XX
= 5.0 MHz
f
XX
= 4.19 MHz
f
XT
= 32.768 kHz
0
0
0
2
4
x 1/f
W
410
µ
s
488
µ
s
488
µ
s
0
0
1
2
5
x 1/f
W
819
µ
s
977
µ
s
977
µ
s
0
1
0
2
6
x 1/f
W
1.64 ms
1.95 ms
1.95 ms
0
1
1
2
7
x 1/f
W
3.28 ms
3.91 ms
3.91 ms
1
0
0
2
8
x 1/f
W
6.55 ms
7.81 ms
7.81 ms
1
0
1
2
9
x 1/f
W
13.1 ms
15.6 ms
15.6 ms
Other than above
Setting prohibited
fxx
: Main system clock frequency (fx or fx/2)
fx
: Main system clock oscillation frequency
f
XT
: Subsystem clock oscillation frequency
f
W
: Watch timer clock frequency (fxx/2
7
or f
XT
)
Summary of Contents for PD78076
Page 2: ...2 MEMO ...
Page 12: ...12 MEMO ...
Page 48: ...48 MEMO ...
Page 64: ...64 MEMO ...
Page 82: ...82 MEMO ...
Page 100: ...100 MEMO ...
Page 130: ...130 MEMO ...
Page 180: ...180 MEMO ...
Page 222: ...222 MEMO ...
Page 248: ...248 MEMO ...
Page 288: ...288 MEMO ...
Page 308: ...308 MEMO ...
Page 364: ...364 MEMO ...
Page 494: ...494 MEMO ...
Page 526: ...526 MEMO ...
Page 544: ...544 MEMO ...
Page 558: ...558 MEMO ...
Page 580: ...580 MEMO ...
Page 596: ...596 MEMO ...
Page 598: ...598 MEMO ...
Page 626: ...626 MEMO ...