Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•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 Microchip’s 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 Microchip’s 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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL 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, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, 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.
Microchip received ISO/TS-16949:2009 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 Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
3.2 dsPICDEM M C L V-2 Developmen t B o a rd S et u p ........ ... ............................... 28
Appendix A. Schematics and Layout.........................................................................41
Appendix B. Electrical Specifications........................................................................43
Worldwide Sales and Service ....................................................................................44
2012 Microchip Technology Inc.DS52080A-page 5
Page 6
dsPICDEM™ MCLV-2 Development Board User’s Guide
NOTES:
DS52080A-page 6 2012 Microchip Technology Inc.
Page 7
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. This number is located on the bottom of each
page, in front of the p age number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
dsPICDEM™ MCLV-2 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 user’s guide describes how to use the dsPICDEM™ MCL V-2 Development Board.
The document is organized as follow s:
• Chapter 1. “Introduction” – This chapter introduces the dsPICDEM™ MCLV-2
Development Board and provides an overview of various features.
• Chapter 2. “Hard wa re Ov erv iew ” – This chapter describes the hardware
components of the dsPICDEM™ MCLV-2 Development Board.
• Chapter 3. “Running a BLDC Motor Using a Sensorless Algorithm” – This
chapter describes how to run a sensored BLDC motor using a dsPIC
device.
• Appendix A. “Schematics and Layout” – This appendix provides detailed
circuit schematics of the dsPICDEM™ MCLV-2 Development Board.
• Appendix B. “Electrical Specifications” – This appendix lists the DC input and
output ratings for the dsPICDEM™ MCLV-2 Development Board.
®
DSC
2012 Microchip Technology Inc.DS52080A-page 7
Page 8
dsPICDEM™ MCLV-2 Development Board User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following docum entat io n conven tion s:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
Italic chara c tersReferenced booksMPLAB
Emphasized text...is the only compiler...
Initial capsA windowthe Output window
A dialogthe Settings dialog
A menu selectionselect Enable Programmer
QuotesA field name in a window or
dialog
Underlined, italic text with
right angle bracket
Bold charactersA dialog buttonClick OK
N‘RnnnnA number in verilog format,
Text in angle brac kets < >A key on the keyboardPress <Enter>, <F1>
Courier New font:
Plain Courier NewSample source code#define START
Italic Courier NewA variable argumentfile.o, where file can be
Choice of mut ually exclus ive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
DS52080A-page 8 2012 Microchip Technology Inc.
Page 9
WARRANTY REGISTRATION
Please complete and mail the Warranty Registration Card that was enclose d 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.
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
This user’s guide is a comprehensive guide that describes installation and features of
Microchip’s 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 user’s guide.
This user’s guide describes how to use the Microchip MPASM Assembler, the MPLINK
Object Linker and the MPLIB Object Librarian.
dsPIC33EP256MC506 Plug-In Module (PIM) Information Shee t for Internal Op
amp Configuration (DS52062)
This information sheet provides information specific to the dsPIC33EP256MC506
Internal Op amp Configuration Plug-In Module (PIM).
®
IDE Simulator, Editor User’s Guide (DS51025)
Preface
2012 Microchip Technology Inc.DS52080 A-page 9
Page 10
dsPICDEM™ MCLV-2 Development Board User’s Guide
THE MICROCHI P 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, user’s 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 listin g
• 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
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB
assemblers; MPLINK™ and MPLAB 16-bit object linkers; and MPLIB™ and
MPLAB 16-bit object librarians.
• Emulators – The latest information on the Microchip MPLAB REAL ICE™
in-circuit emulator.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 3.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager
and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 device programmer and the PICkit™ 3 development
programmers.
®
C compiler; MPASM™ and MPLAB 16-bit
®
DS52080A-page 10 2012 Microchip Technology Inc.
Page 11
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.
Technical support is available through the web site at: http://support.microchip.com
DOCUMENT REVISION HISTORY
Revision A (June 2012)
This is the initial released version of this document.
Preface
2012 Microchip Technology Inc.DS52080A-page 11
Page 12
dsPICDEM™ MCLV-2 Development Board User’s Guide
NOTES:
DS52080A-page 12 2012 Microchip Technology Inc.
Page 13
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). The dsPICDEM MCLV- 2 Development
Board is essentially a backwardly-compatible upgraded version of the dsPICDEM
MCLV Development Board.
The dsPICDEM MCLV-2 Development Board supports the dsPIC33F, PIC24F,
dsPIC33E, and PIC24E motor control device families. It offers a mounting option to
connect a generic 100-pin Plug-In Module (PIM). The board also has a three-phase
inverter bridge circuit. The circuit drives a BLDC or PMSM motor using different control
techniques without requiring any additional hardware. Topics covered include:
• Overview of the dsPICDEM MCLV-2 Development Board
• Features Overview
1.1OVERVIEW OF THE dsPICDEM MCLV-2 DEV ELOPMENT BOARD
Figure 1-1 shows a simplified block diagram of the dsPICDEM MCLV-2 Development
Board. The board includes various circuitry to perform the following functions:
• Drive a three-phase inverter that powers the motor phase windings
• Measure feedback signals (e.g., voltage and phase currents) and provide a
suitable fault signal
• Interface with Hall sensor or quadrature encoder for sensor-based commutation
• Communicate with a host computer or an external device via CAN, LIN, USB, or
RS-232 interface
The development board supports motors with terminal voltage up to 48V and current
up to 15A. Refer to Appendix B. “Electrical Specifications” for more information on
electrical specifi ca tio ns.
2012 Microchip Technology Inc.DS52080A-page 13
Page 14
dsPICDEM™ MCLV-2 Development Board User’s Guide
1.2FEATURES OVERVIEW
The key features of this board include the following:
• Motor Control Interfaces:
- Three-phase inverter bridge with a power rating of 48V/15A
- Hall sensors/quadrature encoder interface for sensored motor control (J7)
- Phase voltage feedback for sensorless BLDC operation
- DC bus current sense resistor for single shunt vector control
- Phase current sense resistor for dual shunt vector control
- Overcurrent protection
- Support for PIC24 MCUs and dsPIC DSCs with internal or external op amps
and comparators
• Input/Output Control Switches:
- Two push-buttons (S2 and S3)
- Two LED indicators for debugging purposes (D2 and D17)
- Reset push-button (S1)
- 10 k potentiometer (POT1)
- LED indicator for PWM outputs
• Communication Ports:
- CAN interface port (J4)
- LIN interface port (J1)
- UART communication via USB (J8)
- UART communication via RS-232 (J10)
• Power Supply Connectors:
- Auxiliary Power Tab Fast-On connectors (BP1 and BP2) for the controller and
power stage
- 24V power input connector (J2) for the controller
- Dedicated power connector (J7) for the power stage
• Programming Connectors:
- ICSP™ connector for programming a dsPIC DSC or PIC24 MCU (J12)
- RJ11 connector for programming a dsPIC DSC or PIC24 MCU (J11)
- ICSP connector for programming the PIC18LF2450 USB to UART Bridge (J9)
DS52080A-page 14 2012 Microchip Technology Inc.
Page 15
Introduction
M
PWM1L1
3.3V5V
15V
JP4
-
JP5
Plug-In Module
ICD2
LIN
CAN
USB
Driver
U5:C
U5:A
U5:B
JP1-JP3
Potential
Divider
S2
S3
J11/J12
J1
J4
J8
FAULT_MC
Safe Current
Limit
IMOTOR2
IMOTOR_SUM
HA
HB
HC
V_M3
V_M2
V_M1
V_M1
V_M2
V_M3
J2
J6
-
M3
M1
M2
HA
HB
HC
5V
Regulator
Regulator
Regulator
Three-Phase Inverter
R32
R16
R12
M1
M2
M3
BP1
BP2
+
M3
M1
M2
DC+
V
BUS
REC_NEUTR
Matrix
Board
J14
IMOTOR1
V_M3
V_M2
V_M1
V
BUS
REC_NEUTR
POT
PWM1H3
J3
J7
V
BUS
HOME
VREF
LED D2
LED D17
HOME
RS232J10
HA
HB
HC
U11
M3
U9
FIGURE 1-1:dsPICDEM™ MCLV-2 DEVELOPMENT BOARD BLOCK DIAGRAM
2012 Microchip Technology Inc.DS52080A-page 15
Page 16
dsPICDEM™ MCLV-2 Development Board User’s Guide
NOTES:
DS52080A-page 16 2012 Microchip Technology Inc.
Page 17
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). The Microchip 24V Power Supply
(AC002013) is recommended.
The various components on the board receive power as follows:
• The Gate drivers receive +15V power from a 15V regulator
• The CAN driver receives +5V power from a 5V regulator
• The LIN driver receives V
• A dsPIC DS C or PIC24 MCU motor control device receives +3.3V power from a
+3.3V regulator
• The RS-232 UART interface receives +3.3V power from a +3.3V regulator
• The PIC18LF2450 USB to UART Bridge receives +3.3V power from a +3.3V
regulator
BAT power from the LIN connector J1.
Note 1:If the input voltage value is less than 16V, remove the 15V voltage
regulator and short jumper J3.
2:To use a higher DC voltage bus (24V-48V), complete the following steps:
a) Connect the power supply to jumper J7, and keep jumper J6 open.
b) Power the circuit components, MCU, and the gate drivers using a
separate 16V-24V power supply connected to the power connector
J2 or BP1-BP2.
2012 Microchip Technology Inc.DS52080A-page 17
Page 18
dsPICDEM™ MCLV-2 Development Board User’s Guide
2.1PIM CONFIGURATION
Table 2-1 summarizes the PIM pinout for the dsPICDEM MCLV-2 Development Board.
TABLE 2-1:dsPICDEM MCLV-2 DEVELOPMENT BOARD PIM PINOUT FUNCTIONALITY
PIM Pin #Signal NamePinout DescriptionRouted via Matrix Board
Table 2-2 describes the hardwar e conn ection between MPLAB ICD 3 or MPLAB REA L
ICE™ In-Circuit Emulator, the power supply, and the dsPICDEM MCLV -2 Development
Board connector s.
TABLE 2-2:BOARD CONNECTORS
Number DesignatorDescription
1BP1-BP2Auxiliary power supply connector
2J1LIN interface port
3J2Input power supply connector
4J4CAN interface port
5J7Motor power connector, Hall sensors/Quadrature encoder connector
and DC bus power supply connector
6J8USB interface port
7J9ICSP™ programmer interface connector for programming the
PIC18LF2450 USB to UART Bridge
8J10RS-232 interface port
9J11RJ11, 6-pin connector for programming a dsPIC
10J12ICSP connector for programming a dsP IC DSC or PIC24 MCU
DSC or PIC24 MCU
Figure 2-1 shows various connectors and jumpers available on the dsPICDEM MCLV-2
Development Board.
FIGURE 2-1:dsPICDEM™ MCLV-2 DEVELOPMENT BOARD CONNECTORS AND JUMPERS
DS52080A-page 20 2012 Microchip Technology Inc.
Page 21
Hardware Overview
2.2.1Input 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.2DC 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.3CAN Interface (J4)
The board has a MCP2551 High-Speed CAN Transceiver, which is connected to the
dsPIC DSC or PIC24 MCU 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).
2.2.4LIN Interface (J1)
The board has a MCP2021 High-Speed LIN Transceiver, which is connected to the
dsPIC DSC or PIC24 MCU through jumpers JP4 and JP5. The LIN transceiver
monitors the LIN bus, conditions the incoming signal, and passes it to the UART module on the control device. The LIN transceiver responds to a “Transmit Enable” from the
control device by conditioning an output signal and placing it on the LIN bus. A
power-down mode turns the transmitter and voltage regulator off, leaving only the
receiver and wake-up circuits in operation. The LIN circuit includes a Master/Slave
jumper to accommodate a Master node on the LIN bus. For more information, refer to
the data sheet, MCP202X “LIN Transceiver with Voltage Regulator” (DS22018).
2.2.5USB Interface (J8)
The board uses an on-board PIC18 interface as a bridge between the UART and USB.
The PIC18 UART pins are connected to the dsPIC DSC or PIC24 MCU through
jumpers JP4 and JP5.
2.2.6ICD 3 Connector (J11- J12)
The ICD 3 connector is an RJ11 female connector (J11) that connects the MPLAB
ICD 3 In-Circuit Debugger/Emulator to the dsPIC DSC or PIC24 MCU for programming
and debugging purposes. The ICD 3 can also be connected to the board using 6-pin
ICSP connector (J12).
2.2.7ICSP for PIC18 (J9)
The jumper J9 is a 6-pin connector that connects the PICkit™ 3 development
programmer to the PIC18F device. The board uses the on-board PIC18 interface as a
bridge between the UART and USB. The PIC18F is programmed for USB
communication.
2.2.8RS-232 Connector (J10)
The connector J10 is an RS-232 interface port. The board uses the UART connector
to pass the UART signals from the dsPIC DSC or PIC24 MCU to the dedicated UART
IC MAX3232CUE. The output of U14 is provided to the connector J10.
2012 Microchip Technology Inc.DS52080A-page 21
Page 22
dsPICDEM™ MCLV-2 Development Board User’s Guide
2.2.9Motor Connector (J7)
The motor connector (J7) has 12 terminals. Table 2-3 shows the functionality of each
terminal.
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. Figure 2-2
is a block diagram that describes the matrix board interface.
FIGURE 2-2:MATRIX BOARD BLOCK DIAGRAM
2.2.10.1INTERNAL AND EXTERNAL OP AMP MATRIX BOARDS
The dsPICDEM MCL V-2 Development Board uses discrete op amps (U5) to amplify the
shunt resistor signals. Alternatively, some PIC24 MCUs or dsPIC DSCs are designed
with op amps on-board that can be used for this purpose. T o accommodate these two
basic configurations, the dsPICDEM MCLV-2 Development Board includes two matrix
boards.
• The Internal Op Amp Configuration Matrix Board configures the development
board to use op amps that are internal to the PIC24 MCU or dsPIC DSC. This
matrix board bypasses the current feedback circuitry on the dsPICDEM MCLV-2
Development Board and directly connects the shunt resistor signals to appropriate
pins of the PIM.
• The External Op Amp Configuration Matrix Board configures the development
board to use the current feedback circuitry on the dsPICDEM MCLV-2 Development Board. This matrix board disconnects the shunt resistor signals from the PIM
pins and connects the current feedback circuitry output to the appropriate PIM
pins.
Note:Unless specified in the PIM information sheet, all PIMs are compatible only
with the External Op amp Configuration matrix board. Certain PIMs are
designed to work only with the Internal Op amp Configuration matrix
boards. In this case, the corresponding PIM information sheet (available at
www.microchip.com/pims) will explicitly state this.
2012 Microchip Technology Inc.DS52080A-page 23
Page 24
dsPICDEM™ MCLV-2 Development Board User’s Guide
JP1
Note 1:The JP1, JP2 and JP3 jumper pairs select the feedback signals required for the motor control algorithm.
2:The JP4 and JP5 jumper pairs select the communication bus for the transmit and receive pins.
JP2JP3
JP4JP5
Curr VoltHallCurr Volt HallCurr Volt Hall
USB LIN CAN UARTUSB LIN CAN UART
RxTx
MONITOR_1MONITOR_2MONITOR_3
2.3SELECTING 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.
Table 2-5 describes how to select the required power supply configuration option by
setting jumpers J3 and J6.
TABLE 2-5:JUMPER SETTINGS FOR SELECTING A POWER SUPPLY
J3J6J2 or BP1-BP2J7: Pins ‘+’ and ‘-’
Remove the jumperRemove the jumper16V to 24V0V to 48V
Remove the jumperInstall the jumper16V to 24VSupplied by J2 or BP1-BP2
Install the jumper
Install the jumper
Note 1:When J3 is installed, VR3 must be removed to avoid damage to the 15V regulator.
(1)
(1)
Remove the jumper10V to 16V0V to 48V
Install the jumper10V to 16VSupplied by J2 or BP1-BP2
2.4USER INTERFACE HARDWARE
2.4.1Jumpers
The dsPICDEM MCLV-2 Development Board has nine jumpers that configure the
functionality of the board. Figure 2-3 shows the jumper settings and Table 2-6 lists
these jumpers and their functions.
FIGURE 2-3:JUMPER SETTINGS
DS52080A-page 24 2012 Microchip Technology Inc.
Page 25
Hardware Overview
TABLE 2-6:JUMPER DESCRIPTIONS
No.DesignatorPositionDescription
1JP1 1-2Connects current sense phase 1 to MONITOR_1
3-4Connects voltage sense phase 1 to MONITOR_1
5-6Connects Hall sensor interface HA to MONITOR_1
2JP21-2Connects current sense phase 2 to MONITOR_2
3-4Connects voltage sense phase 2 to MONITOR_2
5-6Connects Hall sensor interface HB to MONITOR_2
3JP31-2Connects current sense DC Bus to MONITOR_3
3-4Connects voltage sense phase 3 to MONITOR_3
5-6Connects Hall sensor interface HC to MONITOR_3
4JP41-2Connects USB receive line to Rx
3-4Connects LIN receive line to Rx
5-6Connects CAN receive line to Rx
7-8Connects UART receive line to Rx
5JP51-2Connects USB transmit line to Tx
3-4Connects LIN transmit line to Tx
5-6Connects CAN transmit line to Tx
7-8Connects UART transmit line to Tx
TABLE 2-7:ADDITIONAL JUMPERS
DesignatorFunctions
J3Bypass 15V regulator connector for gate driver IC
J5LIN master select
J6Connects BP1-BP2/J2 to motor connector block J7
JP11CAN end enable
2012 Microchip Technology Inc.DS52080A-page 25
Page 26
dsPICDEM™ MCLV-2 Development Board User’s Guide
2.4.2Push-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:INDICATORS AND HUMAN INTERFACES
LabelHardware Element Description
S2, S3Push-buttons; these push-buttons are connected to port pins.
When momentarily pressed, the switch connects the respective
port pin to Ground.
POT10 k
D3Power-on status LED, which indicates the status of the 5V
D4Power-on status LED, which indicates the status of the
D8USB communication indicator, which indicates the device has been
D10-D15LEDs, which indicate the PWM pin status.
D16USB bus indicator, which indicates that the device is connected to
D2, D17LEDs to be used for debugging purposes.
S1Push-button used to reset the target device.
potentiometer; it is connected to analog input pin.
regulator.
regulator.
detected.
the USB bus.
+3.3V
DS52080A-page 26 2012 Microchip Technology Inc.
Page 27
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-Shu nt T h re e- Ph as e C u rr e nt Rec o ns truction Algorithm for Sensorless FOC of a PMSM”.
Topics covered include:
• Operating Requirements
• dsPICDEM MCLV-2 Development Board Setup
3.1OPERATING REQUIREMENTS
To set up and run the board, the following items are recommended:
• MPLAB
attached to the board (SW007002)
• dsPICDEM MCLV-2 Development Board (DM330021-2)
• 24V power supply (AC002013) or equivalent
• 10 pole Hurst motor (AC300020)
• dsPIC33EP256MC506 Internal Op Amp Configuration PIM (MA330031)
®
X Integrated Development Environment (IDE) installed on the PC that is
2012 Microchip Technology Inc.DS52080A-page 27
Page 28
dsPICDEM™ MCLV-2 Development Board User’s Guide
3.2dsPICDEM MCLV-2 DEVE LOPMENT BOARD SETUP
The following procedure describes how to set up the dsPICDEM MCL V-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 Appen-
dix B. “Electrical Specifications”. Also, make sure the jumper settings are correct
for the firmware programmed into the target dsPIC DSC or PIC24 MCU 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 the
Microchip local office or distributor before using a damaged board.
3.2.1Setting up the dsPICDEM MCLV-2 Development Board
Perform the following steps to set up the development board:
1. Place the dsPICDEM MCLV-2 Development Board on a sturdy insulated
platform.
2. Make sure that the dsPIC33EP256MC506 Internal Op Amp Configuration PIM is
mounted in the U9 socket.
3. Insert the Internal Op Amp Configuration matrix board into J14, ensuring that the
pins line up and the matrix board is oriented correctly, as shown in Figure 3-1.
FIGURE 3-1:MATRIX BOARD ORIENTATION
4. Connect MPLAB ICD 3 or MPLAB REAL ICE In-Circuit Emulator to the computer,
and the board in J11 or J12.
5. Connect the three-phase, 10 pole, 24V Hurst motor (AC300020) to J7. Since this
is a sensorless algorithm, the motor phase wires (Red, Black, and White) can be
connected to M1, M2, and M3 in any order.
DS52080A-page 28 2012 Microchip Technology Inc.
Page 29
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. Refer to the “MPLAB
X IDE User’s Guide” (DS52027) for more information about how to use MPLAB X
IDE with a Microchip debugger/programmer.
9. Click the Run Project icon on the MPLAB X IDE toolbar. MPLAB X IDE will build
the project and program the target device. Ensure that the build and program
process completes successfully.
10. Press S2 to run the motor.
11. Vary the motor’s speed with POT1.
12. Press S2 again to stop the motor.
Note:For more information on running BLDC motors using a dsPIC DSC or
PIC24 MCU, refer to the following application notes, which are available
from the Microchip web site:
• AN1299, “Single-Shunt Three-Phase Current Reconstruction Algorithm
for Sensorless FOC of a PMSM” (DS01299)
• AN1160, “Sensorless BLDC Control with Back-EMF Filtering Using a
Majority Function” (DS0 1160)
• 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 available from the
Microchip web site (www.microchip.com).
®
2012 Microchip Technology Inc.DS52080A-page 29
Page 30
dsPICDEM™ MCLV-2 Development Board User’s Guide
NOTES:
DS52080A-page 30 2012 Microchip Technology Inc.
Page 31
dsPICDEM™ MCLV-2 DEVELOPMENT
BOARD USER’S GUIDE
Appendix A. Schematics and Layout
The following schematics are included in this user’s guide: