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.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
DS50002927A-page 4 2020 Microchip Technology Inc.
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL 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.
®
IDE online help.
INTRODUCTION
This preface contains general information that will be useful to know before using the
dsPIC33CK Low-Voltage Motor Control Board. Topics discussed in this preface
include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Website
• Product Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
The user’s guide describes the dsPIC33CK Low-Voltage Motor Control Board. The
document is organized as follows:
• Chapter 1. “Introduction” – This chapter introduces the board and provides a
brief overview of its features.
• Chapter 2. “Board Interface Description” – This chapter provides information
about the board input and output interfaces.
• Chapter 3. “Hardware Description” – This chapter describes the hardware
sections of the board.
• Appendix A. “Schematics and Layout” – This appendix provides board
schematics and layout.
• Appendix B. “Electrical Specifications” – This appendix summarizes the
electrical specifications.
• Appendix C. “Design Details” – This appendix provides design calculations for
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
DS50002927A-page 6 2020 Microchip Technology Inc.
RECOMMENDED READING
This user’s guide describes how to use the dsPIC33CK Low-Voltage Motor Control
Board. The device-specific data sheets contain additional information on programming the
specific microcontroller or Digital Signal Controller (DSC) devices. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources:
dsPIC33CK256MP508 Family Data Sheet (DS70005349)
This document provides device-specific information for the dsPIC33CK256MP508
16-bit Digital Signal Controller with High-Resolution PWM and CAN Flexible Data
(CAN FD).
MCP2200 Data Sheet (DS50002106)
This document provides device-specific information for the MCP2200 USB 2.0 to
UART Protocol Converter with GPIO.
MPLAB® X IDE User’s Guide (DS50002027)
This document describes how to set up the MPLAB X IDE software and use it to
create projects and program devices.
Preface
AN1299, Single-Shunt Three-Phase Current Reconstruction Algorithm for
Sensorless FOC of a PMSM (DS01299)
AN1160, Sensorless BLDC Control with Back-EMF Filtering Using a
Majority Function (DS01160)
AN1078, Sensorless Field Oriented Control of a PMSM (DS01078)
AN1292, Sensorless Field Oriented Control (FOC) for a Permanent
Magnet Synchronous Motor (PMSM) Using a PLL Estimator and Field
Weakening (FW) (DS01292)
AN1017, Sinusoidal Control of PMSM Motors with dsPIC30F DSC
(DS01017)
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in
the Readme subdirectory of the MPLAB X IDE installation directory. The Readme files
contain updated information and known issues that may not be included in this
user’s guide.
For step-by-step instructions to set up and run a motor control application using the
dsPIC33CK Low-Voltage Motor Control Board, refer to the Readme file provided along
with the motor control application code.
dsPIC33 Family Reference Manuals
Specific Family Reference Manuals (FRMs) are available for each module, which
explains the operation of the dsPIC
modules. The specifics of each device family are discussed in their data sheet.
To obtain any of these documents, visit the Microchip website at: www.microchip.com.
dsPIC33CK Low-Voltage Motor Control 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.
Accessible by using your favorite Internet browser, 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
Customers should contact their distributor, representative or 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 (March 2020)
This is the initial released version of this document.
DS50002927A-page 8 2020 Microchip Technology Inc.
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
Chapter 1. Introduction
1.1OVERVIEW
The dsPIC33CK Low-Voltage Motor Control Board is targeted to drive a low-voltage,
three-phase Permanent Magnet Synchronous Motor (PMSM) or Brushless DC (BLDC)
motor using the dsPIC33CK256MP508. This dsPIC
single-core 16-bit DSC with enhanced on-chip peripherals, such as
High-Resolution PWM (HRPWM),12-bit high-speed ADC cores, analog comparators with
DAC, op amps, QEI, CAN-FD, SENT, UART, SPI, I
In some instances of the document text, the dsPIC33CK Low-Voltage Motor Control Board
is also referred to as the ‘Motor Control Board’ to enhance readability. The Motor Control
Board is shown in Figure 1-1.
FIGURE 1-1:dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
DS50002927A-page 12 2020 Microchip Technology Inc.
Chapter 2. Board Interface Description
2.1INTRODUCTION
This chapter provides a more detailed description of the input and output interfaces of the
dsPIC33CK Low-Voltage Motor Control Board. This chapter covers the following topics:
• Board Connectors
• User Interface Hardware
• Pin Functions of the dsPIC DSC
2.2BOARD CONNECTORS
This section summarizes the connectors on the Motor Control Board. The connectors
are intended for:
• Supplying input power to the Motor Control Board
• Delivering inverter outputs to the motor
• Interfacing motor position sensors, such as Hall sensors or the Quadrature
Encoder
• Enabling the user to program/debug the dsPIC33CK256MP508 device
• Interfacing the Click Boards™
• Establishing communication with the host PC
• Interfacing the external temperature sensor (thermistor)
The connectors on the Motor Control Board are shown in Figure 2-1 and summarized
in Ta b le 2 -1 .
J143PopulatedThree-phase inverter output for connecting motor (5 mm pitch,
J162Not Populated Jumper (2.54 mm pitch) which may be optionally used to connect the positive supply
No. of
Pins
StatusDescription
programmer/debugger to Boot Recovery mode through MPLAB
20-30 AWG wire insert)
labeled as ‘A’ on the board
as ‘B’ on the board
female USB Micro-B connector)
12-30 AWG wire insert)
DC
) input of connectors, J1 and J2; shorted by default on the board using PCB trace
(V
®
X IDE
DS50002927A-page 14 2020 Microchip Technology Inc.
Board Interface Description
Auxiliary Power Supply
Three-Phase Inverter
VDC
NT1
Net Tie
J16
Jumper
Populated by Default
J2
J1
PGND
24A
2.5A
PGND
dsPIC33CK Low-Voltage Motor Control Board
Note 1:The Motor Control Board is designed to operate at a DC voltage range of 12V to 48V. When
powering the board through J1, limit the voltage to 24V Max. When the applied voltage is greater
than 24V, always use connector J2 to power the board.
2:When J1 and J2 are shorted through either J16 or NT1, always power the Motor Control Board
using only one connector, either J1 or J2.
2.2.1Power Supply Connectors (J1, J2, J16)
The board is designed to operate in the DC voltage range of 12-48V. As shown in
Figure 2-2, the Motor Control Board can be powered through either coaxial plug J1 or
through terminal connector J2.
FIGURE 2-2:INPUT DC POWER SUPPLY CONNECTORS
(1,2)
If required, the power to the inverter can be disconnected by cutting the trace of the net
tie, NT1, and the rest of the circuitry can be powered through the supply connected to
the coaxial plug J1. The connection between the net tie can be bridged back by populating jumper J16, restoring the connection between J1 and J2, such that either input
connector, J1 or J2, can be used for powering the Motor Control Board. Connector J1
can carry current up to 2.5A and connector J2 can handle up to 24A. Ta bl e 2 -2 and
Ta bl e 2 -3 summarize the pin assignments of connectors, J1 and J2, respectively.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
2.2.2UART Interface Header (J3)
A 5-pin header, J3, is a UART interface provided to connect an external UART-USB
converter or for accessing UART signals by disabling the MCP2200 device (see U13
in Figure A-5). Ta bl e 2 -4 summarizes the pin functions of connector J3.
TABLE 2-4:PIN DESCRIPTION – CONNECTOR J3
Pin #Signal NamePin Description
1+3.3V+3.3V Supply
2DEBUG_TXUART Transmit Pin of dsPIC® DSC
3DEBUG_RXUART Receive Pin of dsPIC DSC
4DGNDDigital Ground
5MCP2200_RSTSetting this Pin Low (connecting to Ground) will
Disable the MCP2200 (U13)
2.2.3USB Serial Interface (J6)
The Motor Control Board uses an on-board MCP2200 device (see U13 in Figure A-5)
as a bridge between the UART and USB (see Table 2-5) for providing the host PC
interface.
TABLE 2-5:PIN DESCRIPTION – CONNECTOR J6
Pin #Signal NamePin Description
0No ConnectionBody is Connected to Digital Ground
15V_USBUSB +5 V
2UART_USB_NUSB Data-
3UART_USB_PUSB Data+
4No Connection—
5GNDDigital Ground
DC
2.2.4Hall Sensor Interface Connector (J7)
Hall sensors are used to detect the rotor position and speed of the motor. Connector
J7 can be used to interface the Hall sensor outputs with the Motor Control Board,
enabling sensor-based BLDC motor control applications. Table 2-6 shows the pin
descriptions of connector J7. The connector provides two supply outputs, +5V and
+3.3V, which can be used as input supplies of the Hall sensors based on the sensor
specification.
TABLE 2-6:PIN DESCRIPTION – CONNECTOR J7
Pin #Signal NamePin Description
1+5V+5V Supply to Hall Sensors
2+3.3V+3.3V Supply to Hall Sensors
3DGNDDigital Ground
4HAHall Sensor A Feedback from the Motor
5HBHall Sensor B Feedback from the Motor
6HCHall Sensor C Feedback from the Motor
DS50002927A-page 16 2020 Microchip Technology Inc.
Board Interface Description
2.2.5Quadrature Encoder Interface Connector (J8)
Quadrature Encoders are used to detect the rotor position and speed of the motor.
Connector J8 can be used to interface the encoder outputs with the Motor Control
Board, enabling sensor-based BLDC/PMSM motor control applications. Ta b le 2 -7
shows the pin description of connector J8. The connector provides two supply outputs,
+5V and +3.3V, which can be used as input supplies to the Quadrature Encoder based
on the encoder specification.
TABLE 2-7:PIN DESCRIPTION – CONNECTOR J8
Pin #Signal NamePin Description
1+5V+5V Supply to Quadrature Encoder
2+3.3V+3.3V Supply to Quadrature Encoder
3DGNDDigital Ground
4QEAQuadrature Encoder Phase A Feedback of the Motor
5QEBQuadrature Encoder Phase B Feedback of the Motor
6INDXQuadrature Encoder INDEX Feedback of the Motor
2.2.6External Temperature Sensor Interface Connector (J9)
The 2-pin connector (2.5 mm pitch) J9 can be used for interfacing a thermistor to the
board. This is not populated by default. When needed, populate the connector with
Part Number B2B-EH-A(LF)(SN) or similar.
2.2.7ICSP™ Header for Programmer/Debugger Interface (J10)
The 6-pin header J10 can be used for connecting the programmer/debugger, for
example, PICkit™ 3, for programming and debugging the dsPIC33CK256MP508.
This is not populated by default. When needed, populate the connector with
Part Number 68016-106HLF or similar. The pin details are provided in Table 2-8.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
2.2.8mikroBUS™ Sockets for Interfacing a Click Board™ (J11, J12)
Two mikroBUS sockets are provided on the Motor Control Board which can be used to
expand the functionality by attaching an add-on board, called a ‘Click Board’. The
mikroBUS sockets, J11 and J12, are labeled as ‘A’ and ‘B’, respectively. The
Motor Control Board implements the mikroBUS socket pinouts, as specified in the
“mikroBUS™ Standard Specifications v2.0” (refer to www.mikroe.com/mikrobus).
The pinout consists of three groups of communication pins (SPI, UART and I
additional pins (PWM, interrupt, analog input, Reset and chip select) and two power
groups (+3.3V-GND and 5V-GND).
For pin mapping information between the dsPIC DSC and the mikroBUS sockets, refer
to the schematics in Section A.1 “Board Schematics and Layout” or
Section 2.4 “Pin Functions of the dsPIC DSC”.
2.2.9USB Connector for PKOB Interface (J13)
This is a standard female USB Micro-B connector that provides USB communication
when interfacing with the PICkit On-Board (PKOB) programming/debugging tool. Pin
assignments for connector J13 are shown in Ta bl e 2 -9 .
TABLE 2-9:PIN DESCRIPTION – CONNECTOR J13
Pin #Signal NamePin Description
2
C), six
0No ConnectionBody is Connected to GND
1VBUSUSB 5V
2D_NUSB Data-
3D_PUSB Data+
4No Connection—
5GNDPKOB Ground (GND)
2.2.10Inverter Output Connector (J14)
The Motor Control Board can drive a three-phase PMSM/BLDC motor. Motor control
inverter outputs are available on connector J14. Pin assignments for connector J14 are
shown in Ta b le 2 - 10 .
TABLE 2-10:PIN DESCRIPTION – CONNECTOR J14
Pin #Signal NamePin Description
1PHASE CPhase 3 Output of Inverter
2PHASE BPhase 2 Output of Inverter
3PHASE APhase 1 Output of Inverter
DS50002927A-page 18 2020 Microchip Technology Inc.
Board Interface Description
LD1
LD2
LD3
LD11
LD10
LD4
LD5
LD7
LD6
LD9
LD8
2.3USER INTERFACE HARDWARE
This section describes the LEDs, push buttons, potentiometer and test points available
on the Motor Control Board.
2.3.1LEDs
The LEDs provided on the Motor Control Board are shown in Figure 2-3 and
summarized in Tab le 2- 11.
FIGURE 2-3:LEDs – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
TABLE 2-11:LEDs
LED
Designator
LD1YellowUSB receive LED activity output. Refer to the “MCP2200 Data Sheet” for more details.
LD2GreenUSB transmit LED activity output. Refer to the “MCP2200 Data Sheet” for more details.
LD3RedPower-on status indication, connected to auxiliary supply output: +3.3V.
LD4GreenIndicates PWM1H (PWM_AH), used for controlling top MOSFET of the inverter Half-Bridge A.
LD5GreenIndicates PWM1L (PWM_AL), used for controlling bottom MOSFET of the inverter Half-Bridge A.
LD6GreenIndicates PWM2H (PWM_BH), used for controlling top MOSFET of the inverter Half-Bridge B.
LD7GreenIndicates PWM2L (PWM_BL), used for controlling bottom MOSFET of the inverter Half-Bridge B.
LD8GreenIndicates PWM4H (PWM_CH), used for controlling top MOSFET of the inverter Half-Bridge C.
LD9GreenIndicates PWM4L (PWM_CL), used for controlling bottom MOSFET of the inverter Half-Bridge C.
LD10YellowUser-defined LED provided for debugging purposes (LED1).
LD11YellowUser-defined LED provided for debugging purposes (LED2).
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
SW1SW2 SW3
SW4
MCLR
2.3.2Push Buttons
The push buttons provided on the Motor Control Board are shown in Figure 2-4 and
summarized in Tab le 2- 12.
The push buttons, SW1, SW2 and SW3, are provided to control motor operations; for
example, starting or stopping the motor. The functions of these push buttons are
defined by the motor control application firmware.
FIGURE 2-4:PUSH BUTTONS – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
TABLE 2-12:PUSH BUTTONS
SI #
1SW1Push button provided for general purpose (BUTTON1).
2SW2Push button provided for general purpose (BUTTON2).
3SW3Push button provided for general purpose (BUTTON3).
4SW4This push button is tied to the MCLR
DS50002927A-page 20 2020 Microchip Technology Inc.
Push Button
Designator
will reset the dsPIC
®
DSC.
LED Indication
pin of the dsPIC33CK256MP508. Pressing this button
Loading...
+ 46 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.