English
Language : 

M16C80 Datasheet, PDF (125/358 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/80 SERIES
M16C/80 Group
15. Three-phase motor control timers’ functions
Timer Ai register (Note1)
(b15)
b7
(b8)
b0 b7
Symbol
b0
TA1
TA2
TA4
TB2
Address
034916,034816
034B16,034A16
034F16,034E16
035516,035416
When reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Function
• Timer mode
Counts an internal count source
Values that can be set R W
000016 to FFFF16
• One-shot timer mode
Counts a one shot width
000016 to FFFF16
(Note 2, 3)
Note 1: Read and write data in 16-bit units.
Note 2: When the timer Ai register is set to "000016", the counter does not operate
and a timer Ai interrupt does not occur.
Note 3: When writing to this register, use MOV instruction.
Timer Ai-1 register (Note 1 to 2)
(b15)
(b8)
b7
b0 b7
b0
Symbol
TA11
TA21
TA41
Function
Counts an internal count source
Address
030316,030216
030516,030416
030716,030616
When reset
Indeterminate
Indeterminate
Indeterminate
Values that can be set R W
000016 to FFFF16
Note 1: Read and write data in 16-bit units.
Note 2: Do not write to these register at the timing of timer B2 overflow.
Trigger select register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TRGSR
Address
034316
When reset
0016
Bit symbol
Bit name
TA1TGL Timer A1 event/trigger
select bit
TA1TGH
TA2TGL
TA2TGH
Timer A2 event/trigger
select bit
TA3TGL
TA3TGH
Timer A3 event/trigger
select bit
Function
b1 b0
0 0 : Input on TA1IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA0 overflow is selected
1 1 : TA2 overflow is selected
b3 b2
0 0 : Input on TA2IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA1 overflow is selected
1 1 : TA3 overflow is selected
b5 b4
0 0 : Input on TA3IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA2 overflow is selected
1 1 : TA4 overflow is selected
RW
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
TA4TGL
TA4TGH
Timer A4 event/trigger
select bit
b7 b6
0 0 : Input on TA4IN is selected (Note)
0 1 : TB2 overflow is selected
1 0 : TA3 overflow is selected
1 1 : TA0 overflow is selected
Note: Set the corresponding port function select register to I/O port, and port direction
register to "0".
Symbol
TABSR
Address
034016
When reset
0016
Bit symbol
TA0S
TA1S
TA2S
TA3S
TA4S
TB0S
TB1S
TB2S
Bit name
Timer A0 count start flag
Timer A1 count start flag
Timer A2 count start flag
Timer A3 count start flag
Timer A4 count start flag
Timer B0 count start flag
Timer B1 count start flag
Timer B2 count start flag
Function
0 : Stops counting
1 : Starts counting
Figure 15.3 Registers related to timers for three-phase motor control
RW
Rev.1.00 Aug. 02, 2005 Page 114 of 329
REJ09B0187-0100