Microchip Technology dsPICDEM MCLV-2 User Manual

dsPICDEM™ MCLV-2
Development Board
User’s Guide
2012 Microchip Technology Inc. DS52080A
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
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
32
PIC
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.
© 2012, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
QUALITY MANAGEMENT S
DS52080A-page 2 2012 Microchip Technology Inc.
ISBN: 978-1-62076-293-6
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. DS52080 A-page 3
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 Ove rview .............. .. ....................................................................... 14
Chapter 2. Hardware Overview
2.1 PIM Configu r a tio n ......... ............................. ................................................... 18
2.2 Board Connectors ........................................................................................20
2.3 Selecting a Power Supply for the Development Board ................................24
2.4 User Interf a c e H a rd wa re .................. ............................................................ 24
Chapter 3. Running a BLDC Motor Using a Sensorless Algorithm
3.1 Operating Requirements ..............................................................................27
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
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. 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
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
Description Represents Examples
Arial font:
Italic chara c ters Referenced books MPLAB
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog A menu selection select Enable Programmer
Quotes A field name in a window or
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brac kets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces r epeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the tota l number of digits, R is th e radi x and n is a digit
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
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.

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.
MP ASM™ Assembler, MPLINK™ Object Linker , MPLIB™ Object Librarian User’s Guide (DS33014)
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
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.

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
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 Control­lers (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.1 OVERVIEW 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
dsPICDEM™ MCLV-2 Development Board User’s Guide

1.2 FEATURES 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.
Loading...
+ 30 hidden pages