
Rev.2.10 Apr 14, 2006 page 145 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 14. Three-Phase Motor Control Timer Function
Figure 14.7 Registers TRGSR and TRBSR
Trigger Select Register
Symbol Address After Reset
TRGSR 0383h 00h
b7 b6 b5 b4 b3 b2 b1 b0
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit Name
Bit
Symbol
TA1TGL
TA1TGH
TA2TGL
Timer A1 event/trigger
select bits
TA2TGH
TA3TGL
TA3TGH
TA4TGL
TA4TGH
Function
Set to 01b (TB2 underflow) before
using a V-phase output control circuit
Timer A2 event/trigger
select bits
Set to 01b (TB2 underflow) before
using a W-phase output control circuit
:
Input on TA3IN pin is selected
(1)
: TB2 is selected
(2)
: TA2 is selected
(2)
: TA4 is selected
(2)
Timer A3 event/trigger
select bits
Timer A4 event/trigger
select bits
Set to 01b (TB2 underflow) before
using a U-phase output control circuit
NOTES:
1. Set the corresponding port direction bit to 0 (input mode).
2. Overflow or underflow.
b5
0
0
1
1
b4
0
1
0
1
Count Start Flag
Symbol Address After Reset
TABSR 0380h 00h
b7 b6 b5 b4 b3 b2 b1 b0
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit Name
Bit
Symbol
TA0S
TA1S
TA2S
TA3S
TA4S
TB0S
TB1S
TB2S
Function
0 : Count stops
1 : Count starts
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
Kommentare zu diesen Handbüchern