Sei sulla pagina 1di 18

AN970

Using the PIC18F2431 for Sensorless BLDC Motor Control


Author: Padmaraja Yedamale Microchip Technology Inc. With a sensorless method of commutation, the Hall sensors, the sensor magnets, the sensor wires and the PC board can be eliminated. This simplifies the motor construction and reduces cost. Inherently, systems with fewer components are more reliable. Applications like the compressor control in a refrigerator or in HVAC systems, which generates heat and an elevated temperature, may accelerate Hall sensor failures. Using sensorless control improves the reliability of total system. There are two disadvantages to sensorless control: The motor must be moving at a minimum rate to generate sufficient BEMF to be sensed. Abrupt changes to the motor load can cause the BEMF drive loop to go out of lock. As the BEMF signal is proportional to the speed of rotation at standstill and at low speeds, the amplitude of the BEMF poses a challenge to determine the zero crossover point. In order to overcome this problem, the motor is normally run in open loop during starting and is accelerated to a speed where the BEMF has sufficient amplitude to detect and then synchronize with the zero crossing point. Running the motor in open loop makes it difficult to know the rotor position, when starting from standstill. So, the rotor can rotate in either direction when energized. Applications which require very low motor speed may be forced to use sensors for control. There are many applications in appliances, automotive, and industrial applications where very low speed is not an issue, and the motor needs variable speeds of about 25% of the rated speed. Sensorless control is ideal for such applications. Another requirement is that the sensorless control needs extra resources on the control circuit side. Depending upon the method used, it may require a fast A/D converter on the microcontroller, or comparator and filter circuits.

INTRODUCTION
Brushless Direct Current (BLDC) motors have many advantages over other types of motors available in the industry. Previously, we have discussed the working principles of BLDC motors and the basics of their control in Microchip application note AN885, Brushless DC (BLDC) Motor Fundamentals. We have also discussed the use of PIC18FXX31 devices to control a BLDC motor in both open loop and in closed loop using Hall effect sensors and quadrature encoders (Microchip application note AN899, Brushless DC Motor Control Using PIC18FXX31 Microcontrollers). This application note describes BLDC motor speed control without the use of sensors. Those readers interested in additional applications may refer to Microchip application notes AN857, Brushless DC Motor Control Made Easy and AN901, Using the dsPIC30F for Sensorless BLDC Control, to learn how other PICmicro microcontrollers and dsPIC digital signal controllers can be used for BLDC motor control.

ADVANTAGES AND DISADVANTAGES OF SENSORLESS CONTROL


Sensorless control of a BLDC motor calls for commutation based on the Back Electromotive Force (BEMF) produced in the stator windings. Sensorless control has two distinct advantages: lower system cost and increased reliability. Hall effect sensors are not required for sensorless control. Some motors may have the Hall sensor magnets mounted on the rotor, in addition to the main rotor magnets. These are used to simplify the process of mounting the Hall sensors onto the stator. The sensor magnets are a scaled-down replica of the rotor; whenever the rotor rotates, they produce the same effect as the main magnets. The Hall sensors are normally mounted on a PC board and are fixed to the enclosure cap on the non-driving end of the motor.

2005 Microchip Technology Inc.

DS00970A-page 1

AN970
THEORY OF OPERATION
When a BLDC motor rotates, each winding generates BEMF which opposes the main voltage supplied to the windings according to Lenzs Law. The polarity of this BEMF is in the opposite direction of the energizing voltage. BEMF can be calculated as shown in Equation 1, and depends mainly on three factors: Angular velocity of the rotor Magnetic field generated by rotor magnets The number of turns in the stator windings

HALL SENSOR SIGNALS VS. BEMF


Figure 1 shows the relationship between the Hall sensor signals and the BEMF signals. Hall sensor signals are out of phase by 120 degrees to each other. At every 60 degrees, one of the Hall sensors makes a transition. The BEMF generated in the windings are also at 120 degrees out of phase to each other, but they are asynchronous with the Hall sensor signals. In every energizing sequence, two phases are connected across the power supply and the third winding is left open. The BEMF voltage is monitored on the winding that is left open. With this, the BEMF voltage in windings increases when it is connected to power supply and reduces when it is connected to the return path. The transition takes place when the winding is left open in the sequence. The combination of all 3 zero cross over points are used to generate energizing sequence. The phase difference between the hall sensor and the BEMF signal is 30 degrees. This is in the firmware. Another aspect to be considered is very low-speed operation. Because BEMF is proportional to the rotation speed, it would be at a very low amplitude at very low speeds, making it difficult to detect the zero crossover. In addition, since the commutation itself is derived based on BEMF zero crossovers, it is impossible to start the motor from standstill. To overcome this difficulty, the motor has to be started from standstill in open loop. When sufficient BEMF is built to detect the zero crossover point, control is shifted to the BEMF sensing. The minimum speed at which the BEMF can be sensed is calculated from the BEMF constant of the motor.

EQUATION 1:
Back EMF = NlrB where N = number of winding turns per phase l = the length of the rotor r = the internal radius of the rotor B = the rotor magnetic field density

= the motor angular velocity

Once the motor is designed, the rotors magnetic field and the number of turns in the stator windings remain constant. The only factor that governs back EMF is the angular velocity or speed of the rotor; as the speed increases, back EMF also increases. The motor technical specification gives a parameter called the back EMF constant, which can be used to estimate BEMF for a given speed.

DS00970A-page 2

2005 Microchip Technology Inc.

AN970
FIGURE 1: WAVEFORM OF HALL SENSOR VERSUS BEMF VOLTAGES
60 Hall A

Hall B

Hall C

Phase A Zero cross Phase A

Phase A Current

Phase A Voltage Phase B Current Phase B Phase B Zero cross

Phase B Voltage Phase C Zero cross Phase C Phase C Voltage Phase C Current

BEMF ZERO CROSSOVER SENSING METHODS


BEMF voltage zero crossing can be detected by different methods. This section gives three different methods of detecting BEMF zero cross point. The first method is comparing the back EMF voltage to half of the DC bus voltage by using comparators. Figure 2 shows this method. Phase A is connected to the positive side of the power supply (DC+), Phase C is connected to the negative side (or return path DC) of the power supply and Phase B is open. When BEMF is observed on Phase B, it increases and decreases as the power supply (DC+ and DC-) are connected and disconnected to the winding terminals in the energizing sequence. By comparing the BEMF voltage to half of the DC bus, it gives a voltage at the central point of phase A and phase C. Each phase requires a circuit like that shown in Figure 2 for Phase B. Combinations of these three signals are used to derive the commutation sequence. This scheme is easy to implement with three op amp comparators.

FIGURE 2:

BEMF VOLTAGE COMPARED TO HALF OF DC BUS


DC+ A Back EMF

DC- C

B DC/2

+ _

To IC2

2005 Microchip Technology Inc.

DS00970A-page 3

AN970
There are a few drawbacks to this circuit. First, if all three windings do not have identical characteristics, the BEMF measured will have either positive or negative phase shift. This will result in energizing windings at different instances than they should be. This may result in the motor winding drawing excessive current. Another drawback is that if the motor rated voltage is much less than the DC bus voltage, there could be a large difference between the BEMF zero crossover point and half of the DC bus voltage. This could also result in having a phase shift result in either direction. The circuit can be improved upon by generating a virtual neutral point, as shown in Figure 3. The neutral point is generated using a resistor network. Three networks are connected in parallel with the motor windings and connected together to generate a virtual neutral point. This resistive network is assembled on the control board between the 3-phase inverter bridge and the motor terminals. The resistor values should be chosen such that they will have insignificant effect on the motor current. (Refer to Appendix A: Motor Control Circuit Schematics for the circuit schematic used in this application note.) In this case, the BEMF signal is compared with this virtual neutral point. When the BEMF developed in the winding crosses the zero point towards positive side, the comparator output makes a transition from low-to-high. When the BEMF developed in the winding crosses the zero point towards negative side, the comparator output makes a transition from high-to-low. By having three such comparator circuits, one on each of the phases gives three digital signals corresponding to the BEMF signal in the windings. The combination of these three signals is used to derive the commutation sequence. A third method of detecting the BEMF zero crossover is using the A/D converter channels, as shown in Figure 4. The PIC18FXX31 microcontrollers have a high-speed A/D converter that can be used for this purpose. Using a potential divider, the BEMF signal is brought down to a level that the microcontroller can measure. This signal is sampled by the A/D, and is continuously compared with a digital value corresponding to the zero point. When the two values match, the commutation sequence is updated. The advantage with this method is that it is more flexible in terms of measurement. When the speed varies, the winding characteristics may fluctuate, resulting in variation of BEMF. In such situations, the microcontroller has complete control over the determination of the zero crossover point. Also, digital filters can be implemented to filter out the high-frequency switching noise components from the BEMF signal.

FIGURE 4:

BEMF VOLTAGE MEASURED USING ANALOG-TO-DIGITAL CONVERTERS


A

FIGURE 3:

BEMF VOLTAGE COMPARED TO A VIRTUAL NEUTRAL POINT


A

Signal conditioning AN0 AN1 AN2

Back EMF

Back EMF

C DCB Virtual Neutral + _ To IC2

DS00970A-page 4

2005 Microchip Technology Inc.

AN970
HARDWARE
Figure 5 shows the block diagram for the sensorless BLDC control system discussed here; a complete schematic of the prototype board is provided in Appendix A: Motor Control Circuit Schematics. The board is capable of using either the PIC18F2331/2431 Microcontroller or a dsPIC30F2010 digital signal controller (only the PIC18F2431 is discussed here). Toggle switch S2 is used for changing the rotational direction and switch S1 is used for changing the state between run and stop. A potentiometer (R14) is used to set the speed reference; it is connected to A/D converter channel AN1. Shunt resistor R26 is connected in the return path of the DC bus. The voltage drop across this resistor varies linearly with respect to motor current. This voltage is amplified by a 1:10 ratio using op amp circuit U10A. This amplified voltage (motor current) is measured using A/D channel AN0. The motor current is compared with a current limit set by another potentiometer (R60). If the motor current exceeds the limit set, the output of U7D will toggle, indicating an overcurrent fault. This Fault is connected to Fault A input pin on PIC18F2431, which is an active-low pin. A switched-mode block power supply is used to generate 24V (shown in bold lines in Figure 5) from an AC input. Using linear voltage regulators VR1 and VR2, +5V and +15V are generated, respectively. The former powers the microcontroller, all op amps and related logic circuits, while the latter is used to power the MOSFET drivers (U6, U8 and U9). Note: For a complete list of motor control application notes refer to www.microchip.com/motor.

BEMF Sensing Circuit


In this application note, we are following the second method of determining the BEMF zero cross detection shown in Figure 3. As shown in the schematics in the Appendix, low-pass filter circuits and potential divider circuits are implemented on all three motor terminals. The low-pass filter is necessary to filter out the high frequency noise that is generated by the high frequency PWM switching. The potential divider reduces the voltage from high motor voltage to the level MCU can measure. After this, the BEMF signals are connected together using R27, R30 and R40 to form a virtual neutral point. The BEMF signal from each phase is compared with this neutral point using the op amp comparators. In order to use this configuration, jumpers J7, J11 and J13 should be bridged across pins 1 and 2, and jumpers J8, J12 and J14 should be bridged. By doing this, the comparator outputs are connected to the input capture pins IC1, IC2 and IC3 on the PIC18FXX31. The board also provides the option for connecting the BEMF signals to the A/D channels. The BEMF signal is filtered using the low-pass filters comprised of R34/C17, R41/C19 and R49/C19 on motor terminals M3, M2 and M1, respectively. The potential divider circuits comprised of R34/R36, R41/R44 and R49/R52 on motor terminals M3, M2 and M1 reduce the BEMF voltage to TTL level. To route the BEMF signals to the A/D channels, J7, J11 and J13 should be bridged between pins 2 and 3.

FIGURE 5:

MOTOR CONTROL HARDWARE BLOCK DIAGRAM


+5V Regulator +15V Regulator +15V PWM5 PWM4 PWM3 PWM2 IGBT Driver PWM5 PWM4 PWM3 PWM2 PWM1 PWM0 3-phase Inverter Bridge BLDC Motor 24V Power Supply AC input

+24V

Motor Speed IC1 IC2 IC3 S2 S3 ICD2

+5V AN1 RA2 RA3 RA4 RC5 PWM1 RC4 PIC18F2431 AN0 PWM0

RS232

FLTA Comparator Imotor Amplifier

Back EMF Signals

Current Shunt

Signal Conditioning

IC1 IC2 IC3

Overcurrent Limit

2005 Microchip Technology Inc.

DS00970A-page 5

AN970
Motor Specifications
A Hurst NT dynamo Brushless DC motor is used for the experiments. Its specifications are: Rated voltage: 24 VDC Rated current: 1.00 A Rated speed: 2500 RPM Rotor poles: 10 (5 pole pairs) at one fixed speed. The Timer1 reload value, as shown in Equation 2, depends upon the motor rated speed, number of rotor poles, and the Timer1 prescaler value.

EQUATION 2:
Timer1 Time = 60 RPM x Pole pairs x 6

Software Routines
As discussed in earlier sections, the motor has to be run in open loop during start-up. When the speed reaches a level where the BEMF voltage has sufficient amplitude to measure the zero crossover point, the control is switched to closed loop. The difficult portion is synchronizing the rotor from open loop to closed loop with BEMF zero cross signals.

According to Equation 2, in order to run the motor at 400 RPM, Timer1 should expire every 5 ms, or 2.2 ms for 900 RPM. The Timer1 overflow value can be calculated based on the main oscillator frequency and Timer1 prescaler, as shown in Equation 3.

EQUATION 3:
Fosc Timer1 Reload Value = FFFFh Timer1 time x ---------- 4 Upon a Timer1 overflow in the ISR, a new energizing sequence is loaded into the PWM override registers and Timer1 registers are reloaded with the value calculated using Equation 3. The PWM duty cycle corresponding to the speed is calculated and loaded on to the PDC registers. When the motor starts running at 900 RPM, the BEMF zero crossover point signals from the comparators are observed for 16 cycles to synchronize with the energizing sequence.

Motor Start-up
From experimentation, it has been determined that the motor develops sufficient BEMF voltage amplitude at about 900 RPM. At this speed, the BEMF signals are compared with the virtual neutral point; this signal is read using the Input Capture module. This is done in two steps: when the motor is run at approximately 400 RPM, and then accelerated to 900 RPM. Timer1 is used to time the energizing sequence. The Timer1 reload value is calculated and the new energizing sequence is output on the PWM pins when the reload value expires. This ensures that the motor runs

FIGURE 6:

OSCILLOSCOPE WAVEFORM OF BEMF AND HALL SENSOR SIGNALS

DS00970A-page 6

2005 Microchip Technology Inc.

AN970
FIGURE 7: BEMF VERSUS ZERO CROSSING

a) Back EMF signal vs. zero crossover point (without filter)

b) Back EMF signal vs. zero crossover point (with filter)

2005 Microchip Technology Inc.

DS00970A-page 7

AN970
SYNCHRONIZING ZERO CROSSOVER SIGNALS WITH THE ENERGIZING SEQUENCE
When the motor is running at 900 RPM, the BEMF zero crossover (BEMC-ZC) signals, with respect to Hall sensor output, looks like those shown in Figure 6. The phase difference between the actual BEMF-ZC and the Hall sensors is 30 degrees. From the experiments, its found that the delay between the Hall signals to BEMF-ZC signals connected to input capture pins is 60 degrees throughout the speed range. Keeping this delay in mind, the energizing sequence has to be synchronized with the BEMF-ZC signal. Timer1 is used to count a 60-degree electrical delay from every BEMF-ZC signal. After the timer expires, the energizing sequence is loaded to the OVDCOND register. In this version of firmware, IC1 input is used for synchronizing the BEMF-ZC signals twice in an electric cycle. All three input capture inputs are used for determining the energizing sequence for every rotor state. The Motion Feedback Module (MFM) on the PIC18F2431 has programmable digital filters. These act like low-pass filters with a selectable prescaler. Based on the speed, three levels of filtering is provided in this firmware. A more detailed overview of the firmware is provided in the flowcharts in Figure 8 through Figure 10.

FIGURE 8:

MAIN MOTOR CONTROL SOFTWARE LOOP

START

No S2 or S3 pressed? Yes Initialize PWM in Independent mode PWM Duty Cycle Calculation

Initialize ADC

Add Offset to the Speed Reference

No

Is Sensorless on? Yes

Limit Speed Ref Value to FDh

Update PWM Duty Cycle Routine

PWM Duty cycle = [(MotorVoltage/ DCBusVoltage) X (4 X PWMPeriod)] X [SpeedRef/255]

Check S2/S3 Activity Routine

Load PWM Duty Cycle to all PDC<H:L> Registers

Check Overcurrent Routine

RETURN

DS00970A-page 8

2005 Microchip Technology Inc.

AN970
FIGURE 9: ISR FLOWCHART (MAIN ROUTINE AND IC1 SERVICE)
Main ISR Service Routine (ISR_HIGH)
IC1 ISR? Yes A

No

Timer1 ISR?

Yes

No

ADC ISR? Yes No

Read Motor Current from AD0

Read Speed Ref from AD1

IC1 Service Routine


PWM ISR? Yes No RETFIE No Is openloop speed > Min_speed? Yes C A

Observe BEMF-ZC for 16 Cycles No

Is Sensorless on?

Yes Is BEMF > 16 counts? Yes Load 60 Degree Time to Timer Set Digital Filter to Low Clock Divide Ratio Enable Timer1 Interrupt Set DFLTCON Clock Divide Value Based on Speed

No

RETFIE

2005 Microchip Technology Inc.

DS00970A-page 9

AN970
FIGURE 10: ISR ROUTINE (TIMER1 AND PWM SERVICE)

Timer1 Service Routine


B

Is Sensorless on? Yes

No

Is the speed in open loop step1? Yes

No

Is the speed in open loop step2? Yes

No

Update the Switching Sequence Based on the IC1/IC2/IC3 State

Reload TMR1<H:L> = HIGH_OL_SPEED

Reload TMR1<H:L> = LOW_OL_SPEED

Load 60 Degree Time to Timer1

Set the Energizing Sequence with Count 1 to 6

RETFIE

PWM Service Routine


C

Is the rotor locked up? No

Yes

All PWMs to Inactive State

Is there a overcurrent (OC) fault? No

Yes

Is OC > MAX FAULTA_COUNT in 256 PWM cycles? No

Yes

Configure FAULTA to Catastrophic mode

Blink LED1 Indicating OC

RETFIE

DS00970A-page 10

2005 Microchip Technology Inc.

AN970
RESOURCE USAGE
The BLDC application consumes CPU resources as shown in Table 1.

TABLE 1:

RESOURCES USED IN THE BLDC (USING PIC18F2431)


Used 800 bytes 65 bytes 4.5 MIPS

Resource Type ROM RAM MIPS

CONCLUSION
Sensorless control of BLDC motors has several advantages, such as reduction of total system cost and increased reliability. However, it requires extra resources on the control circuit side. The specialized peripherals on PIC18FXX31 microcontrollers (PCPWM, Motion Feedback Module and the High-Speed A/D converter) can simplify the sensorless control up to a great extent. This application note demonstrates the implementation of sensorless control of a BLDC motor using the 28-pin version of the PIC18FXX31 microcontroller family, the PIC18F2431.

2005 Microchip Technology Inc.

DS00970A-page 11

AN970
NOTES:

DS00970A-page 12

2005 Microchip Technology Inc.

+5V R10 +5V VBUS IMOTOR POT RB2 PWM1 PWM2 PWM3 PWM4 PWM5 +5V R66 R65 FAULTA RB6 2K 2K RX TX RB0 PWM0 HALLB HALLC OSC1 OSC2 RC0 RC5 +5V RB7 RD0 15 dsPIC30F2010 7 RB5 PWM1 PWM2 PWM3 PWM5 PWM4 RB6 RB7 RC0 FAULTA RC2 RC3 RC4 RC5 TX RX +5V C4 16 1 uF 2 V+ TX 11 10 12 RX RC5 C6 1 uF 9 1 T1IN T2IN R1OUT R2OUT C1+ 3 C16 C8 4K7 RC0 1 uF V+5V U2 MAX232 VCC 1 T1OUT 14 7 T2OUT R1IN R2IN C2+ C213 8 4 5 C7 1 uF GND 15 C1 1 uF J16 J17 2 1 2 1 MCLR RB1 RB2 IMOTOR VREF HALLA HALLB HALLC RA4 RC0 RC1 OSC1 OSC1 RC3 RC4 10 OSC2 RC6 RC7 18 8 AVSS 19 VSS PIC18F2431 RC5 17 16 15 5 MHz OSC2 9 14 RC2 13 12 11 RB7 VBUS 3 J15 2 1 7 AVDD 6 RB6 28 5 RA3 27 RB5 26 RB4 25 RB3 24 2 RA0 3 RA1 4 RA2 23 22 21 HALLA 5 RB3 6 RB4 4 3 RB1 PWM0 RB0 0.1 uF 0.1 uF U1 20 VDD 1 +5V MCLR R12 2K C2 470 C3 2 MCLR 1 MCLR +5V U3

FIGURE A-1:

APPENDIX A:

R11

S1

10K

2005 Microchip Technology Inc.


AVDD 28 27 AVSS 26 RE0 25 RE1 24 RE2 23 RE3 22 RE4 RE5 21 8 AVSS 9 OSC1 10 OSC2 11 RC13 12 RC14 13 VDD 14 RD1 VDD 20 VSS 19 18 RF2 17 RF3 RE8 16 C9 33 pF 33 pF C10 2 6 7 8 9 5 J1 R13 10
PIN1 PIN6 PIN2 PIN7 PIN3 3 PIN8 PIN4 4 PIN9 PIN5

C5

0.1 uF

+5V

R14 2K

POT

R15

100

MOTOR CONTROL CIRCUIT SCHEMATICS

+5V

R16

4 4K7

S2

4K7

R18

+5V

R17

S3

4K7

PART 1 (PIC18F MICROCONTROLLER, dsPIC30 DSP, USART AND ASSOCIATED PARTS)

DS00970A-page 13

AN970

R19

J3 R28 +5V C15 0.1 uF 2 C14 R27 100K J8 R31 3 MCP6544 100K 4 U7:A 1 R32 300 R37 HALLA J12 1M 1 2

V_IN

FIGURE A-2:

J9 33 pF

AN970

DS00970A-page 14

DC+

+
11

3 R34 R35 2 3 J7 100K 300 C17 R36 2K2 47 nF 27K 1 R30 10K

M3

M2

M1

+5V

9 1 R39 300

J9_9

10 1 R41 2 5 R43 R42 MCP6544 7 6

11

J9_10

J9_11

+
1M

U7:B

ED2324 300 R40 J11 100K R46 R44 2K2 27K C19 47 nF 3 10K

HALLB J14

9 1 R49 R50 2 3 J13 10K 300 R52 2K2 27K C21 47 nF R51 MCP6544 10 R53 1M

U7:C 8

1 R48 300

2 6 5

+
HALLC

U10:B MCP6002 7

J10

R56 R59 1K 2 DCR61 1K C23 47 nF MCP6002 3 10K 8 U10:A 1 4 +5V C25 0.1 uF R74

+5V 300 IMOTOR R58 1K C24 33 pF

+5V R55 2K4 13 MCP6544 12 R57 1M

BOARD SCHEMATIC, PART 2 (BACK EMF SIGNAL CONDITIONING AND CURRENT FAULT DETECTION)

605HR100 R26

+
R60 5K

U7:D 14

R73

300 FAULTA

0.1R C22 47 nF

2005 Microchip Technology Inc.

D4 DC+ PWM0 R1 1K M1 R33 33R DCD5 DC+ J2 1 C18 3.3 uF R38 33R 3 M2 2 1 10K R24 R21 J9_9 J9_10 M3 R54 33R DCJ18 1 VR2 1 +15V C28 0.1 uF +15V C11 47 uF 1 + 2 VR1 +5V R62 C27 0.1 uF 1K D7 R64 2K4 C29 0.1 uF VBUS 1 3 DC+ R63 12K 2 Q6 IRFR2407 J9_11 R22 R25 +5V J6 1K 1K 1K HALLA HALLB RB7 HALLC RB6 MCLR ICD 1 2 3 4 5 6 R45 33R R20 10K 10K R23 DCDC+ C20 3.3 uF R47 33R 3 1 2 Q5 IRFR2407 + 1 3 2 Q4 IRFR2407 J19 +5V 1 2 Q3 IRFR2407 + US1K 2 HIN 3 LIN VB HO VS VCC LO COM IR2101S +15V D6 US1K 2 HIN 3 LIN VB HO VS VCC LO COM IR2101S +15V U9 8 7 6 1 5 4 U8 8 7 6 1 5 4 2 1 3 PWM0 D1 D2 PWM1 PWM2 PWM3 PWM4 PWM5 D3 2 Q2 IRFR2407 1K 1K 1K 1K 1K 1K 1K 1K R2 R3 R4 R5 R6 R7 R8 R9 PWM1 PWM2 PWM3 PWM4 PWM5 RC4 RC2 RC3 C16 3.3 uF R29 33R 3 1 2 Q1 IRFR2407 + US1K 2 HIN 3 LIN VB HO VS VCC LO COM IR2101S +15V U6 8 7 6 1 5 4

+15V

FIGURE A-3:

PWM1

R67

300

2005 Microchip Technology Inc.


MC7815CD2T/R4 3 VOUT VIN + GND C13 2 47 uF MC7805CD2T/R4 3 VOUT VIN + GND C26 C12 2 47 uF 0.1 uF

PWM0

R68

300

+15V

PWM3

R69

300

PWM2

R70

300

+15V

PWM5

R71

300

PWM4

R72

300

J5

1 2

V_IN

BOARD SCHEMATIC, PART 3 (MOTOR DRIVER BRIDGE, POWER SUPPLY AND REGULATORS, LEDS AND OTHER CONNECTORS)

DS00970A-page 15

AN970

J4

6 7 8

AN970
NOTES:

DS00970A-page 16

2005 Microchip Technology Inc.

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.

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 WARRANTIES 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.

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.

2005 Microchip Technology Inc.

DS00970A-page 17

WORLDWIDE SALES AND SERVICE


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

10/20/04

DS00970A-page 18

2005 Microchip Technology Inc.

Potrebbero piacerti anche