
deveopmen
Rev.B2 for proof reading
Timer A
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
132
Timer Ai register (i = 0 to 4) (Note 1)
Symbol
TAi (i = 0 to 2)
TAi (i = 3, 4)
Address
When reset
Indeterminate
Indeterminate
0347
16
,0346
16
, 0349
16
,0348
16
, 034B
16
,034A
16
034D
16
,034C
16
, 034F
16
,034E
16
b7
b0
b7
b0
(b15)
(b8)
W
R
Timer mode
Function
Values that can be set
Event counter
mode
One-shot timer
mode
00
16
to FE
16
(High-order address)
00
16
to FF
16
(Low-order address)
0000
16
to FFFE
16
0000
16
to FFFF
16
0000
16
to FFFF
16
0000
16
to FFFF
16
16-bit counter (set to dividing ratio)
16-bit counter (set to dividing ratio)
16-bit counter (set to one shot width)
Pulse width
modulation mode
(16-bit PWM)
16-bit pulse width modulator
(set to PWM pulse
“
H
”
width)
Pulse width
modulation mode
(8-bit PWM)
(Note 2)
(Note 6)
(Note 4, 7)
Low-order 8 bits : 8-bit prescaler
(set to PWM period)
High-order 8 bits : 8-bit pulse width modulator
(set to PWM pulse
“
H
”
width)
(Note 5, 7)
(Note 3)
(Note 3)
(Note 3)
Note 1: Read and write data in 16-bit units.
Note 2: Counts pulses from an external source or timer overflow.
Note 3: Use MOV instruction to write to this register.
Note 4: When setting value is n, PWM period and
“
H
”
width of PWM pulse are as follows:
PWM period : (2 - 1) / fi
PWM pulse
“
H
”
width : n / fi
Note 5: When setting value of high-order address is n and setting value of low-order address is m, PWM period and
“
H
”
width of PWM pulse are as follows:
PWM period : (2 - 1) X (m + 1) / fi
PWM pulse
“
H
”
width : (m + 1)n / fi
Note 6: When the timer Ai register is set to "0000
16
", the counter does not operate and the timer Ai interrupt request
is not generated. When the pulse is set to output, the pulse does not output from the TAi
OUT
pin.
Note 7: When the timer Ai register is set to "0000
16
", the pulse width modulator does not operate and the output
level of the TAi
OUT
pin remains "L" level, therefore the timer Ai interrupt request is not generated. This also
occurs in the 8-bit pulse width modulator mode when the significant 8 high-order bits in the timer Ai register
are set to "00
16
".
16
Figure 1.14.2. Timer A-related registers (1)