MITSUBISHI
ELECTRIC
PRELIMINARY
Notice: This is not a final specification.
change.
Some parametric limits are subject to
12
MITSUBISHI MICROCOMPUTERS
4282 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
Table 4 Control registers related to timer
V1
2
V1
1
V1
0
Timer control register V1
Auto-control output by timer 1 is invalid
Auto-control output by timer 1 is valid
Carrier wave output (CARRY)
Bit 5 of watchdog timer (WDT)
Stop (Timer 1 state retained)
Operating
0
1
0
1
0
1
Carrier wave output auto-control bit
Timer 1 count source selection bit
Timer 1 control bit
at reset : 000
2
W
at RAM back-up : 000
2
V1
3
V1
2
V1
1
V1
0
Timer control register V1
To expand
“
H
”
interval is invalid
To expand
“
H
”
interval is valid (when V2
2
=1 selected)
Carrier wave generation function invalid
Carrier wave generation function valid
f(X
IN
)
f(X
IN
)/2
Stop (Timer 2 state retained)
Operating
0
1
0
1
0
1
0
1
Carrier wave
“
H
”
interval expansion bit
Carrier wave generation function control bit
Timer 2 count source selection bit
Timer 2 control bit
at reset : 0000
2
W
at RAM back-up : 0000
2
Note:
“
W
”
represents write enabled.
(1) Control registers related to timer
Timer control register V1
Register V1 controls the timer 1 count source and auto-
control function of carrier wave output from port CARR by
timer 1. Set the contents of this register through register A
with the TV1A instruction.
Timer control register V2
Register V2 controls the timer 2 count source and the carrier
wave generation function by timer. Set the contents of this
register through register A with the TV2A instruction.
(2) Precautions
Note the following for the use of timers.
Count source
Stop timer 1 counting to change its count source.
Watchdog timer
Be sure that the timing to execute the WRST instruction in
order to operate WDT efficiently.
Writing to reload register R1
When writing data to reload register R1 while timer 1 is
operating, avoid a timing when timer 1 underflows.
Stop of timer 2
Avoid a timing when timer 2 underflows to stop timer 2.
Writing to reload register R2H
When writing data to reload register R2H while timer 2 is
operating, avoid a timing when timer underflows.
Timer 2 carrier wave output function
When to expand
“
H
”
interval of carrier wave is valid, set
“
1
”
or more to reload register R2H.