µPD75212A
5.6 TIMER/PULSE GENERATOR
The µPD75212A incorporates one channel of timer/pulse generator which can be used as a timer or a pulse
generator. The timer/pulse generator has the following functions.
(a) Functions available in the timer mode
• 8-bit interval timer operation (IRQTPG generation) enabling the clock source to be varied at 5 levels
• Square wave output to PPO pin
(b) Functions available in the PWM pulse generation mode
• 14-bit accuracy PWM pulse output to the PPO pin (Used as a digital-to-analog converter and applicable
to tuning)
• Fixed time interval (
215
fXX
= 7.81 ms : at 4.19 MHz operation) interrupt generation
If pulse output is not necessary, the PPO pin can be used as a 1-bit output port.
Note
If the STOP mode is set while the timer/pulse generator is in operation, miss-operation may result.
To prevent that from occurring, preset the timer/pulse generator to the stop state using its mode
register.
Fig. 5-5 Timer/Pulse Generator Block Diagram (Timer Mode)
TPGM3
(Set to "1")
Frequency
Divider
fX 1/2
TPGM1
Internal Bus
8
MODL
Modulo Register L (8)
8
MODH
Modulo Register H (8)
CP
Prescalar Select Latch (5)
Clear
Modulo Latch H (8)
8
Match
Comparator (8)
T F/F
Set
8
INTTPG
IRQTPG
Set Signal
Output Buffer
Selector
PPO
Count Register (8)
Clear
TPGM4TPGM5 TPGM7
22