English
Language : 

UPD784907 Datasheet, PDF (41/98 Pages) NEC – 16-BIT SINGLE-CHIP MICROCONTROLLER
µPD784907, 784908
8.5 Watch Timer
As the count clock, either of two types of clock can be input to the watch timer: the main clock (6.29 MHz/12.58
MHz) or the watch clock (32.768 kHz). They can be selected using the control register. The watch clock is input to
the watch timer only. It is not input to the CPU or other peripheral circuits. Therefore, the speed of CPU operation
cannot be slowed by the watch clock.
The watch timer generates interrupt signals (INTW), at 0.5-second intervalsNote, by dividing the count clock. At
the same time, the watch timer sets the interrupt request flag (WIF) (where WIF refers to bit 7 of the interrupt control
register (WIC)).
By switching modes, the INTW generation interval can be changed to about 1 ms (fast-forward mode: normal
operation speed × 512).
When the main clock is selected as the count clock, the watch timer stops if in STOP or IDLE standby mode, but
continues operating if in HALT standby mode. When the watch clock is selected as the count clock, the watch timer
continues operating regardless of the standby mode. The operation of the watch clock oscillator is controlled by means
of the watch timer mode register (WM).
The watch timer of the µPD784908 does not have a buzzer output function.
Note After the operation is enabled, the time until first INTW generation is not 0.5 s.
Table 8-3. Relationship between Count Clock and Watch Timer Operation
Count Clock Selection
Main clock
Watch clock
Normal Operation Mode
HALT mode
Operable
Operable
Operable
Operable
Standby Modes
STOP mode
Stopped
Operable
IDLE mode
Stopped
Operable
The watch timer consists of a frequency divider which divides the count clock by 3 and a counter which divides
the frequency output from the frequency divider by 214. As the count clock, select the signal obtained by dividing the
internal system clock by 128 or that output by the watch clock oscillator.
Figure 8-7. Watch Timer Block Diagram
WM.3
Reset
Main clock
fXX/128
Division
by 3
Watch
clock
oscillator
0
SEL
1
ON/OFF
12 34 5 6 789
Counter
0
SEL
1
WM.2
WM.7
WM.6
10 11 12 13
14
Counter
1
SEL
0
INTW
STBC.7
Main clock selection: 6.29 MHz
12.58 MHz
Data Sheet U11680EJ2V0DS00
41