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.
DS70000610C-page 4 2009-2019 Microchip Technology Inc.
Page 5
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.
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.
Page 7
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.
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.
Page 9
The dsPICDEM™ MCSM Development Board is targeted to control both unipolar and
bipolar stepper motors with no hardware configuration changes. This flexible and costeffective 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.1OVERVIEW
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
In addition to the documents listed in the “Recommended Reading” section, the
following are also available from Microchip to support the use of the dsPICDEM™
MCSM Development Board.
• AN907 “Stepping Motors Fundamentals”
• AN906 “Stepper Motor Control Using the PIC16F684”
• AN822“Stepper Motor Microstepping with PIC18C452”
You can obtain these reference documents from your nearest Microchip sales office
(listed in the last page of this document) or by downloading them from the Microchip
website.
DS70000610C-page 12 2009-2019 Microchip Technology Inc.
Page 13
This chapter describes how to set up the dsPICDEM™ MCSM Development Board
hardware and software; and how to run the included demonstration software. Refer to
Chapter 3. “Hardware” for detailed information on the board and its components.
Topics in this chapter include:
• Board Setup
• Programming and Debugging Application Code
2.1BOARD SETUP
The dsPICDEM™ MCSM Development Board is intended to drive bipolar or unipolar stepper motors. 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 Appendix B. “Electrical
Specifications”. Also, make sure the configuration resistors are correct for the firmware
and the specific dsPIC
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 Microchip’s
local office or distributor immediately.
dsPICDEM™ MCSM DEVELOPMENT
BOARD USER’S GUIDE
Chapter 2. Getting Started
WARNING
®
DSC device mounted on the socket. Failure to comply with this
The following procedure describes how to set up the dsPICDEM™ MCSM
Development Board to run with the demonstration software. The stepper motor used
for the demonstration is the Leadshine Stepping Motor (P/N 42HS03). This can be
ordered from the Microchip web site as part number AC300024.
1. Place the dsPICDEM™ MCSM Development Board on a sturdy insulated platform.
2. Make sure that the dsPIC33CK64MP105 PIM or an appropriate PIM is mounted
in the socket.
3. Connect the stepper motor (Leadshine part # 42HS03 or a substitute stepper
motor) to J8. Connect the motor phases in a bipolar series connection as
described in Table 2-1.
TABLE 2-1:MOTOR CONFIGURATION TABLE
J8 Pin Number J8 Pin NameBipolar SeriesBipolar ParallelBipolar Half-windingUnipolar
4. Connect the 24V power supply to J6. A power supply can be ordered from the
Microchip website as part number AC002013, or substitute any power adapter
compatible with the Phihong model PSAC60W-240 (24 volts, 2.5 amps, with a
center positive barrel DC output connector).
5. Press S1 to run the motor.
6. Vary the motor’s speed with the potentiometer.
7. Press S1 to switch to Full-Step Wave mode, Full-Step, Half-Step and Various
Microstepping modes. Pushing S1 after the 256
the motor. Press S1 again to repeat the cycle.
Operating the dsPICDEM™ MCSM Development Board using the on-board POT and
switch button cannot offer the flexibility required in most applications and it is only
intended as a quick start demonstration. To have more control over the motor using a
real-time communication tool, please refer to the next section.
2.2PROGRAMMING AND DEBUGGING APPLICATION CODE
The following procedure describes how to program the dsPICDEM™ MCSM
Development Board in Debug mode:
1. Place the dsPICDEM™ MCSM Development Board on a sturdy insulated
platform.
2. Make sure that the dsPIC33CK64MP105 PIM or an appropriate PIM is mounted
in the socket.
3. Connect the stepper motor (Leadshine part #42HS03 or a substitute stepper
motor) to J8. Connect motor phases in a bipolar series connection as described
in Ta b le 2 -1 .
4. Connect the 24V power supply to J6. A power supply can be ordered from the
Microchip website as part number AC002013, or substitute any power adapter
compatible with the Phihong model PSAC60W-240 (24 volts, 2.5 amps, with a
center positive barrel DC output connector).
5. Connect PICkit™ 3 or PICkit 4 In-Circuit Debugger/Programmer, MPLAB
or ICD 4, or MPLAB REAL ICE™ In-Circuit Emulator to the computer and to the
board at J1 or J2.
6. Connect the USB cable to J4 and to the computer.
7. Download the stepper motor (AN1307) code for the dsPIC33CK64MP105 from
the Microchip web site for the MCSM at www.microchip.com/mcsm.
8. Build the project and download the program into the processor.
9. Click the Run icon when in Debug mode.
th
microstep step setting stops
®
ICD 3
Note: For more information on running stepper motors, refer to
Section 1.4 “Reference Documents and Webinars”.
DS70000610C-page 14 2009-2019 Microchip Technology Inc.
Page 15
dsPICDEM™ MCSM DEVELOPMENT
Plug In Module
(PIM)
Drivers
IMOTOR1
FAULT
IMOTOR2
Safe Current
Level
Amplifier
Amplifier
Comparator
PWM1H1
DC_BUS
24 VDC
BP1
BP2
J5
J7
J6
3.3V
Regulator
Regulator
PWM1L1
PWM1H2
PWM1L2
PWM1H3
PWM1L3
PWM2H1
PWM2L1
M1
M2
M3
M4
J8
M
UART
to
USB
USB
J4
ICD2
J1/J2
3.3V
POT
S1
DC_BUS
M1
M2
M3
M4
15V
BOARD USER’S GUIDE
Chapter 3. Hardware
This chapter describes the hardware used in the dsPICDEM™ MCSM Development
Board. Topics covered include:
• Hardware Architecture
• Board Connectors
• User Interface Hardware
3.1HARDWARE ARCHITECTURE
The dsPIC DSC® devices feature an 8-channel, high-speed PWM with Complementary
mode output, a programmable ADC trigger on the PWM reload cycle, digital dead-time
control, internal shoot-through protection and hardware Fault shutdown.
These features make the dsPIC DSC an ideal solution for high-performance stepper
motor control applications where full control of the full-bridge inverter is required.
Figure 3-1 provides a simplified block diagram of the development board hardware.
FIGURE 3-1:dsPICDEM™ MCSM DEVELOPMENT BOARD BLOCK DIAGRAM
The dsPICDEM™ MCSM Development Board has been designed to accommodate
detachable Plug-in Modules (PIMs). The board supports 100-pin PIMs. The PIM pinout
and function on the dsPICDEM™ MCSM Development Board are provided in Table 3-2.
TABLE 3-1:PIM PIN DESCRIPTION
PIM Pin NumberSignal NamePinout Description
1—N/A
2V
3PWM1H3PWM Output
4PWM2L1PWM Output
5PWM2H1PWM Output
6—N/A
7—N/A
8—N/A
9—N/A
10—N/A
11—N/ A
12—N/A
13{MCLR
14—N/A
15VSSDigital Supply Ground
16V
17—N/A
18PWM2H1PWM Output
19PWM2L1PWM Output
20POTPotentiometer Signal
21—N/A
22POTPotentiometer Signal
23DC_REFDC Bus Voltage (downscaled)
24IMOTOR2Phase 1 Current Signal
25IMOTOR1Phase 2 Current Signal
26PGCDevice Programming Clock Line
27PGDDevice Programming Data Line
28—N/A
29—N/A
30AV
31AV
32—N/A
33—N/A
34—N/A
35DC_REFDC Bus Voltage (downscaled)
36V
37V
38—N/A
39—N/A
40—N/A
DDDigital Supply
}Device Master Clear
DDDigital Supply
DDAnalog Supply
SSAnalog Supply Ground
SSDigital Supply Ground
DDDigital Supply
DS70000610C-page 16 2009-2019 Microchip Technology Inc.
MA330050-1 or else from the Microchip website (www.microchip.com/
DS50002848).
2:Refer to www.microchip.com/mcsm for compatible PIMs released in the
future and their PIM information sheets.
3.1.2Power Stage
The dsPICDEM™ MCSM Development Board features two full-bridge inverters to
accommodate a bipolar stepper motor. The full-bridge inverters can be powered from
a supply of up to 80V.
3.1.2.1MOSFET DRIVER
Although the dsPIC DSC devices can operate in Complementary PWM mode,
Independent PWM mode is still possible. In this case, internal dead-time control and
shoot-through protection circuits are disabled. In order to protect the power stage from
high shoot-through currents in Independent PWM mode, the chosen MOSFET driver
also has a built-in shoot-through protection and a small fixed dead time. In Independent
PWM mode, the development board is suitable for controlling two Brushed DC motors
with full direction control, or up to four DC motors with a single turning direction.
DS70000610C-page 18 2009-2019 Microchip Technology Inc.
Page 19
3.1.2.2SWITCHING TOPOLOGY
T1T2T1T2
PWM1H1PWM1L1
PWM1H2PWM1L2
PWM1H1
PWM1L1
PWM1H2
PWM1L2
T1
PWM1H1PWM1L1
PWM1H2PWM1L2
Driving a stepper motor in a full-bridge topology requires switching the opposite
diagonal MOSFETs on and off, at the same time, in order to reverse the drive current
and to accommodate all possible Decay modes. Since all PWMxHx pins are on at the
same time (for example, PWM1H1 and PWM1H2), it is not possible to drive all of the
high-side MOSFETs with the PWMxHx signals. Figure 3-2 shows the PWM and
MOSFET assignment.
Driving the high PWM pins active will run the current through a motor winding in one
direction, while driving the low PWM pins active will run the current through the winding
in the opposite direction. By using this topology, in addition to the dsPIC PWM override
feature, all Decay modes for the winding current can be achieved.
Refer to Appendix A. “Board Layout and Schematics” for the complete schematic
and PWM pin assignments.
Note: The default gain value is 0.75 V/A, allowing a resolution of 4.3 mA/count
with a 10-bit ADC.
DC_REF
1
28
----- - DC_BUS=
3.1.3Current Sensing
Two shunt resistors are available for current sensing, one for each of the two motor
windings. In order to read both positive and negative currents, the amplifier circuit is
designed with an offset of V
current range of ±2.2A.
To calculate the amplifier gain, use the formula provided in Equation 3-1:
EQUATION 3-1:AMPLIFIER GAIN CALCULATION FORMULA
The formula shown in Equation 3-1 is a simplified version of the complete formula and
is only valid when R
28
are needed, use the above formula to calculate R
and then replace both R
changes for R
and R45.
39
The DC voltage supplied to the power stage is measured with a simple resistor divider.
To calculate the DC_REF signal used for this purpose, use the formula provided in
Equation 3-2:
REF = AVDD/2. The amplifier gain allows for a maximum
= R29 = R33 = R34 and R27 = R35. If changes to the amplifier gain
corresponding to the desired gain,
and R35 with the calculated resistor value. Make the same
27
27
EQUATION 3-2:DC_REF SIGNAL CALCULATION FORMULA
3.1.4Fault Protection
The dsPICDEM™ MCSM Development Board features an overcurrent Fault detection,
which triggers a PWM shutdown. Each phase current is amplified and then compared
with a fixed “safe” current value. A value of 1.7A is set for the dsPICDEM™ MCSM
Development Board; however, the user can change this limit by changing the resistor
divider made by R48 and R51. When either of the two phase currents is above the
“safe” current level, a Fault signal is triggered and the dsPIC DSC hardware module
automatically switches off all PWM outputs.
The Fault LED (D15) is active only when an overcurrent is present in the motor
windings. It will go inactive immediately after the internal dsPIC Fault circuit shuts down
the PWM pins. In this case, the LED will not be visible as the on time is very short. The
Fault LED will only be visible if the Fault is persistent, that is when the software Fault
shutdown is disabled.
WARNING
If the Fault LED is permanently active, power off the board immediately to avoid
damage to the power MOSFETs.
DS70000610C-page 20 2009-2019 Microchip Technology Inc.
Page 21
Hardware
J8
D3-D10
S1
POT1
J2
J1
J4
J3
BP2
BP1
J7
J5
J6
RESET
U2
3.2BOARD CONNECTORS
Figure 3-3 shows the various user interface components available on the dsPICDEM™
MCSM Development Board. Ta b le 3- 2 describes the hardware connection between the
PICkit™ 3, PICkit 4, MPLAB
Emulator, the power supply, and the dsPICDEM™ MCSM Development Board
connectors.
FIGURE 3-3:dsPICDEM™ MCSM DEVELOPMENT BOARD USER INTERFACE COMPONENTS
®
ICD 3 or ICD 4, or MPLAB REAL ICE™ In-Circuit
TABLE 3-2:dsPICDEM™ MCSM DEVELOPMENT BOARD USER INTERFACE
J2ICSP™ Connector for Programming a dsPIC DSC Device
J3ICSP Programmer Interface Connector for Programming the PIC18LF2450
USB-to-UART Bridge
J4USB Interface Port
J524V Power Supply Select Jumper
J624V Input Power Supply Connector
J7Auxiliary Power Supply Select Jumper
J8Motor Power Connector
®
DSC Device
Page 22
dsPICDEM™ MCSM Development Board User’s Guide
3.2.1Input Power Connector (J6, BP1-BP2)
The dsPICDEM™ MCSM Development Board receives the power for control circuits
from a +24V power supply. The 24V supply is always needed as it supplies the
necessary 15V and 3.3V for the dsPIC DSC, and for the interface between the dsPIC
DSC and the power stage. The power stage DC bus voltage can be connected to the
development board through the J6 or BP1-BP2 connectors.
3.2.2DC Bus Power Supply Connector (J5 and J7)
By default, jumper J5 is short and jumper J7 is open, and the +24V input power supply
connected to J6 supplies both the control circuits and the DC bus voltage to the
development board. If jumper J7 is short and jumper J5 is open, the BP1-BP2
connectors supply the DC bus voltage to the development board power stage and J6
supplies the control circuits.
The 0V-80V DC power supply can be connected between BP1-BP2.
3.2.3USB Interface (J4)
The development board uses an on-board PIC18 interface as a bridge between the
UART and the USB. The PIC18 UART pins are connected to the dsPIC devices on
different ports depending on the specific dsPIC device used. For the specific devices
that do not have remappable peripherals, additional UART RX/TX pins are available on
the device-designated port for UART communication.
For dsPIC DSC devices that have an embedded USB port, populate R7, R8, R9 and R10
with 0 resistors, and disable the PIC18 USB communication by removing R84 and R85.
3.2.4ICSP Connector for dsPIC DSC (J1/J2)
The MPLAB® ICD 3 and MPLAB REAL ICE™ connector is an RJ11 female connector
(J1) that connects the MPLAB ICD 3, ICD 4 or MPLAB REAL ICE In-Circuit Debugger
to the dsPIC device for programming and debugging purposes. The PICkit™ 3 or
PICkit 4 In-Circuit Debugger/Programmer can be connected to the board using a 6-pin
ICSP connector (J2).
3.2.5ICSP for PIC18 (J3)
J3 is a 6-pin connector that connects the PICkit 3 In-Circuit Debugger/Programmer to
the PIC18 device. The development board uses the on-board PIC18 interface as a
bridge between the UART and USB. The PIC18 can be programmed for USB
communication.
3.2.6Motor Connector (J8)
The motor connector has eight terminals. Ta bl e 3 - 3 lists the functionality of each terminal.
TABLE 3-3:MOTOR CONNECTOR DETAILS
Terminal NumberDesignatorDescription
1N/CNot Connected
2M1Motor Wire 1 (Phase 1)
3DC+DC Bus Voltage
4M2Motor Wire 2 (Phase 1)
5M3Motor Wire 3 (Phase 2)
6DC+DC Bus Voltage
7M4Motor Wire 4 (Phase 2)
8N/CNot Connected
DS70000610C-page 22 2009-2019 Microchip Technology Inc.
Page 23
Hardware
The connector is configured in such a way so that all eight motor wires can be
connected in all possible configurations. Considering an eight-wire motor in a bipolar
configuration (series or half-winding), two wires will be left floating. The N/C pins are
available to accommodate the two floating wires.
The DC bus connection is placed between wires of two different phases to
accommodate the center tap of a winding in unipolar configurations. Refer to Ta b le 3 - 3
for details on how to connect the motor wires to J8 for all possible configurations.
3.2.7Test Points
Ta bl e 3 - 4 lists the test points that can be used to check various signals.