Board Manual
Board Manual
Board Manual
DS70331A
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 Microchip devices in life support and/or safety applications is entirely at the buyers risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. 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, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Linear Active Thermistor, MXDEV, MXLAB, 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, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, UNI/O, WiperLock and ZENA 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. 2008, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Companys quality system processes and procedures are for its PIC MCUs and dsPIC DSCs, 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.
DS70331A-page ii
Appendix A. Schematics and Layouts ...................................................................... 25 Appendix B. Electrical Specifications ....................................................................... 33 Index ............................................................................................................................. 35 Worldwide Sales and Service .................................................................................... 36
DS70331A-page iii
DS70331A-page iv
INTRODUCTION
This chapter contains general information that will be useful to know before using the dsPICDEM MCLV Development Board. Items discussed in this chapter include: Document Layout Conventions Used in this Guide Warranty Registration Recommended Reading The Microchip Web Site Development Systems Customer Change Notification Service Customer Support Document Revision History
DOCUMENT LAYOUT
This users guide describes how to use the dsPICDEM MCLV Development Board. The document is organized as follows: Chapter 1. Introduction This chapter introduces the dsPICDEM MCLV Development Board and provides an overview of various features. Chapter 2. Hardware Overview This chapter describes the hardware components of the dsPICDEM MCLV Development Board. Chapter 3. Running a BLDC Motor Using Hall Sensors This chapter describes how to run a sensored BLDC motor using a dsPIC DSC device. Appendix A. Schematics and Layouts This appendix provides detailed circuit schematics of the dsPICDEM MCLV Development Board. Appendix B. Electrical Specifications This appendix lists the DC input and output ratings for the dsPICDEM MCLV Development Board.
DS70331A-page 1
A number in verilog format, 4b0010, 2hF1 where N is the total number of digits, R is the radix and n is a digit A key on the keyboard Sample source code Filenames File paths Keywords Command-line options Bit values Constants Press <Enter>, <F1> #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa0, 1 0xFF, A file.o, where file can be any valid filename mcc18 [options] file [options] errorlevel {0|1} var_name [, var_name...] void main (void) { ... }
Text in angle brackets < > Courier New font: Plain Courier New
Italic Courier New Square brackets [ ] Curly brackets and pipe character: { | } Ellipses...
A variable argument Optional arguments Choice of mutually exclusive arguments; an OR selection Replaces repeated text Represents code supplied by user
DS70331A-page 2
Preface
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This users guide describes how to use the dsPICDEM MCLV Development Board. The device-specific data sheets contain current information on programming the specific microcontroller or digital signal controller devices. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources: MPLAB IDE Simulator, Editor Users Guide (DS51025) This users guide is a comprehensive guide that describes installation and features of Microchips MPLAB Integrated Development Environment (IDE), as well as the editor and simulator functions in the MPLAB IDE environment. Readme Files For the latest information on using other tools, read the tool-specific Readme files in the Readme subdirectory of the MPLAB IDE installation directory. The Readme files contain updated information and known issues that may not be included in this users guide. MPASM Assembler, MPLINK Object Linker, MPLIB Object Librarian Users Guide (DS33014) This users guide describes how to use the Microchip MPASM Assembler, the MPLINK Object Linker and the MPLIB Object Librarian. dsPIC33FJ12MC202 PIM Information Sheet (DS70314) This document provides device-specific information for the dsPIC33FJ12MC202 PIM device. The dsPIC33FJ12MC202 is a high-performance 16-bit digital signal controller within a small 28-pin 6x6 mm QFN package. dsPIC33FJ32MC204 PIM Information Sheet (DS70316) This document provides device-specific information for the dsPIC33FJ32MC204 PIM device. The dsPIC33FJ32MC204 is a high-performance 16-bit digital signal controller within a small 44-pin QFN package. dsPIC33FJ128MC804 PIM Information Sheet (DS70326) This document provides device-specific information for the dsPIC33FJ128MC804 PIM device. The dsPIC33FJ128MC804 is a high-performance 16-bit digital signal controller within a small 44-pin QFN package. dsPIC33FJ12MC201/202 Data Sheet (DS70265) This data sheet contains device-specific information for the dsPIC33FJ12MC201/202 Digital Signal Controller (DSC) Devices. The dsPIC33F devices contain extensive Digital Signal Processor (DSP) functionality with a high performance 16-bit microcontroller (MCU) architecture. dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 Data Sheet (DS70283) This data sheet provides device-specific information for the dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 motor control family of devices.
DS70331A-page 3
DS70331A-page 4
Preface
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information: Product Support Data sheets and errata, application notes and sample programs, design resources, users guides and hardware support documents, latest software releases and archived software General Technical Support Frequently Asked Questions (FAQs), technical support requests, online discussion groups, Microchip consultant program member listing Business of Microchip Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives
DS70331A-page 5
Customers should contact their distributor, representative or Field Application Engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com
DS70331A-page 6
1.1
1.2
FEATURES OVERVIEW
The key features of this board include the following: Devices Supported: - 28-pin to 100-pin dsPIC33FJXXXMC202 PIM (MA330014) with a dsPIC33F Motor control device (U9) socket - 44-pin to 100-pin dsPIC33FJXXXMCX04 PIM (MA330017 and MA330018) with a dsPIC33F Motor Control device (U9) socket - 100-pin to 100-pin dsPIC33FJXXXMCX10 PIM (MA330013) with a dsPIC33F Motor control device (U9) socket - The dsPIC33FJ12MC202 Motor Control device in SOIC package (U2) footprint
DS70331A-page 7
DS70331A-page 8
Introduction
FIGURE 1-1: dsPICDEM MCLV DEVELOPMENT BOARD BLOCK DIAGRAM
J2 BP1 BP2 J3 J6
Regulator 3.3V
Regulator 5V
Regulator 15V
J7 VBUS + -
S2 S3 dsPIC33FJXXXMCXXX PIM J11/J12 ICD2 J1 LIN J4 CAN J8 USB JP5 J10 RS-232 VBUS V_M3 V_M2 V_M1 Potential Divider DC+ M3 M2 M1 Safe Current Level Amplifier JP4 FAULT_MC IMOTOR_SUM Three-Phase Inverter U5:C PWM1L1 U5:A 0.005 IMOTOR1 Amplifier U5:B 0.005 IMOTOR2 Amplifier R12 HA HB HC 0.005 R16 R32 M3 M2 M1 M3 M2 M1 5V M
JP1-JP3
DS70331A-page 9
DS70331A-page 10
2.1
PIM CONFIGURATION
This section summarizes the resistor configuration required to connect the PIM pins to dsPIC DSC pins. The following PIMs can be configured on the dsPICDEM MCLV Development Board: dsPIC33FJ256MC710 PIM (MA330013) dsPIC33FJ12MC202 PIM (MA330014) dsPIC33FJ32MC204 PIM (MA330017) dsPIC33FJ128MC804 PIM (MA330018) Note: When using PIMs, make sure that the 28-pin SOIC dsPIC DSC is removed from the dsPICDEM MCLV Development Board.
DS70331A-page 11
PWM1H3 MCLR FAULT_MC TX V_M3 V_M2 V_M1 IMOTOR_SUM IMOTOR2 IMOTOR1 PGC PGD POT VBUS MONITOR_1 MONITOR_2 MONITOR_3 HB HC RX TX USB_TX USB_RX OSI OSO LIN_CS LIN_FAULT RX USB_RX USB_TX CAN_TX CAN_RX HALLA BTN_1 BTN_2 CAN_RX CAN_TX PWM1L1 PWM1H1 PWM1L2 PWM1H2 PWM1L3
DS70331A-page 12
Hardware Overview
TABLE 2-2:
PIM Pin Number 3 13 18 19 20 21 22 23 24 25 26 27 32 35 41 42 43 47 48 49 50 51 52 63 64 68 69 70 72 76 77 78 80 83 84 87 88 93 94 98 99 100 Note 1: 2:
PWM1H3 MCLR FAULT_MC TX V_M3 V_M2 V_M1 IMOTOR_SUM IMOTOR2 IMOTOR1 PGC PGD POT VBUS MONITOR_1 MONITOR_2 MONITOR_3 HB HC RX TX USB_TX USB_RX OSI OSO LIN_CS (1) LIN_FAULT (2) RX USB_RX USB_TX CAN_TX CAN_RX HALLA BTN_1 BTN_2 CAN_RX CAN_TX PWM1L1 PWM1H1 PWM1L2 PWM1H2 PWM1L3
If LIN_CS signal is used, BTN_1 signal can not be used. If LIN_FAULT signal is used, BTN_2 signal can not be used.
DS70331A-page 13
PWM1H3 MCLR FAULT_MC TX V_M3 V_M2 V_M1 IMOTOR_SUM IMOTOR2 IMOTOR1 PGC PGD POT VBUS MONITOR_1 MONITOR_2 MONITOR_3 HALLB HALLC RX TX USB_TX USB_RX OSI OSO LIN_CS LIN_FAULT RX USB_RX USB_TX CAN_TX CAN_RX HALLA BTN_1 BTN_2 CAN_RX CAN_TX PWM1L1 PWM1H1 PWM1L2 PWM1H2 PWM1L3
PGD2/EMUD2/PWM1H3/RP10/CN16/RB10 Solder R6 MCLR SCL1/RP8/CN22/RB8 SDA1/RP9/CN21/RB9 Restricted use (see Appendix A. Schematics and Layouts) Restricted use (see Appendix A. Schematics and Layouts) Restricted use (see Appendix A. Schematics and Layouts) Not connected AN1/VREF-/CN3/RA1 AN0/VREF+/CN2/RA0 PGC3/EMUC3/ASCL1/RP6/CN24/RB6 PGD3/EMUD3/ASDA1/RP5/CN27/RB5 AN8/RP18/CN10/RC2 PGD1/EMUD1/AN2/C2IN-/RP0/CN4/RB0 PGC1/EMUC1/AN3/C2IN+/RP1/CN5/RB1 AN4/RP2/CN6/RB2 AN5/RP3/CN7/RB3 Not connected Not connected Not connected Not connected Not connected Not connected OSCI/CLKI/CN30/RA2 OSCO/CLKO/CN29/RA3 RP24/CN20/RC8 RP25/CN19/RC9 INT0/RP7/CN23/RB7 RP20/CN25/RC4 RP21/CN26/RC5 PWM2H1/RP22/CN18/RC6 PWM2L1/RP23/CN17/RC7 Not connected TDO/RA8 SOSCI/RP4/CN1/RB4 Not connected Not connected PWM1L1/RP15/CN11/RB15 PWM1H1/RP14/CN12/RB14 PWM1L2/RP13/CN13/RB13 PWM1H2/RP12/CN14/RB12 PGC2/EMUC2/PWM1L3/RP11/CN15/RB11 Not applicable Solder R4 Solder R1 Not applicable Not applicable Not applicable Not applicable Solder R13 Solder R12 Not applicable Not applicable Solder R16 Solder R14 Solder R22 Solder R25 Solder R21 Not applicable Not applicable Not applicable Not applicable Not applicable Not applicable Not applicable Not applicable Solder R2 and remove R18 Solder R5 and remove R27 Solder R3 and remove R26 Solder R29 Solder R30 Solder R32 Solder R31 Not applicable Solder R19 Solder R20 Not applicable Not applicable Solder R11 Solder R10 Solder R9 Solder R7 Solder R8
DS70331A-page 14
Hardware Overview
TABLE 2-4:
Pin Number 3 13 18 19 20 21 22 23 24 25 26 27 32 35 41 42 43 47 48 49 50 51 52 63 64 68 69 70 72 76 77 78 80 83 84 87 88 93 94 98 99 100
Label on the dsPICDEM MCLV Development Board PWM1H3 MCLR FAULT_MC TX V_M3 V_M2 V_M1 IMOTOR_SUM IMOTOR2 IMOTOR1 PGC PGD POT VBUS MONITOR_1 MONITOR_2 MONITOR_3 HALLB HALLC RX TX USB_TX USB_RX OSI OSO LIN_CS LIN_FAULT RX USB_RX USB_TX CAN_TX CAN_RX HALLA BTN_1 BTN_2 CAN_RX CAN_TX PWM1L1 PWM1H1 PWM1L2 PWM1H2 PWM1L3
DS70331A-page 15
BOARD CONNECTORS
Designator BP1-BP2 J1 J2 J4 J7 LIN interface port Input power supply connector CAN interface port Motor power connector, Hall sensors/Quadrature encoder connector and DC bus power supply connector USB interface port ICSP programmer interface connector for programming the PIC18LF2450 USB to UART Bridge RS-232 interface port RJ11, 6-pin connector for programming a dsPIC DSC device ICSP connector for programming a dsPIC DSC device Description Auxiliary power supply connector
6 7 8 9 10
DS70331A-page 16
Hardware Overview
Figure 2-1 shows various connectors and jumpers available on the dsPICDEM MCLV Development Board. FIGURE 2-1: dsPICDEM MCLV DEVELOPMENT BOARD CONNECTORS AND JUMPERS
J1 J5
J3 BP1-BP2 J2
JP3
JP5
J6
JP4
2.2.1
The dsPICDEM MCLV Development Board receives the power for control circuits and the DC bus from a +24V power supply. It is connected to the board through J2 or BP1-BP2 points.
2.2.2
By default, jumper J6 is short, and the +24V input power supply connected to J2 or BP1-BP2 supplies the DC bus voltage to the board.
2.2.3
The board has a MCP2551 High-Speed CAN Transceiver, which is connected to the dsPIC33F device through jumpers JP4 and JP5. The CAN transceiver converts the differential signal on the CAN bus to a digital signal for the ECAN module. It also converts the ECAN output digital signal to a differential signal for the CAN bus. In Sleep mode, the CAN transmitter is turned off, and the receiver operates at a lower current level. The control device monitors the CAN activity and switches the transceiver back to normal operation when needed. For more information, refer to the data sheet, MCP2551 High-Speed CAN Transceiver (DS21667).
DS70331A-page 17
2.2.5
The board uses an on-board PIC18 interface as a bridge between the UART and USB. The PIC18 UART pins are connected to the dsPIC33F device through jumpers JP4 and JP5.
2.2.6
The ICD 2 Connector is an RJ11 female connector (J11) that connects the MPLAB ICD 2 In-Circuit Debugger to the dsPIC33F device for programming and debugging purposes. The ICD 2 can be connected to the board using 6-pin ICSP connector (J12).
2.2.7
The jumper J9 is a 6-pin connector that connects the PICkit 2 development programmer to the PIC18F device. The board uses the on-board PIC18 interface as a bridge between the UART and USB. The PIC18F can be programmed for USB communication.
2.2.8
The connector J10 is an RS-232 interface port. The board uses the UART connector to pass the UART signals from the dsPIC33F device to the dedicated UART IC MAX3232CUE. The output of U14 is provided to the connector J10.
2.2.9
The motor connector (J7) has 11 terminals. Table 2-6 shows the functionality of each terminal. TABLE 2-6:
Pin 1 2 3 4 5 6 7 8 9 10 11
DS70331A-page 18
Hardware Overview
Table 2-7 lists the test points that can be used to check various signals. TABLE 2-7: TEST POINTS
Description Hall A/QEA feedback Hall B/QEB feedback Hall C/INDEX feedback PWM output for leg 1 top switch PWM output for leg 1 bottom switch PWM output for leg 2 top switch PWM output for leg 2 bottom switch PWM output for leg 3 top switch PWM output for leg 3 bottom switch Fault pin Motor phase 1 voltage feedback Motor phase 2 voltage feedback Motor phase 3 voltage feedback 2.5V reference for current feedback POT signal Motor feedback signal 1 Motor feedback signal 2 Motor feedback signal 3 Phase 1 current Phase 2 current Bus current +3.3V GND +5V AVSS +15V HA HB HC PWM1H1 PWM1L1 PWM1H2 PWM1L2 PWM1H3 PWM1L3 Fault V1 V2 V3 Ref POT1 MONITOR_1 MONITOR_2 MONITOR_3 I1 I2 IBUS P1 P2 P3 P4 P5
Test Points
DS70331A-page 19
To locate these components, refer to Figure 1-1. Table 2-8 describes how to select the required power supply configuration option by setting jumper J3 and J6: TABLE 2-8:
J3 Remove the jumper Remove the jumper Install the jumper(1) Install the Note 1: jumper(1)
When J3 is installed, VR3 must be removed to avoid damage to the 15V regulator.
2.4
FIGURE 2-2:
JUMPER SETTINGS
MONITOR_1 MONITOR_2 MONITOR_3
JP1
JP2
JP3
Curr Volt
Hall
Curr Volt
Hall
Curr Volt
Hall
USB
LIN
CAN UART
USB
LIN
CAN UART
JP4
JP5
Rx Note 1: 2:
Tx
The JP1, JP2 and JP3 jumper pairs select the feedback signals required for the motor control algorithm. The JP4 and JP5 jumper pairs select the communication bus for the transmit and receive pin.
DS70331A-page 20
Hardware Overview
TABLE 2-9:
No. 1
JUMPER DESCRIPTIONS
Position 1-2 3-4 5-6 Description Connects current sense phase 1 to MONITOR_1 Connects voltage sense phase 1 to MONITOR_1 Connects Hall sensor interface HA to MONITOR_1 Connects current sense phase 2 to MONITOR_2 Connects voltage sense phase 2 to MONITOR_2 Connects Hall sensor interface HB to MONITOR_2 Connects current sense DC Bus to MONITOR_3 Connects voltage sense phase 3 to MONITOR_3 Connects Hall sensor interface HC to MONITOR_3 Connects USB receive line to Rx Connects LIN receive line to Rx Connects CAN receive line to Rx Connects UART receive line to Rx Connects USB transmit line to Tx Connects LIN transmit line to Tx Connects CAN transmit line to Tx Connects UART transmit line to Tx JP1
Designator
JP2
JP3
JP4
JP5
TABLE 2-10:
J3 J5 J6 JP11
ADDITIONAL JUMPERS
Functions Bypass 15V regulator connector for gate driver IC LIN master select Connects BP1-BP2/J2 to motor connector block J7 CAN end enable
Designator
DS70331A-page 21
The dsPICDEM MCLV Development Board consists of the following items: Two push buttons One potentiometer Six LEDs Two power-on status LEDs Two USB LEDs Device Reset push button INDICATORS AND HUMAN INTERFACES
Hardware Element Description Push buttons; these push buttons are connected to port pins. When momentarily pressed, the switch connects the respective port pin to Ground. 10 k potentiometer; it is connected to analog input pin. Power-on status LED, which indicates the status of the 5V regulator. Power-on status LED, which indicates the status of the +3.3V regulator. USB communication indicator, which indicates the device has been detected. LEDs, which indicate the PWM pin status. USB bus indicator, which indicates that the device is connected to the USB bus.
TABLE 2-11:
Label S2, S3
DS70331A-page 22
dsPICDEMTM MCLV DEVELOPMENT BOARD USERS GUIDE Chapter 3. Running a BLDC Motor Using Hall Sensors
This chapter describes how to set up the dsPICDEM MCLV Development Board to run a BLDC motor using Hall sensors. Refer to the application note, AN957 Sensored BLDC Motor Control Using dsPIC30F2010 (DS00957), for more information about running the BLDC motor control using Hall sensors. Topics covered include: Hardware Requirements dsPICDEM MCLV Development Board Setup
3.1
HARDWARE REQUIREMENTS
To set up and run the board, the following items are recommended: dsPICDEM MCLV Development Board (DM330021) 24V power supply (AC002013) or equivalent 10 pole Hurst motor (AC300020) dsPIC33FJ32MC204 PIM (MA330017)
3.2
WARNING
Note 1: The dsPICDEM MCLV Development Board is intended to drive the three-phase BLDC or PMSM motor. Before connecting the motor, make sure that the power rating of the motor is equal to or less than the power rating of the board, as shown in Appendix B. Electrical Specifications. Also, make sure the jumper settings are correct for the firmware programmed into the target dsPIC DSC device mounted on the socket. Failure to comply with this warning could lead to malfunction of the board and the motor, and could result in physical harm. Before beginning the start-up procedure, complete a visual check of the board and the motor for connectivity and mechanical damage. If damage is found, DO NOT power-up the board. Otherwise, you may further damage the equipment. Contact Microchips local office or distributor immediately.
2:
1. Place the dsPICDEM MCLV Development Board on a sturdy insulated platform. 2. Make sure that the dsPIC33FJ32MC204 device or an appropriate PIM is mounted in the respective socket.
DS70331A-page 23
Color Coding 4-pin power (white connector) wires Red wire Black wire White wire Green wire 8-pin Hall sensor (black connector) wires Red wire Black wire White wire Brown wire Green wire
Hall sensor power Pin 1 Hall sensor return Pin 2 Hall A output Hall B output Hall C output Pin 4 Pin 3 Pin 5
7. Download the code for the dsPIC33FJ32MC204 from the Microchip web site (www.microchip.com). It is available with the application note AN957. 8. Unzip the file and open the project using MPLAB IDE. Refer to the MPLAB ICD 2 In-Circuit Debugger Users Guide (DS51331) for more information about how to generate a project and run a program using the MPLAB ICD 2 In-Circuit Debugger. 9. Build the project and download the program into the processor. 10. Press the Run icon when in Debug mode. 11. Press S2 to run the motor. 12. Vary the motors speed with POT1. 13. Press S2 again to stop the motor. Note: For more information on running BLDC motors using dsPIC DSC devices, refer to the following application notes, which are available from the Microchip web site: AN957, Sensored BLDC Motor Control Using dsPIC30F2010 (DS00957) AN1160, Sensorless BLDC Control with Back-EMF Filtering Using a Majority Function (DS01160) AN1078, Sensorless Field Oriented Control of PMSM Motors using dsPIC30F or dsPIC33F Digital Signal Controllers (DS01078) AN1017, Sinusoidal Control of PMSM Motors with dsPIC30F DSC (DS01017) The source code referred in these application notes is also available from the Microchip web site (www.microchip.com).
DS70331A-page 24
dsPICDEMTM MCLV DEVELOPMENT BOARD USERS GUIDE Appendix A. Schematics and Layouts
FIGURE A-1: dsPICDEM MCLV DEVELOPMENT BOARD SCHEMATIC (SHEET 1 OF 7)
DS70331A-page 25
DS70331A-page 26
DS70331A-page 27
DS70331A-page 28
DS70331A-page 29
13
12
14
DS70331A-page 30
10
VB 8
HO 7 VS 6
VCC 5
6 VS
2 LIN 3 COM
1 HIN
4 LO
4 LO
VCC
HO
VB
4 LO
VCC 5
DS70331A-page 31
DS70331A-page 32
TM
Parameter Power supply connected to J7 Power supply connected to J2 or BP1-BP2 Power supply connected to J2 or BP1-BP2
TABLE B-2:
Parameter Voltage Current Power Rating Note 1: 2:
DC OUTPUT RATING
Min. 0 0 0 Typical 24 10 240(1) Max. 48 15 720(2) Unit VDC A Watts
If the output power exceeds 240W, the power MOSFETs (Q1-Q6) may need additional heat sink. By default, the board uses D2-PAK Power MOSFETs. It also supports the TO-220 packages. If the TO-220 Power MOSFETs are used, additional heat sink can be mounted on the MOSFETs, if required.
DS70331A-page 33
DS70331A-page 34
I
Internet Address......................................................... 5
J
Jumper Description .................................................. 21 Jumper Settings ....................................................... 20 Jumpers ................................................................... 20
M
Microchip Internet Web Site ....................................... 5 Motor Connector Details .................................... 18, 19
C
Connectors..........................................................16, 20 Customer Notification Service.................................... 5 Customer Support ...................................................... 6
O
Overview of the dsPICDEM MCLV Development Board ................................................................................... 7
D
Documentation Conventions ........................................................ 2 Layout ................................................................. 1 dsPICDEM MCLV Development Board Block Diagram ................................................................................... 9 dsPICDEM MCLV Development Board Setup ......... 23
R
Recommended Reading ............................................ 3 Revision History ......................................................... 6
S
Switches, LEDs and Potentiometers ........................ 22
F
Features Overview ..................................................... 7
W
Warranty Registration ................................................ 3 WWW Address........................................................... 5
DS70331A-page 35
ASIA/PACIFIC
Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2401-1200 Fax: 852-2401-3431 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-8665-5511 Fax: 86-28-8665-7889 China - Hong Kong SAR Tel: 852-2401-1200 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 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 - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049
ASIA/PACIFIC
India - Bangalore Tel: 91-80-4182-8400 Fax: 91-80-4182-8422 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 Japan - Yokohama Tel: 81-45-471- 6166 Fax: 81-45-471-6122 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-572-9526 Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350
EUROPE
Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich 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 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 UK - Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820
01/02/08
DS70331A-page 36