Microchip Technology dsPICDEM MCSM User Manual

dsPICDEM™ MCSM
Development Board
User’s Guide
2009-2019 Microchip Technology Inc. DS70000610C
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 unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime, BitCloud, chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, HELDO, IGLOO, JukeBlox, KeeLoq, Kleer, LANCheck, LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo, MOST, MOST logo, MPLAB, OptoLyzer, PackeTime, PIC, picoPower, PICSTART, PIC32 logo, PolarFire, Prochip Designer, QTouch, SAM-BA, SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon, TempTrackr, TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
APT, ClockWorks, The Embedded Control Solutions Company, EtherSynch, FlashTec, Hyper Speed Control, HyperLight Load, IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision Edge, ProASIC, ProASIC Plus, ProASIC Plus logo, Quiet-Wire, SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub, TimePictra, TimeProvider, Vite, WinPath, and ZL are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BlueSky, BodyCom, CodeGuard, CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, 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. The Adaptec logo, Frequency on Demand, Silicon Storage Technology, and Symmcom are registered trademarks of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies.
© 2009-2019, Microchip Technology Incorporated, All Rights Reserved.
For information regarding Microchip’s Quality Management Systems, please visit www.microchip.com/quality.
ISBN: 978-1-5224-5025-2
DS70000610C-page 2 2009-2019 Microchip Technology Inc.
dsPICDEM™ MCSM DEVELOPMENT
BOARD USER’S GUIDE

Table of Contents

Preface ........................................................................................................................... 5
Introduction............................................................................................................ 5
Document Layout .................................................................................................. 5
Conventions Used in this Guide ............................................................................ 6
Recommended Reading........................................................................................ 7
The Microchip Website .......................................................................................... 8
Product Change Notification Service..................................................................... 8
Customer Support ................................................................................................. 8
Document Revision History ................................................................................... 8
Chapter 1. Introduction.................................................................................................. 9
1.1 Overview ........................................................................................................ 9
1.2 Features ....................................................................................................... 11
1.3 What’s Included ............................................................................................ 11
1.4 Reference Documents and Webinars .......................................................... 12
Chapter 2. Getting Started........................................................................................... 13
2.1 Board Setup ................................................................................................. 13
2.2 Programming and Debugging Application Code .......................................... 14
Chapter 3. Hardware .................................................................................................... 15
3.1 Hardware Architecture .................................................................................. 15
3.2 Board Connectors ........................................................................................ 21
3.3 User Interface Hardware .............................................................................. 24
Appendix A. Board Layout and Schematics.............................................................. 25
Appendix B. Electrical Specifications........................................................................ 31
Index ............................................................................................................................. 33
Worldwide Sales and Service .................................................................................... 34
2009-2019 Microchip Technology Inc. DS70000610C-page 3
dsPICDEM™ MCSM Development Board User’s Guide
NOTES:
DS70000610C-page 4 2009-2019 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 website (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 “DSXXXXXXXXA”, where “XXXXXXXX” 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 online help files.

INTRODUCTION

®
IDE online 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
Recommended Reading
The Microchip Website
Customer Support
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.
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.
2009-2019 Microchip Technology Inc. DS70000610C-page 5
dsPICDEM™ MCSM Development Board User’s Guide

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:

DOCUMENTATION CONVENTIONS

Description Represents Examples
Arial font:
Italic characters 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 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 var_name [,
A menu path File>Save
A tab Click the Power tab
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’
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) { ... }
®
IDE User’s Guide
DS70000610C-page 6 2009-2019 Microchip Technology Inc.

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® XC16 C Compiler User’s Guide (DS50002071)
This user’s guide describes how to use the 16-bit MPLAB® XC16 C Compiler. Please visit www.microchip.com/compilers for more information.
MPLAB® X IDE User’s Guide (DS50002027)
This document describes how to setup the MPLAB® X IDE software and use it to create projects and program devices.
MPLAB® XC16 Assembler, Linker and Utilities User’s Guide (DS50002106)
This user’s guide describes how to use GNU language tools to write code for 16-bit applications.
Preface
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in the Readme subdirectory of the MPLAB contain updated information and known issues that may not be included in this user’s guide.
®
IDE installation directory. The Readme files
dsPIC33/PIC24 Family Reference Manuals
A specific Family Reference Manual (FRM) is available for each module, which explains the operation of the dsPIC modules. The specifics of each device family are discussed in their respective data sheet.
®
DSC MCU family architecture and peripheral
dsPIC33CK64MP105 Motor Control Plug-In Module (PIM) Information Sheet for External Op Amp Configuration (DS50002848)
Information Sheet for External Op Amp Configuration. This information sheet provides information specific to the dsPIC33CK64MP105 External Op Amp Configuration Motor Control Plug-In Module (PIM).
To obtain any of these documents, visit the Microchip website at www.microchip.com.
2009-2019 Microchip Technology Inc. DS70000610C-page 7
dsPICDEM™ MCSM Development Board User’s Guide

THE MICROCHIP WEBSITE

Microchip provides online support via our website at www.microchip.com. This website is used as a means to make files and information easily available to customers. The website 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

PRODUCT 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 website at www.microchip.com, click on Product
Change Notification and follow the registration instructions.

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 website at: http://support.microchip.com

DOCUMENT REVISION HISTORY

Revision A (September 2009)
This is the initial released revision of this document.
Revision B (August 2019)
In this revision of the document, changes are made to mention that the board is for Microchip Digital Signal Controller (DSC) devices in general, not specifically for the dsPIC33F family of devices as mentioned in the previous revision.
Minor text and formatting edits throughout document.
Revision C (September 2019)
Changed the devlopment board part number in Section 1.3 “What’s Included”.
DS70000610C-page 8 2009-2019 Microchip Technology Inc.
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 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 eight, six or four-wire stepper motors in either bipolar or unipolar configurations. Topics covered include:
Overview
Features
What’s Included
Reference Documents and Webinars

1.1 OVERVIEW

dsPICDEM™ MCSM DEVELOPMENT
BOARD USER’S GUIDE

Chapter 1. Introduction

Figure 1-1 shows a photograph of the dsPICDEM™ MCSM Development Board. A
®
dsPIC 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.
device uses the MOSFET driver to drive the two full-bridge inverters that power
potentiometer and Fault signals)
2009-2019 Microchip Technology Inc. DS70000610C-page 9
dsPICDEM™ MCSM Development Board User’s Guide

FIGURE 1-1: dsPICDEM™ MCSM DEVELOPMENT BOARD

DS70000610C-page 10 2009-2019 Microchip Technology Inc.

1.2 FEATURES

The key features of this board include the following:
• Motor Control PIM Device (U2) Socket:
• Motor Control Interfaces:
• Input/Output Control Switches:
• Communication Ports:
• Built-In Power Supplies:
• Power Supply Connectors:
• Programming Connectors:
Introduction
- The dsPIC33FJ12MC202 motor control device in SOIC package (U3) footprint
- Two full-bridge inverters
- Two phase current sense resistors
- DC bus voltage sense resistor
- Overcurrent protection
- One push button (S1)
- Reset push button (RESET)
- 10 k potentiometer (POT)
- LED indicators for PWM outputs arranged in a full-bridge format
- LED indicator for overcurrent
- UART communication via USB (J4)
- 15V power supply, maximum power available: 11W
- 3.3V power supply, maximum power available: 2W
- 24V power input connector (J6) for the controller and power stage
- Auxiliary power tab fast on connectors (BP1 and BP2) for the power stage
- ICSP™ connector for programming a dsPIC DSC device (J2)
- RJ11 connector for programming a dsPIC DSC device (J1)
- ICSP connector for programming the PIC18LF2450 USB-to-UART bridge (J3)

1.3 WHAT’S INCLUDED

The dsPICDEM MCSM Development Board with the part number DM330022-1 contains the following:
• dsPICDEM MCSM Development Board
• dsPIC33CK64MP105 External Op Amp Motor Control Plug-In-Module (P/N: MA330050-1)
• USB to Mini-USB cable
• Screwdriver
2009-2019 Microchip Technology Inc. DS70000610C-page 11
Loading...
+ 23 hidden pages