Watch Timer Operations; Watch Timer Operation; Interval Timer Operation; Interval Timer Interval Time - NEC mPD780208 Subseries User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

8.4 Watch Timer Operations

8.4.1 Watch timer operation

When the 32.768 kHz subsystem clock is used, the timer operates as a watch timer with a 0.5-second or 0.25-
second interval. In addition, when the 4.19 MHz main system clock is used, the timer can operate as a watch
timer with a 0.5-second or 1-second interval.
The watch timer sets the test input flag (WTIF) to 1 at a 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 1 again
after setting TMC22 to 0 (maximum error: 26.2 ms when operated at 5.0 MHz).

8.4.2 Interval timer operation

The watch timer operates as an interval timer that generates interrupt requests repeatedly at an interval of the
preset count value.
The interval time can be selected using bits 4 to 6 (TMC24 to TMC26) of the watch timer mode control register
(TMC2).
TMC26
TMC25
TMC24
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
Other than above
f
: Main system clock oscillation frequency
X
f
: Subsystem clock oscillation frequency
XT
f
: Watch timer clock frequency (f
W
CHAPTER 8 WATCH TIMER
Table 8-3. Interval Timer Interval Time
When Operated at
Interval Time
f
= 5.0 MHz
X
819 µ s
4
2
x 1/f
W
2
5
x 1/f
1.64 ms
W
2
6
x 1/f
3.28 ms
W
2
7
x 1/f
6.55 ms
W
8
2
x 1/f
13.1 ms
W
9
2
x 1/f
26.2 ms
W
Setting prohibited
/2
8
or f
)
X
XT
User's Manual U11302EJ4V0UM
When Operated at
When Operated at
f
= 4.19 MHz
f
X
XT
978 µ s
488 µ s
977 µ s
1.96 ms
3.91 ms
1.95 ms
7.82 ms
3.91 ms
15.6 ms
7.81 ms
31.3 ms
15.6 ms
= 32.768 kHz
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780204Mpd780206Mpd780208Mpd78p0208Mpd780204aMpd780205a ... Show all

Table of Contents