Microchip Technology dsPICDEM MCSM Development Board User guide

dsPICDEM™ MCSM
Development Board
User’s Guide
© 2009 Microchip Technology Inc. DS70610A
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 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
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
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, 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, Octopus, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, PIC
32
logo, 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.
© 2009, 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 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
DS70610A-page 2 © 2009 Microchip Technology Inc.
Chapter 1. Introduction
1.1 Overview ...................................................................................................... 11
1.2 Features ....................................................................................................... 13
1.3 What’s Included ............................................................................................ 13
1.4 Reference Documents and Webinars .......................................................... 14
Chapter 2. Getting Started
2.1 Board Setup ................................................................................................. 15
2.2 Programming and Debugging Application Code .......................................... 16
Chapter 3. Hardware
3.1 Hardware Architecture .................................................................................. 17
3.2 PIM Configuration ......................................................................................... 20
3.3 Board Connectors ........................................................................................ 24
3.4 User Interface Hardware .............................................................................. 27
dsPICDEM™ MCSM DEVELOPMENT
BOARD USER’S GUIDE
Table of Contents
Chapter 4. Troubleshooting
4.1 Common Problems ....................................................................................... 29
Appendix A. Board Layout and Schematics
Appendix B. Electrical Specifications
© 2009 Microchip Technology Inc. DS70610A-page 3
dsPICDEM™ MCSM Development Board User’s Guide
NOTES:
DS70610A-page 4 © 2009 Microchip Technology Inc.
dsPICDEM™ MCSM 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™ Motor Control Stepper Motor (MCSM) 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 MCSM Development Board. The document is organized as follows:
Chapter 1. “Introduction” – This chapter introduces the dsPICDEM MCSM
Development Board and provides a brief overview of its features.
Chapter 2. “Getting Started” – This chapter provides information on getting
started with the dsPICDEM MCSM Development Board.
Chapter 3. “Hardware” – This chapter describes the hardware on the dsPICDEM
MCSM Development Board.
Chapter 4. “Troubleshooting” – This chapter provides information for
troubleshooting problems encountered while using the dsPICDEM MCSM Development Board.
© 2009 Microchip Technology Inc. DS70610A-page 5
dsPICDEM™ MCSM Development Board User’s Guide
Appendix A. “Board Layout and Schematics” – This appendix provides
diagrams of the hardware layout, as well as schematic diagrams for the dsPICDEM MCSM Development Board.
Appendix B. “Electrical Specifications” – This appendix provides pertinent
electrical specifications for the dsPICDEM MCSM Development Board.
DS70610A-page 6 © 2009 Microchip Technology Inc.
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Initial caps A window the Output window
Quotes A field name in a window or
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > 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 braces and pipe character: { | }
Ellipses... Replaces repeated text
Preface
Emphasized text ...is the only compiler...
A dialog the Settings dialog A menu selection select Enable Programmer
“Save project before build”
dialog A menu path File>Save
A tab Click the Power tab
4‘b0010, 2‘hF1 where N is the total number of digits, R is the radix 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’
any valid filename
[options]
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
errorlevel {0|1}
var_name [,
var_name...]
void main (void)
{ ...
}
© 2009 Microchip Technology Inc. DS70610A-page 7
dsPICDEM™ MCSM Development Board User’s Guide
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 MCSM 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.
MPASM™ 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.
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.
dsPIC33FJ256MC710 PIM Information Sheet (DS70564)
This document provides device specific information for the dsPIC33FJ256MC710 PIM device. The dsPIC33FJ256MC710 is a high-performance 16-bit digital signal controller within a small 100-pin TQFP 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.
®
IDE Simulator, Editor User’s Guide (DS51025)
DS70610A-page 8 © 2009 Microchip Technology Inc.
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04, and dsPIC33FJ128MCX02/ X04 Data Sheet (DS70291)
This data sheet contains device specific information for the dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/ X04 and dsPIC33FJ128MCX02/X04 motor control family of devices.
dsPIC33FJXXXMCX06/X08/X10 Data Sheet (DS70287)
This data sheet contains device specific information for the dsPIC33FJXXXMCX06/ X08/X10 motor control family of devices.
To download these documents, visit Microchip web site at www.microchip.com.
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. 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
Preface
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 and MPLAB ASM30 assemblers; MPLINK™ and MPLAB LINK30 object linkers; and MPLIB™ and MPLAB LIB30 object librarians.
Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB ICE 2000, MPLAB ICE 4000, and MPLAB REAL ICE™.
In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 2.
MPLAB
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 and PRO MATE Plus and PICkit™ 1development programmers.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
C18 and MPLAB C30 C compilers; MPASM™
®
II device programmers and the PICSTART®
© 2009 Microchip Technology Inc. DS70610A-page 9
dsPICDEM™ MCSM Development Board User’s Guide
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
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 (September 2009)
This is the initial released revision of this document.
DS70610A-page 10 © 2009 Microchip Technology Inc.
dsPICDEM™ MCSM
DEVELOPMENT BOARD
USER’S GUIDE

Chapter 1. Introduction

The dsPICDEM MCSM Development Board is targeted to control both unipolar and bipolar stepper motors with no hardware configuration changes. This flexible and cost-effective board can be configured in different ways for use with Microchip’s specialized dsPIC33F Motor Control Digital Signal Controllers (DSCs).
The dsPICDEM MCSM Development Board offers a mounting option to connect either a 28-pin SOIC device or a generic 100-pin Plug-In Module (PIM). The board also has two full-bridge inverters. The hardware is designed in such a way that no hardware changes are necessary for 8-, 6- or 4-wire stepper motors in either bipolar or unipolar configurations. Topics covered include:
•Overview
•Features
• What’s Included
• Reference Documents and Webinars

1.1 OVERVIEW

Figure 1-1 shows a photograph of the dsPICDEM MCSM Development Board. A dsPIC33F device uses the MOSFET driver to drive the two full-bridge inverters that power the motor windings. The board includes various circuitries to perform the following functions:
• Drive two motor windings with the two on-board full-bridge inverters
• Measure feedback and other analog signals (i.e., current, DC voltage,
• Communicate with a host computer or an external device via USB
The dsPICDEM MCSM Development Board supports terminal voltages up to 80V and currents up to 3A. Refer to Appendix B. “Electrical Specifications” for more information.
Potentiometer and Fault signals)
© 2009 Microchip Technology Inc. DS70610A-page 11
dsPICDEM™ MCSM Development Board User’s Guide

FIGURE 1-1: dsPICDEM MCSM DEVELOPMENT BOARD

DS70610A-page 12 © 2009 Microchip Technology Inc.
Loading...
+ 26 hidden pages