|
M38258MCM Datasheet, PDF (21/70 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER | |||
|
◁ |
MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
TIMERS
The 3825 group has five timers: timer X, timer Y, timer 1, timer 2,
and timer 3. Timer X and timer Y are 16-bit timers, and timer 1,
timer 2, and timer 3 are 8-bit timers.
All timers are down count timers. When the timer reaches â0016â,
an underflow occurs at the next count pulse and the correspond-
ing timer latch is reloaded into the timer and the count is contin-
ued. When a timer underflows, the interrupt request bit corre-
sponding to that timer is set to â1â.
Read and write operation on 16-bit timer must be performed for
both high- and low-order bytes. When reading a 16-bit timer, read
the high-order byte first. When writing to a 16-bit timer, write the
low-order byte first. The 16-bit timer cannot perform the correct op-
eration when reading during the write operation, or when writing
during the read operation.
Real time port
control bit â1â
QD
P52
P52 data for real time port
Data bus
P52 direction register â0â Latch
P52 latch
Real time port
control bit â1â
QD
P53
P53 data for real time port
P53 direction register â0â
Latch
P53 latch
Real time port
control bit â0â
â1â
Timer X mode register
write signal
f(XIN)/16
(f(XIN)/16 in low-speed modeV)
CNTR0 active Timer X operat-
edge switch bit
ing mode bit
â00â,â01â,â11â
Timer X stop
control bit
Timer X (low) latch (8)
Timer X write
control bit
Timer X (high) latch (8)
â0â
P54/CNTR0
Timer X (low) (8)
Timer X (high) (8)
â10â
â1â
Pulse width
measurement
mode CNTR0 active
edge switch bit â0â Q S
Pulse output mode
P54 direction register
â1â
P54 latch
T
Q
Timer Y operating mode bit
â00â,â01â,â10â
Pulse width HL continuously measurement mode
Rising edge detection
â11â
Pulse output mode
Falling edge detection
Period
measurement mode
f(XIN)/16
(f(XCIN)!16 in low-speed modeV)
P55/CNTR1
CNTR1 active
edge switch bit â00â,â01â,â11â
â0â
Timer Y stop
control bit
Timer Y (low) latch (8)
Timer Y (low) (8)
Timer Y (high) latch (8)
Timer Y (high) (8)
â1â
â10â Timer Y operating
mode bit
f(XIN)/16
(f(XCIN)!16 in low-speed modeV)
Timer 1 count source
selection bit
â0â
Timer 1 latch (8)
XCIN
â1â
Timer 1 (8)
Timer 2 count source
selection bit
â0â
Timer 2 latch (8)
Timer 2 (8)
â1â
f(XIN)/16
(f(XCIN)!16 in low-speed modeV)
Timer 2 write
control bit
Timer X
interrupt
request
CNTR0
interrupt
request
CNTR1
interrupt
request
Timer Y
interrupt
request
Timer 1
interrupt
request
Timer 2
interrupt
request
TOUT output
active edge
TOUT output
control bit
P56/TOUT
P56 direction register
switch bit â0â
â1â
P56 latch
QS
T
Q
â0â
Timer 3 latch (8)
TOUT output control bit
f(XIN)/16(f(XCIN)/16 in low-speed modeV)
Timer 3 (8)
â1â
VInternal clock Ï = XCIN/2.
Timer 3 count
source selection bit
Timer 3
interrupt
request
Fig. 17 Timer block diagram
21
|
▷ |