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
Board Interface Description
POT1
2.3.3Potentiometer
The potentiometer on the Motor Control Board (shown in Figure 2-5) is connected to
one of the analog inputs of the device and can be used for setting the speed reference.
FIGURE 2-5:POTENTIOMETER – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
DGND
+12V
+5V
PGND
VDC
PGND
+3.3 VA
+3.3V
DGND
IBUS_EXT
IBUS_FILT_EXT
AGND
VBUS
IBUS
TP12
TP11
VB
VA
VC
IB_EXT
IA_EXT
IA
TP14
AGND
AL
AH
BH
BL
CH
CL
DGND
TP21
HALL_A
HALL_B
HALL_C
QEI_A
QEI_B
QEI_INDEX
QEI_HOME
HOME
DGND
LED1
LED2
IC_EXT
VREF
TP13
IB
2.3.4Test Points
There are several test points on the Motor Control Board to monitor various signals,
such as motor feedback voltages, motor currents, auxiliary supply outputs, etc. These
test points are marked in Figure 2-6 and summarized in Table 2-13.
FIGURE 2-6:TEST POINTS – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
DS50002927A-page 22 2020 Microchip Technology Inc.
Board Interface Description
TABLE 2-13:BOARD TEST POINTS
Test Point #SignalDescription
Power Supply Inputs and Outputs
TP1VDCInput DC Power Supply
TP3+12V+12V Supply – output of on-board MIC28511 device-based
buck converter
TP7PGNDPower Ground
TP22PGNDPower Ground
TP4+5V+5V Supply – output of on-board MCP16301 device-based buck converter
TP5+3.3V+3.3V Digital Supply – output of on-board +3.3V LDO (MCP1826)
TP8DGNDDigital Ground
TP18DGNDDigital Ground
TP19DGNDDigital Ground
TP6+3.3VA+3.3V Analog Supply
TP9AGNDAnalog Ground
TP20AGNDAnalog Ground
Analog Signals
TP17V
IAIAInternal Amplifier (dsPIC33CK256MP508 Op Amp 1) output of Phase A leg
IA_EXTIA_EXTExternal Amplifier (MCP6024 U5A) output of Phase A leg current feedback of
IBIBInternal Amplifier (dsPIC33CK256MP508 Op Amp 2) output of Phase B leg
IB_EXTIB_EXTExternal Amplifier (MCP6024 U5B) output of Phase A leg current feedback of
IC_EXTIC_EXTExternal Amplifier (MCP6024 U5C) output of Phase A leg current feedback of
BUSIBUSInternal Amplifier (dsPIC33CK256MP508 Op Amp 3) output of bus current
I
IBUS_EXTIBUS_EXTExternal Amplifier (U15 MCP651S) output of bus current feedback of inverter
IBUS_FILT_EXT IBUS_FILT_EXTFiltered Bus Current Feedback of Inverter, which is amplified by MCP651S
VAVAPhase A Voltage Feedback
VBVBPhase B Voltage Feedback
VCVCPhase C Voltage Feedback
BUSVBUSDC Bus Voltage Feedback
V
TP14TEMP_LOCALMOSFET Temperature – output of on-board temperature sensor, MCP9700 (U14)
TP21TEMP_EXTOutput of External Temperature Sensor interfaced through connector J9
REF+1.65V Voltage Reference to bias op amp outputs
current feedback of inverter
inverter
current feedback of inverter
inverter
inverter
feedback of inverter
(U15); this output is connected to the negative input of one of the internal
comparators of dsPIC33CK256MP508 (U9) for overcurrent protection
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
TABLE 2-13:BOARD TEST POINTS (CONTINUED)
Test Point #SignalDescription
PWM Outputs
J15-1ALPWM1L Output from dsPIC® DSC, which controls bottom MOSFET of the
Inverter Half-Bridge A
J15-2AHPWM1H Output from dsPIC
Half-Bridge A
J15-3BLPWM2L Output from dsPIC DSC, which controls bottom MOSFET of the
Inverter Half-Bridge B
J15-4BHPWM2H Output from dsPIC DSC, which controls top MOSFET of the Inverter
Half-Bridge B
J15-5CLPWM4L Output from dsPIC DSC, which controls bottom MOSFET of the
Inverter Half-Bridge C
J15-6CHPWM4L Output from dsPIC DSC, which controls top MOSFET of the Inverter
Half-Bridge C
Hall Sensor Feedbacks
HALL_AHALL_AHall Sensor A Feedback connected to dsPIC DSC input
HALL_BHALL_BHall Sensor B Feedback connected to dsPIC DSC input
HALL_CHALL_CHall Sensor C Feedback connected to dsPIC DSC input
Quadrature Encoder Feedbacks
QEI_AQEI_AQuadrature Encoder A Feedback connected to dsPIC DSC input
QEI_BQEI_BQuadrature Encoder B Feedback connected to dsPIC DSC input
QEI_INDEXQEI_INDEXQuadrature Encoder INDEX Feedback connected to dsPIC DSC input
QEI_HOMEQEI_HOMEQuadrature Encoder HOME Feedback connected to dsPIC DSC input
HOMEHOMEThis test point can be optionally used to interface the HOME signal feedback
with the Motor Control Board
LEDs and General Purpose I/Os
LED1LED1LED1 Output from dsPIC
LED2LED2LED2 Output from dsPIC DSC
TP11TP11Connected to the port pin RE4 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output
TP12TP12Connected to the port pin RE5 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output
TP13TP13Connected to the port pin RE15 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output
DSC, which controls top MOSFET of the Inverter
®
DSC
DS50002927A-page 24 2020 Microchip Technology Inc.
2.4PIN FUNCTIONS OF THE dsPIC DSC
The on-board dsPIC33CK256MP508 device (see U9 in Figure A-2) enables the control
of various features of the Motor Control Board through its peripherals and CPU
capability. Pin functions of the dsPIC DSC are grouped according to their functionality
and presented in Ta bl e 2- 14 .
Board Interface Description
TABLE 2-14:dsPIC
Signal
dsPIC DSC Configuration – Supply, Reset, Clock and Programming
+3.3V12, 31, 51, 71V
DGND11, 32, 50, 70V
+3 .3VA25AV
AGND26AV
OSCI34OSCI/CLKI/AN5/RP32/
OSCO35OSCO/CLKO/AN6/RP33/
MCLR
PGD55PGD3/RP37/SDA2/PMA14/
PGC56PGC3/RP38/SCL2/RB6
dsPIC DSC Internal Amplifier Connections for Current Amplification
SHUNT_IA_P20OA1IN+/AN9/PMA6/RA2Operational
SHUNT_IA_N18OA1IN-/ANA1/RA1
IA16OA1OUT/AN0/CMP1A/
SHUNT_IB_P45PGC2/OA2IN+/RP36/RB4Operational
SHUNT_IB_N43PGD2/OA2IN-/AN8/RP35/
IB41OA2OUT/AN1/AN7/ANA0/
SHUNT_IBUS_P 29OA3IN+/AN14/CMP2B/
SHUNT_IBUS_N 28OA3IN-/AN13/CMP1B/
I
BUS
dsPIC® DSC
9MCLRResetConnects to a push button (SW4), ICSP™
23OA3OUT/AN4/CMP3B/
®
DSC PIN FUNCTIONS
Pin #
dsPIC DSC Pin Function
DD
SS
DD
SS
PMD10/PMA10/RB0
PMA1/PMALH/PSA1/RB1
PMCS1/PSCS/RB5
IBIAS0/RA0
RB3
CMP1D/CMP2D/CMP3D/
RP34/SCL3/INT0/RB2
ISRC1/RP50/PMD13/
PMA13/RC2
ISRC0/RP49/PMA7/RC1
IBIAS3/RA4
dsPIC DSC
Peripheral
Supply+3.3V digital supply to dsPIC DSC
Oscillator with PLL Connects to crystal (X2) on the board
In-Circuit Serial
Programming™
(ICSP™) or
In-Circuit Debugger
Amplifier 1
(Op Amp #1) and
Dedicated ADC
Core #0
Amplifier 2
(Op Amp #2) and
Dedicated ADC
Core #1
Operational
Amplifier 3
(Op Amp #3) and
Shared ADC Core
Remarks
Digital ground
+3.3V analog supply to dsPIC DSC
Analog Ground
header (J10) and PKOB circuit
Connects to ICSP header (J10) and
PKOB programming/debugging tool
Differential current feedback from shunt
resistor Rsh1 connects to noninverting and
inverting inputs of Op Amp #1 through input
resistors
Op Amp #1 output, which is amplified Phase A
current. For the output to be available, configure and enable Op Amp #1, populate the
resistor R125 (0R) in the amplifier feedback
and remove R121 if populated
Differential current feedback from shunt
resistor Rsh2 connects to noninverting and
inverting inputs of Op Amp #2 through input
resistors
Op Amp #2 output, which is amplified Phase B
current. For the output to be available, configure and enable Op Amp #2, populate the
resistor R133 (0R) in the amplifier feedback
and remove R129 if populated
Differential current feedback from shunt
resistor Rsh4 connects to noninverting and
inverting inputs of Op Amp #3 through input
resistors
Op Amp #3 output, which is amplified bus
current. For the output to be available, configure and enable Op Amp #3, populate the
resistor R141 (0R) in the amplifier feedback
and remove R137 if populated
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
TABLE 2-14:dsPIC® DSC PIN FUNCTIONS (CONTINUED)
Signal
Amplified Currents from External Amplifiers: U5 and U15
IA_EXT16OA1OUT/AN0/CMP1A/
IB_EXT41OA2OUT/AN1/AN7/ANA0/
IBUS_EXT23OA3OUT/AN4/CMP3B/
Overcurrent Detection and Fault Output
IBUS_FILT_EXT 21DACOUT1/AN3/CMP1C/RA3 High-Speed Analog
Voltage Feedbacks
V_BUS33AN15/CMP2A/IBIAS2/RP51/
V_A30AN17/ANN1/IBIAS1/RP54/
V_B19AN23/RE3Shared ADC Core Phase B voltage feedback
V_C17AN22/RE2Shared ADC Core Phase C voltage feedback
Temperature Feedbacks and Potentiometer (POT #1 – Speed Reference)
TEMP_LOCAL15AN12/ANN0/RP48/RC0Shared ADC Core MOSFET die temperature sensed by
TEMP_EXT58TDO/AN2/CMP3A/RP39/
SPEED_
REFERENCE
Hall Sensor Feedbacks (Interfaced via Connector J7)
HALL_A42RE8I/O Ports and
HALL_B44RE9
HALL_C57RE10
Quadrature Encoder Feedbacks (Interfaced via Connector J8)
QEI_A5RP60/PWM8H/PMD7/RC12 Remappable
QEI_B6RP61/PWM8L/PMA5/RC13
QEI_INDEX7RP62/PWM6H/PMA4/RC14
QEI_HOME8RP63/PWM6L/PMA3/RC15
Debug Interface (J6, J5 or PKOB)
DEBUG_RX13RP78/PCI21/RD14Remappable
DEBUG_TX14ANN2/RP77/RD13
dsPIC® DSC
Pin #
61PGC1/AN11/RP41/SDA1/RB9 Shared ADC Core Potentiometer (POT1) can be used for setting
dsPIC DSC Pin Function
IBIAS0/RA0
CMP1D/CMP2D/CMP3D/
RP34/SCL3/INT0/RB2
IBIAS3/RA4
PMD11/PMA11/RC3
PMD12/PMA12/RC6
SDA3/RB7
dsPIC DSC
Peripheral
Dedicated ADC
Core #0
Dedicated ADC
Core #1
Shared ADC Core Bus current amplified by the amplifier U15;
Comparator #1
(CMP #1) and
DAC #1
Shared ADC Core DC bus voltage feedback
Shared ADC Core Phase A voltage feedback
Shared ADC Core Feedback from external temperature sensor
Change
Notification (CN)
feature of I/O and
QEI
function of I/O and
UART
Phase Current A amplified by the amplifier
U5-A; when using this output, populate the
resistor R121 (0R), remove the resistor R125 if
populated and disable dsPIC DSC Operational
Amplifier #1
Phase Current B amplified by the amplifier
U5-B; when using this output, populate the
resistor R129 (0R), remove the resistor R133,
if populated and disable dsPIC DSC
Operational Amplifier #2
when using this output, populate the resistor
R137 (0R), remove the resistor R141, if populated and disable dsPIC DSC Operational
Amplifier #3
Amplified bus current is further filtered prior to
connecting to the positive input of the CMP #1
used for overcurrent detection. Overcurrent
threshold can be set through DAC. Comparator
output is internally available as Fault input of the
PWM Generators so that it can be used for
shutting down PWMs without CPU intervention.
MCP9700 (U14) can be used for thermal
protection
interfaced via connector J9
the speed reference in motor control application
Change Notification interrupt can be enabled
to identify the transitions of any of the Hall
sensor inputs
QEI module can be configured to read position
or speed information based on the encoder
signals as required by the motor control
application
These signals are connected to MCP2200
(U13), header J5 and PKOB; connect and
disconnect appropriate jumper resistors to
establish serial communication via any of
these channels
Remarks
DS50002927A-page 26 2020 Microchip Technology Inc.
Board Interface Description
TABLE 2-14:dsPIC® DSC PIN FUNCTIONS (CONTINUED)
Signal
PWMs for Controlling Three-Phase Inverter (Q1 to Q6)
PWM_AH1RP46/PWM1H/PMD5/RB14 PWM Generator #1 Controls top MOSFET Q1 of the Inverter
PWM_AL3RP47/PWM1L/PMD6/RB15Controls bottom MOSFET Q2 of the Inverter
PWM_BH78TDI/RP44/PWM2H/PMD3/
PWM_BL80RP45/PWM2L/PMD4/RB13Controls bottom MOSFET Q4 of the Inverter
PWM_CH73RP65/PWM4H/RD1PWM Generator #4 Controls top MOSFET Q5 of the Inverter
PWM_CL74RP64/PWM4L/PMD0/RD0Controls bottom MOSFET Q6 of the Inverter
User Interface (LEDs, Push Buttons, General Purpose I/Os)
LED137RE6I/O PortsConnected to general purpose LED LD10
LED239RE7Connected to general purpose LED LD11
BUTTON159RE11Connected to push button SW1
BUTTON262RE12Connected to push button SW2
BUTTON364RE13Connected to push button SW3
TP1122RE4Test point TP11 can be optionally used as a
TP1224RE5Test point TP12 can be optionally used as a
TP1379RE15Test point TP13 can be optionally used as a
Click Board™ Socket A Signals (J11)
CLICK_AN_A4AN21/RE1Analog Channel or
CLICK_RST_A77RE14GPIO
CLICK_CS_A75TMS/RP42/PWM3H/PMD1/
CLICK_SCK_A27RP76/RD12Can be configured
CLICK_MISO_A 38AN18/CMP3C/ISRC3/RP74/
CLICK_MOSI_A 36AN19/CMP2C/RP75/PMA0/
CLICK_SDA_A68RP68/ASDA3/RD4Alternate I
CLICK_SCL_A69RP67/ASCL3/RD3
CLICK_TX_A40AN16/ISRC2/RP55/PMD8/
CLICK_RX_A52RP71/PMD15/RD7
CLICK_INT_A10RP79/PCI22/PMA2/RD15Can be configured
CLICK_PWM_A 76TCK/RP43/PWM3L/PMD2/
dsPIC® DSC
Pin #
dsPIC DSC Pin Function
RB12
RB10
PMD9/PMA9/RD10
PMALL/PSA0/RD11
PMA8/RC7
RB11
dsPIC DSC
Peripheral
Phase A
Phase A
PWM Generator #2 Controls top MOSFET Q3 of the Inverter
GPIO
Remappable Pin or
PWM or GPIO
as SPI Input/
Output or Clock
through
Remappable
Feature
and Clock Pins of
2
I
C #3
Can be configured
as UART RX and
TX through
Remappable
Feature
as Interrupt Pin
through
Remappable
Feature
Can be configured
as SCCP Input or
Output or use PWM
Generator Output
2
C Data
Phase B
Phase B
Phase C
Phase C
general purpose input or output
general purpose input or output
general purpose input or output
Click Board socket is provided to extend the
feature by interfacing appropriated Click
Boards.
Pin feature requirement changes are based on
the Click Board inserted in the socket; the
signals are allocated as per the general
requirements.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
TABLE 2-14:dsPIC® DSC PIN FUNCTIONS (CONTINUED)
Signal
Click Board™ Socket B Signals (J12)
CLICK_AN_B2AN20/RE0Analog Input or
CLICK_RST_B72RP66/RD2Remappable Pin or
CLICK_CS_B48RP73/PCI20/RD9Remappable Pin or
CLICK_SCK_B46RP56/ASDA1/SCK2/RC8Dedicated SPI #2
CLICK_MISO_B 49RP72/SDO2/PCI19/RD8
CLICK_MOSI_B 47RP57/ASCL1/SDI2/RC9
CLICK_SDA_B63RP52/PWM5H/ASDA2/RC4Alternate I
CLICK_SCL_B65RP53/PWM5L/ASCL2/
CLICK_TX_B54RP69/PMA15/PMCS2/RD5Can be configured
CLICK_RX_B53RP70/PMD14/RD6
CLICK_INT_B67RP59/PWM7L/RC11Can be configured
CLICK_PWM_B 66RP58/PWM7H/PMRD/
dsPIC® DSC
Pin #
dsPIC DSC Pin Function
PMWR/PMENB/PSWR/RC5
PMWR/PSRD/RC10
dsPIC DSC
Peripheral
GPIO
GPIO
PWM or GPIO
Pins
2
and Clock Pins of
2
I
C #2
as UART RX and
TX through
Remappable
Feature
as Interrupt Pin
through
Remappable
Feature
Can be configured
as SCCP Input or
Output or use as
PWM Generator
Output
C Data
Remarks
Click Board socket is provided to extend the
feature by interfacing appropriated Click
Boards.
Pin feature requirement changes based on the
Click Board inserted in the socket; the signals
are allocated as per the Click Board signal
generic requirements.
DS50002927A-page 28 2020 Microchip Technology Inc.
Chapter 3. Hardware Description
3.1INTRODUCTION
This chapter provides a detailed description of the hardware features of the
dsPIC33CK Low-Voltage Motor Control Board. The Motor Control Board is intended to
demonstrate the capability of the dsPIC33CK family of single core Digital Signal
Controllers (DSCs) for motor control applications.
The motor control inverter on the Motor Control Board is controlled by the highest pin
count variant dsPIC33CK256MP508 device from the dsPIC33CK family. The Motor
Control Board incorporates a Hall sensor/Quadrature Encoder Interface (QEI), and
sensing circuits to measure DC voltage, phase voltages, bus current and phase
currents, etc. In addition, a USB-UART interface, mikroBUS™ sockets and a PICkit™
On-Board (PKOB) programmer/debugger circuit are provided.
The motor control inverter can be operated by using an input voltage in the range of
12V to 48V and can deliver a continuous output phase current of 10A (RMS) in the
specified operating range. For more information on electrical specifications, see
Appendix B. “Electrical Specifications”.
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE
3.2HARDWARE SECTIONS
This chapter covers the following hardware sections of the dsPIC33CK Low-Voltage
Motor Control Board:
• dsPIC33CK256MP508 and Auxiliary Circuits
• Power Supply
• Three-Phase Inverter Bridge
• Current Sensing Circuits
• Voltage Sensing Circuit
• Hall Sensor/Quadrature Encoder Interface
• External Temperature Sensor Interface
• User Interface
• Debug Serial UART Interface
• mikroBUS™ Sockets
• Programmer/Debugger Interface
Figure 3-1 and Ta b le 3 -1 describe the hardware sections of the Motor Control Board.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
1
11
9
8
10
4
4
1
8
4
4
3
6
7
2
5
FIGURE 3-1:HARDWARE SECTIONS
TABLE 3-1:HARDWARE SECTIONS
Section No.Hardware Sections
1dsPIC33CK256MP508 and Auxiliary Circuits
2Power Supply
3Three-Phase Inverter Bridge
4Current Sensing Circuits
5Voltage Sensing Circuit
6Hall Sensor/Quadrature Encoder Interface
7External Temperature Sensor Interface
8User Interface
9Debug Serial UART Interface
10mikroBUS™ Sockets
11Programmer/Debugger Interface
DS50002927A-page 30 2020 Microchip Technology Inc.
Hardware Description
3.2.1dsPIC33CK256MP508 and Auxiliary Circuits
The dsPIC33CK Low-Voltage Motor Control Board features the dsPIC33CK256MP508
from Microchip’s dsPIC
®
DSC portfolio. dsPIC33C family devices implement a
100 MIPS high-performance dsPIC DSC core, and also integrate analog peripherals,
such as high-speed ADCs, op amps and analog comparators. The device also implements up to 16-channel, high-resolution Pulse-Width Modulators (PWMs) with built-in
Fault protection, triggering and synchronization features, which makes this dsPIC
device an ideal platform for the development of time-critical PMSM/BLDC motor control
applications.
The high-resolution PWM module in the dsPIC33C can generate, at specific instances,
multiple ADC triggers for measuring motor currents, phase voltages, inverter input voltage, total bus inverter current, etc. These feedbacks are required for implementing
motor control algorithms, such as sensor or sensorless Field-Oriented Control (FOC),
torque control, trapezoidal control, initial position detection, wind milling, flux
weakening and single-shunt current reconstruction. The PWM Control Input (PCI) of
the PWM module can be used for shutting down PWM outputs immediately when a
Fault is detected and synchronizing multiple PWM Generators (PGs) used for
controlling the three-phase inverter bridge.
The comparator module, along with the Digital-to-Analog Converter (DAC), can be
used for detecting overcurrent or overtemperature Faults to protect the inverter or
motor in case of malfunction. The dsPIC DSC has three operational amplifiers. These
can be configured by connecting an external input and feedback resistors for amplifying
currents sensed by shunt resistors.
The Change Notification (CN) feature of the I/O ports, along with the timer, can be used
for detection of Hall sensor state changes to obtain position and speed of the motor in
sensor-based BLDC motor control applications. Similarly, the Quadrature Encoder
Interface (QEI) in the dsPIC DSC can be configured to obtain the position/speed
information from the Quadrature Encoder feedbacks of the motor, which are required
for sensor-based Field-Oriented Control of PMSMs.
The dsPIC DSC also integrates several communication peripherals, such as CAN FD,
SENT, SPI, I
2
C and UART for communicating with the host PC, central controller or
master controller. Additionally, it features a Watchdog Timer, Deadman Timer, ECC
engine and BIST module required for safety-critical applications.
In the Motor Control Board, a provision is provided to mount an external crystal
oscillator to use its output as the dsPIC DSC clock input. Push button SW4 is tied to
the MCLR
pin of the device and is provided to reset the dsPIC DSC. One of the
program/debug pin pairs, PGC3/PGD3, of the dsPIC device is connected to the
programmer/debugger interfaces provided on the Motor Control Board, along with
MCLR
, to allow programming/debugging of the dsPIC33CK256MP508. Decoupling
capacitors are provided on all the power supply pins of the dsPIC DSC, including the
V
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
DC-DC
Converter
(MIC28511)
DC-DC
Converter
(MCP16301)
+3.3V Output
LDO
(MCP1826)
+5V
Input Terminal
Input Jack
MIC4605 x 3
Half-Bridge MOSFET Drivers
VDC
J16
Jumper
NT1
Net Tie
AGND
3.2.2Power Supply
The Motor Control Board can be powered through coaxial plug J1 or terminal connector
J2. Connector J1 can carry current up to 2.5A and connector J2 can handle up to 24A.
The board is designed to operate in the DC voltage range of 12-48V. DC link capacitors
are placed in parallel with the input to minimize the effects of voltage variation, depending on the load, and to reduce ripple currents generated by the motor control inverter
during switching. The power supply block diagram is shown in Figure 3-2.
The input DC supply connects to the motor control inverter and auxiliary power supply.
The auxiliary power supply section consists of two DC-DC converters and an LDO voltage regulator. The MIC28511 synchronous buck converter generates +12V output,
which powers the three half-bridge gate drivers used for driving the MOSFETs of the
three-phase inverter. The MCP16301 buck converter generates a +5V output, which is
provided to power the speed/position sensors interfaced via connectors, J7 and J8, and
the Click Boards™ interfaced via the mikroBUS™ sockets, J11 and J12. The fixed 3.3V
LDO MCP1826 generates +3.3V, which powers all logical circuits, including the
dsPIC33CK256MP508, operational amplifiers, mikroBUS sockets, USB to UART
converter, user interface elements, temperature sensors, speed/position sensors and
programmer/debugger Interfaces.
FIGURE 3-2:POWER SUPPLY BLOCK DIAGRAM
Three-Phase Inverter
Three-Phase Inverter Bridge
J2
Connector
+12V
+3.3 VA
+3.3V
Auxiliary Power Supply
PGND
+12V Output
+5V Output
J1
Connector
DGND
The 3.3V digital and analog supply, and ground connections are logically separated
using jumper resistors. In the Motor Control Board design documents, the digital
supply, digital ground, analog supply and analog ground are labeled as +3.3V, DGND,
+3.3 VA and AGND, respectively.
When required, the power to the inverter can be separated by cutting the trace between
net tie NT1. Then, the rest of the circuitry can be powered through the coaxial plug J1
and only the three-phase inverter powered through connector J2. The connection
between the net tie can be bridged back by populating jumper J16, restoring
connections between J1 and J2.
For additional details, refer to C.3 “Auxiliary Power Supply”, Section 2.2.1 “Power
Supply Connectors (J1, J2, J16)” and Figure A-1.
DS50002927A-page 32 2020 Microchip Technology Inc.
Hardware Description
+3.3 VA
R117
10k
R119
2.49k
U10
DNP
R120
7.5k
C74
DNP
C75
0.1 µF
AGNDAGNDAGND
R114
1k
C70
1000 pF
U5D
-D
+D
OUTD
MCP6024
R118
20R
V
REF
TP17
C72
0.1 µF
V
REF
13
12
14
1
32
3.2.3Three-Phase Inverter Bridge
The three-phase motor power stage is implemented using six N-channel MOSFETs,
configured as three half-bridges. A resistor is connected across the gate and source of
each MOSFET to ensure a soft turn-off of the MOSFET when the gate signal is
disconnected. Low-ESR ceramic capacitors are provided across each half-bridge for
filtering high-frequency noise. The output of the three-phase inverter bridge is available
on connector J14.
Three half-bridge gate drivers (3 x MIC4605) are used for driving the low-side and
high-side MOSFETs of the motor control inverter. The high-side driver is powered by the
bootstrap circuit. The bootstrap circuit consists of an internal diode and an external
capacitor connected across to the gate driver HS and HB pins. The input pull-down resistors are internal to the gate driver. The gate drivers are powered by a +12V supply. Even
though the HS pin is rated for negative voltage, a diode resistor clamp is provided to
clamp the negative voltage on the HS pin to prevent excessive negative voltage from
damaging the driver. Depending upon the application and amount of negative voltage on
the switch node, a different resistor and diode can be selected. For more information,
refer to the “MIC4605 Data Sheet” (DS20005853) at: www.microchip.com.
3.2.4Current Sensing Circuits
3.2.4.1VOLTAGE REFERENCE CIRCUIT
The Reference Voltage (V
REF) is generated on the Motor Control Board; it is half the
analog supply voltage (+3.3 VA), that is, approximately +1.65V. This is used for providing a DC voltage shift on the op amp output, allowing measurement of positive and
negative current swings as a single supply amplifier is used for current amplification.
The reference circuit (see Figure 3-3) is built around one of the MCP6024 op amps
(labeled as ‘D’). The resistors, R117, R119 and R120, form the voltage divider circuit
and generate a voltage equal to half of the analog voltage (+3.3 VA). The op amp, U5D
(MCP6024-D), is used as a buffer. The resistors, R114, R118 and C70, form a compensation circuit to drive capacitive loads, where C70 acts as a high-frequency feedback
path and R114 is used as a feedback path for low-frequency signals. The reference
voltage is connected to the inputs of the current sensing amplifiers providing DC bias
to amplifier outputs.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
3.2.4.2CURRENT AMPLIFIERS
Field-Oriented Control (FOC) of the PMSM/BLDC motor requires the motor phase
current information for implementation. In the Motor Control Board, shunt resistors,
Rsh1, Rsh2 and Rsh3, are provided in each inverter leg to measure the amount of
current flowing through the motor phases. An additional shunt resistor, Rsh4, is
provided for sensing the total bus current as this information is necessary for overcurrent protection and current control of BLDC motors. The DC bus current information
can also be used for reconstruction of motor phase currents by appropriately sampling
currents during the PWM switching period, which is called a single-shunt reconstruction
algorithm.
Noninverting differential amplifier configuration is used for amplifying the voltage drop
across the shunt resistors proportional to the currents flowing through three-phase
Inverter Phases A, B and C, and bus current, respectively. The output voltage of the
amplifiers is shifted by Voltage Reference (V
current swings. The Common-mode and Differential-mode filters are added between
the input pins of all the amplifiers for noise filtering. It is also possible to add filters at
the output of the external amplifiers, U5-A, U5-B, U5-C
and U15.
The block diagram in Figure 3-4 illustrates the interconnections between the external
amplifiers and the dsPIC DSC analog peripherals, including internal amplifiers,
comparator, ADC, etc. The Motor Control Board enables phase and bus current amplification through external amplifiers, U5 and U15, and dsPIC DSC internal amplifiers,
Op Amp 1 (OA1), Op Amp 2 (OA2) and Op Amp 3 (OA3). The op amps, OA1, OA2 and
OA3, that are internal to dsPIC33CK256MP508, are used for Phase A, Phase B and
bus current amplification. Three out of four amplifiers (U5-A, U5-B and U5-C) in the
quad amplifier, MCP6024, are configured to amplify current flowing through Inverter
Phases A, B and C. Amplified Phase C current (IC_EXT) is connected directly to an
analog input of the dsPIC DSC. The selection between internal and external amplifier
outputs is done via resistor jumpers (see Table 3-2) for Phase A, Phase B and the bus
currents when they are used as current feedbacks.
The op amp, MCP651S (U15), is added for DC bus current amplification. This amplifier
is configured to sense bus current. The U15 amplifier output is further filtered
(IBUS_FILT_EXT) and is connected to the internal Comparator 1 positive input
(CMP1C). The Comparator 1 negative input is configured to use the internal DAC output to set the overcurrent threshold. The Comparator 1 output (CMP1) generates an
active-high output when overcurrent is detected. This comparator output is available to
the PWM Generators of the high-resolution PWM module as a Fault input. If the Fault
is enabled in the PWM Generators, and CMP1 is selected as an active-high Fault
source during an overcurrent Fault condition, the motor control PWMs will be disabled,
thus protecting the MOSFETs.
REF) +1.65V to allow positive and negative
DS50002927A-page 34 2020 Microchip Technology Inc.
Hardware Description
TABLE 3-2:SELECTION BETWEEN EXTERNAL AND INTERNAL AMPLIFIER OUTPUTS
The gain of the amplifier used for phase current and bus current sensing is set for
sensing 22A peak current by default. The gain of the amplifier can be changed, as
required by the application, by modifying the amplifier input and feedback resistors.
For more information, refer to C.2 “Current Amplifier Circuits”.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
PGND
Three-Phase Inverter Bridge
)
)
)
REF
REF
REF
REF
REF
REF
REF
DAC
REF
AGND
T
IB
0R
R125
IA
0R
R133
0R
R141
R137
I
BUS
Note 1:This is a representational diagram only; for detailed schematics, refer to Appendix A. “Schematics
and Layout”.
FIGURE 3-4:CURRENT SENSE CONFIGURATION
Phase A Current (-)
Phase A Current (+)
Phase B Current (-)
Phase B Current (+)
Phase C Current (-)
Phase C Current (+)
+1.65V (+3.3VA/2)
Phase A Current (+)
Phase A Current (-
V
(+1.65V)
V
(+1.65V)
V
(+1.65V)
V
(+1.65V)
Rsh1 (0.010ȍ)
Phase B Current (+)
Rsh1 (0.010ȍ)
Phase B Current (-
Bus Current (+)
Rsh1 (0.010ȍ)
Bus Current (-)
MCP6024
-
U5A
+
-
U5B
+
-
U5C
+
IA_EX
Phase A Current (-)
Phase A Current (+)
V
IB_EXT
Phase B Current (-)
Phase B Current (+)
V
IC_EXT
IBUS_EXT
Bus Current (-)
Bus Current (+)
V
-
U5D
+
(1)
VDC
Phase C Current (+)
Phase C Current (-)
(+1.65V)
(+1.65V)
(+1.65V)
Rsh1 (0.010ȍ
R121
DNP
R129
DNP
DNP
dsPIC33CK256MP508
-
OA1
+
-
OA2
+
ADC
-
OA3
+
HRPWM
PG1
PG2
PG4
Fault PCI I/P
Bus Current (-)
Bus Current (+)
V
(+1.65V)
DS50002927A-page 36 2020 Microchip Technology Inc.
MCP651S
-
U15
+
R108
IBUS_FILT_EXT
C66
-
CMP1
+
3.2.5Voltage Sensing Circuit
VBUS
301R
R83
V_BUS
DC Bus Voltage
VDC
3.3k
R87
0.1 μF
C52
V_A
V_B
PHASE_A
PHASE_B
V_C
PHASE_C
3.3k
R86
VB
301R
R82
3.3k
R84
VC
301R
R80
VA
301R
R81
3.3k
R85
1
2
3
BAS40-04
D6
1
2
3
BAS40-04
D5
1
2
3
BAS40-04
D4
1
2
3
BAS40-04
D7
AGNDAGNDAGNDAGND
AGND
AGND
AGNDAGND
34k
R76
34k
R73
34k
R74
34k
R77
34k
R69
34k
R68
34k
R67
34k
R70
+3.3VA+3.3 VA
+3.3 VA
+3.3 VA
1000 pF
C51
1000 pF
C49
1000 pF
C50
A voltage sensing network is provided to scale down the DC supply voltage powering
the inverter to connect it to an analog channel of the dsPIC DSC for voltage measurement. The voltage divider network, formed by resistors, R69, R77 and R87, divides the
DC input voltage (V
DC input voltage (V_BUS) is connected to the analog input pin of the dsPIC DSC for
measurement.
FIGURE 3-5:VOLTAGE SENSING CIRCUIT
The Motor Control Board can also be to used to run BLDC motors with a trapezoidal
commutation scheme by monitoring back-EMF signals. For such an application, the
motor back-EMF is scaled down by voltage dividers before they are applied to the
analog channels of the dsPIC DSC. The filter capacitors are provided to filter the noise.
The voltage divider network divides phase voltages (PHASE_A, PHASE_B and
PHASE_C) at a voltage scaling ratio of 1:21.6 (see Figure 3-5). The scaled back-EMF
signals (V_A, V_B and V_C) are connected to analog input pins of the dsPIC DSC.
In case of any voltage transients, kickbacks or resistor failures, the clamping diodes are
provided at the scaled voltage outputs to ensure the voltages at the analog inputs do
not exceed the voltage limits of the dsPIC DSC inputs.
DC) at a voltage scaling ratio of 1:21.6 (see Figure 3-5). The scaled
Hardware Description
3.2.6Hall Sensor/Quadrature Encoder Interface
The Motor Control Board can also be used to run PMSM/BLDC motor control
applications using the Hall sensor/Quadrature Encoder to determine rotor position and
speed. The connectors, J7and J8, are provided to interface Hall sensor feedback and
encoder feedback, respectively, with the Motor Control Board. The Hall sensor and
Quadrature Encoder Interface circuit supports either open-collector or push-pull
output sensors.
The Hall sensors and Quadrature Encoder can be powered by the +5V supply or +3.3V
supply available through the interface connector terminals. A capacitor is added to
each signal output to reduce the noise. The voltage divider can be configured to scale
down the sensor signal, from a +5V level to a +3.3V level, when push-pull output
sensors are powered by a +5V supply. For circuit details, refer to Figure A-6 in
Appendix A. “Schematics and Layout”.
The connector J7 and J8 pinouts are summarized in Section 2.2.4 “Hall Sensor
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
AGND
DNP
R98
AGND
TEMP_EXT
DNP
R93
DNP
C57
1
2
DNP
J9
+3.3 VA
TEMP_EXT
TP21
3.2.7External Temperature Sensor Interface
The Motor Control Board provides an optional external temperature sensor interface
circuit. This circuit can be used to interface a thermistor for measuring motor winding
temperature, etc. As shown in Figure 3-6, the temperature sensor and resistor R98
form a +3.3V analog supply voltage divider, setting the voltage proportional to the
temperature at the analog input of the dsPIC DSC. To reduce the noise, temperature
feedback can be further filtered by the RC filter, R93 and C57. This circuit is not
populated by default. When used, populate the connector J9 with
Part Number B2B-EH-A(LF)(SN) or similar, and components, R98, R93 and C57,
appropriately.
FIGURE 3-6:EXTERNAL TEMPERATURE INTERFACE CIRCUIT
3.2.8User Interface
The dsPIC33CK Low-Voltage Motor Control Board user interface has three
push buttons, along with a potentiometer and LEDs. The potentiometer (POT1) can be
used for setting the speed reference, LEDs (LD11, LD12) are for status indication and
the general purpose push buttons (SW1, SW2 and SW3) can be used to start and stop
the motor. The LEDs, LD4 to LD9, indicate the presence of PWM outputs, which are
used for controlling the motor control inverter. Additionally, test pads (TP11, TP12 and
TP13) are provided on the unused pins of the dsPIC33CK256MP508, which can be
configured and used as general purpose inputs or outputs based on application
requirements.
For details, refer to Section 2.3 “User Interface Hardware”.
DS50002927A-page 38 2020 Microchip Technology Inc.
3.2.9Debug Serial UART Interface
(U9)
(U13)
2
PKOB
Circuit
The board is equipped with a USB-UART interface based around the IC MCP2200. The
MCP2200 is a USB 2.0 to UART protocol converter with GPIO from the Microchip
‘Interfacing and Connectivity’ product portfolio. For a detailed description of these
products and the “MCP2200 Data Sheet” (DS20002228), visit the Microchip website:
www.microchip.com.
FIGURE 3-7:DEBUG SERIAL UART INTERFACE
Hardware Description
dsPIC33CK256MP508
DEBUG_TX
DEBUG_RX
R49 0R
R50 0R
The interconnections of debug serial UART Rx and Tx (labeled as DEBUG_RX and
DEBUG_TX) signals from the dsPIC33CK256MP508 are shown in Figure 3-7. These
signals are provided primarily to interface with MCP2200. To establish serial communication between the host PC and the Motor Control Board, connect a USB cable
between the host PC and Micro-B connector J6, which connects to the MCP2200
USB-UART converter. This USB-UART connection setup can support a baud rate of up
to 1 Mbps.
There is an additional header, J3, which is provided on the board to allow interfacing of
any other USB-UART serial converters. As shown in Figure 3-7, the UART Tx and Rx
signals between the dsPIC33CK256MP508 are connected to J3 (Pins #2 and #3).
When interfacing an external USB to UART converter through connector J3, disable
the on-board MCP2200 by holding its RST pin low. This can be done by connecting Pin
Number 5 of the J3 connector to DGND or removing resistor R153 (4.7k) and
populating R159 (4.7k).
The Rx and Tx signals of the dsPIC33CK256MP508 are connected to the PKOB circuit
by populating jumper resistors, R49 and R50, with 0 Ohms. This will allow the PICkit
On-Board (PKOB) programming/debugging tool to also be used as a debug serial
interface through the virtual COM port feature of the tool.
Collaterals, such as the USB driver, information related to driver installation and how to
access ports for operating systems (Linux
Microchip website (http://www.microchip.com/MCP2200). Under Windows OS, after
successful driver installation, the device will appear as the ‘COMx’ port object which
standard terminal programs can open to read and write data.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
The MPLAB® X IDE hosts two plug-ins, which allow real-time diagnostics through a
serial USB-UART interface with external host PC. These are:
• X2C-Scope from the Linz Center of Mechatronics GmbH for use with the
X2C-Scope plug-in for MPLAB X IDE.
• RTDM from Microchip for use with the MPLAB DMCI plug-in.
3.2.10mikroBUS™ Sockets
The Motor Control Board has two mikroBUS sockets, labeled ‘A’ and ‘B’. These
sockets are provided to attach mikroBUS add-on boards, called Click Boards™, to
expand the capability of the Motor Control Board by adding sensors, displays, storage
and communication interfaces. One hundred plus unique Click Boards are available
based on Microchip products (visit https://www.mikroe.com/brands/microchip) in categories, such as wireless connectivity (Wi-Fi, Bluetooth
position sensors, remote temperature, thermocouple, ECG, IrDA
LIN, Ethernet
®
, DALI™, EtherCAT), mixed signal (ADC, DAC), storage (EEPROM,
Flash, SRAM) and security, for example.
The mikroBUS socket comprises a pair of 1x8 female headers with an exclusive pin
configuration. The pinout consists of three communication interfaces, SPI, UART and
2
I
C, six additional pins for PWM, interrupt, analog input, Reset and chip select, and two
power groups, +3.3V and 5V. For available Click Boards, visit www.mikroe.com.
It is recommended that users verify that the connection requirement of the specific
Click Board is satisfied prior to interfacing. 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”. These
interfaces are not isolated from the input supply connected to the Motor Control Board.
®
, LoRa®), sensors (inductive
®
), interfaces (CAN,
DS50002927A-page 40 2020 Microchip Technology Inc.
Hardware Description
3.2.11Programmer/Debugger Interface
The board has a PICkit™ On-Board (PKOB) programming/debugging tool, which can
be used to program and debug the target device: dsPIC33CK256MP508 (U9). The
PKOB should automatically enumerate and be recognized by the MPLAB X IDE, v5.30
or later, when the dsPIC33CK Low-Voltage Motor Control Board is connected to the
host PC via the USB Micro-B connector, J13. No custom USB driver installation is
necessary as the PKOB relies on standard OS provided Human Interface Device (HID)
drivers, and therefore, the driver installation should be fully automatic. When plugged
in, the PKOB programmer/debugger tool can be selected from the MPLAB X IDE
project properties page by selecting the device under:
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
Additionally, a 6-pin ICSP™ programming header, J10, is provided for connecting
the programmer/debugger (for example, PICkit™ 4 In-Circuit Debugger
Part Number: PG164140). For connector pin details, refer to Section 2.2.7 “ICSP™
Header for Programmer/Debugger Interface (J10)”.
The PKOB or ICSP programming header is not isolated from the input supply
connected to the Motor Control Board.
The debugger may need to be forced into Recovery Boot mode (reprogrammed) in rare
situations. In such situations, to use the Hardware Tool Emergency Boot Firmware
Recovery Utility, carefully follow the instructions found in MPLAB
main menu option Debug>Hardware Tool Emergency Boot Firmware Recovery
jumper connector J4 is provided in the PKOB Programming/Debugging Tool section of
the Motor Control Board to switch the PKOB to Recovery Boot mode. The location of
the J4 connector in the Motor Control Board is marked in Figure 2-1.
®
X IDE under the
. The
DS50002927A-page 42 2020 Microchip Technology Inc.
Appendix A. Schematics and Layout
A.1BOARD SCHEMATICS AND LAYOUT
This section provides schematics and PCB layout diagrams of the dsPIC33CK
Low-Voltage Motor Control Board. The Motor Control Board uses a four-layer FR4, 1.6
mm, Plated-Through-Hole (PTH) construction.
Ta bl e A - 1 summarizes the schematics of the Motor Control Board:
TABLE A-1:SCHEMATICS
Figure Index
Figure A-11 of 8Input Power Supply Connections: +12V DC-DC Converter;
Figure A-22 of 8dsPIC33CK256MP508 Interconnections: MCLR
Figure A-33 of 81.65V Voltage Reference Buffer: External Operational
Figure A-44 of 8Motor Control Inverter: Gate Drivers; Three-Phase MOSFET
Figure A-55 of 8Click Board Sockets (A, B); LED Indications; Push Buttons;
Figure A-66 of 8Hall Sensor Interface Circuit; Quadrature Encoder Interface
Figure A-77 of 8PKOB: Microcontroller; USB Port, etc.
Figure A-88 of 8PKOB: Buffers
Schematics
Sheet No.
+5V DC-DC Converter; +3.3V LDO
ICSP™ Header; dsPIC
amplifying Bus Current and Phase Currents
Amplifiers for amplifying Bus Current and Phase Currents;
Potentiometer; DC Bus Voltage Sensing Circuit; Phase
Voltages Sensing Circuit; Temperature Sensing Circuits
Bridge
USB to UART Converter
Circuit
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE
Hardware Sections
®
DSC Operational Amplifiers for
Reset;
Ta bl e A - 2 summarizes the layout diagrams of the Motor Control Board:
TABLE A-2:PCB LAYERS
Figure IndexDescription
Figure A-9Top Layer: Top Silk and Top Copper
Figure A-10Mid Layer -1: Copper
Figure A-11Mid Layer -2: Copper
Figure A-12Bottom Layer: Bottom Silk and Bottom Copper
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
DS50002927A-page 54 2020 Microchip Technology Inc.
Appendix B. Electrical Specifications
B.1INTRODUCTION
This section provides the electrical specifications for the dsPIC33CK Low-Voltage
Motor Control Board User’s Guide (see Table B-1).
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE
TABLE B-1:ELECTRICAL SPECIFICATIONS
ParameterOperating Range
Input DC Voltage12-48V
Absolute Maximum Input DC Voltage55V
Maximum Input Current through Connector J12.5A
Maximum Input Current through Connector J2 24A
Continuous Output Current per Phase @ +25°C10A (RMS)
Note 1:At an ambient temperature (+25°C), the Motor Control Board remains within
thermal limits when operating with continuous output currents of up to 10A (RMS)
while operating in the permissible voltage range.
2:At an ambient temperature (+25°C), it is possible to increase the continuous per
phase output current delivery up to 20A (RMS) by an appropriate level of forced air
cooling using a fan.
3:When spinning the motor under certain conditions (field weakening or restarting of
motor with inertia load while coasting down, direction reversal when motor is spinning at higher speed), this may cause the DC bus voltage to rise beyond the
applied input DC voltage (if the DC power supply is non-receptive). Under such
conditions, ensure that the input DC voltage does not exceed the specified
‘Absolute Maximum Input DC Voltage’ (refer to Ta bl e B -1 ). Failure to ensure the DC
voltage will cause permanent damage to the Motor Control Board.
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
DS50002927A-page 56 2020 Microchip Technology Inc.
Appendix C. Design Details
Filter,
Feedback and
Bias Circuit
Filter,
Feedback and
Bias Circuit
Filter,
Feedback and
Bias Circuit
dsPIC33CK256MP508
IB
IA
IBUS
VREF
VREF
VREF
SHUNT_IBUS_N
SHUNT_IBUS_P
SHUNT_IB_N
SHUNT_IB_P
SHUNT_IA_N
SHUNT_IA_P
Op Amp 2
Op Amp 1
A
B
C
D
E
F
U9
A
B
C
A
B
C
E
D
D
E
16
F
F
20
18
41
45
43
23
29
28
Op Amp 3
C.1INTRODUCTION
This chapter provides design details of the:
• Current Amplifier Circuits
• Auxiliary Power Supply
C.2CURRENT AMPLIFIER CIRCUITS
Circuits used for amplifying motor phase currents and DC bus current using internal
amplifiers of the dsPIC33CK256MP508 are shown in Figure C-1. Circuits used for
amplifying motor phase currents and DC bus current using external amplifiers U5-A,
U5-B, U5-C and U15 are shown in Figure C-2. The detailed schematics of the block
“Filter, Feedback and Bias Circuit” used in Figure C-1 and Figure C-2 are shown in
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
Ta bl e C - 1 summarizes the amplifier gain and peak currents for various values of RF.
The customer can select different values, based on application requirements, ensuring
peak current is within the board operating range.
TABLE C-1:EXAMPLE CONFIGURATION – AMPLIFIER GAIN VS. PEAK
CURRENT
Table Summarizes Amplifier Gains and Peak Currents for Various Values of RF when
R
IN1 = 62R, RIN2 = 470R, RSHUNT = 0.01R
FAmplifier Gain
R
20.0 k37.5934.389 Amps PeakERA-3AEB203V
10.0 k18.7968.778 Amps PeakERA-3AEB103V
6.65 k12.513.2 Amps PeakERA-3AEB6651V
4.99 k9.37917.59 Amps PeakERA-3AEB4991V
4.02 k7.55621.83 Amps PeakERA-3AEB4021V
Peak Current @
1.65V
Rf Resistor Part Number
(use below part number
or similar)
DS50002927A-page 60 2020 Microchip Technology Inc.
C.3AUXILIARY POWER SUPPLY
VIN
+12V
+12V Output
DC-DC
Converter
(MIC28511)
PGND
+5V
+5V Output
DC-DC
Converter
(MCP16301)
DGND
+3.3 VA
+3.3V Output
LDO
(MCP1826)
AGND
+3.3V
DGND
Auxiliary Power Supply
PGND
V
DD
19
PV
DD
20
PV
IN
7
PV
IN
8
PV
IN
9
V
IN
17
FREQ
24
EN
16
DL (NC)
1
DH (NC)
3
SW
12
SW
21
(EPAD3) SW
27
LX
5
PV
IN
4
PVIN (EPAD1)
25
BST
6
I
LIM
18
FB
14
PGOOD
15
AGND
13
PGND
2
PGND
10
PGND
11
PGND
22
PGND
23
(EPAD2) PGND
26
MIC28511
U1
0.1 μF
C2
0.1 μF
C6
100k
R3
PGND
+12V
1.21R
R2
2.2 μF
C1
2.2 μF
C3
100k
R8
100k
R7
DNP
R11
1.21R
R5
2.2 μF
C15
22 μF
C13
BAT46W
D1
10R
R1
DNP
C4
PGND
100 μH
L1
47 μF
C7
2.2 μF
C8
715R
R10
3300 pF
C5
0.1 μF
C22
PGND
1k
R4
PGND
0.1 μF
C30
10k
R6
10k
R9
V
IN
The auxiliary power supply circuit consists of the following three stages (see
Figure C-4):
• +12V Output Power Supply
• +5V Output Power Supply
• +3.3V Output Power Supply
FIGURE C-4:AUXILIARY POWER SUPPLY
Design Details
C.3.1+12V Output Power Supply
The +12V output power supply is a synchronous buck converter (see Figure C-5)
based on MIC28511. This power supply stage has the following specifications:
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
0.8 R6
V
OUT – VFB
0.8 10k
11.2V
= 714.3
(ICLIM – IL(PP) 0.5) R
DS-ON
+ VCL
ICL
(2A – 0.2 0.5) 28 m + 14 mV
70 µA
== 960
(VINMAX – VOUT)
IL ILMAX F
SW
== 88.23 µH
V
OUT
VINMAX
(60V – 12V)
0.2 0.8A kHz
12V
60V
100 µH (0.8A +
(12 + 0.1)
2
– (12)
2
== 32 µF
0.8A 0.2
2
100 µH (0.88)
2
(12.1)2 – (12)
2
LIPK
2
(VOUT + VOUT)2 – VOUT
2
)
2
=
The major components of the +12V supply are:
• The capacitors, C13 and C15, are the input supply capacitors of the +12V power
supply stage.
• The EN pin of the MIC28511 has an on-board 100 k pull-up resistor (R8) to V
which allows the output to be turned on when PV
• The switching frequency of the converter is set by the resistors, R7 and R11.
When R11 is not populated, the switching frequency will typically be 680 kHz, as
is the case in this Motor Control Board. The resistor R7 is selected as 100 k.
• The output is determined by resistors, R6 and R10, where V
V
FB = 0.8V and R6 = 10k. Then, R10 is calculated as:
DD exceeds its UVLO threshold.
OUT = +12V,
IN,
• The MIC28511 uses the R
and a resistor connected from ILIM to the SW node
DS-ON
to decide the current limit. The current limit resistor R4 value is calculated as:
• The Power Good (PGOOD) pin is an open-drain output, which is pulled up with a
10 kΩ resistor (R9) to V
DD. This indicates a logic high when the output is
nominally 90% of its steady-state voltage.
• The bootstrap circuit, the diode D1, resistor R2 and capacitor C2. This circuit
supplies energy to the high-side drive circuit. In the Motor Control Board, D1 is
selected as BAT46W, R2 is set as 10Ω and C2 is selected as 0.1 µF to hold a
charge for approximately 1.25 µSec.
• In order to have some amount of voltage ripple at the voltage feedback pin, a
ripple injection method is applied for low output voltage ripple applications. In the
Motor Control Board, components C5 (3300 pF), R3 (100k) and C6 (0.1 µF) are
used for this purpose.
• The output stage of the synchronous buck converter is comprised of an inductor
and capacitor. In this case, inductor L1 and capacitors, C7 and C2, are the output
inductor and capacitor.
- The minimum value of the inductance at maximum input voltage (i.e., 60V),
considering 20% ripple current is as follows:
DS50002927A-page 62 2020 Microchip Technology Inc.
- The minimum value of the output capacitance can be calculated based on the
selected output inductance L1 (100 µH), which is:
In the Motor Control Board, output capacitors, C7 and C2, are set as 47 µF and
2.2 µF; setting total output capacitor value as greater than the calculated value.
For additional information and recommendations, refer to the “MIC28511 – 60 V
3A Synchronous Buck Regulator Data Sheet” (DS20005520) and “MIC28511-1YFL
Evaluation Board User’s Guide”.
IN,
Design Details
DCLOCAL
CIN
MCP16301
V
IN
EN
GND
BOOST
SW
V
FB
DB
RBOOST CB
VBUCK
COUT
RTOP1
RBOT1
D
R
SNU
CSNU
L
R
TOP1
= R
BOT1
V
BUCK
V
FB
– 1
K = V
BUCK
/L
C.3.2+5V Output Power Supply
The +5V output power supply is a buck converter (see Figure C-6) based on
MCP16301. This power supply stage has the following specifications:
• Input Voltage (V
• Output Voltage (labeled as ‘+5V’) = +5V
FIGURE C-6:+5V POWER SUPPLY
IN) = +12V
The component values used in this circuit are listed in Ta b le C - 2,and were chosen
using Equation C-4 with V
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
I
D(AVG)
=
V
BUCK
DC
LOCAL
1 –
I
OUT
A low forward drop Schottky diode is used for free-wheeling diode D. The average
diode current is calculated using Equation C-5. Based on these calculations, a
MBRA140T3G Schottky diode is selected.
EQUATION C-5:
A standard 1N4148 ultra-fast diode for boost diode D
B was selected based on
recommendations from the “MCP16301/H High-Voltage Input Integrated Switch Step-Down Regulator Data Sheet” (DS20005004). For more information about the
snubber circuits, R
SNU and CSNU, and series boost resistor, RBOOST, refer to AN1466,
“Reduction of the High-Frequency Switching Noise in the MCP16301 High-Voltage
Buck Converter” (DS01466) application note.
C.3.3+3.3V Output Power Supply
The second stage of the power supply has the following specifications:
• Input Voltage = +5.0V
• Output Voltage 1 (+3.3V and +3.3 VA) = +3.3V
The MCP1826 LDO is used for generating the +3.3V output. The input of the +3.3V
LDO is the output of the +5V Converter. In the Motor Control Board, digital supply +3.3V
and analog supply +3.3 VA (see Figure C-7) are separated by the jumper resistor R15.
Similarly, Digital Ground (DGND) and Analog Ground (AGND) are separated by the
jumper resistor R19. This is done to logically divide supply lines to analog and digital
circuits during the board layout design.
DS50002927A-page 64 2020 Microchip Technology Inc.