
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer X
222
Figure 2.4.2. Timer X-related registers (1)
Timer Xi mode register
Symbol
Address
When reset
TXiMR(i = 0 to 2) 039716 to 039916
0016
Bit name
Function
Bit symbol
W
R
b7
b6 b5
b4
b3
b2
b1 b0
0 0 : Timer mode
0 1 : Event counter mode
1 0 : One-shot timer mode or pulse period/
pulse width measurement mode
1 1 : Pulse width modulation (PWM) mode
b1 b0
TCK1
MR3
MR2
MR1
TMOD1
MR0
TMOD0
TCK0
Function varies with each operation mode
Count source select bit
(Function varies with each operation mode)
Operation mode
select bit
Note 1: Must set “00” to operation mode select bit when using timer X2 of M30200.
Symbol
Address
When reset
TABSR
038016
000X00002
Count start flag
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3 b2
b1
b0
Clock devided count start flag
Timer B1 count start flag
Timer B0 count start flag
Timer X2 count start flag
Timer X1 count start flag
Timer X0 count start flag
Timer A0 count start flag
0 : Stops counting
1 : Starts counting
CDCS
TB1S
TB0S
Nothing is assigned.
In an attempt to write to this bit, write “0”. The value, if read, turns out to be
indeterminate.
TX2S
TX1S
TX0S
TA0S
Symbol
Address
When reset
TX0
038916,038816
Indeterminate
TX1
038B16,038A16
Indeterminate
TX2
038D16,038C16
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
Timer Xi register (Note 1)
W
R
Timer mode
000016 to FFFF16
Counts an internal count source
Function
Values that can be set
Event counter mode
000016 to FFFF16
Counts pulses from an external source or timer overflow
One-shot timer mode
000016 to FFFF16
Counts a one shot width
(Note 2)
Pulse width modulation mode (16-bit PWM)
Functions as a 16-bit pulse width modulator
Pulse width modulation mode (8-bit PWM)
Timer low-order address functions as an 8-bit
prescaler and high-order address functions as an 8-bit
pulse width modulator
0016 to FF16(Note 2)
(High-order
addresses)
0016 to FF16 (Note 2)
(Low-order
addresses)
000016 to FFFE16
(Note 2)
Note 1: Read and write data in 16-bit units.
Note 2: Use MOV instruction to write to this register.
0 : Stops counting
1 : Starts counting
Pulse period / pulse width measurement mode
Measures a pulse period or width