deveopmen
Three-phase motor control timers’ functions
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
110
Figure 1.15.3. Registers related to timers for three-phase motor control
Symbol
TA11
TA21
TA41
Address
0303
16
,0302
16
0305
16
,0304
16
0307
16
,0306
16
When reset
Indeterminate
Indeterminate
Indeterminate
b7
b0 b7
b0
(b15)
(b8)
W
R
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.
AA
Symbol
TA1
TA2
TA4
TB2
Address
0349
16
,0348
16
034B
16
,034A
16
034F
16
,034E
16
0355
16
,0354
16
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7
b0
(b7
(b0
W
R
A
Timer mode
Counts an internal count source
0000
16
to FFFF
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)
AA
A
TA1TGL
Symbol
TRGSR
Address
0343
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 function select register to I/O port, and port direction
register to "0".
AA
AA
AA
AA
AA
AA
AA
AA
AA
AA
AA
b2
b1
Symbol
TABSR
Address
0340
16
When reset
00
16
Count start flag
b7 b6
b5
Bit name
Function
Bit symbol
W
R
b4
b3
b2
b1 b0
AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA
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
TA3S
TA2S
TA1S
TA0S
AA
AA
AA
AA