Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Timers’ functions for three-phase motor control
96
Figure 1.15.3. Registers related to timers for three-phase motor control
Symbol
TA11
TA21
TA41
Address
0343
16
,0342
16
0345
16
,0344
16
0347
16
,0346
16
When reset
Indeterminate
Indeterminate
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
W
R
A
Counts an internal count source
0000
16
to FFFF
16
Function
Values that can be set
Timer Ai-1 register (Note)
Note: Read and write data in 16-bit units.
Symbol
TA1
TA2
TA4
TB2
Address
0389
16
,0388
16
038B
16
,038A
16
038F
16
,038E
16
0395
16
,0394
16
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7
b0
(b7
(b0
W
R
A
A
Timer mode
Counts an internal count source
0000
16
to FFFF
16
Function
Values that can be set
One-shot timer mode
Counts a one shot width
0000
16
to FFFF
16
Note: Read and write data in 16-bit units.
Timer Ai register (Note)
TA1TGL
Symbol
TRGSR
Address
0383
16
When reset
00
16
Timer A1 event/trigger
select bit
0 0 :
Input on TA1
IN
is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA0 overflow is selected
1 1 : TA2 overflow is selected
Trigger select register
b7
b6
b5
b4 b3
Bit name
Function
Bit symbol
b0
0 0 :
Input on TA2
IN
is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA1 overflow is selected
1 1 : TA3 overflow is selected
0 0 :
Input on TA3
IN
is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA2 overflow is selected
1 1 : TA4 overflow is selected
Input on TA4
IN
is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA3 overflow is selected
1 1 : TA0 overflow is selected
Timer A2 event/trigger
select bit
Timer A3 event/trigger
select bit
Timer A4 event/trigger
select bit
W
R
TA1TGH
TA2TGL
TA2TGH
TA3TGL
TA3TGH
TA4TGL
TA4TGH
b1 b0
b3 b2
b5 b4
b7 b6
Note: Set the corresponding port direction register to “0”.
AA
AA
AA
AA
AA
AA
AA
AA
AA
b2
b1
Symbol
TABSR
Address
0380
16
When reset
00
16
Count start flag
b7 b6
b5
Bit name
Function
Bit symbol
W
A
R
b4
b3
b2
b1 b0
AAAAAAAAAAAAAAA
AAAAAAAAAAAAAAA
AAAAAAAAAAAAAAA
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
AA
AA
A