You are on page 1of 18

2005 Microchip Technology Inc.

DS00967A-page 1
AN967
INTRODUCTION
Single-phase induction motors are extensively used in
appliances and industrial controls. The Permanent Split
Capacitor (PSC) single-phase induction motor is the
simplest and most widely used motor of this type. The
classification, construction and working principle of
single-phase induction motors are explained in detail in
the application note AC Induction Motor
Fundamentals (AN887) available from Microchip. For
VF theory and basic operations, refer to AN887
mentioned above, and Speed Control of 3-Phase
Induction Motor Using PIC18 Microcontrollers
(AN843).
By design, PSC motors are unidirectional, which
means they are designed to rotate in one direction. By
adding either extra windings, and external relays and
switches, or by using gear mechanisms, the direction of
rotation can be changed. In this application note we will
discuss in detail, how to control the speed of a PSC
motor in both directions using a PIC16F72
microcontroller and power electronics.
The PIC16F72 microcontroller was chosen because it
is one of the simplest and low-cost general purpose
microcontrollers Microchip has in its portfolio. Even
though it does not have the PWMs in hardware to drive
complementary PWM outputs with dead band inserted,
all PWMs are generated in firmware using timers and
output to general purpose output pins.
THEORY OF OPERATION
A PSC motor is usually a 2-phase asymmetrically
wound motor. The main winding is designed to take the
load current. The current flowing through the start
winding is much less than the main winding. Therefore,
the start winding will have a different electrical
characteristic compared to the main winding. In order
to produce the Magnetomotive Force (MMF) produced
by the start winding very near to the main winding, the
start winding has additional turns, higher resistance,
and reduced current flowing through it. This makes the
motor windings asymmetrical.
The motor is energized with a single-phase AC power
supply, with a capacitor connected in series with the
start winding (also called an auxiliary winding) as
shown in Figure 1. The value of the capacitor is chosen
so that the total impedance on the auxiliary winding
produces sufficient phase shift in current to generate a
rotating magnetic field in the air gap.
Typically, the current flowing through the start winding
leads the current flowing through the main winding by
90 degrees.
By adding a microcontroller-based control circuit to the
motor, the voltage across the main winding and start
winding can be maintained at 90 degrees to each other.
The other advantage is that the starting capacitor can
be removed from the circuit, thus reducing the total
system cost.
FIGURE 1: ELECTRICAL EQUIVELANT
CIRCUIT OF A PSC MOTOR
A multiphase inverter can be used to drive the motor.
Two methods are discussed in the next section.
Author: Padmaraja Yedamale
Microchip Technology Inc.
Squirrel
Cage Rotor
AC
L
N
Starting
Winding
Main
Winding
VSTART
VMAIN
Bidirectional VF Control of Single and 3-Phase Induction
Motors Using the PIC16F72
AN967
DS00967A-page 2 2005 Microchip Technology Inc.
DRIVE TOPOLOGY
Using an H-Bridge Inverter
The first approach is relatively easy as far as the
power circuit and control circuit are concerned. On
the input side, a voltage doubler is used and on the
output side an H-bridge, or 2-phase inverter, is used
as shown in Figure 2. One end of the main and start
windings are connected to each half bridge and the
other ends are connected together to the neutral
point of the AC power supply, which also serves as
the center point for the voltage doubler.
The control circuit requires four PWMs with two
complementary pairs with sufficient dead band
between the complementary outputs. PWM0-PWM1
and PWM2-PWM3 are the PWM pairs with dead band.
The PIC16F72 does not have PWMs designed in the
hardware to output the way we need. Therefore, the
PWMs should be generated in firmware and output to
the port pins. Using PWMs, the DC bus is synthesized
to give two sine voltages at 90 degrees out of phase
with varying amplitude and varying frequency
according to the VF profile. If the voltage applied to the
main winding lags the start winding by 90 degrees, the
motor runs in one (i.e., forward) direction. To reverse
the direction of rotation, the voltage supplied to the
main winding should lead the voltage supplied to the
start winding.
Figure 3 and Figure 4 show the main and start winding
voltages in forward and reverse respectively.
FIGURE 2: PSC DRIVE WITH AN H-BRIDGE
AC
PWM3
PWM1
PWM2
PWM0
PWM3 PWM1
PWM2 PWM0
P
I
C
1
6
F
7
2
G
a
t
e

D
r
i
v
e
r
Main
Winding
Start
Winding
VMAIN
VSTART
L
N
Vm
Vm +
-
/2
2005 Microchip Technology Inc. DS00967A-page 3
AN967
FIGURE 3: MOTOR RUNNING IN FORWARD DIRECTION
FIGURE 4: MOTOR RUNNING IN REVERSE DIRECTION
-150.00
-100.00
-50.00
0.00
50.00
100.00
150.00
0 50 100 150 200 250 300 350 400
Phase Angle
%

P
h
a
s
e

V
o
l
t
a
g
e
VMAIN
VSTART
VMAIN = Sin(t)
VSTART = Sin(t+/2)
-150.00
-100.00
-50.00
0.00
50.00
100.00
150.00
0 50 100 150 200 250 300 350 400
Phase Angle
%

P
h
a
s
e

V
o
l
t
a
g
e
VMAIN
VSTART
VMAIN = Sin(t)
VSTART = Sin(t-/2)
AN967
DS00967A-page 4 2005 Microchip Technology Inc.
This method of controlling a PSC type motor has a
few disadvantages.
Because the main winding and start windings
have different electric characteristics, the current
flowing through each switch is unbalanced. Over
time, this may lead to premature breakdown of
switching devices in the inverter.
The common point of the windings is directly
connected to the neutral power supply. This may
increase the switching signal coming into the
mains power supply and increase the noise emit-
ted onto the line. This also may limit the EMI level
of the product, violating certain design goals and
regulations.
The effective DC voltage handled is high due to
the input voltage doubler circuit.
Lastly, the cost of the voltage doubler circuit itself
is high because of two large power capacitors.
A better solution to minimize these problems would be
to use a 3-phase inverter bridge, as discussed in the
next section.
Using a 3-Phase Inverter Bridge
The input section is replaced with a standard diode
bridge rectifier. The output section has a 3-phase
inverter bridge. The main difference from the previous
scheme is the way the motor windings are connected
to the inverter. One end of the main winding and start
windings are connected to one half bridge each. The
other ends are tied together and connected to the third
half bridge, as shown in Figure 5.
Refer to Appendix B: Schematics for the schemat-
ics that reference the PIC16F72 with a 3-phase inverter
bridge.
With this drive topology, control becomes more effi-
cient; however, the control algorithm becomes more
complex. The voltages V
a
, V
b
and V
c
should be con-
trolled to achieve the phase difference between the
effective voltages across the main and start windings to
have a 90 degree phase shift to each other.
The turn ratio of the start winding to the main winding is
defined by:
EQUATION 1:
where is the turn ratio, and VMAIN and VSTART are the
effective voltage across the main winding and the start
winding.
In order to have equal voltage stress on all devices,
thus improving the device utilization and provide the
maximum possible output voltage for a given DC bus
voltage, all three inverter phase voltages are kept at the
same amplitude as follows:
EQUATION 2:
The effective voltage across the main and start winding
is given as:
EQUATION 3:
The voltages are shown in the phasor diagram in
Figure 6.
FIGURE 5: CONTROLLING A PSC MOTOR WITH A 3-PHASE INVERTER BRIDGE

VMAIN
VSTART
--------------------- =
| V
a
| = | V
b
| = | V
c
| = | V
1
|
VMAIN = V
a
V
c
VSTART = V
b
V
c
AC
PWM5
PWM3
PWM1
PWM4
PWM2
PWM0
PWM5 PWM3 PWM1
PWM4 PWM2 PWM0
P
I
C
1
6
F
7
2
G
a
t
e

D
r
i
v
e
r
Main
Winding
Start
Winding
Va
Vb
Vc
2005 Microchip Technology Inc. DS00967A-page 5
AN967
FIGURE 6: VOLTAGE PHASOR
DIAGRAM
As seen in the phasor diagram in Figure 6, the voltages
across phase A and phase B are out of phase, and the
phase difference between phase A and phase C is
degrees. By applying basic trigonometry, can be
calculated by:
EQUATION 4:
By applying the Pythagorean Theorem, the voltage
vector V1 can be calculated as:
EQUATION 5:
Because the turn ratio remains constant for a given
motor, can be a compile time option. With this, and
V1 can be precomputed for a given motor. This simpli-
fies the run time calculation. Based on the phase angle,
phase voltages V
a
, V
b
and V
c
can be calculated as:
EQUATION 6:
V
dc
is the DC bus voltage, and t is the angular velocity
of the electrical cycle. The direction of rotation can be
easily controlled by adding or subtracting in the V
c
calculation.
Figure 7 shows the phase voltages V
a
, V
b
and V
c
, and
Figure 8 shows the effective voltages across the main
winding (VMAIN) and the start winding (VSTART).
Figure 8 also shows that the effective phase difference
between the voltages is 90 degrees and the effective
voltage ratio is .
FIGURE 7: PHASE VOLTAGES Va, Vb and Vd
V
a
~
V
c
~
V
b
~
VMAIN
~
V
a
~
V
c
~

=
VSTART
~
V
b
V
c
~

=
~
V1 V1
V1
V V

Angle = 180 2 tan


-1
().
V1 V
1
2
+ ( )
2
------------------------ =
V
a
V1 t ( ) cos
V
dc
2
---------- + =
V
b
V1 t ( ) cos
V
dc
2
---------- + =
V
c
V1 t ( ) cos
V
dc
2
---------- + =
-100
-80
-60
-40
-20
0
20
40
60
80
100
0 50 100 150 200 250 300 350 400
Phase angle
%

P
h
a
s
e

v
o
l
t
a
g
e
Va
Vb
Vc
AN967
DS00967A-page 6 2005 Microchip Technology Inc.
FIGURE 8: VOLTAGE ACROSS MAIN WINDING (VMAIN) AND START WINDING (VSTART)
-150
-100
-50
0
50
100
150
0 50 100 150 200 250 300 350 400
Phase Angle
%

P
h
a
s
e

V
o
l
t
a
g
e
VMAIN
VSTART
2005 Microchip Technology Inc. DS00967A-page 7
AN967
IMPLEMENTATION USING THE PIC16F72
In order to control a 3-phase inverter bridge, we need
three PWM pairs with complementary outputs. In addi-
tion, each complementary pair of PWMs needs dead
time in between any OFF and ON switch events to
avoid a DC bus short circuit. The PIC16F72 does not
have these features in the hardware. However, this can
be easily implemented using a general purpose timer
and six output pins as shown in Figure 9.
Generating Software PWMs
The scheme shown here gives a fixed PWM frequency
of approximately 7.9 kHz. Timer1 (1:4 prescale) is
counted up from 00 to 634. At the beginning of the cycle
(when Timer1 = 00), the PWMs controlling the upper
switches (i.e., PWM1, PWM3 and PWM5) are turned
ON. Based on the individual PWM duty cycle, the
corresponding PWM output is turned OFF.
After five instruction cycles, the complementary PWM
is turned ON. This gives a dead time of 1 s when the
microcontroller is running at 20 MHz. When the count
reaches 624, all outputs are turned OFF. A new PWM
cycle starts after 10 instruction cycles.
In the source code provided with this application note
(see Appendix A: Source Code), instead of com-
paring the Timer1 values corresponding to the duty
cycle values, a relative count is calculated with respect
to the previous PWM duty cycle. This count is sub-
tracted from 0xFF (Timer1 is configured as an 8-bit
timer) and loaded to the Timer1 register. When the
Timer1 value overflows, in Timer1 overflow ISR, the
corresponding Odd PWM is turned OFF and the corre-
sponding Even PWM is turned ON after five instruction
cycles. This is done for all three pairs of PWM. Refer to
the flowcharts in Figure 10 through Figure 11 for more
details.
FIGURE 9: PWM SOFTWARE IMPLEMENTATION
PWM period = 634 for ~8 kHz PWM frequency @ 20 MHz FOSC
PWM 1/3/5
ON
PWM 1
OFF
PWM 0
ON
PWM 3
OFF
PWM 5
OFF
PWM 2
ON
PWM 4
ON
PWM 0/2/4
OFF
Dead Time Dead Time Dead Time Dead Time
Timer 1 counting UP
from 00 to 634
00
634
624
PWM 1/3/5
ON
Note: The PWMs are numbered with respect to Figure 5.
AN967
DS00967A-page 8 2005 Microchip Technology Inc.
FIGURE 10: MAIN LOOP
Start
Initialize
PORTB Fault and toggle switch interface
PORTC PWMs
MAIN_LOOP
Is S1
pressed?
Copy Sine table values to
RAM locations
Initialize ADC to read Motor current
and Potentiometer
Initialize Timer0, Timer1, Interrupts
and Sine table offsets
Timer0
rollover?
Update PWM duty cycles (A)
(UPDATE_PWM_DUTYCYCLES)
Prioritize PWM duty cycles (B)
(PRIORITIZE_PWMS)
Calculate new speed
Set ADC GO bit
Is ADC
result ready? C
AD_CONV_COMPLETE
Yes
No
Yes
No
Yes
No
2005 Microchip Technology Inc. DS00967A-page 9
AN967
FIGURE 10: MAIN LOOP (CONTINUED)
Is PWM3<
PWM1?
A B
Return
UPDATE_PWM_DUTYCYCLES PRIORITIZE_PWMS
Return
Return
Is PWM5<
PWM3?
Is PWM3<
PWM1?
AD_CONV_COMPLETE
Read value pointed by TABLE_OFFSET1 from
the Sine table (corresponds to PWM1/0 pair)
PWM1/0 duty cycle =
Sine (TABLE_OFFFSET1) x NEW_FREQ
Read value pointed by TABLE_OFFSET2 from
the Sine table (corresponds to PWM3/2 pair)
Read value pointed by TABLE_OFFSET3 from
the Sine table (corresponds to PWM5/4 pair)
PWM5/4 duty cycle =
Sine (TABLE_OFFSET3) x NEW_FREQ
PWM3/2 duty cycle =
Sine (TABLE_OFFFSET2) x NEW_FREQ
Interchange PWM1 and PWM3 duty cycles
Interchange PWM3 and PWM5 duty cycles
Interchange PWM1 and PWM3 duty cycles
Yes
No
No
No
Yes
Yes
C
NEW_FREQ = ADRES MOTOR_CURRENT = ADRES HEATSINK_TEMP = ADRES
Set limit on NEW_FREQ
0x30 < NEW_FREQ < 0xD0
Set ADC mux to read motor current
(for next cycle)
Set OVER_CURRENT
flag
Set OVER_TEMPERATURE flag
Motor current >
MAX_MOTOR_CURRENT?
HS Temp>
MAX_HEATSINK_TEMP?
No No
Yes
AN967
DS00967A-page 10 2005 Microchip Technology Inc.
FIGURE 11: INTERRUPT SERVICE ROUTINES (ISR)
ISR_INT
CHECK_FAULT
TIMER1_OVERFLOW
RETFIE
T1 Timer1 ISR?
Context Save: WREG and STATUS
Timer0 ISR?
INT ISR?
Restore: WREG and STATUS
T0
INT
x
TIMER1_OVERFLOW
TIMER0_OVERFLOW
CHECK_FAULT
Yes
No
Yes
No
Yes
No
INT
OVER_CURRENT_COUNT (OC_COUNT) =
OVER_CURRENT_COUNT - 1
Is OC_COUNT = 0?
STOP_MOTOR
x
Timer0 = Count for NEW_FREQ
Reset overcurrent filter count
x
T0
TIMER0_OVERFLOW
No
Yes
x
T1
Lowest PWM Duty Cycle Medium PWM Duty Cycle Highest PWM Duty Cycle New PWM Duty Cycle
Turn Off Odd Channel w/least
PWM Duty Cycle value
5 Cycles Delay
(Dead Time = 1 S)
Turn ON Complementary
Channel
Timer1 = Medium Duty Cycle
Lowest Duty Cycle
Turn Off Odd Channel w/medium
PWM Duty Cycle value
5 Cycles Delay
(Dead Time = 1 S)
Turn ON Complementary
Channel
Turn Off Odd Channel w/highest
PWM Duty Cycle value
Turn Off All 6 Channels
5 Cycles Delay
(Dead Time = 1 S)
5 Cycles Delay
(Dead Time = 1 S)
Turn ON Complementary
Channel
Turn ON All Odd PWM
Channels (1, 3 and 5)
Timer1 = Highest Duty Cycle
Medium Duty Cycle
Timer1 = End of PWM Cycle
Highest Duty Cycle
Timer1 = Lowest Duty Cycle
2005 Microchip Technology Inc. DS00967A-page 11
AN967
Initialization
PORTC<0:5> are initialized to output PWMs.
Timer1 is initialized with 8-bit operation and 1:4
prescale.
A/D channels are initialized to read frequency
reference (AN0), motor current (AN1) and
heatsink temperature (AN2).
- Frequency reference is read using a
potentiometer connected to A/D Channel 0.
- Motor current is read using a shunt resistor in
the DC return path. The voltage
corresponding to the motor current is
amplified and connected to A/D channel 1.
Timer0 is used for setting the motor frequency
based on the potentiometer setting. On every
Timer0 overflow, new PWM duty cycles are
advanced by 10 electrical degrees on the Sine
table.
The Sine table is loaded into RAM
Timer0 overflow, Timer1 overflow and INT
interrupts are enabled.
Main Routine
These tasks are done in the MAIN_LOOP routine:
New PWM duty cycle is calculated by the
subroutine UPDATE_PWM_DUTYCYCLES
Three pointers pointing to three different values on
the Sine table corresponding to the phase
difference between V
a
, V
b
and V
c
. The sine table is
drawn to maximum duty cycle available when the
sine value reaches 90 degrees. Every value is
scaled down based on the frequency input to
follow a linear VF profile.
PWM duty cycle sorting is handled by the
subroutine PRIORITIZE_PWMS
PWM duty cycles calculated earlier are sorted in
ascending order, so that the duty cycle with mini-
mum ON time can be addressed first and PWM
with maximum duty cycle last. Corresponding
Flags are set to indicate which PWM duty cycle
corresponds to which PWM output.
Timer0 reload value is calculated by the
subroutine TIMER0_OVERFLOW
Timer0 is used for setting the motor frequency. The
Timer0 reload value is calculated based on three
factors: first is the frequency reference input from
the potentiometer, second is the number of sine
table values, and third is the MCU operating
frequency.
Polling for the ADC result is handled by the
subroutine AD_CONV_COMPLETE
ADC conversion is poled in the main routine.
Alternatively, frequency reference (AN0), motor
current (AN1) and heatsink temperature (AN2) are
selected and converted.
Interrupt Service Routines (ISRs)
Timer1 ISR: In the first three Timer1 overflow
ISRs, the corresponding Odd PWM output is
turned off in each ISR. The complementary output
is turned on after a dead time of five cycles (1 s).
In the fourth Timer1 overflow ISR, the PWM cycle
is restarted. All PWMs are turned OFF and the
timer is loaded with the value corresponding to
the lowest duty cycle value. This is repeated for
each PWM cycle.
Timer0 ISR: A flag is set to indicate that the Sine
output should advance by 10 degrees on the Sine
table. The Timer0 registers are reloaded with the
value corresponding to the motor frequency
reference.
INT ISR: The INT pin is used to interface hard-
ware overcurrent fault. Motor current is compared
with a fixed voltage reference using an op amp
comparator. Each time the motor current exceeds
the reference, in INT ISR a count (0C_COUNT) is
decremented. If the count reaches zero in one
Timer0 cycle, then the motor is stopped and
overcurrent is indicated. This count is reset in
every Timer0 ISR.
AN967
DS00967A-page 12 2005 Microchip Technology Inc.
Controlling a 3-Phase Induction Motor
The advantage of the drive topology shown in Figure 5
is the same hardware can be used to control the
speed of a 3-phase induction motor. In order to control
a 3-phase induction motor with a Variable Frequency
(VF) technique, three pairs of complementary PWMs
with dead band are required.
The DC bus is modulated with these PWMs to give
three Sine voltage outputs with 120 degrees phase
shift to each other as shown in Figure 12. This can be
done by changing the offset pointers on the Sine table.
Firmware needs to be recompiled and the part should
be reprogrammed. To reverse the motor direction, the
PWM loaded to two of the phases should be
interchanged.
FIGURE 12: PHASE VOLTAGE FOR 3-PHASE INDUCTION MOTOR CONTROL
PIC16F72 LIMITATIONS
Using the PIC16F72 for control has the following
limitations:
MIPS: Generating a software PWM takes
significant processing power. This limits any other
application that may be required to run on the
same MCU.
PWM Frequency Range: The PWM frequency
range is limited and requires firmware changes.
The safe PWM frequency range is from 6 kHz to
10 kHz with an operating frequency of 20 MHz.
The PWM cycle may have an error up to 5%.
The resolution is also limited between 6 to 8 bits.
In addition to this, generating PWM outputs in
firmware uses the on-chip Timer, program and
data memory.
CONTROL USING A PIC18F2431/4431
The PIC18FXX31 MCUs have a state-of-the-art Power
Control PWM (PCPWM) module on-chip. This module
can provide three pairs of complementary PWMs with
programmable dead band. Programming is greatly
simplified using PIC18FXX31 devices, because it
reduces the task of generating the software PWMs,
which takes most of the processor resource on a
PIC16F72. The source code included with this
application note (see Appendix A: Source Code)
also includes single-phase VF control using the
PIC18F2431.
To learn more about using PIC18FXX31
microcontrollers for different types of motor controls,
refer to application notes AN899, Brushless DC Motor
Control Using PIC18FXX31 Microcontrollers
(DS00899) and AN900, Controlling 3-Phase AC
Induction Motors Using the PIC18F4431 (DS00900)
available from Microchip.
-150
-100
-50
0
50
100
150
0 50 100 150 200 250 300 350 400
Phase Angle
%

P
h
a
s
e

V
o
l
t
a
g
e
Sin(wt)
Sin(wt+120)
Sin(wt+240)
Sin(t+240) Sin(t) Sin(t+120)
2005 Microchip Technology Inc. DS00967A-page 13
AN967
CONCLUSION
Microcontroller-based control for a PSC motor makes
the system easy to implement and have control over
the motor in two directions. Implementing the
algorithm using a 3-phase inverter bridge gives
flexibility and efficiency of control. In addition, a 3-
phase induction motor can be controlled using the
same hardware by making minor modifications to the
firmware. The PIC16F72 is a popular low cost general
purpose microcontroller from Microchip, that can be
used to implement the control algorithm. To a great
extent, PIC18FXX31 devices can provide flexibility in
implementing motor control algorithms.
APPENDIX A: SOURCE CODE
The complete source code is available for download as
a single archive file from the Microchip corporate web
site at:
www.microchip.com
AN967
DS00967A-page 14 2005 Microchip Technology Inc.
APPENDIX B: SCHEMATICS
FIGURE B-1: PIC

INTERFACE AND POWER SUPPLY (SHEET 1 OF 2)


P
o
w
e
r
S
u
p
p
l
y
D
C
+
R
6
4
7
0
K
,

0
.
5
W
+C
1
1
R
9
1
5
K
C
1
0
0
.
1

F
V
C
C
R
T
C
T
C
O
M
V
B
H
O
V
S
L
O
I
R
2
1
5
3
-
D
I
P
8
D
C
-
R
1
0
0
.
0
C
1
2
2
2
0

p
F
1234
8765
U
3
D
1
D
2
1
E
M
U
0
6
1
N
4
1
4
8
I
R
F
R
4
2
0
A
3
1
2
C
6
0
.
1

F
R
7
2
2
Q
1
D
3
1
E
M
U
0
6
T
L
4
3
1
-
T
0
9
2
D
4
3
1
2
2
K
7
R
1
2
L
1
5
6
0

H
,

0
.
5
AR
8
1
1
K
+
1
5
V
+
1
0
0

F
,

2
5
V
1
0

F
,

2
5
V
C
7
1 C
5
0
.
1

F
U
2
L
M
3
4
0
T

-
5
.
0
V
I
N
O
U
T
C O M
2
3
+C
8
+
5
V
C
9
0
.
1

F
R
1
1
1
0
0
4
.
7

F
,

2
5
V
P
I
C


I
n
t
e
r
f
a
c
e
P
I
C
1
6
F
7
2
F
R
E
F
2
1
3
C
W
C
C
W
+
5
V
R
5
2
K
0
.
1

F
S
1
C
2
43
1
2
+
5
V
1
0
K
R
1
R
3
2
K
+
5
V
C
1
0
.
1

F
2
01
V
D
D
M
C
L
R
R
A
0
R
A
1
R
A
2
R
A
3
R
A
4
R
A
5
O
S
C
1
O
S
C
2
V
S
S
V
S
S
F
R
E
F
M
O
T
O
R
T
E
M
P
234567
1
9 8 9
1
0
C
4
2
2

p
F
2
0

M
H
z
Y
1
C
3
2
2

p
F
R
C
7
R
C
6
R
C
5
R
C
4
R
C
3
1
8
1
7
1
6
1
5
1
4
R
C
2
R
C
1
R
C
0
1
3
1
2
1
1
P
W
M
5
P
W
M
4
P
W
M
3
P
W
M
2
P
W
M
1
P
W
M
0
R
B
7
R
B
6
R
B
5
R
B
4
R
B
3
R
B
2
R
B
0
R
B
1
F
A
U
L
T
A
S
W
1
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
S
W
1
S
2
43
12
1
0
K
+
5
V
R
2
R
4
1
0
K
2005 Microchip Technology Inc. DS00967A-page 15
AN967
FIGURE B-2: POWER SECTIONS AND MOTOR CURRENT MEASUREMENT (SHEET 2 OF 2)
M
o
t
o
r
C
o
n
n
e
c
t
o
r
+
1
5
V
M
1
0
.
0
1

F


2
7
0

V
A
C
V
B
3
V
S
3
N
C
V
B
2
V
S
2
N
C
V
B
1
V
S
1
N
C
V
+
N
C
D
C
-
D
C
-
D
C
-
H
1
H
2
H
3
L
1
L
2
L
3
I
T
R
I
P
V
C
C
V
S
S
P
W
M
1
U
4
I
R
A
M
S
1
0
U
P
6
0
A
1234567891
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
2
1
2
2
2
3
C
1
3
1
0

F
1
6
V
D
C
+
P
W
M
3
P
W
M
5
P
W
M
0
P
W
M
2
P
W
M
4
M
2
M
3
C
1
5
1
0

F
1
0

F
C
1
6
1
6
V
1
6
V
T
E
M
P
R
2
2
3
0
0
R
2
3
4
.
3
K
R
2
0
0
.
0
5
R
/
3
W
D
C
-
R
1
6
1
K
C
1
8
3
3

p
F
C
1
9
4
.
7

n
F
R
1
8
1
0
K
R
1
9
9
1
K
23
M
C
P
6
0
0
2
4
+ -
8
1
1
K
R
1
5
U
5
:
A
+
5
V
C
1
4
0
.
1

F
I
M
O
T
O
R
C
1
7
3
3

p
F
R
2
1
5
K
5 6
+ -
R
1
7
M
C
P
5
0
0
2
+
5
V
R
1
3
2
K
4
R
1
4
1
M
U
5
:
B
F
A
U
L
T
A
7
3
0
0
M
2
M
3
M
1
1234
J
2
E
A
R
T
H
M
A
I
N
A
U
X
P
S
C
M
O
T
O
R
4
7
0

F


2
5
0
V
E
A
R
T
H 1
2
3
J
1
A
C

I
N
P
U
T
R
2
4
N
T
C
F
1
R
V
1
C
2
1
D
C
+
C
2
0
D
5
D
C
-
+
+-
1
2
3
4
A
C
1
A
C
2
AN967
DS00967A-page 16 2005 Microchip Technology Inc.
NOTES:
2005 Microchip Technology Inc. DS00967A-page 17
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR WAR-
RANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED,
WRITTEN OR ORAL, STATUTORY OR OTHERWISE,
RELATED TO THE INFORMATION, INCLUDING BUT NOT
LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE.
Microchip disclaims all liability arising from this information and
its use. Use of Microchips products as critical components in
life support systems is not authorized except with express
written approval by Microchip. No licenses are conveyed,
implicitly or otherwise, under any Microchip intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
PICMASTER, SEEVAL, SmartSensor and The Embedded
Control Solutions Company are registered trademarks of
Microchip Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK,
MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel and Total
Endurance are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2005, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
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.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in
October 2003. The Companys quality system processes and
procedures are for its PICmicro

8-bit MCUs, KEELOQ

code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchips quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS00967A-page 18 2005 Microchip Technology Inc.
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://support.microchip.com
Web Address:
www.microchip.com
Atlanta
Alpharetta, GA
Tel: 770-640-0034
Fax: 770-640-0307
Boston
Westford, MA
Tel: 978-692-3848
Fax: 978-692-3821
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
Kokomo, IN
Tel: 765-864-8360
Fax: 765-864-8387
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
San Jose
Mountain View, CA
Tel: 650-215-1444
Fax: 650-961-0286
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
ASIA/PACIFIC
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8528-2100
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8676-6200
Fax: 86-28-8676-6599
China - Fuzhou
Tel: 86-591-8750-3506
Fax: 86-591-8750-3521
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
China - Shunde
Tel: 86-757-2839-5507
Fax: 86-757-2839-5571
China - Qingdao
Tel: 86-532-502-7355
Fax: 86-532-502-7205
ASIA/PACIFIC
India - Bangalore
Tel: 91-80-2229-0061
Fax: 91-80-2229-0062
India - New Delhi
Tel: 91-11-5160-8631
Fax: 91-11-5160-8632
Japan - Kanagawa
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-536-4803
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
Taiwan - Hsinchu
Tel: 886-3-572-9526
Fax: 886-3-572-6459
EUROPE
Austria - Weis
Tel: 43-7242-2244-399
Fax: 43-7242-2244-393
Denmark - Ballerup
Tel: 45-4450-2828
Fax: 45-4485-2829
France - Massy
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Germany - Ismaning
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
England - Berkshire
Tel: 44-118-921-5869
Fax: 44-118-921-5820
Worldwide Sales and Service
10/20/04

You might also like