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 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 buyer’s 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, 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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
2012 Microchip Technology Inc.DS52074A-page 3
dsPICDEM™ MCHV-2 Development Board User’s Guide
NOTES:
DS52074A-page 4 2012 Microchip Technology Inc.
dsPICDEM™ MCHV-2 DEVELOPMENT
BOARD USER’S GUIDE
Safety Notice
The safety notices and operating instructions provided should be adhered to, to avoid
a safety hazard. If in any doubt, consult your supplier.
WARNING – This system must be earthed (grounded) at all times.
WARNING – The output terminals are NOT isolated from the incoming AC mains
supply and may be at up to 410V with respect to ground, regardless of the input mains
supply voltage applied. These terminals are live during operation AND for five minutes
after disconnection from the supply. Do not attempt to access the terminals or remove
the cover during this time.
WARNING – The unit may obtain power through the output terminals if these are
connected to a rotating motor acting as a generator. If this is the case, then the previous
warning also applies (i.e., the output terminals are live when connected to the generator and for five minutes after the generator has been stopped). Note that this case can
arise even when the unit has been disconnected from the incoming AC mains supply.
CAUTION – The system should not be installed, operated, serviced or modified except
by qualified personnel who understand the danger of electric shock hazards and have
read and understood the user instructions. Any service or modification performed by
the user is done at the user’s own risk and voids all warranties.
CAUTION – If a motor is connected to the output of this unit, the frame should be
connected to the output protective ground terminal provided. Particular care should be
taken to mechanically guard such a motor, bearing in mind that unexpected behavior
is likely to result from the process of code development.
CAUTION – For continued protection against the risk of fire, replace the fuse with one
of the same type only (i.e., Fast Act Fuse 15A/250V).
• The system is intended for evaluation and development purposes and should only
be operated in a normal laboratory environment as defined by IEC 61010-1:2001
• Clean with a dry cloth only
• Operate flat on a bench, do not move during operation and do not block the
ventilation holes
• The system should not be operated without all the supplied covers fully secured in
place
• The system should not be connected or operated if there is any apparent damage
to the unit
• The unit is designed to be connected to the AC mains supply via a standard nonlocking plug. As the unit has no mains switch, this plug constitutes the means of
disconnection from the supply and thus the user must have unobstructed access
to this plug during operation.
B.7 Settings Dialog and Info Tab ........................................................................ 70
2012 Microchip Technology Inc.DS52074A-page 7
dsPICDEM™ MCHV-2 Development Board User’s Guide
NOTES:
DS52074A-page 8 2012 Microchip Technology Inc.
dsPICDEM™ MCHV-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 page 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.
INTRODUCTION
®
IDE on-line help.
This preface contains general information that will be useful to know before using the
dsPICDEM™ MCHV-2 Development Board. Topics discussed in this preface 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™ MCHV-2 Development
Board. The document is organized as follows:
• Chapter 1. “Introduction” – This chapter introduces the dsPICDEM™ MCHV-2
Development Board and provides a brief overview of its features.
• Chapter 2. “Getting Started” – This chapter provides information on getting
started with the dsPICDEM™ MCHV-2 Development Board.
• Chapter 3. “Running the Demonstration” – This chapter describes the
demonstration software that is preloaded on the device that accompanies the
dsPICDEM™ MCHV-2 Development Board.
• Chapter 4. “Hardware” – This chapter describes the hardware on the
dsPICDEM™ MCHV-2 Development Board.
• Appendix A. “Board Layout and Schematics” – This appendix provides
diagrams of the hardware layout, as well as schematic diagrams for the
dsPICDEM™ MCHV-2 Development Board.
• Appendix B. “Debugging and Troubleshooting with MPLAB
appendix provides debug and programming guidance for MPLAB 8 users.
®
8” – This
2012 Microchip Technology Inc.DS52074A-page 9
dsPICDEM™ MCHV-2 Development Board User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
Italic charactersReferenced booksMPLAB® IDE User’s Guide
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 brackets < >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 mutually exclusive
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)
{ ...
}
DS52074A-page 10 2012 Microchip Technology Inc.
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 user’s guide describes how to use the dsPICDEM™ MCHV-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® C Compiler for PIC24 MCUs and dsPIC® DSCs User’s Guide
(DS51284)
This comprehensive guide describes the usage, operation and features of Microchip’s
MPLAB C compiler (formerly MPLAB C30) for use with 16-bit devices.
MPLAB® IDE User’s Guide (DS51519)
This user’s guide describes how to set up the MPLAB IDE software and use it to create
projects and program devices.
Preface
MPLAB X IDE User’s Guide (DS52027)
This document describes how to setup the MPLAB X IDE software and use it to create
projects and program devices.
MPLAB® Assembler, Linker and Utilities For PIC24 MCUs And dsPIC®
DSCs User’s Guide (DS51317)
This user’s guide describes the usage, operation, and features of the MPLAB® Assembler for PIC24 MCUs and dsPIC
relocatable machine code from symbolic assembly language for the PIC24 MCU and
dsPIC DSC families of devices. The assembler is a Windows console application that
provides a platform for developing assembly language code. The assembler is a port
of the GNU assembler from the Free Software Foundation.
®
DSCs (formerly MPLAB ASM30), which produces
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.
dsPIC33EP256MC506 Plug-In Module (PIM) for Internal Op amp
Configuration Information Sheet (DS52062)
This document provides device specific information for the dsPIC33EP256MC506
Internal Op amp configuration PIM.
To obtain any of these documents, visit the Microchip web site at www.microchip.com.
2012 Microchip Technology Inc.DS52074A-page 11
dsPICDEM™ MCHV-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.
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 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
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
®
DS52074A-page 12 2012 Microchip Technology Inc.
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 (July 2012)
This is the initial released version of the document.
Preface
2012 Microchip Technology Inc.DS52074A-page 13
dsPICDEM™ MCHV-2 Development Board User’s Guide
NOTES:
DS52074A-page 14 2012 Microchip Technology Inc.
1.1OVERVIEW
The Microchip dsPICDEM MCHV-2 Development Board is intended to aid the user in
the rapid evaluation and development of a wide variety of motor control applications
using PIC24 Microcontrollers (MCUs) and dsPIC
This development system is targeted to control Brushless DC (BLDC) motors, Permanent Magnet Synchronous Motors (PMSM), and AC Induction Motors (ACIM) in sensor
or sensorless operation.
This flexible and cost-effective tool can be configured in different ways for use with
Microchip’s specialized Motor Control devices. The dsPICDEM MCHV-2 Development
Board is essentially a backward-compatible upgraded version of the dsPICDEM MCHV
Development System. The dsPICDEM MCHV-2 Development Board is designed to
support the PIC24F, PIC24E, dsPIC33F, and dsPIC33E Motor Control device families,
and offers a mounting option to connect a generic 100-pin Plug-In Module (PIM).
The system has a three-phase power module device that contains the motor inverter
and the gate driver’s circuitry. The circuit drives a BLDC, PMSM, or ACIM motor using
different control techniques without requiring any additional hardware. It also has
Power Factor Correction (PFC) circuitry in order to provide a full set of tools used in
motor control applications. Figure 1-1 provides a photograph of the dsPICDEM MCHV-
2. A block diagram that shows the main components of the system is provided in
Figure 1-2.
The rated continuous output current from the inverter is 6.5A (RMS). This allows up to
approximately 2 kVA output when running from a 208V to 230V single-phase input voltage in a maximum 30ºC (85ºF) ambient temperature environment. Therefore, the system is ideally suited for running a standard 3-Phase Induction Motor of up to 1.4 kW
(1.8 HP) rating or a slightly higher rated industrial servo-motor. The power module is
capable of driving other types of motors and electrical loads that do not exceed the
maximum power limit and are predominantly inductive. Furthermore, single-phase
loads can be driven using one or two of the inverter outputs.
The unit is capable of operating from 90V up to a maximum of 265V. A more detailed
explanation of power limitations is provided in Chapter 4. “Hardware”.
dsPICDEM™ MCHV-2 DEVELOPMENT
BOARD USER’S GUIDE
Chapter 1. Introduction
®
Digital Signal Controllers (DSCs).
Note:It is recommended to carefully read the hardware section mentioned above
before attempting to use the system.
2012 Microchip Technology Inc.DS52074A-page 15
dsPICDEM™ MCHV-2 Development Board User’s Guide
FIGURE 1-1:dsPICDEM™ MCHV-2 DEVELOPMENT BOARD
DS52074A-page 16 2012 Microchip Technology Inc.
2012 Microchip Technology Inc.DS52074A-page 17
PFC Feedback Signals
15V, 3.3V, A-3.3V
PFC PWM
VBUS
15V PSU
3.3VA-3.3V
PFC Circuitry
PFC Current
Feedback
Circuitry
VAC Zero
Crossing
VAC Voltage
Feedback
EMI Choke,
In-rush current
protection, FUSE
90V-265V
Rectifier
PFC Fault
dsPIC® DSC
Power
Alternative
15V PSU
Alternative
3.3V/A3.3V
Isolated User Interface
RS-232/
USB
Starter Kit
POT, PB, RESET
Current
Feedback
Circuitry
HALL
Sensors
Voltage
Feedback
Circuitry
(VBUS and Motor)
Fault
Non-isolated
ICSP™ connector
Hall
Sensors
MOTOR
External
Programmer/
Debugger
R
X
ICSP
commands
T
X
User
Interface
PFC Stage Board
Power Module Board
Circuitry
Circuitry
Module
PIC24 MCU
Matrix
Board
or
on Board
FIGURE 1-2:SYSTEM BLOCK DIAGRAM
Introduction
dsPICDEM™ MCHV-2 Development Board User’s Guide
1.1.1Features
This section provides some of the key features of the dsPICDEM MCHV-2 Development
Board.
Motor Control Interfaces:
• Three-phase inverter bridge with a power rating of 400V/6.5A (J17)
• Hall sensors/Quadrature Encoder Interface (QEI) for sensored motor control
algorithms (J9)
• 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 op amps and comparators
Input/Output:
- One isolated push button (S1)
- Isolated reset push button (RESET)
- Isolated 10 k potentiometer (POT1)
- LED indicators for PWM outputs
- Two LED indicators for debugging purposes (D2 and D19)
Isolated Communication Ports:
- UART communication via USB (J6)
- UART communication via RS-232 (J8)
Built-In Isolated Programmer/Debugger (J20):
- Starter Kit on Board programmer/debugger (daughter board)
Power Supply Connectors:
- Power Tab Fast-On connectors (BP1 and BP2) for the power stage
- Auxiliary 24V power input connector (J15) for the PIC24 MCU or dsPIC DSC
device and low-power circuitry (non-populated)
- Auxiliary 15V and 3.3V regulators for regulating auxiliary power supply (non-
populated)
Programming Connectors:
- ICSP™ connector for programming a PIC24 MCU or dsPIC DSC device
(J18), non-isolated
- ICSP connector for programming the PIC18LF2450 USB module to the UART
Bridge (J1), isolated
- ICSP connector for programming the Starter Kit on Board Programmer/
Debugger, isolated (J1)
DS52074A-page 18 2012 Microchip Technology Inc.
Introduction
Power Factor Corrector:
- Maximum input voltage 90 VAC-265 VAC
- Current Feedback circuitry
- VAC input voltage sensing
- Zero-crossing detection
- DC bus sensing
- Overcurrent protection (The maximum power available is specified in
Section 4.3 “Electrical Specifications”.)
Built-In Power Supplies:
- 15V power supply, maximum power available 11W
- 3.3V power supply, maximum power available 2W
Additional Protection Circuitry:
-250VAC/15A fuse
- In-rush current limiter
- EMI filter
2012 Microchip Technology Inc.DS52074A-page 19
dsPICDEM™ MCHV-2 Development Board User’s Guide
NOTES:
DS52074A-page 20 2012 Microchip Technology Inc.
dsPICDEM™ MCHV-2 DEVELOPMENT
BOARD USER’S GUIDE
Chapter 2. Getting Started
2.1BOARD COMPONENTS
The dsPICDEM MCHV-2 Development Board consists of two stages:
• PFC Stage
The first stage is integrated by the Power Factor Correction (PFC) circuitry, the
full-bridge rectifier, the 15V power supply, and the 3.3V power supply.
• Power Module Stage
The second stage is the power module board. This board contains the Plug-In
Module (PIM) connector, the isolated user interface connectors, and the motor
drive.
Figure 2-1 shows an interior view.
FIGURE 2-1:dsPICDEM™ MCHV-2 DEVELOPMENT BOARD ENCLOSURE VIEW
2012 Microchip Technology Inc.DS52074A-page 21
dsPICDEM™ MCHV-2 Development Board User’s Guide
J8
J6
J20
S1
POT1
Reset
PWM LED
Indicators
J7
J2,J3
2.2USER INTERFACE
The dsPICDEM MCHV-2 has the following components to interact with the user.
Figure 2-2 shows a photograph of the front of the system.
• Input/Output Control Switches (Figure 2-2):
- One isolated push button (S1)
- Isolated reset push button (RESET)
- Isolated 10 kΩ potentiometer (POT1)
- LED indicators for PWM outputs
- Two LED indicators for debugging purposes (D2 and D19 on the Power
Module Board; not shown in Figure 2-2)