UPD75238GJ NEC [NEC], UPD75238GJ Datasheet - Page 73

no-image

UPD75238GJ

Manufacturer Part Number
UPD75238GJ
Description
4 BIT SINGLE-CHIP MICROCOMPUTER
Manufacturer
NEC [NEC]
Datasheet
TPGM3
(Set to 1)
(3) Configuration and operation when the timer/pulse generator is used in the timer mode
f
X
Frequency
divider
TPGM1
Fig. 4-32 shows the configuration when the timer/pulse generator is used in the timer mode.
The timer mode is selected by setting bit 0 of TPGM to 1. In the timer mode, TPGM3 must be set to 1,
allowing a modulo register to be reloaded at any time.
In the timer mode, a prescaler is selected with the modulo register L (MODL), and a frequency or interrupt
interval value is set in the modulo register H (MODH). The timer starts when the TPGM1 is set to 1.
Fig. 4-33 shows the operation timing for the MODH setting, and Table 4-4 shows the setting of a frequency
or interrupt interval.
The output to the PPO pin can be switched between the square wave output and static output. To output
a square wave, set TPGM5 and TPGM7 to 1.
Caution
1/2
When the timer operating in the timer operation mode is stopped, IRQTPG may be set because
T F/F is set. So, the timer must be stopped with an interrupt being disabled, then IRQTPG must
be cleared.
Fig. 4-32 Block Diagram of the Timer/Pulse Generator (Timer Mode)
Prescaler select latch (5)
Modulo register L (8)
8
Clear
MODL
CP
Internal bus
Modulo register H (8)
Modulo latch H (8)
Count register (8)
Comparator (8)
8
8
8
Clear
MODH
Match
T F/F
Set
TPGM4 TPGM5 TPGM7
Selec-
tor
PD75238
INTTPG
IRQTPG
set signal
Output
buffer
PPO
73

Related parts for UPD75238GJ