M16C/62P Group (M16C/62P, M16C/62PT)
16. Three-Phase Motor Control Timer Function
Rev.2.41
Jan 10, 2006
Page 168 of 390
REJ09B0185-0241
Figure 16.3
INVC1 Register
Three-Phase Control Register 1
(1)
Symbol
Address
After Reset
INVC1
0349h
00h
Bit Symbol
Bit Name
RW
NOTES :
1.
2.
INV11=1
Three-phase mode 1
Used
Enabled
Enabled w hen INV11=1 and INV06=0
3.
4.
5.
b7 b6 b5 b4 b3 b2 b1 b0
0
INV13
Carrier Wave Detect Bit
(4)
RO
INV12
Dead Time Timer Count
Source Select Bit
RW
INV14
Output Polarity Control Bit
RW
0 : Active “L” of an output w aveform
1 : Active “H” of an output w aveform
INV15
Dead Time Disable Bit
RW
0 : Enables dead time
1 : Disables dead time
RW
0 : Falling edge of a one-shot pulse of Timer A1,
A2, A4
(5)
1 : Rising edge of the three-phase output shift
register (U-, V-, W-phase)
—
(b7)
Reserved Bit
RW
Set to “0”
The follow ing table lists how the INV11 bit w orks.
When the INV06 bit is set to “1” (saw tooth w ave modulation mode), set the INV11 bit to “0” (three-phase mode 0).
Also, w hen the INV11 bit is set to “0”, set the PWCON bit in the TB2SC register to “0” (Timer B2 is reloaded w hen
Timer B2 underflow s).
The INV13 bit is enabled only w hen the INV06 bit is set to “0” (Triangular w ave modulation mode) and the INV11 bit to
“1” (three-phase mode 1).
If the follow ing conditions are all met, set the INV16 bit to “1” (rising edge of the three-phase output shift register).
• The INV15 bit is set to “0” (dead time timer enabled)
• The Dij bit (i=U, V or W, j=0, 1) and DiBj bit alw ays have different values w hen the INV03 bit is set to “1”.
(The positive-phase and negative-phase alw ays output opposite level signals.)
If above conditions are not met, set the INV16 bit to “0” (falling edge of a one-shot pulse of Timer A1, A2, A4).
Item
INV11=0
Mode
INV13 Bit
Disabled
Three-phase mode 0
Timer A1, A2 and A4 Start
Trigger Select Bit
Timer A1-1, A2-1 and A4-1
Control Bit
(2, 3)
Rew rite the INVC1 register after the PRC1 bit in the PRCR register is set to “1” (w rite enable).
The timers A1, A2, A4, and B2 must be stopped during rew rite.
INV11
RW
INV10
RW
0 : Timer A1 reload control signal is “0”
1 : Timer A1 reload control signal is “1”
INV16
Dead Time Timer Trigger
Select Bit
Function
0 : Timer B2 underflow
1 : Timer B2 underflow and w rite to Timer B2
0 : Three-phase mode 0
1 : Three-phase mode 1
0 : f1 or f2
1 : f1 divided-by-2 or f2 divided-by-2
TA11, TA21 and TA41
Registers
Not used
INV00 and INV01 Bit
Disabled.
The ICTB2 counter is incremented
w henever Timer B2 underflow s
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655