Timer/Pulse Generator - NEC mPD75512 Datasheet

Mos integrated circuit 4-bit single-chip microcomputer
Table of Contents

Advertisement

6.7

TIMER/PULSE GENERATOR

The µ PD75512 contains a timer/pulse generator, that can be used as the timer or the pulse generator. Timer/pulse
generator has the following functions.
(a)
Function, when used in the timer mode
• 8-bit interval timer operation (IRQTPG generation), for which the clock source can be changed in 5
steps.
• Square waveform output to the PPO pin
(b)
Function, when used in the PWM pulse generation mode
• 14-bit accuracy PWM pulse output to PPO pin (can be used as a D/A converter for electronics tuning).
• Fixed time interval interrupt generation (2
When no pulse output is required, the PPO pin can be used as 1-bit output port.
Note:
When setting the STOP mode, if the timer pulse generator is in operating mode, erroneous operation
may occur. Therefore, the timer/pulse generator must be set in no-operation state by the mode
register, before setting the STOP mode.
TPGM3
(Set to 1 )
Frequency
divider
f
1/2
x
Prescaler select latch (5)
TPGM1
Fig. 6-6 Timer/Pulse Generator Block Diagram (Timer Mode)
15
Internal bus
8
MODL
Modulo register L (8)
CP
Clear
/f
= 7.81ms: f
= 4.19 MHz)
X
X
8
MODH
Modulo register H (8)
Modulo latch H (8)
8
Coincidence
Comparator (8)
8
Count register (8)
Clear
µ PD75512
INTTPG
(IRQTPG
set signal)
Output buffer
T F/F
Selector
PPO
Set
TPGM4 TPGM5 TPGM7
25

Advertisement

Table of Contents
loading

Table of Contents