M16C/62P Group (M16C/62P, M16C/62PT)
16. Three-Phase Motor Control Timer Function
Rev.2.41
Jan 10, 2006
Page 171 of 390
REJ09B0185-0241
Figure 16.6
DTT, TB2 and TRGSR Registers
Dead Time Timer
(1, 2)
Symbol
Address
After Reset
DTT
034Ch
Indeterminate
Setting Range
RW
NOTES :
1.
2.
If setting value is
n
, the timer stops w hen counting
n
times a count
source selected by the INV12 after start trigger occurs. Positive
or negative phase, w hich changes from inactive level to active
level, shifts w hen the dead time timer stops.
Function
1 to 255
The DTT register is enabled w hen the INV15 bit in the INVC1 register is set to “0” (dead time enabled). No dead time
can be set w hen the INV15 bit is set to “1” (dead time disabled). The INV06 bit in the INVC0 register determines
start trigger of the DTT register.
b0
b7
Use the MOV instruction to set the DTT register.
WO
Trigger Select Register
Symbol
Address
After Reset
TRGSR
0383h
00h
Bit Symbol
Bit Name
Function
RW
NOTES :
1.
2.
Set the corresponding port direction bit to “0” (input mode).
Overflow or underflow .
b7 b6 b5 b4 b3 b2 b1 b0
RW
Timer A1 Event/Trigger Select Bit
Timer A2 Event/Trigger Select Bit
TA1TGL
RW
TA2TGH
RW
TA2TGL
RW
Set to “01b” (TB2 underflow ) before using
a V-phase output control circuit
TA4TGH
RW
TA4TGL
RW
RW
RW
Timer A3 Event/Trigger Select Bit
Set to “01b” (TB2 underflow ) before using
a U-phase output control circuit
Timer A4 Event/Trigger Select Bit
TA1TGH
Set to “01b” (TB2 underflow ) before using
a W-phase output control circuit
b5 b4
0 0 : Input on TA3IN is selected
(1)
0 1 : TB2 is selected
(2)
1 0 : TA2 is selected
(2)
1 1 : TA4 is selected
(2)
TA3TGL
TA3TGH
Timer B2 Register
(1)
Symbol
Address
After Reset
TB2
0395h, 0394h
Indeterminate
Setting Range
RW
NOTES :
1.
(b15)
b7
b7
b0
(b8)
b0
RW
0000h to FFFFh
Use a 16-bit data for read and w rite.
Function
If setting value is
n
, count source is divided by
n
+1.
Timers A1, A2 and A4 start every time an underflow occurs.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655