dsPICDEM™ MCLV-2 Development Board User’s Guide 2012 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.
2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 4 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 7 Chapter 1. Introduction 1.1 Overview of the dsPICDEM MCLV-2 Development Board ........................... 13 1.2 Features Overview ....................................................................................... 14 Chapter 2. Hardware Overview 2.1 PIM Configuration ......................................
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 6 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/ or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
dsPICDEM™ MCLV-2 Development Board User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: MPLAB® IDE User’s Guide Italic characters Referenced books Emphasized text ...is the only compiler...
Preface WARRANTY REGISTRATION Please complete and mail the Warranty Registration Card that was enclosed with the development board. Sending in the registration card entitles you to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use the dsPICDEM™ MCLV-2 Development Board.
dsPICDEM™ MCLV-2 Development Board User’s Guide 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.
Preface CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • • • • Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical Support 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.
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 12 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Chapter 1. Introduction The dsPICDEM™ MCLV-2 Development Board is targeted to control a brushless DC (BLDC) motor or permanent magnet synchronous motor (PMSM) in sensor or sensorless operation. This flexible and cost-effective board can be configured in different ways for use with Microchip’s specialized motor control Digital Signal Controllers (DSCs) and Microcontrollers (MCUs).
dsPICDEM™ MCLV-2 Development Board User’s Guide 1.
Introduction dsPICDEM™ MCLV-2 DEVELOPMENT BOARD BLOCK DIAGRAM FIGURE 1-1: J2 BP1 J3 BP2 J6 Regulator Regulator Regulator 3.
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 16 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Chapter 2. Hardware Overview This chapter describes the hardware components of the dsPICDEM MCLV-2 Development Board. Topics covered include: • PIM Configuration • Board Connectors • User Interface Hardware Power for the control circuits and DC bus on the board is provided through a +24V power supply attached to the Power Connector terminal (J2) or the Auxiliary Power Tab Fast-On Connector terminals (BP1-BP2).
dsPICDEM™ MCLV-2 Development Board User’s Guide 2.1 PIM CONFIGURATION Table 2-1 summarizes the PIM pinout for the dsPICDEM MCLV-2 Development Board.
Hardware Overview TABLE 2-1: dsPICDEM MCLV-2 DEVELOPMENT BOARD PIM PINOUT FUNCTIONALITY PIM Pin # Signal Name Pinout Description Routed via Matrix Board 49 RX UART Receive No 50 TX UART Transmit No No 51 USB_TX UART Transmit (connected directly to U7) 52 USB_RX UART Receive (connected directly to U7) No 53 N/A N/A No 54 N/A N/A No 55 N/A N/A No 56 N/A N/A No 57 N/A N/A No 58 PIM_FLT_OUT2 General I/O Yes 59 PIM_FLT_OUT1 General I/O Yes 60 DBG_LED1 61 HOME
dsPICDEM™ MCLV-2 Development Board User’s Guide 2.2 BOARD CONNECTORS Table 2-2 describes the hardware connection between MPLAB ICD 3 or MPLAB REAL ICE™ In-Circuit Emulator, the power supply, and the dsPICDEM MCLV-2 Development Board connectors.
Hardware Overview 2.2.1 Input Power Connector (J2, BP1-BP2) The dsPICDEM MCLV-2 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 DC Bus Power Supply Connector (J6 and J7) 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.
dsPICDEM™ MCLV-2 Development Board User’s Guide 2.2.9 Motor Connector (J7) The motor connector (J7) has 12 terminals. Table 2-3 shows the functionality of each terminal.
Hardware Overview 2.2.10 The Matrix Board Interface The matrix board interface facilitates the following functions: • Connects the appropriate signals to the correct pins on the Plug-In Module (PIM) • Disconnects signals and provides isolation on signal paths that, in a particular hardware configuration, are not being used The matrix board header has two rows of pins. One row (pins 1-25) hosts signals from different signal sources, the other (pins 26-50) hosts connections to the PIM.
dsPICDEM™ MCLV-2 Development Board User’s Guide 2.3 SELECTING A POWER SUPPLY FOR THE DEVELOPMENT BOARD The following connectors and power jumpers, when configured, offer multiple power supply configuration options for the dsPICDEM MCLV-2 Development Board. • • • • Input Power Connector (J2 or BP1-BP2) Bypass 15V Regulator (J3) DC Bus Power Supply Jumper (J6) Motor Power Connector with pins, ‘+’ and ‘-’ (J7) To locate these components, refer to Figure 1-1.
Hardware Overview TABLE 2-6: JUMPER DESCRIPTIONS No.
dsPICDEM™ MCLV-2 Development Board User’s Guide 2.4.2 Push-Buttons, LEDs, Bus Resistors and Potentiometers The dsPICDEM MCLV-2 Development Board consists of the following items: • • • • • • • Two push-buttons One potentiometer Six LEDs for PWM Two LEDs for debugging purposes Two power-on status LEDs Two USB LEDs Device Reset push-button TABLE 2-8: Label S2, S3 POT Hardware Element Description Push-buttons; these push-buttons are connected to port pins.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Chapter 3. Running a BLDC Motor Using a Sensorless Algorithm This chapter describes how to set up the dsPICDEM MCLV-2 Development Board in the Internal Op amp configuration to run a BLDC motor using the Single-Shunt Current Reconstruction Algorithm using a dsPICDEM™ MCLV-2 Development Board. The algorithm is described in AN1299 “Single-Shunt Three-Phase Current Reconstruction Algorithm for Sensorless FOC of a PMSM”.
dsPICDEM™ MCLV-2 Development Board User’s Guide 3.2 dsPICDEM MCLV-2 DEVELOPMENT BOARD SETUP The following procedure describes how to set up the dsPICDEM MCLV-2 Development Board: WARNING The dsPICDEM MCLV-2 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”.
Running a BLDC Motor Using a Sensorless Algorithm 6. Connect the 24V power supply to J2 or BP1-BP2. If the supply voltage is not equal to 24V, refer to Table 2-5 to configure the power supply for the board. 7. Download the internal op amp version of the code for the dsPIC33EP256MC506 from the Microchip web site (www.microchip.com). It is available with the AN1299 application note. 8. Unzip the file and open the project using MPLAB X IDE.
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 30 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Appendix A.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD SCHEMATIC (SHEET 1 OF 7) D2 YELLOW J14 U9 100-pin PIM Header D17 YELLOW 2012 Microchip Technology Inc. Note: For pin descriptions, please see Table 2-1, “dsPICDEM MCLV-2 Development Board PIM Pinout Functionality,” on page 18.
2012 Microchip Technology Inc. FIGURE A-2: dsPICDEM™ MCLV-2 DEVELOPMENT BOARD SCHEMATIC (SHEET 2 OF 7) 2 3 A 1 13 12 D 14 6 5 7 C 8 9 10 DS52080A-page 33 Note 1: 2: All resistors on this page must be 1%. Supply Voltage should be AVDD for MCP6024.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD SCHEMATIC (SHEET 3 OF 7) 1 HIN VB 8 2 LIN HO 7 3 COM 4 LO 1 HIN VB 8 2 LIN HO 7 3 COM 4 LO 1 HIN VB 8 2 LIN HO 7 3 COM 4 LO 2012 Microchip Technology Inc.
2012 Microchip Technology Inc.
DS52080A-page 36 2012 Microchip Technology Inc.
2012 Microchip Technology Inc.
DS52080A-page 38 2012 Microchip Technology Inc.
Schematics and Layout FIGURE A-8: INTERNAL OP AMP CONFIGURATION MATRIX BOARD SCHEMATIC SHUNT_HIGH_SUM SHUNT_LOW_SUM SHUNT_HIGH_1 SHUNT_HIGH_2 REC_NEUTR MONITOR_1 MONITOR_2 MONITOR_3 VBUS IMOTOR_SUM IMOTOR1 IMOTOR2 POT V_M1 V_M2 V_M3 1 50 2 49 3 48 4 47 5 46 6 45 7 44 8 43 9 42 10 41 11 40 12 39 13 38 14 37 15 36 16 35 17 34 18 33 19 32 20 31 21 30 22 29 23 28 24 27 25 26 PIM_IBUS+ PIM_IBUS- PIM_IA+ PIM_IB+ PIM_REC_NEUTR PIM_MONITOR_1
dsPICDEM™ MCLV-2 Development Board User’s Guide FIGURE A-9: EXTERNAL OP AMP CONFIGURATION MATRIX BOARD SCHEMATIC SHUNT_HIGH_SUM SHUNT_LOW_SUM SHUNT_HIGH_1 SHUNT_HIGH_2 REC_NEUTR MONITOR_1 MONITOR_2 MONITOR_3 VBUS IMOTOR_SUM IMOTOR1 IMOTOR2 POT V_M1 V_M2 V_M3 1 50 2 49 3 48 4 47 5 46 6 45 7 44 8 43 9 42 10 41 11 40 12 39 13 38 14 37 15 36 16 35 17 34 18 33 19 32 20 31 21 30 22 29 23 28 24 27 25 26 PIM_IBUS+ PIM_IBUS- PIM_IA+ PIM_IB+ PIM_
Schematics and Layout dsPICDEM™ MCLV-2 DEVELOPMENT BOARD LAYOUT FIGURE A-10: TM 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 Development Board User’s Guide NOTES: DS52080A-page 42 2012 Microchip Technology Inc.
dsPICDEM™ MCLV-2 DEVELOPMENT BOARD USER’S GUIDE Appendix B. Electrical Specifications TABLE B-1: DC INPUT RATING Parameter Condition Min. Max. Unit Power supply connected to J7 J6 is open 0 48 VDC Power supply connected to J2 or BP1-BP2 J3 is open and VR3 is installed 16 24 VDC Power supply connected to J2 or BP1-BP2 J3 is installed and VR3 is removed 10 16 VDC TABLE B-2: Parameter Voltage DC OUTPUT RATING Min. Typical Max.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.