deveopmen
Timer A
Preliminary Specifications REV.D
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M16C/80 (100-pin version) group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
96
Note 1: This bit is valid when only counting an external signal.
Note 2: Set the corresponding function select register A to I/O port, and port direction
register to “0”.
Note 3: This bit is valid for the timer A3 mode register.
For timer A2 and A4 mode registers, this bit can be “0 ”or “1”.
Note 4: When performing two-phase pulse signal processing, make sure the two-phase
pulse signal processing operation select bit (address 0344
16
) is set to “1”. Also,
always be set the event/trigger select bit (address 0343
16
) to “00”.
Timer Ai mode register
(When not using two-phase pulse signal processing)
b7
b6
b5
0
b4
b3
b2
b1
0 1
b0
Operation mode select bit
0 1 : Event counter mode
b1 b0
TMOD1
TMOD0
MR0
Count polarity
select bit (Note 1)
MR2
MR1
MR3
0 : (Must always be “0” in event counter mode)
TCK1
TCK0
0 : Counts external signal's falling edges
1 : Counts external signal's rising edges
Up/down switching
cause select bit
0 : Up/down flag's content
1 : TA
iOUT
pin's input signal (Note 2)
Bit symbol
Bit name
Function
W
R
Count operation type
select bit
Two-phase pulse signal
processing operation
select bit (Note 3,4)
0 : Reload type
1 : Free-run type
0 : Normal processing operation
1 : Multiply-by-4 processing operation
Note 1: Set the corresponding function select register A to I/O port.
Note 2: This bit is valid for timer A3 mode register.
For timer A2 and A4 mode registers, this bit can be “0” or “1”.
Note 3: When performing two-phase pulse signal processing, make sure the two-phase pulse
signal processing operation select bit (address 0344
16
) is set to “1”. Also, always be
sure to set the event/trigger select bit (addresses 0342
16
and 0343
16
) to “00”.
Timer Ai mode register
(When using two-phase pulse signal processing)
Symbol
TAiMR(i=2 to 4)
Address
When reset
0358
16
to 035A
16
00000X00
2
b7
b6
b5
0
b4
1
b3
0
b2
0
b1
0 1
b0
Operation mode select bit
0 1 : Event counter mode
b1 b0
TMOD1
TMOD0
MR0
0 (Must always be “0” when using two-phase pulse signal
processing)
1 (Must always be “1” when using two-phase pulse signal
processing)
MR2
MR1
MR3
0 (Must always be “0” when using two-phase pulse signal
processing)
Count operation type
select bit
Two-phase pulse
processing operation
select bit (Note 2)(Note 3)
1 : Multiply-by-4 processing operation
TCK1
TCK0
Bit symbol
Bit name
Function
W
R
0 : Reload type
1 : Free-run type
0 : Normal processing operation
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
Symbol
TAiMR(i=2 to 4)
Address
When reset
0358
16
to 035A
16
00000X00
2
This bit is invalid in M16C/80 series.
Port output control is set by the function select registers A and B.
This bit is invalid in M16C/80 series.
Port output control is set by the function select registers A and B.
(Note 1)
Figure 1.13.7. Timer Ai mode register in event counter mode