English
Language : 

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