Mitsubishi microcomputers
M16C / 62 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timer A
85
Figure 1.17.5. Timer A-related registers (2)
Timer A4 up/down flag
Timer A3 up/down flag
Timer A2 up/down flag
Timer A1 up/down flag
Timer A0 up/down flag
Timer A2 two-phase pulse
signal processing select bit
Timer A3 two-phase pulse
signal processing select bit
Timer A4 two-phase pulse
signal processing select bit
Symbol
UDF
Address
0384
16
When reset
00
16
TA4P
TA3P
TA2P
Up/down flag
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
TA4UD
TA3UD
TA2UD
TA1UD
TA0UD
0 : Down count
1 : Up count
This specification becomes valid
when the up/down flag content is
selected for up/down switching
cause
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
When not using the two-phase
pulse signal processing function,
set the select bit to “0”
Symbol
TABSR
Address
0380
16
When reset
00
16
Count start flag
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
Timer B2 count start flag
Timer B0 count start flag
Timer A4 count start flag
Timer A3 count start flag
Timer A2 count start flag
Timer A1 count start flag
Timer A0 count start flag
0 : Stops counting
1 : Starts counting
TB2S
TB0S
TA4S
TA3S
TA2S
TA1S
TA0S
Symbol
TA0
TA1
TA2
TA3
TA4
Address
0387
16
,0386
16
0389
16
,0388
16
038B
16
,038A
16
038D
16
,038C
16
038F
16
,038E
16
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
Timer Ai register (Note)
Timer mode
Counts an internal count source
0000
16
to FFFF
Function
Values that can be set
Event counter mode
Counts pulses from an external source or timer overflow
0000
16
to FFFF
One-shot timer mode
Counts a one shot width
0000
16
to FFFF
16
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
00
16
to FE
16
(Both high-order
and low-order
addresses)
0000
16
to FFFE
16
Note: Read and write data in 16-bit units.
AA
AA
AA
AA
AA
AA
A
A
AA
AA
A
A
A
AA
AA
A
A
A
A
A