Beruflich Dokumente
Kultur Dokumente
Q1 Q3 Q5
PIC18FXX31 3-Phase ACIM
VDC/2 PWM0 (Q0)
PWM1 (Q1) B
Y
PWM2 (Q2) R N
O PWM3 (Q3)
VDC
PWM4 (Q4)
Rectifier
115/230 VAC PWM5 (Q5)
VDC/2
50/60 Hz Q0 Q2 Q4
0 Q0, Q2, Q4 0 0 0 V0
1 Q1, Q2, Q4 2/3 VDC -1/3 VDC -1/3 VDC V1
7 Q1, Q3, Q5 0 0 0 V7
VS Sector 1
Sector 3
TB
V7 0
(Q0, Q3, Q5) V4 V1 (Q1, Q2, Q4)
TA
V0
Sector 6
Sector 4
EQUATION 1:
T0 T1 T2 T3 T4 T5 T6 T7
VS = V0 + V1 + V2 + V3 + V4 + V5 + V6 + V7
TS TS TS TS TS TS TS TS
TS = T0 + T1 + T2 + T3 + T4 + T5 + T6 + T7
V2 EQUATION 4:
Q1
Q0
Q3
Q2
Q5
Q4
Axes of Symmetry
We can observe the different axes of symmetry in all By solving Equation 2, Equation 5 and Equation 7, we
the waveforms as shown in Figure 5. These symme- get:
tries are mainly responsible for having lower THD in
SVM compared to Sine PWM in the linear operating EQUATION 8:
region.
Maximum Line-to-Line Voltage
From Figure 3, it is clear that in the linear operating
2
region, the maximum line-to-line voltage amplitude can = mmax VDC
be achieved when VS is rotated along the largest 3
inscribed circle in the space vector hexagon. In 2 3
= VDC = VDC
mathematical terms, this is equivalent to: 3 2
VDC cos/6 3
mmax = = cos/6 =
VDC 2
EQUATION 9:
TABLE 2: DUTY CYCLE VALUES FOR THE THREE MOTOR PHASES BASED ON VS LOCATION
Sector No. Phase R Duty Cycle Phase Y Duty Cycle Phase B Duty Cycle
1 T0/2 T0/2 + TA TS T0/2
2 T0/2 + TB T0/2 TS T0/2
3 TS T0/2 T0/2 T0/2 + TA
4 TS T0/2 T0/2 + TB T0/2
5 T0/2 + TA TS T0/2 T0/2
6 T0/2 TS T0/2 T0/2 + TB
Main Routine
START
No Is SW1/SW2
pressed?
Yes
Configure PCPWM Module and
Set Default Rotation Direction
Call KEY_CHECK to
Determine Pressed Key
Call PROCESS_KEY_PRESSED
to Act on the Pressed Key
Has TMR1 No
overflowed?
Yes
Call FAULT_CHECK to Check for
Fault and Display the same, if any
No Is 1 sec time
interval over?
Yes
Call RAMP_SPEED to Accelerate/
Decelerate the Motor
ISR_HIGH
No
Is PTIF = 1?
Yes
Vector Angle = Vector Angle + Vector Update Step Size
No Is carry
generated?
Yes
Increment Sector Number by 1
Is Sector No
Number > 5?
Yes
Reset Sector Number to 0
RETFIE
ISR_LOW
No Is ADIF = 1?
Yes
Read Phase Currents, IGBT Junction Temperature
and the Potentiometer Setting for the Motor Speed
Is TMR1IF = 1? No
Yes
Reload TMR1 for 5 msec Overflow Rate
Yes Is
SW1/SW2 pressed
any time?
No
Toggle LEDs
RETFIE
ICD
Connector
Potentiometer
RS-232 RS-232
User Interface Connector
Push Buttons Hall Sensor
PIC18FXX31 Isolated
Connector Control
LEDs Section
Quad Encoder
Connector
Comparator
PCPWM
Voltage
Monitor
Current Phase Current
Monitor Monitors
Optoisolators
Temperature
Monitor
Back EMF
Conditioner
PCPWM
Motor
Terminal Block
IRAMS10UP60A
AC Bridge
Rectifier
R40 470
RESET R41 C25 C26 +5 VA
S2 10K R30
0.1 F 0.1 F
FIGURE A-2:
4 1 PWM4 PWM5
R42 300
AN955
3 2 U3 JP3
DS00955A-page 16
1 C22
2K 1 40 U5 R28 0.1 F
C27 MCLR/VPP RB7/PGD RB7 2
2 39 1 AN1 8 1K R29
CF1 RA0/AN0 RB6/PGC RB6 3 VCC 1K
3 38 2 CA1 7
0.1 F VREF RA1/AN1 RB5/PWM4 V01 HIN3
4 37 3 CA2 6
INDX RA2/AN2/VREF- RB4/PWM5 PWM5 V02 LIN3
5 36 4 AN2 5
QEA RA3/AN3/VREF+ RB3/PWM3 PWM3 R34 GND
+5 VD 6 35
QEB RA4/CAP3 RB2/PWM2 PWM2 300
7 34 TLP2630/
RA5 RA5/AN5/LVDIN RB1/PWM1 PWM1 SFH6326
R44 8 33
+5 VD CF2 RE0/AN6 RB0/PWM0 PWM0
2K 9 32
CF3 RE1/AN7 VDD
SW2 (FWD/REV) 10 31
RE2 RE2/AN8 VSS PWM2 +5 VA
11 30 SW2 R33 300
R98 VDD RD7/PWM7
R43 12 29
4.7K VSS RD6/PWM6 SW1 PWM3
S4 100
13 28 R35 300
R97 OSC1 OSC1/CLKI/RA7 RD5
4 1 C23
SW2 14 27 R31
OSC2 OSC2/CLKO/RA6 RD4/FLTA RD4 U7 0.1 F
3 2 4.7K 15 26 1K
RD5
RC0 RC0/T1OSO/T1CKI RC7/RX/DT RX 1 AN1 8
R32
16 25 VCC 1K
RC1 RC1/T1OSI/CCP2 RC6/TX/CK/SS TX 2 CA1 7
17 24 V01 HIN2
FAULTB RC2/CCP1 RC5/INT2 INT2 3 CA2 6
18 23 V02 LIN2
INT0 RC3/INT0 RC4/INT1 INT1 4 AN2 5
19 22 GND
RD0 RD0/T0CKI/GPCKI RD3/SCK/SCL RD3
20 21 TLP2630/
RD1 RD1/SDO RD2/SDI/SDA RD2
+5 VD SFH6326
PIC18F4431 PWM0 +5 VA
SW1 (ON/OFF) R38 300
R95
PWM1
4.7K R39 300 R36
S3 C24
U8 1K
4 1 R96 0.1 F
SW1 1 AN1 8 R37
3 2 4.7K VCC 1K
2 CA1 7
V01 HIN1
3 CA2 6
V02 LIN1
4 AN2 5
GND
TLP2630/
SFH6326
+5 VD
+5 VD C17
+5 VD
R24 RC1
0.1 F
1M JP1
R25 2 1
8 U4:A C21 C18
R27 2.8K
1 2
ISOLATORS, CURRENT COMPARATOR AND ASSOCIATED PARTS)
4.7K
C45
C44 U18 1 F
+5 VD 1 F
FIGURE A-3:
2 VCC 16
V+
PIN1
U19 1 PIN6
11 14 6
TX T1IN PIN2
PIC18F2431 2 PIN7
10 7 7
T2IN PIN3
1 28 3 PIN8
INDX MCLR MCLR/RE3 RB7 RB7 8
PIN4
2 27 4 PIN9
CF1 RA0/AN0 RB6 RB6 12 13 9
JP9 RX A1OUT A1IN PIN5
OPTIONAL +5 VD +5 VD
R106
+5 VD 50
R100 D22
D21 1N4007
100K 1N4007
R99
100K
RD0
OSC2
R101
U17 D24 C42 1K
Y1 39V 0.1 F
OSC1 1 RXD FAULT/SLPS 8
+5 VD RX J13
2 CS/WAKE VBAT 7 1
HC 49US RD1
C48 C49 3 VDD 2
LIN 6
33 pF 33 pF
4 TXD VSS 5 3
TX
D23
C41 27V
0.1 F MCP201
BOARD SCHEMATIC, PART 2 (PIC18F2X31 MICROCONTROLLER SOCKET,
USART, CLOCK OSCILLATOR NETWORK AND OPTIONAL LIN INTERFACE)
DS00955A-page 17
AN955
FIGURE A-4:
AN955
DS00955A-page 18
+5 VD
J8 J7 J9 J10 J11 J12
1 1 1 1 1
CF1 ICD 1 PWM0 RC0 RD2 CF2
2 MCLR 2 2 2 2
VREF 2 PWM1 RC1 RD3 CF3
3 3 3 3 3
INDX 3 PWM2 FAULTB INT1 RE2
4 4 4 4
QEA 4 PWM3 INT0 INT2
5 RB7 5 5 5
QEB 5 PWM5 RD0 TX
6 RB6 6 6 6
RA5 6 PWM4 RD1 RX
7 7
RB6 RD4
8 8
RB7 RD5
9
SW1
10
SW2
CONNECTORS, MONITOR LEDS)
+5 VD +5 VD
+5 VD +5 VD
D17
J2 J3 R102
1 R15 1 R21 R18 1K RD0
10K 10K INDX 470
2 2
3 3 R19 1K D18
INT0 QEA R103
4 4 RD1
INT1
5 5 R20 1K 470 JP4
INT2 QEB
R17 D19
10K
R104
R23
R16 10K R22 RD2
10K 10K 470
+5 VD +5 VD D20
+5 VD +5 VD R105
RC0
470
BOARD SCHEMATIC, PART 3 (SENSOR AND MICROCONTROLLER HEADER
100K
+5 VA +5 VA
C36
0.1 F R59
C31 4 4.7K +5 VD
2
-INA
0.1 F R54 1
100K R69 C29
3 U12:A R46
+INA U13
DS00955A-page 19
AN955
FIGURE A-6:
AN955
DS00955A-page 20
U15
IRAMS10UP60A C37 10 F 16V +5 VA
VB3 1
VS3 W
2 C55
NC
3 C38 10 F 16V 0.1 F
VB2
4 U11:A +5 VA
VS2 V
5 MCP6002 8-DIP U11:B
NC 2 8 MCP6002 8-DIP
6 C39 10 F 16V
VB1 1 R117 6 R118 U20
7
VS1 R111 360 R119
8 U 3 51K 1% 7 1
-LED 8
ISM N/C
NC 1K 4 5 7 51K 1%
9 F2
2 +LED N/C
CURRENT MEASUREMENT)
V+ VBUS+ 6 6
10 R116 C58 3 VCCT VCC2
NC FUSE 6.3X32 C56 C57 100 pF 5 7
11 4 I1 I2
DC- 33 pF 4.7 nF R112 91K
12 5
R110 10K
DC- LOC111 8-DIP
13
DC- 0.05R/3W U4:B R120
14
H1 HIN1 DC-
MCP6002 8-DIP 470
15
H2 HIN2
16
H3 HIN3
17 +5 VD
L1 LIN1
18 JP7
L2 LIN2
19
L3 LIN3
20 R93 CF1
ITRIP
21 R94
VCC 300
22 +15 VA 1K
VSS
U16
23 R108 R115
1 +LED
4.3K COL 4 RE2
2 -LED EMT 3 1K
SFH618
BOARD SCHEMATIC, PART 5 (3-PHASE INVERTER POWER MODULE AND SHUNT
J6
LEG1
LEG2
LEG3
U9 U10
U6
R122 R123
IN6 6
IN5 5
IN4 4
IN6 6
IN5 5
IN4 4
R121 CF2 7 OUT
CF3
7 OUT
IN6 6
IN5 5
IN4 4
7 OUT
CF1 1K 8 0V LTS15-NP Load R125 1K 8 0V LTS15-NP Load R126
1K 8 0V LTS15-NP Load R124 0.01R, 1/2W 0.01R, 1/2W
0.01R, 1/2W C50 9 +5V instead of U9 9 +5V
instead of U10
9 +5V
instead of U6
IN3
IN2
33 F 35V
IN3
IN2
3 IN3
2 IN2
1 IN1
3
2
1 IN1
3
2
1 IN1
+5 VD C51 +5 VD
0.1 F
+5 VD
U
V
W
BOARD SCHEMATIC, PART 6 (MOTOR TERMINAL BLOCK AND OPTIONAL
DS00955A-page 21
AN955
J1 VBUS+
T1
FIGURE A-8:
DC- DC+ G N L L1 E3 +5 VA
TRANSFORMER TSD-877 D3
AN955
R2
DS00955A-page 22
AC INPUT
1 ohm 3W 10 H
11DQ10
6
5
4
3
2
1
C15
C2 R3
2.2 nF C3
4.7 F 400V 47K C4
400V 1 8 100 F 25V
47 F 16V
EARTH 3 7
DC- C1
DC- 2
470 F 250V 6
D1 4 10
1
R1 GBPC2506C 5 9
D11
E4
NTC L2
SHORTING LINK 1N4937 D5
4 AC2 2 2 1
AC1 +15 VA
J17 10 H
11DQ10
F1
216010 C5 C8 C9
47 F 25V E5
3 100 F 25V
470 F 250V E6
RV1 D6 L3
+5 VD
D8 10 H
R5 11DQ10
DC- C11 C10
27 ohm R9 R8
C6 1N4148 100 F 25V 47 F 25V R6
1K 4.7K
C16 33 F 25V 470 ohm
VCC
56 pF 4 D4 TL431
U1 D
3
GND 1N4148 R14
2 E7
IRIS4009-HORZ
S C13 10 ohm
DC- 1 C12
47 pF
220 pF
DC-
D7
1N5818 R11
750 ohm
DC-
R12
1.3 ohm
DC- DC-
EQUATION B-3:
VDC (m sin)
VRO =
2
VDC (m sin( + 2/3))
VYO =
2
VDC (m sin( + 4/3))
VBO =
2
EQUATION B-4:
3 VDC m sin( + /6)
VRY = VRO VYO =
2
3 VDC m sin( + (5)/6)
VYB =
2
3 VDC m sin( + 3/2)
VRB =
2
EQUATION B-5:
3 VDC
Maximum line-to-line voltage =
2
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchips Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchips code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
03/01/05