0% found this document useful (0 votes)
126 views66 pages

Dspic33ck User Guide

Uploaded by

boopathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views66 pages

Dspic33ck User Guide

Uploaded by

boopathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 66

dsPIC33CK Low-Voltage

Motor Control Board


User’s Guide

 2020 Microchip Technology Inc. DS50002927A


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 Trademarks


applications and the like is provided only for your convenience The Microchip name and logo, the Microchip logo, Adaptec,
and may be superseded by updates. It is your responsibility to AnyRate, AVR, AVR logo, AVR Freaks, BesTime, BitCloud, chipKIT,
chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex,
ensure that your application meets with your specifications.
flexPWR, HELDO, IGLOO, JukeBlox, KeeLoq, Kleer, LANCheck,
MICROCHIP MAKES NO REPRESENTATIONS OR LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi,
WARRANTIES OF ANY KIND WHETHER EXPRESS OR Microsemi logo, MOST, MOST logo, MPLAB, OptoLyzer,
IMPLIED, WRITTEN OR ORAL, STATUTORY OR PackeTime, PIC, picoPower, PICSTART, PIC32 logo, PolarFire,
OTHERWISE, RELATED TO THE INFORMATION, Prochip Designer, QTouch, SAM-BA, SenGenuity, SpyNIC, SST,
SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon,
INCLUDING BUT NOT LIMITED TO ITS CONDITION, TempTrackr, TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA
QUALITY, PERFORMANCE, MERCHANTABILITY OR are registered trademarks of Microchip Technology Incorporated in
FITNESS FOR PURPOSE. Microchip disclaims all liability the U.S.A. and other countries.
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at APT, ClockWorks, The Embedded Control Solutions Company,
EtherSynch, FlashTec, Hyper Speed Control, HyperLight Load,
the buyer’s risk, and the buyer agrees to defend, indemnify and
IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision
hold harmless Microchip from any and all damages, claims, Edge, ProASIC, ProASIC Plus, ProASIC Plus logo, Quiet-Wire,
suits, or expenses resulting from such use. No licenses are SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub,
conveyed, implicitly or otherwise, under any Microchip TimePictra, TimeProvider, Vite, WinPath, and ZL are registered
intellectual property rights unless otherwise stated. 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.

© 2020, Microchip Technology Incorporated, All Rights Reserved.

For information regarding Microchip’s Quality Management Systems, ISBN: 978-1-5224-5762-6


please visit www.microchip.com/quality.

DS50002927A-page 2  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Table of Contents
Preface ........................................................................................................................... 5
Chapter 1. Introduction.................................................................................................. 9
1.1 Overview ........................................................................................................ 9
1.2 Features ....................................................................................................... 10
1.3 Block Diagram .............................................................................................. 11
Chapter 2. Board Interface Description ..................................................................... 13
2.1 Introduction ................................................................................................... 13
2.2 Board Connectors ........................................................................................ 13
2.3 User Interface Hardware .............................................................................. 19
2.4 Pin Functions of the dsPIC DSC .................................................................. 25
Chapter 3. Hardware Description ............................................................................... 29
3.1 Introduction ................................................................................................... 29
3.2 Hardware Sections ....................................................................................... 29
Appendix A. Schematics and Layout ......................................................................... 43
A.1 Board Schematics and Layout ..................................................................... 43
Appendix B. Electrical Specifications........................................................................ 55
B.1 Introduction .................................................................................................. 55
Appendix C. Design Details ........................................................................................ 57
C.1 Introduction .................................................................................................. 57
C.2 Current Amplifier Circuits ............................................................................. 57
C.3 Auxiliary Power Supply ................................................................................ 61
Worldwide Sales and Service .................................................................................... 66

 2020 Microchip Technology Inc. DS50002927A-page 3


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® IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.

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
certain hardware sections.

 2020 Microchip Technology Inc. DS50002927A-page 5


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

CONVENTIONS USED IN THIS GUIDE


This manual uses the following documentation conventions:

DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog
A menu selection select Enable Programmer
Quotes A field name in a window or “Save project before build”
dialog
Underlined, italic text with A menu path File>Save
right angle bracket
Bold characters A dialog button Click OK
A tab Click the Power tab
N‘Rnnnn A number in verilog format, 4‘b0010, 2‘hF1
where N is the total number of
digits, R is the radix and n is a
digit.
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Filenames autoexec.bat
File paths c:\mcc18\h
Keywords _asm, _endasm, static
Command-line options -Opa+, -Opa-
Bit values 0, 1
Constants 0xFF, ‘A’
Italic Courier New A variable argument file.o, where file can be
any valid filename
Square brackets [ ] Optional arguments mcc18 [options] file
[options]
Curly braces and pipe Choice of mutually exclusive errorlevel {0|1}
character: { | } arguments; an OR selection
Ellipses... Replaces repeated text var_name [,
var_name...]
Represents code supplied by void main (void)
user { ...
}

DS50002927A-page 6  2020 Microchip Technology Inc.


Preface

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.

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® DSC MCU family architecture and peripheral
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.

 2020 Microchip Technology Inc. DS50002927A-page 7


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 loca-
tions 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
USER’S GUIDE

Chapter 1. Introduction
1.1 OVERVIEW
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® DSC features a 100 MIPS,
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, I2C, DMA, timers, etc.
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

 2020 Microchip Technology Inc. DS50002927A-page 9


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

1.2 FEATURES
Key features of the Motor Control Board are as follows:
• Three-Phase Motor Control Power Stage with the Following Electrical Specifications:
- Input DC voltage: 12V to 48V
- Nominal phase RMS current: 10A at +25°C ambient temperature
• Motor Phase Current Feedbacks to Implement Field-Oriented Control (FOC) of a
PMSM/BLDC Motor
• DC Bus Current Feedback for Overcurrent Protection and to Implement Single
Shunt Current Reconstruction Algorithm
• DC Bus Voltage Feedback for Overvoltage Protection
• Phase Voltage Feedbacks to Implement Sensorless Trapezoidal Control
• Hall Sensor Interface
• Quadrature Encoder Interface (QEI)
• On-Board Temperature Sensor for Monitoring the MOSFET Temperature
• Optional External Temperature Sensor (thermistor) Interface
• Debug Serial Interface (USB to UART)
• PICkit™ On-Board (PKOB4) for Programming and Debugging
• Two mikroBUS™ Sockets to Support Connectivity, Sensors and Communication
Interfaces by Plugging in mikroBUS Add-On Boards
• User Interface Elements:
- Two debug LEDs
- One potentiometer
- Three push buttons
- PWM indication LEDs
- Power-on status indication LED
• Auxiliary Power Supply to Power External Interfaces and On-Board Circuitry

DS50002927A-page 10  2020 Microchip Technology Inc.


Introduction

1.3 BLOCK DIAGRAM


The block diagram of the dsPIC33CK Low-Voltage Motor Control Board is shown in
Figure 1-2. For more information on electrical specifications, refer to
Appendix B. “Electrical Specifications”.

FIGURE 1-2: THE MOTOR CONTROL BOARD BLOCK DIAGRAM

` dsPIC33CK256MP508 Program/
PMP CAN FD
CLC PTG Debug
WDT ICSP™ Interface
SENT
ADC – 2 x Dedicated Core and Shared Core Clock Program/
Timer1 SCCP DMT Debug
UART PKOB V4
DAC/ DMA SPI Interrupt Reset
Op Amps MCLR
QEI HR PWM Comparators Control Control
CRC I2C Push Button

I/O Control – Analog, Digital, Pull-up, Pull -Down, Remappable, Change Notification ICSP Header

IA,

IBUS_FILT_EXT
TEMP_EXT

V_A, IB,
Hall Sensor Feedbacks

IA_EXT, IBUS_EXT
Quadrature Encoder

V_B, IBUS
IB_EXT, VBUS Other Interfaces User Interface
V_C IC_EXT
Feedbacks

LEDs
Current Shunt Feedbacks
mikroBUS™ Socket-A

MOSFET Temperature
External Phase MCP6024 MCP651S DC Voltage
Temperature Voltages Op Amps for Op Amp for Scaling
Phase Bus Current Circuit mikroBUS Socket-B Push Buttons
Interface Scaling
Currents Amplification
Circuit MCP2200
Amplification Potentiometer
USB to UART Converter
PWMs

Speed/
Voltages

Input DC Voltage
Phase

Position +12V +5V +3.3 VA +3.3V


Feedbacks

Quadrature
Encoder Three-Phase Inverter Auxiliary Power Supply
Interface MIC4605 x 3 Phase Bus MCP9700 +12V Output +5V Output
Half-Bridge MOSFET Drivers Current Current Temp Sensor DC-DC DC-DC +3.3V Output
Hall Sensor Sensing Sensing for Thermal Converter Converter LDO
Interface Three-Phase Inverter Bridge Shunts Shunt Protection (MIC28511) (MCP16301) (MCP1826)

J14 J2 J1
Motor Terminal Input Terminal Input Jack
Connector Connector Connector

12-48 VDC, 24A 12-24 VDC, 2.5A

 2020 Microchip Technology Inc. DS50002927A-page 11


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

NOTES:

DS50002927A-page 12  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Chapter 2. Board Interface Description


2.1 INTRODUCTION
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.2 BOARD 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 Table 2-1.

 2020 Microchip Technology Inc. DS50002927A-page 13


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

FIGURE 2-1: CONNECTORS – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD

J3 J1 J2
J6
J10
J13

J16

J4

J11

J14

J12

J9 J7 J8

TABLE 2-1: MOTOR CONTROL BOARD CONNECTORS


Connector No. of
Status Description
Designator Pins
J1 3 Populated Input DC power supply jack
J2 2 Populated Input DC power supply – two-pin terminal connector (5 mm pitch,12-30 AWG wire insert)
J3 6 Not Populated UART interface connections
J4 2 Not Populated Erase jumper – used to switch PICkit™ On-Board (PKOB)
programmer/debugger to Boot Recovery mode through MPLAB® X IDE
J6 5 Populated USB Micro-B connector for establishing the serial interface with the host PC
J7 6 Populated Hall sensor interface terminal connector (2.54 mm pitch, 20-30 AWG wire insert)
J8 6 Populated Quadrature Encoder Interface terminal connector (2.54 mm pitch,
20-30 AWG wire insert)
J9 2 Not Populated External temperature sensor (thermistor) interface connector (2.5 mm pitch)
J10 6 Not Populated ICSP™ header – interfacing programming/debugging the dsPIC® DSC
J11 16 Populated mikroBUS™ socket for interfacing a Click Board™ with the Motor Control Board,
labeled as ‘A’ on the board
J12 16 Populated mikroBUS socket for interfacing a Click Board with the Motor Control Board, labeled
as ‘B’ on the board
J13 5 Populated PICkit On-Board (PKOB) programmer/debugger interface connector (standard
female USB Micro-B connector)
J14 3 Populated Three-phase inverter output for connecting motor (5 mm pitch,
12-30 AWG wire insert)
J16 2 Not Populated Jumper (2.54 mm pitch) which may be optionally used to connect the positive supply
(VDC) input of connectors, J1 and J2; shorted by default on the board using PCB trace

DS50002927A-page 14  2020 Microchip Technology Inc.


Board Interface Description

2.2.1 Power 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)

dsPIC33CK Low-Voltage Motor Control Board

J2 VDC
24A
Three-Phase Inverter

Populated by Default
PGND J16 NT1
Jumper Net Tie

J1
2.5A
Auxiliary Power Supply

PGND

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.

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 popu-
lating 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. Table 2-2 and
Table 2-3 summarize the pin assignments of connectors, J1 and J2, respectively.

TABLE 2-2: PIN DESCRIPTION – CONNECTOR J1


Pin # Signal Name Pin Description
1 VDC DC Input Supply Positive
2 PGND DC Input Supply Negative or PGND
3 PGND DC Input Supply Negative or PGND

TABLE 2-3: PIN DESCRIPTION – CONNECTOR J2


Pin # Signal Name Pin Description
1 PGND DC Input Supply Negative or PGND
2 VDC DC Input Supply Positive

 2020 Microchip Technology Inc. DS50002927A-page 15


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

2.2.2 UART 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). Table 2-4 summarizes the pin functions of connector J3.

TABLE 2-4: PIN DESCRIPTION – CONNECTOR J3


Pin # Signal Name Pin Description
1 +3.3V +3.3V Supply
2 DEBUG_TX UART Transmit Pin of dsPIC® DSC
3 DEBUG_RX UART Receive Pin of dsPIC DSC
4 DGND Digital Ground
5 MCP2200_RST Setting this Pin Low (connecting to Ground) will
Disable the MCP2200 (U13)

2.2.3 USB 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 Name Pin Description
0 No Connection Body is Connected to Digital Ground
1 5V_USB USB +5 VDC
2 UART_USB_N USB Data-
3 UART_USB_P USB Data+
4 No Connection —
5 GND Digital Ground

2.2.4 Hall 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 Name Pin Description
1 +5V +5V Supply to Hall Sensors
2 +3.3V +3.3V Supply to Hall Sensors
3 DGND Digital Ground
4 HA Hall Sensor A Feedback from the Motor
5 HB Hall Sensor B Feedback from the Motor
6 HC Hall Sensor C Feedback from the Motor

DS50002927A-page 16  2020 Microchip Technology Inc.


Board Interface Description

2.2.5 Quadrature 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. Table 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 Name Pin Description
1 +5V +5V Supply to Quadrature Encoder
2 +3.3V +3.3V Supply to Quadrature Encoder
3 DGND Digital Ground
4 QEA Quadrature Encoder Phase A Feedback of the Motor
5 QEB Quadrature Encoder Phase B Feedback of the Motor
6 INDX Quadrature Encoder INDEX Feedback of the Motor

2.2.6 External 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.7 ICSP™ 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.

TABLE 2-8: PIN DESCRIPTION – CONNECTOR J10


Pin # Signal Name Pin Description

1 MCLR Device Master Clear (MCLR)


2 DVDD Digital Supply Voltage
3 DGND Digital Ground
4 PGD Device Programming Data Line (PGD)
5 PGC Device Programming Clock Line (PGC)
6 No Connection —

 2020 Microchip Technology Inc. DS50002927A-page 17


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

2.2.8 mikroBUS™ 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 I2C), six
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.9 USB 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 Table 2-9.

TABLE 2-9: PIN DESCRIPTION – CONNECTOR J13


Pin # Signal Name Pin Description
0 No Connection Body is Connected to GND
1 VBUS USB 5V
2 D_N USB Data-
3 D_P USB Data+
4 No Connection —
5 GND PKOB Ground (GND)

2.2.10 Inverter 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 Table 2-10.

TABLE 2-10: PIN DESCRIPTION – CONNECTOR J14


Pin # Signal Name Pin Description
1 PHASE C Phase 3 Output of Inverter
2 PHASE B Phase 2 Output of Inverter
3 PHASE A Phase 1 Output of Inverter

DS50002927A-page 18  2020 Microchip Technology Inc.


Board Interface Description

2.3 USER INTERFACE HARDWARE


This section describes the LEDs, push buttons, potentiometer and test points available
on the Motor Control Board.

2.3.1 LEDs
The LEDs provided on the Motor Control Board are shown in Figure 2-3 and
summarized in Table 2-11.

FIGURE 2-3: LEDs – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD

LD1
LD2
LD3
LD11
LD10

LD5
LD4
LD7
LD6
LD9
LD8

TABLE 2-11: LEDs


LED LED
LED Indication
Designator Color
LD1 Yellow USB receive LED activity output. Refer to the “MCP2200 Data Sheet” for more details.
LD2 Green USB transmit LED activity output. Refer to the “MCP2200 Data Sheet” for more details.
LD3 Red Power-on status indication, connected to auxiliary supply output: +3.3V.
LD4 Green Indicates PWM1H (PWM_AH), used for controlling top MOSFET of the inverter Half-Bridge A.
LD5 Green Indicates PWM1L (PWM_AL), used for controlling bottom MOSFET of the inverter Half-Bridge A.
LD6 Green Indicates PWM2H (PWM_BH), used for controlling top MOSFET of the inverter Half-Bridge B.
LD7 Green Indicates PWM2L (PWM_BL), used for controlling bottom MOSFET of the inverter Half-Bridge B.
LD8 Green Indicates PWM4H (PWM_CH), used for controlling top MOSFET of the inverter Half-Bridge C.
LD9 Green Indicates PWM4L (PWM_CL), used for controlling bottom MOSFET of the inverter Half-Bridge C.
LD10 Yellow User-defined LED provided for debugging purposes (LED1).
LD11 Yellow User-defined LED provided for debugging purposes (LED2).

 2020 Microchip Technology Inc. DS50002927A-page 19


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

2.3.2 Push Buttons


The push buttons provided on the Motor Control Board are shown in Figure 2-4 and
summarized in Table 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

SW4
MCLR

SW1 SW2 SW3

TABLE 2-12: PUSH BUTTONS


Push Button
SI # LED Indication
Designator
1 SW1 Push button provided for general purpose (BUTTON1).
2 SW2 Push button provided for general purpose (BUTTON2).
3 SW3 Push button provided for general purpose (BUTTON3).
4 SW4 This push button is tied to the MCLR pin of the dsPIC33CK256MP508. Pressing this button
will reset the dsPIC® DSC.

DS50002927A-page 20  2020 Microchip Technology Inc.


Board Interface Description

2.3.3 Potentiometer
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

POT1

 2020 Microchip Technology Inc. DS50002927A-page 21


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

2.3.4 Test 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

DGND
+12V
PGND

VDC
AGND
+5V

LED1 +3.3 VA +3.3V DGND


VBUS IBUS_EXT
LED2

IBUS VA PGND
VB IB_EXT
IBUS_FILT_EXT
TP12 TP11 VC
IB
IA TP14
IA_EXT
AGND
AL
TP13 AH
BL
BH
CL
CH IC_EXT VREF
DGND
TP21 HALL_B QEI_A QEI_INDEX

HALL_A HALL_C QEI_B QEI_HOME

HOME
DGND

DS50002927A-page 22  2020 Microchip Technology Inc.


Board Interface Description

TABLE 2-13: BOARD TEST POINTS


Test Point # Signal Description
Power Supply Inputs and Outputs
TP1 VDC Input DC Power Supply
TP3 +12V +12V Supply – output of on-board MIC28511 device-based
buck converter
TP7 PGND Power Ground
TP22 PGND Power 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)
TP8 DGND Digital Ground
TP18 DGND Digital Ground
TP19 DGND Digital Ground
TP6 +3.3VA +3.3V Analog Supply
TP9 AGND Analog Ground
TP20 AGND Analog Ground
Analog Signals
TP17 VREF +1.65V Voltage Reference to bias op amp outputs
IA IA Internal Amplifier (dsPIC33CK256MP508 Op Amp 1) output of Phase A leg
current feedback of inverter
IA_EXT IA_EXT External Amplifier (MCP6024 U5A) output of Phase A leg current feedback of
inverter
IB IB Internal Amplifier (dsPIC33CK256MP508 Op Amp 2) output of Phase B leg
current feedback of inverter
IB_EXT IB_EXT External Amplifier (MCP6024 U5B) output of Phase A leg current feedback of
inverter
IC_EXT IC_EXT External Amplifier (MCP6024 U5C) output of Phase A leg current feedback of
inverter
IBUS IBUS Internal Amplifier (dsPIC33CK256MP508 Op Amp 3) output of bus current
feedback of inverter
IBUS_EXT IBUS_EXT External Amplifier (U15 MCP651S) output of bus current feedback of inverter
IBUS_FILT_EXT IBUS_FILT_EXT Filtered Bus Current Feedback of Inverter, which is amplified by MCP651S
(U15); this output is connected to the negative input of one of the internal
comparators of dsPIC33CK256MP508 (U9) for overcurrent protection
VA VA Phase A Voltage Feedback
VB VB Phase B Voltage Feedback
VC VC Phase C Voltage Feedback
VBUS VBUS DC Bus Voltage Feedback
TP14 TEMP_LOCAL MOSFET Temperature – output of on-board temperature sensor, MCP9700 (U14)
TP21 TEMP_EXT Output of External Temperature Sensor interfaced through connector J9

 2020 Microchip Technology Inc. DS50002927A-page 23


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

TABLE 2-13: BOARD TEST POINTS (CONTINUED)


Test Point # Signal Description
PWM Outputs
J15-1 AL PWM1L Output from dsPIC® DSC, which controls bottom MOSFET of the
Inverter Half-Bridge A
J15-2 AH PWM1H Output from dsPIC DSC, which controls top MOSFET of the Inverter
Half-Bridge A
J15-3 BL PWM2L Output from dsPIC DSC, which controls bottom MOSFET of the
Inverter Half-Bridge B
J15-4 BH PWM2H Output from dsPIC DSC, which controls top MOSFET of the Inverter
Half-Bridge B
J15-5 CL PWM4L Output from dsPIC DSC, which controls bottom MOSFET of the
Inverter Half-Bridge C
J15-6 CH PWM4L Output from dsPIC DSC, which controls top MOSFET of the Inverter
Half-Bridge C
Hall Sensor Feedbacks
HALL_A HALL_A Hall Sensor A Feedback connected to dsPIC DSC input
HALL_B HALL_B Hall Sensor B Feedback connected to dsPIC DSC input
HALL_C HALL_C Hall Sensor C Feedback connected to dsPIC DSC input
Quadrature Encoder Feedbacks
QEI_A QEI_A Quadrature Encoder A Feedback connected to dsPIC DSC input
QEI_B QEI_B Quadrature Encoder B Feedback connected to dsPIC DSC input
QEI_INDEX QEI_INDEX Quadrature Encoder INDEX Feedback connected to dsPIC DSC input
QEI_HOME QEI_HOME Quadrature Encoder HOME Feedback connected to dsPIC DSC input
HOME HOME This test point can be optionally used to interface the HOME signal feedback
with the Motor Control Board
LEDs and General Purpose I/Os
LED1 LED1 LED1 Output from dsPIC® DSC
LED2 LED2 LED2 Output from dsPIC DSC
TP11 TP11 Connected to the port pin RE4 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output
TP12 TP12 Connected to the port pin RE5 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output
TP13 TP13 Connected to the port pin RE15 of the dsPIC DSC; this test point can be
optionally used as a general purpose input or output

DS50002927A-page 24  2020 Microchip Technology Inc.


Board Interface Description

2.4 PIN 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 Table 2-14.

TABLE 2-14: dsPIC® DSC PIN FUNCTIONS


dsPIC® DSC dsPIC DSC
Signal dsPIC DSC Pin Function Remarks
Pin # Peripheral
dsPIC DSC Configuration – Supply, Reset, Clock and Programming
+3.3V 12, 31, 51, 71 VDD Supply +3.3V digital supply to dsPIC DSC
DGND 11, 32, 50, 70 VSS Digital ground
+3.3VA 25 AVDD +3.3V analog supply to dsPIC DSC
AGND 26 AVSS Analog Ground
OSCI 34 OSCI/CLKI/AN5/RP32/ Oscillator with PLL Connects to crystal (X2) on the board
PMD10/PMA10/RB0
OSCO 35 OSCO/CLKO/AN6/RP33/
PMA1/PMALH/PSA1/RB1
MCLR 9 MCLR Reset Connects to a push button (SW4), ICSP™
header (J10) and PKOB circuit
PGD 55 PGD3/RP37/SDA2/PMA14/ In-Circuit Serial Connects to ICSP header (J10) and
PMCS1/PSCS/RB5 Programming™ PKOB programming/debugging tool
PGC 56 PGC3/RP38/SCL2/RB6 (ICSP™) or
In-Circuit Debugger
dsPIC DSC Internal Amplifier Connections for Current Amplification
SHUNT_IA_P 20 OA1IN+/AN9/PMA6/RA2 Operational Differential current feedback from shunt
SHUNT_IA_N 18 OA1IN-/ANA1/RA1 Amplifier 1 resistor Rsh1 connects to noninverting and
(Op Amp #1) and inverting inputs of Op Amp #1 through input
Dedicated ADC resistors
IA 16 OA1OUT/AN0/CMP1A/ Core #0 Op Amp #1 output, which is amplified Phase A
IBIAS0/RA0 current. For the output to be available, config-
ure and enable Op Amp #1, populate the
resistor R125 (0R) in the amplifier feedback
and remove R121 if populated
SHUNT_IB_P 45 PGC2/OA2IN+/RP36/RB4 Operational Differential current feedback from shunt
SHUNT_IB_N 43 PGD2/OA2IN-/AN8/RP35/ Amplifier 2 resistor Rsh2 connects to noninverting and
RB3 (Op Amp #2) and inverting inputs of Op Amp #2 through input
Dedicated ADC resistors
IB 41 OA2OUT/AN1/AN7/ANA0/ Core #1 Op Amp #2 output, which is amplified Phase B
CMP1D/CMP2D/CMP3D/ current. For the output to be available, config-
RP34/SCL3/INT0/RB2 ure and enable Op Amp #2, populate the
resistor R133 (0R) in the amplifier feedback
and remove R129 if populated
SHUNT_IBUS_P 29 OA3IN+/AN14/CMP2B/ Operational Differential current feedback from shunt
ISRC1/RP50/PMD13/ Amplifier 3 resistor Rsh4 connects to noninverting and
PMA13/RC2 (Op Amp #3) and inverting inputs of Op Amp #3 through input
SHUNT_IBUS_N 28 OA3IN-/AN13/CMP1B/ Shared ADC Core resistors
ISRC0/RP49/PMA7/RC1
IBUS 23 OA3OUT/AN4/CMP3B/ Op Amp #3 output, which is amplified bus
IBIAS3/RA4 current. For the output to be available, config-
ure and enable Op Amp #3, populate the
resistor R141 (0R) in the amplifier feedback
and remove R137 if populated

 2020 Microchip Technology Inc. DS50002927A-page 25


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED)


dsPIC® DSC dsPIC DSC
Signal dsPIC DSC Pin Function Remarks
Pin # Peripheral
Amplified Currents from External Amplifiers: U5 and U15
IA_EXT 16 OA1OUT/AN0/CMP1A/ Dedicated ADC Phase Current A amplified by the amplifier
IBIAS0/RA0 Core #0 U5-A; when using this output, populate the
resistor R121 (0R), remove the resistor R125 if
populated and disable dsPIC DSC Operational
Amplifier #1
IB_EXT 41 OA2OUT/AN1/AN7/ANA0/ Dedicated ADC Phase Current B amplified by the amplifier
CMP1D/CMP2D/CMP3D/ Core #1 U5-B; when using this output, populate the
RP34/SCL3/INT0/RB2 resistor R129 (0R), remove the resistor R133,
if populated and disable dsPIC DSC
Operational Amplifier #2
IBUS_EXT 23 OA3OUT/AN4/CMP3B/ Shared ADC Core Bus current amplified by the amplifier U15;
IBIAS3/RA4 when using this output, populate the resistor
R137 (0R), remove the resistor R141, if popu-
lated and disable dsPIC DSC Operational
Amplifier #3
Overcurrent Detection and Fault Output
IBUS_FILT_EXT 21 DACOUT1/AN3/CMP1C/RA3 High-Speed Analog Amplified bus current is further filtered prior to
Comparator #1 connecting to the positive input of the CMP #1
(CMP #1) and used for overcurrent detection. Overcurrent
DAC #1 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.
Voltage Feedbacks
V_BUS 33 AN15/CMP2A/IBIAS2/RP51/ Shared ADC Core DC bus voltage feedback
PMD11/PMA11/RC3
V_A 30 AN17/ANN1/IBIAS1/RP54/ Shared ADC Core Phase A voltage feedback
PMD12/PMA12/RC6
V_B 19 AN23/RE3 Shared ADC Core Phase B voltage feedback
V_C 17 AN22/RE2 Shared ADC Core Phase C voltage feedback
Temperature Feedbacks and Potentiometer (POT #1 – Speed Reference)
TEMP_LOCAL 15 AN12/ANN0/RP48/RC0 Shared ADC Core MOSFET die temperature sensed by
MCP9700 (U14) can be used for thermal
protection
TEMP_EXT 58 TDO/AN2/CMP3A/RP39/ Shared ADC Core Feedback from external temperature sensor
SDA3/RB7 interfaced via connector J9
SPEED_ 61 PGC1/AN11/RP41/SDA1/RB9 Shared ADC Core Potentiometer (POT1) can be used for setting
REFERENCE the speed reference in motor control application
Hall Sensor Feedbacks (Interfaced via Connector J7)
HALL_A 42 RE8 I/O Ports and Change Notification interrupt can be enabled
HALL_B 44 RE9 Change to identify the transitions of any of the Hall
Notification (CN) sensor inputs
HALL_C 57 RE10
Quadrature Encoder Feedbacks (Interfaced via Connector J8)
QEI_A 5 RP60/PWM8H/PMD7/RC12 Remappable QEI module can be configured to read position
QEI_B 6 RP61/PWM8L/PMA5/RC13 feature of I/O and or speed information based on the encoder
QEI signals as required by the motor control
QEI_INDEX 7 RP62/PWM6H/PMA4/RC14
application
QEI_HOME 8 RP63/PWM6L/PMA3/RC15
Debug Interface (J6, J5 or PKOB)
DEBUG_RX 13 RP78/PCI21/RD14 Remappable These signals are connected to MCP2200
DEBUG_TX 14 ANN2/RP77/RD13 function of I/O and (U13), header J5 and PKOB; connect and
UART disconnect appropriate jumper resistors to
establish serial communication via any of
these channels

DS50002927A-page 26  2020 Microchip Technology Inc.


Board Interface Description

TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED)


dsPIC® DSC dsPIC DSC
Signal dsPIC DSC Pin Function Remarks
Pin # Peripheral
PWMs for Controlling Three-Phase Inverter (Q1 to Q6)
PWM_AH 1 RP46/PWM1H/PMD5/RB14 PWM Generator #1 Controls top MOSFET Q1 of the Inverter
Phase A
PWM_AL 3 RP47/PWM1L/PMD6/RB15 Controls bottom MOSFET Q2 of the Inverter
Phase A
PWM_BH 78 TDI/RP44/PWM2H/PMD3/ PWM Generator #2 Controls top MOSFET Q3 of the Inverter
RB12 Phase B
PWM_BL 80 RP45/PWM2L/PMD4/RB13 Controls bottom MOSFET Q4 of the Inverter
Phase B
PWM_CH 73 RP65/PWM4H/RD1 PWM Generator #4 Controls top MOSFET Q5 of the Inverter
Phase C
PWM_CL 74 RP64/PWM4L/PMD0/RD0 Controls bottom MOSFET Q6 of the Inverter
Phase C
User Interface (LEDs, Push Buttons, General Purpose I/Os)
LED1 37 RE6 I/O Ports Connected to general purpose LED LD10
LED2 39 RE7 Connected to general purpose LED LD11
BUTTON1 59 RE11 Connected to push button SW1
BUTTON2 62 RE12 Connected to push button SW2
BUTTON3 64 RE13 Connected to push button SW3
TP11 22 RE4 Test point TP11 can be optionally used as a
general purpose input or output
TP12 24 RE5 Test point TP12 can be optionally used as a
general purpose input or output
TP13 79 RE15 Test point TP13 can be optionally used as a
general purpose input or output
Click Board™ Socket A Signals (J11)
CLICK_AN_A 4 AN21/RE1 Analog Channel or Click Board socket is provided to extend the
GPIO feature by interfacing appropriated Click
CLICK_RST_A 77 RE14 GPIO Boards.
Pin feature requirement changes are based on
CLICK_CS_A 75 TMS/RP42/PWM3H/PMD1/ Remappable Pin or
the Click Board inserted in the socket; the
RB10 PWM or GPIO
signals are allocated as per the general
CLICK_SCK_A 27 RP76/RD12 Can be configured requirements.
CLICK_MISO_A 38 AN18/CMP3C/ISRC3/RP74/ as SPI Input/
PMD9/PMA9/RD10 Output or Clock
through
CLICK_MOSI_A 36 AN19/CMP2C/RP75/PMA0/
Remappable
PMALL/PSA0/RD11
Feature
CLICK_SDA_A 68 RP68/ASDA3/RD4 Alternate I2C Data
CLICK_SCL_A 69 RP67/ASCL3/RD3 and Clock Pins of
I2C #3
CLICK_TX_A 40 AN16/ISRC2/RP55/PMD8/ Can be configured
PMA8/RC7 as UART RX and
CLICK_RX_A 52 RP71/PMD15/RD7 TX through
Remappable
Feature
CLICK_INT_A 10 RP79/PCI22/PMA2/RD15 Can be configured
as Interrupt Pin
through
Remappable
Feature
CLICK_PWM_A 76 TCK/RP43/PWM3L/PMD2/ Can be configured
RB11 as SCCP Input or
Output or use PWM
Generator Output

 2020 Microchip Technology Inc. DS50002927A-page 27


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED)


dsPIC® DSC dsPIC DSC
Signal dsPIC DSC Pin Function Remarks
Pin # Peripheral
Click Board™ Socket B Signals (J12)
CLICK_AN_B 2 AN20/RE0 Analog Input or Click Board socket is provided to extend the
GPIO feature by interfacing appropriated Click
CLICK_RST_B 72 RP66/RD2 Remappable Pin or Boards.
GPIO Pin feature requirement changes based on the
Click Board inserted in the socket; the signals
CLICK_CS_B 48 RP73/PCI20/RD9 Remappable Pin or
are allocated as per the Click Board signal
PWM or GPIO
generic requirements.
CLICK_SCK_B 46 RP56/ASDA1/SCK2/RC8 Dedicated SPI #2
CLICK_MISO_B 49 RP72/SDO2/PCI19/RD8 Pins
CLICK_MOSI_B 47 RP57/ASCL1/SDI2/RC9
CLICK_SDA_B 63 RP52/PWM5H/ASDA2/RC4 Alternate I2C Data
CLICK_SCL_B 65 RP53/PWM5L/ASCL2/ and Clock Pins of
PMWR/PMENB/PSWR/RC5 I2C #2
CLICK_TX_B 54 RP69/PMA15/PMCS2/RD5 Can be configured
CLICK_RX_B 53 RP70/PMD14/RD6 as UART RX and
TX through
Remappable
Feature
CLICK_INT_B 67 RP59/PWM7L/RC11 Can be configured
as Interrupt Pin
through
Remappable
Feature
CLICK_PWM_B 66 RP58/PWM7H/PMRD/ Can be configured
PMWR/PSRD/RC10 as SCCP Input or
Output or use as
PWM Generator
Output

DS50002927A-page 28  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Chapter 3. Hardware Description


3.1 INTRODUCTION
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”.

3.2 HARDWARE 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 Table 3-1 describe the hardware sections of the Motor Control Board.

 2020 Microchip Technology Inc. DS50002927A-page 29


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

FIGURE 3-1: HARDWARE SECTIONS

9 2
1

11

8
3
4

1 4

10
4

7 6

TABLE 3-1: HARDWARE SECTIONS


Section No. Hardware Sections
1 dsPIC33CK256MP508 and Auxiliary Circuits
2 Power Supply
3 Three-Phase Inverter Bridge
4 Current Sensing Circuits
5 Voltage Sensing Circuit
6 Hall Sensor/Quadrature Encoder Interface
7 External Temperature Sensor Interface
8 User Interface
9 Debug Serial UART Interface
10 mikroBUS™ Sockets
11 Programmer/Debugger Interface

DS50002927A-page 30  2020 Microchip Technology Inc.


Hardware Description

3.2.1 dsPIC33CK256MP508 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 imple-
ments 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 volt-
age, 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, I2C 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
VDD/GND and AVDD/AGND pairs.

 2020 Microchip Technology Inc. DS50002927A-page 31


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

3.2.2 Power 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, depend-
ing 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 volt-
age 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

+12V +5V +3.3 VA +3.3V

Three-Phase Inverter Auxiliary Power Supply


MIC4605 x 3 +12V Output +5V Output
Half-Bridge MOSFET Drivers DC-DC DC-DC +3.3V Output
Converter Converter LDO
Three-Phase Inverter Bridge (MIC28511) (MCP16301) (MCP1826)
VDC
NT1
Net Tie
AGND DGND
J2 J1
Input Terminal J16 Input Jack
Connector Jumper Connector

PGND

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.2.3 Three-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 resis-
tors 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.4 Current Sensing Circuits


3.2.4.1 VOLTAGE REFERENCE CIRCUIT
The Reference Voltage (VREF) 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 provid-
ing 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 compen-
sation 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.

FIGURE 3-3: VOLTAGE REFERENCE CIRCUIT

+3.3 VA
R114

1k
C70
R117 VREF
10k
U5D 1000 pF TP17
13
-D
R119 R118
14
2.49k OUTD VREF
20R
2

12
+D
U10 1
DNP MCP6024 C72
3

R120 C74 0.1 µF


7.5k C75
DNP
0.1 µF

AGND AGND AGND

 2020 Microchip Technology Inc. DS50002927A-page 33


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

3.2.4.2 CURRENT 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 over-
current 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 (VREF) +1.65V to allow positive and negative
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 ampli-
fication 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 out-
put 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.

DS50002927A-page 34  2020 Microchip Technology Inc.


Hardware Description

TABLE 3-2: SELECTION BETWEEN EXTERNAL AND INTERNAL AMPLIFIER OUTPUTS


Jumper Resistor Settings
Current
Internal Amplifier Output External Amplifier Output Remarks
Signal
Populate Remove Populate Remove
Amplified Phase A R125 R121 R121 R125 In internal amplifier configuration,
Currents configure and enable Op Amp 1 (OA1).
IA or IA_EXT In external amplifier configuration,
ensure internal amplifier Op Amp 1
(OA1) is disabled.
Amplified Phase B R133 R129 R129 R133 In internal amplifier configuration,
Currents configure and enable Op Amp 2 (OA2).
IB or IB_EXT In external amplifier configuration,
ensure internal amplifier Op Amp 2
(OA2) is disabled.
Amplified Phase C Not Applicable Phase C current is amplified only by
Currents external amplifier U5-C and its output
IC_EXT (IC_EXT) is connected directly to an
analog input of the dsPIC® DSC.
Amplified Bus R141 R137 R137 R141 In internal amplifier configuration,
Currents configure and enable Op Amp 3 (OA3).
IBUS or In external amplifier configuration,
IBUS_EXT ensure internal amplifier Op Amp 3
(OA3) is disabled.

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”.

 2020 Microchip Technology Inc. DS50002927A-page 35


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

FIGURE 3-4: CURRENT SENSE CONFIGURATION(1)


VDC

Three-Phase Inverter Bridge

Phase A Current (+) Phase B Current (+) Phase C Current (+)


Rsh1 (0.010ȍ) Rsh1 (0.010ȍ) Rsh1 (0.010ȍ)
Phase A Current (-) Phase B Current (-) Phase C Current (-)

Bus Current (+)


Rsh1 (0.010ȍ)
Bus Current (-)

PGND

MCP6024 dsPIC33CK256MP508
Phase A Current (-) - IA_EXT R121
DNP R125
U5A IA
Phase A Current (+) + 0R
Phase A Current (-) -
VREF (+1.65V) OA1
Phase A Current (+) +
VREF (+1.65V)

Phase B Current (-) - IB_EXT R129


DNP
R133
U5B IB
Phase B Current (+) + 0R
Phase B Current (-) -
VREF (+1.65V) OA2 ADC
Phase B Current (+) +
VREF (+1.65V)
Phase C Current (-) - IC_EXT
U5C
Phase C Current (+) + R137
IBUS_EXT R141
VREF (+1.65V) DNP IBUS
0R
Bus Current (-) -
OA3
Bus Current (+) +
VREF (+1.65V) HRPWM
VREF (+1.65V) PG1
PG2
-
U5D PG4
+1.65V (+3.3VA/2) + Fault PCI I/P

DAC
MCP651S
R108 -
Bus Current (-) - IBUS_FILT_EXT CMP1
CM
MP
U15 +
Bus Current (+) +
C66
VREF (+1.65V)
AGND

Note 1: This is a representational diagram only; for detailed schematics, refer to Appendix A. “Schematics
and Layout”.

DS50002927A-page 36  2020 Microchip Technology Inc.


Hardware Description

3.2.5 Voltage Sensing Circuit


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 measure-
ment. The voltage divider network, formed by resistors, R69, R77 and R87, divides the
DC input voltage (VDC) at a voltage scaling ratio of 1:21.6 (see Figure 3-5). The scaled
DC input voltage (V_BUS) is connected to the analog input pin of the dsPIC DSC for
measurement.

FIGURE 3-5: VOLTAGE SENSING CIRCUIT


VDC
PHASE_A
PHASE_C
PHASE_B DC Bus Voltage
D4 +3.3VA D5 +3.3 VA
R67 R68 D6 +3.3 VA R69
R70 2 2
2 D7 +3.3 VA
34k 34k 34k
34k 3 3 2
3
1 1 3
1
1

VBUS
BAS40-04 R73 BAS40-04 R74
R76 R77

VC
BAS40-04

VA
BAS40-04
VB

T AGND 34k AGND 34k


34k AGND 34k
R80 R81 AGND
R82 V_C V_A R83
V_B 301R 301R V_BUS
301R 301R
R84 C49 R85 C50
R86 C51 R87 C52
3.3k 1000 pF 3.3k 1000 pF
3.3k 1000 pF 3.3k 0.1 μF

AGND AGND AGND AGND

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.

3.2.6 Hall 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
Interface Connector (J7)” and Section 2.2.5 “Quadrature Encoder Interface
Connector (J8)”.

 2020 Microchip Technology Inc. DS50002927A-page 37


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

3.2.7 External 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.3 VA
TEMP_EXT

J9
TP21
R93
2 1

TEMP_EXT
DNP
DNP
R98
C57
DNP
DNP

AGND AGND

3.2.8 User 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.


Hardware Description

3.2.9 Debug Serial UART Interface


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

dsPIC33CK256MP508 MCP2200
(U9) (U13)
R157 UART_USB_P J6
DEBUG_TX Rx D+
0R UART_USB_N
D-
+3.3V

R153
R158
DEBUG_RX Tx RST
0R
R159

DGND
MCP2200_RST J3
5
R49 0R DEBUG_TX
PKOB 2
Circuit R50 0R DEBUG_RX
3

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 communi-
cation 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®, Mac® and Windows®) can be found on the
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.

 2020 Microchip Technology Inc. DS50002927A-page 39


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.10 mikroBUS™ 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 cate-
gories, such as wireless connectivity (Wi-Fi, Bluetooth®, LoRa®), sensors (inductive
position sensors, remote temperature, thermocouple, ECG, IrDA®), interfaces (CAN,
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
I2C, 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.

DS50002927A-page 40  2020 Microchip Technology Inc.


Hardware Description

3.2.11 Programmer/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:
Hardware Tools>Microchip Kits>Starter Kits (PKOB)>Curiosity/Starter Kits(PKOB4)>
MPLAB PKoB 4, as shown in Figure 3-8.

FIGURE 3-8: MPLAB PKoB 4 SELECTION IN MPLAB® X IDE

 2020 Microchip Technology Inc. DS50002927A-page 41


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® X IDE under the
main menu option Debug>Hardware Tool Emergency Boot Firmware Recovery. The
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.

DS50002927A-page 42  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Appendix A. Schematics and Layout


A.1 BOARD 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.
Table A-1 summarizes the schematics of the Motor Control Board:

TABLE A-1: SCHEMATICS


Schematics
Figure Index Hardware Sections
Sheet No.
Figure A-1 1 of 8 Input Power Supply Connections: +12V DC-DC Converter;
+5V DC-DC Converter; +3.3V LDO
Figure A-2 2 of 8 dsPIC33CK256MP508 Interconnections: MCLR Reset;
ICSP™ Header; dsPIC® DSC Operational Amplifiers for
amplifying Bus Current and Phase Currents
Figure A-3 3 of 8 1.65V Voltage Reference Buffer: External Operational
Amplifiers for amplifying Bus Current and Phase Currents;
Potentiometer; DC Bus Voltage Sensing Circuit; Phase
Voltages Sensing Circuit; Temperature Sensing Circuits
Figure A-4 4 of 8 Motor Control Inverter: Gate Drivers; Three-Phase MOSFET
Bridge
Figure A-5 5 of 8 Click Board Sockets (A, B); LED Indications; Push Buttons;
USB to UART Converter
Figure A-6 6 of 8 Hall Sensor Interface Circuit; Quadrature Encoder Interface
Circuit
Figure A-7 7 of 8 PKOB: Microcontroller; USB Port, etc.
Figure A-8 8 of 8 PKOB: Buffers

Table A-2 summarizes the layout diagrams of the Motor Control Board:

TABLE A-2: PCB LAYERS


Figure Index Description
Figure A-9 Top Layer: Top Silk and Top Copper
Figure A-10 Mid Layer -1: Copper
Figure A-11 Mid Layer -2: Copper
Figure A-12 Bottom Layer: Bottom Silk and Bottom Copper

 2020 Microchip Technology Inc. DS50002927A-page 43


FIGURE A-1: SCHEMATICS PAGE 1 OF 8
DS50002927A-page 44

dsPIC33CK Low-Voltage Motor Control Board User’s Guide


D1

BAT46W

C1 U1
R1
20 6
PVDD BST VDC
2.2 μF 10R +12V
J1 1 R2 C2
C3 10V 5
3 1.21R LX 0.1uF
PGND 2.2 μF
2
10V C4
POWER 2 mm L1
HDR-2.54 Male 1x2 19 18
VDD ILIM
2 1 100 μH TP1
J16 4 DNP
PVIN R3 DNP
7 R4
PGND PVIN 100k
NT1 8 1k
VDC PVIN
R5 9 C5
Net Tie PVIN PGND R6
1.21R 25 12 3300 pF
5mm PVIN (EPAD1) SW C6 10k
21 50V TP7 TP22 TP20 TP9
SW 0.1 μF
17 27
VIN (EPAD3) SW 16V
14 Black TP Black TP Black TP Black TP
R7 R8 FB C8 C22
1 C7
100k 100k C30 DL (NC) R9 2.2 μF 0.1 μF
J2 3 15 47 μF
C9 C10 C11 C12 C13 0.1 μF DH (NC) PGOOD 100V 16V
2 C21 C15 35V
330 μF 330 μF 330 μF 330 μF 22 μF 10k R10
1 0.1 μF 2.2 μF 24 2
63V 63V 63V 63V 100V FREQ PGND 715R PGND PGND AGND AGND
100V 100V 10
PGND
16 11
R11 EN PGND
TERMINAL 1x2 22
DNP PGND
13 23
AGND PGND
26
(EPAD2) PGND
MIC28511 TP18 TP19
TP8
PGND PGND
PGND Black TP Black TP
Black TP

DGND DGND
DGND

D2
R12
1N4148 +5V Net Tie
0.5 mm

C39 L2
R13
PGND DGND
82R 0.1 μF 22 μH

+12V
U11
+3.3V
1

MCP1826S/3.3V +3.3 VA
BOOST 6 R14
SW
5 52.3k U12 +5V +3.3V +3.3VA +12V
VIN R15
1 3
VIN VOUT
4
EN GND 0R
3
GND VFB 0805
R16 2
2

1M MCP16301
TP4 TP5 TP6 TP3
 2020 Microchip Technology Inc.

R17 DNP DNP DNP DNP


4.7R R18 C100 C101 C102 C103 C104
10k C105 C106
D3 10 μF 10 μF 0.1 μF 0.1 μF 10 μF
10 μF 0.1 μF
C23 C31 16V 16V 16V 16V 16V
MBRA140T3G 16V 16V
10 μF 10 μF
25V 25V
C33
120 pF Designed with
100V

R19
Altium.com
0R
0805

DGND AGND
FIGURE A-2: SCHEMATICS PAGE 2 OF 8
 2020 Microchip Technology Inc.

Internal Op Amp
R121 PIN25
IA_EXT +3.3 VA
DNP
0603
C76
AGND
DNP
R124 R125 C77 C78 C79 dsPIC33CK256MP508
4.7 μF 0.1 μF 10000 pF
U9
R122 R123 4.02k 0R 10V 9
TANT-A MCLR MCLR
SHUNT_IA_N 0.1% +3.3V
62R 1% 470R 0.1% 12
Vൽൽ
31 16
Vൽൽ OA1OUT/AN0/CMP1A/IBIAS0/RA0 IA
51 18
Vൽൽ OA1IN-/ANA1/RA1 OA1IN-
C80 OA1IN- - IA AGND 71
Vൽൽ OA1IN+/AN9/PMA6/RA2
20
OA1IN+
1000 pF OA1 IA
DACOUT1/AN3/CMP1C/RA3
21
IBUS_FILT_EXT
50V
OA1IN+ + PIN12 11
Vඌඌ OA3OUT/AN4/CMP3B/IBIAS3/RA4
23
IBUS
32
Vඌඌ
+3.3V DGND 50
Vඌඌ
R126 R127 R128 70
Vඌඌ
SHUNT_IA_P VREF +3.3 VA
62R 1% 470R 0.1% 4.02k 25
AVൽൽ
0.1% 26
C81 C82 AVඌඌ
C83
0.1 μF 10000 pF
DNP 74 34
PWM_CL RP64/PWM4L/PMD0/RD0 OSCI/CLKI/AN5/RP32/PMD10/PMA10/RB0 OSCI
AGND 73 35
PWM_CH RP65/PWM4H/RD1 OSCO/CLKO/AN6/RP33/PMA1/PMALH/PSA1/RB1 OSCO
72 41
CLICK_RST_B RP66/RD2 OA2OUT/AN1/AN7/ANA0/CMP1D/CMP2D/CMP3D/RP34/SCL3/INT0/RB2 IB
69 43
AGND CLICK_SCL_A RP67/ASCL3/RD3 PGD2/OA2IN-/AN8/RP35/RB3 OA2IN-
68 45
DGND CLICK_SDA_A RP68/ASDA3/RD4 PGC2/OA2IN+/RP36/RB4 OA2IN+
54 55
CLICK_TX_B RP69/PMA15/PMCS2/RD5 PGD3/RP37/SDA2/PMA14/PMCS1/PSCS/RB5 PGD
R129 53 56
CLICK_RX_B RP70/PMD14/RD6 PGC3/RP38/SCL2/RB6 PGC
IB_EXT PIN31 CLICK_RX_A
52
RP71/PMD15/RD7 TDO/AN2/CMP3A/RP39/SDA3/RB7
58
TEMP_EXT
DNP +3.3V 49 60
C84 CLICK_MISO_B RP72/SDO2/PCI19/RD8 PGD1/AN10/RP40/SCL1/RB8 IC_EXT
0603 48 61
AGND DNP CLICK_CS_B RP73/PCI20/RD9 PGC1/AN11/RP41/SDA1/RB9 SPEED_REFERENCE
38 75
CLICK_MISO_A AN18/CMP3C/ISRC3/RP74/PMD9/PMA9/RD10 TMS/RP42/PWM3H/PMD1/RB10 CLICK_CS_A
36 76
CLICK_MOSI_A AN19/CMP2C/RP75/PMA0/PMALL/PSA0/RD11 TCK/RP43/PWM3L/PMD2/RB11 CLICK_PWM_A
R130 R131 R132 R133 27 78
C85 C86 CLICK_SCK_A RP76/RD12 TDI/RP44/PWM2H/PMD3/RB12 PWM_BH
SHUNT_IB_N 14 80
0.1 μF 10000 pF DEBUG_TX ANN2/RP77/RD13 RP45/PWM2L/PMD4/RB13 PWM_BL
62R 1% 470R 0.1% 4.02k 0.1% 0R 13 1
DEBUG_RX RP78/PCI21/RD14 RP46/PWM1H/PMD5/RB14 PWM_AH
10 3
CLICK_INT_A RP79/PCI22/PMA2/RD15 RP47/PWM1L/PMD6/RB15 PWM_AL

C87 OA2IN- - IB
1000 pF OA2 IB
DGND
50V
OA2IN+ + CLICK_AN_B
2
AN20/RE0 AN12/ANN0/RP48/RC0
15
TEMP_LOCAL
4 28
CLICK_AN_A AN21/RE1 OA3IN-/AN13/CMP1B/ISRC0/RP49/PMA7/RC1 OA3IN-
PIN51 V_C
17
AN22/RE2 OA3IN+/AN14/CMP2B/ISRC1/RP50/PMD13/PMA13/RC2
29
OA3IN+
R134 R135 R136 19 33
+3.3V TP11 V_B AN23/RE3 AN15/CMP2A/IBIAS2/RP51/PMD11/PMA11/RC3 V_BUS
SHUNT_IB_P VREF 22 63
DNP RE4 RP52/PWM5H/ASDA2/RC4 CLICK_SDA_B
62R 1% 470R 0.1% 4.02k 0.1% 24 65
RE5 RP53/PWM5L/ASCL2/PMWR/PMENB/PSWR/RC5 CLICK_SCL_B
TP12 37 30
LED1 RE6 AN17/ANN1/IBIAS1/RP54/PMD12/PMA12/RC6 V_A
C88 39 40
LED2 RE7 AN16/ISRC2/RP55/PMD8/PMA8/RC7 CLICK_TX_A
DNP C89 C90 DNP 42 46
HALL_A RE8 RP56/ASDA1/SCK2/RC8 CLICK_SCK_B
0.1 μF 10000 pF 44 47
HALL_B RE9 RP57/ASCL1/SDI2/RC9 CLICK_MOSI_B
57 66
HALL_C RE10 RP58/PWM7H/PMRD/PMWR/PSRD/RC10 CLICK_PWM_B
59 67
BUTTON1 RE11 RP59/PWM7L/RC11 CLICK_INT_B

Schematics and Layout


AGND 62 5
BUTTON2 RE12 RP60/PWM8H/PMD7/RC12 QEI_A
64 6
R137 DGND BUTTON3 RE13 RP61/PWM8L/PMA5/RC13 QEI_B
77 7
IBUS_EXT TP13 CLICK_RST_A RE14 RP62/PWM6H/PMA4/RC14 QEI_INDEX
79 8
DNP DNP RE15 RP63/PWM6L/PMA3/RC15 QEI_HOME
C91 0603 PIN71
AGND
DNP +3.3V
dsPIC33CK256MP508
R138 R139 R140 R141
SHUNT_IBUS_N X2
62R 1% 470R 0.1% 4.02k 0.1% 0R +3.3V OSCI OSCO
C92 C93
0.1 μF 10000 pF DNP
IBUS
OA3IN- - C94 C95
C96 OA3 IBUS R142
DNP DNP
1000 pF OA3IN+ + 4.7k
50V
DGND
R143
R144 R145 R146 +3.3V
MCLR DGND DGND
SHUNT_IBUS_P VREF J10
100R
62R 1% 470R 0.1% 4.02k 0.1% 1
DS50002927A-page 45

MCLR MCLR
2
2

SW4 Vൽൽ
C98 3
PTS645SM43SMTR92 LFS GND C97
DNP 4
C99 PGD PGD 0.1 μF
5
0.1 μF PGC PGC
6
AUX
AGND
3

ICSP™
DNP
DGND

The operational amplifiers, OA1, OA2 and OA3, are internal to dsPIC33CK256MP508 DGND
FIGURE A-3: SCHEMATICS PAGE 3 OF 8
DS50002927A-page 46

dsPIC33CK Low-Voltage Motor Control Board User’s Guide


External Op Amp
Phase Voltage Feedbacks

VDC
PHASE_A
R66 PHASE_C
DC Bus Voltage
PHASE_B
C107
D4 +3.3 VA D5 +3.3 VA
DNP AGND 4.02k 0.1% R67 R68 D6 +3.3 VA R69
R70 2 2
2 D7 +3.3 VA
34k 34k 34k
+3.3 VA 34k 3 3 2
R71 R72 3
IA_EXT 1 1 3
SHUNT_IA_N U5A 1
2 4 1

Vඊඝඛ
62R 1%
C46 470R 0.1% -A MCP6024 BAS40-04 R73 BAS40-04 R74
R75 R76 R77

VC
BAS40-04

VA
Vൽൽ
1000 pF 1 BAS40-04

VB
OUTA IA_EXT AGND 34k AGND 34k
50V 34k AGND 34k
R78 R79 Vඌඌ 0R R80 R81 AGND
3 R82 R83
SHUNT_IA_P +A 0603 V_C V_A
11 V_B 301R 301R V_BUS
62R 1% 470R 0.1% 301R 301R
C47
C48 DNP R84 C49 R85 C50
AGND
R86 C51 R87 C52
DNP 3.3k 1000 pF 3.3k 1000 pF
3.3k 1000 pF 3.3k 0.1 μF
R88
VREF
4.02k 0.1% AGND
AGND

AGND AGND AGND AGND

R89
Temperature Sensor Interface – External Temperature Sensor – MOSFET Thermal Protection
C53 +3.3 VA
Speed Reference
AGND +3.3 VA
DNP 4.02k 0.1% +3.3 VA
TEMP_EXT
R90 R91 U5B IB_EXT
SHUNT_IB_N J9 R92

3
6 TP21
62R 1% 470R 0.1% -B 200R POT1

2
R93 SPEED_REFERENCE

2 1
R94 U14 TEMP_LOCAL 10k
C54 7 TEMP_EXT
OUTB IB_EXT 4

1
1000 pF DNP Vൽൽ
R95 R96 0R TP14
50V 5 DNP R97
SHUNT_IB_P +B 0603 3
C55 Vඈඎඍ TEMP_LOCAL
62R 1% 470R 0.1% R98
MCP6024 C56 C57 1 μF 100R R99 C58
DNP 2
C59 DNP DNP GND 100R 0.1 μF
C60
DNP
MCP9700 0.1 μF
R100
VREF
4.02k 0.1%
AGND AGND AGND AGND AGND
AGND PGND
AGND

+3.3 VA DC Bus Current Sensing Circuit


IBUS_EXT
R101

4.02k 0.1% IBUS_EXT


R102 C73 C61
AGND
C62 0.1 μF DNP +3.3 VA
AGND
DNP 4.02k 0.1% R103 R104
U15
R105 R106 U5C SHUNT_IBUS_N IBUS_FILT_EXT
IC_EXT 4

5
SHUNT_IC_N 62R 1% 470R 0.1% -A MCP651S
9
62R 1% 470R 0.1% -C AGND Vൽൽ R107 R108
C63 1
R109 OUTA
A IBUS_FILT_EXT
C64 8
Voltage Reference 1000 pF
OUTC
C IC_EXT R110 R111 Vඌඌ 0R 200R
1000 pF 3
R112 R113 0R SHUNT_IBUS_P +A
A 0603
50V 10

2
SHUNT_IC_P +C
C 0603 62R 1% 470R 0.1%
C65 C66
62R 1% 470R 0.1%
MCP6024 C67 +3.3 VA DNP 10000 pF
R114 C68
DNP
C69 DNP AGND
R115
DNP C70 1k
VREF
 2020 Microchip Technology Inc.

R117 Vඋൾൿ R116


4.02k 0.1%
10k VREF AGND AGND
AGND U5D 1000 pF AGND 4.02k 0.1%
TP17
AGND 13
-D
R118
+3.3 VA R119 OUTD
14
VREF
2.49k 20R
12
2

+D
D
U10 1
DNP MCP6024
C71
C72
3

0.1 μF R120 C74 0.1 μF


7.5k C75
DNP
0.1 μF

AGND

AGND AGND AGND


FIGURE A-4: SCHEMATICS PAGE 4 OF 8
 2020 Microchip Technology Inc.

Vൽർ

VDC

SIR120DP 5,6,7,8 SIR120DP 5,6,7,8


SIR120DP 5,6,7,8 C124 C125 C126 C127
Q3 Q5 C128 C129
2.2 μF DNP 4 2.2 μF DNP 4
Q1 HS_GATE_B HS_GATE_C 2.2 μF DNP J14
HS_GATE_A
4 100V 1,2,3 100V 1,2,3 100V 3
1,2,3 C130 R175
R174 PHASE_A
2
R176 C131 332k PHASE_B
C132 DNP 332k 1
332k DNP PHASE_C
DNP PGND PGND PGND PGND
PGND PGND
TERMINAL 1x3
PHASE_B
PHASE_C
PHASE_A
SIR120DP 5,6,7,8
SIR120DP 5,6,7,8
SIR120DP 5,6,7,8 Q4
4 Q6
LS_GATE_B 4
Q2 1,2,3 LS_GATE_C
LS_GATE_A
4 1,2,3
1,2,3 C133 R177
C134 R178
R180
DNP 332k
C135 R179 DNP 332k
39R
DNP 332k
0805
SHUNT_IB_P SHUNT_IC_P R181 D8
SHUNT_IA_P HO_C HS_GATE_C
Rsh3 DNP DNP
Rsh1 Rsh2
0.01R
0.01R 0.01R
2512
2512 SHUNT_IC_N
2512 SHUNT_IB_N ±1%
SHUNT_IA_N ±1% ±1% R182

39R
SHUNT_IBUS_P 0805

Rsh4 R183 D9
0.01R LO_C LS_GATE_C
2512 DNP DNP
SHUNT_IBUS_N ±1%
R184

39R
PGND
0805
R185 R186 D10
+12V
HO_B HS_GATE_B PHASE_C
39R DNP DNP C137
0805
R187 D11 R188 1 μF C136
R192
HO_A HS_GATE_A U18 1 μF
DNP DNP 39R 2.74R
8 1
LO_C LO Vൽൽ
0805 7 2
Vඌඌ HB

Schematics and Layout


6 3
R189 R190 D12 PWM_CL LI HO HO_C
5 4
LO_B LS_GATE_B PWM_CH HI HS
39R DNP DNP
MIC4605-1YM-TR
0805
D14
R191 D13 R193 VSSA210-E3/61T
R194
LO_A LS_GATE_A DNP
DNP
DNP DNP

+12V
+12V
PHASE_B PGND PGND
C140 C141 PGND
PGND
PHASE_A

1 μF 1 μF C139
C138 U17 R196
U16 R195 8 1
1 μF
8 1 1 μF LO_B LO Vൽൽ 2.74R
2.74R
LO_A LO Vൽൽ 7 2
7 2 Vඌඌ HB
Vඌඌ HB 6 3
6 3 PWM_BL LI HO HO_B
DS50002927A-page 47

PWM_AL LI HO HO_A 5 4
5 4 PWM_BH HI HS
PWM_AH HI HS
MIC4605-1YM-TR
MIC4605-1YM-TR
D16
R199 R200 VSSA210-E3/61T
R197 D15 DNP DNP
R198 VSSA210-E3/61T
DNP
DNP

PGND
PGND
PGND PGND
PGND PGND PGND
PGND
FIGURE A-5: SCHEMATICS PAGE 5 OF 8
DS50002927A-page 48

dsPIC33CK Low-Voltage Motor Control Board User’s Guide


mikroBUS™ Interface A
+3.3V
mikroBUS™ Interface B +3.3V
Diagnostics USB to UART Interface
5V_USB 5V_USB
J11
J12
1 16
CLICK_AN_A AN PWM CLICK_PWM_A R20 R21 1 16 R22 R169
2 15 CLICK_AN_B AN PWM CLICK_PWM_B
CLICK_RST_A RST INT CLICK_INT_A DNP DNP 2 15 DNP DNP
3 14 CLICK_RST_B RST INT CLICK_INT_B C119
CLICK_CS_A CS RX CLICK_RX_A 3 14
4 13 CLICK_CS_B CS RX CLICK_RX_B 0.1 μF
CLICK_SCK_A SCK TX CLICK_TX_A 4 13
+3.3V 5 12 CLICK_SCK_B SCK TX CLICK_TX_B
CLICK_MISO_A MISO SCL CLICK_SCL_A 5 12 +3.3V USB Micro-B TH/SMT
6 11 +3.3V CLICK_MISO_B MISO SCL CLICK_SCL_B
CLICK_MOSI_A MOSI SDA CLICK_SDA_A 6 11 J3
7 10 CLICK_MOSI_B MOSI SDA CLICK_SDA_B
+3.3V +5V +5V 7 10

HDR-2.54 Male 1x5


DNP
8 9 +3.3V +5V +5V J6
GND GND 8 9 DGND
GND GND

5 4 3 2 1
1
DEBUG_TX VBUS
C108 2
DEBUG_RX D- UART_USB_N
0.1 μF 3
C116 C117 C118 D+ UART_USB_P
4
0.1 μF 0.1 μF 0.1 μF MCP2200_RST ID
5
GND

0
DGND DGND DGND
DGND DGND DGND
DGND DGND
Note: I2C pull-ups are not populated, typically installed on mikroBUS daughter boards.
Note: I2C pull-ups are not populated, typically installed on mikroBUS daughter boards. DGND DGND

Push Buttons
+3.3V +3.3V
+3.3V +3.3V
+3.3V
+3.3V
+3.3V
R154
R153 R156 X1 C120
1k
4.7k 1k
R149
R148 4.7k

1
R147 4.7k 12 MHz 0.1 μF
4.7k 2
LD1 LD2
U13
YELLOW GREEN DGND
R150 1 20

3
R151 VDD VSS
R152 BUTTON3 DGND 2 19
BUTTON2 OSC1 D+ UART_USB_P
BUTTON1 100R 3 18
100R OSC2 D- UART_USB_N
100R 4 17
MCP2200_RST RST VUSB
2

1
5 16
2

GP7/TxLED GP0
2

6 15
C122 SW3 GP6/RxLED GP1 C121
7 14
C142 C123 SW2 0.1 μF GP5 GP2 0.1 μF
SW1 PTS645SM43SMTR92 LFS R159 8 13
0.1 μF 0.1 μF PTS645SM43SMTR92 LFS GP4 CTS R157
DNP 9 12
PTS645SM43SMTR92 LFS R158 GP3 RX DEBUG_TX
10 11
DEBUG_RX TX RTS 0R
3

4
3

0R
3

MCP2200

DGND
DGND
DGND DGND
DGND

J15
General Purpose LEDs
Power-on Status PWM Indication LEDs 1 PWM_AL
2 PWM_AH
+3.3V 3 PWM_BL
4 PWM_BH

PWM_CH

PWM_CL
PWM_AH

PWM_BH
PWM_AL

PWM_BL
5 PWM_CL
LED1

LED2

6 PWM_CH
7
LED1 LED2
 2020 Microchip Technology Inc.

R160
DNP
1k R161 TP15 R162 TP16
R167 R168
1k 1k R163 R164 R165 R166
1k 1k
1k 1k 1k 1k
DGND
LD3
RED LD4 LD5 LD6 LD7 LD8 LD9
LD10 LD11 GREEN GREEN GREEN GREEN GREEN GREEN
YELLOW YELLOW

DGND
DGND DGND DGND DGND DGND DGND
DGND DGND
FIGURE A-6: SCHEMATICS PAGE 6 OF 8
 2020 Microchip Technology Inc.

Hall Sensor Interface


+3.3V

+5V +3.3V

R170
HALL_B HALL_C
4.7k D19 R171 D18 R172 D17 HALL_A
SD103AW 4.7k SD103AW 4.7k SD103AW
J7
R173
1
HALL_A
2
100R
3

HAL L
R204
4 HALL_B
5
R203100R
6
HALL_C
100R
TERMINAL 1x6

R202 C109 C110 C111


DNP
R201 R52
100 pF DNP 100 pF DNP
100 pF

DGND

DGND DGND DGND DGND DGND DGND

+3.3V

Quadrature Encoder Interface


+5V +3.3V

QEI_A QEI_B QEI_INDEX QEI_HOME


R54 R56 R55 R57 D20
DNP D22 DNP D21 DNP
D23 DNP SD103AW
SD103AW SD103AW
SD103AW

Schematics and Layout


R58
J8
QEI_A
1 1k
2
R59
3
QEI_B
QE I

4
1k
5
R60
6
QEI_INDEX
R61 1k
TERMINAL 1x6
QEI_HOME
1k

R62 C112 R63 R64 C144


HOME 2.2k 2.2k C113 2.2k C143 R65
DGND 10 pF 2.2k 10 pF
10 pF 10 pF
DS50002927A-page 49

DGND DGND DGND DGND DGND DGND DGND DGND


FD1 FD2 FD3 FD4
Fiducial Fiducial Fiducial Fiducial

PAD1 PAD2 PAD3 PAD4

Bumpon Hemisphere Black


FIGURE A-7: SCHEMATICS PAGE 7 OF 8
DS50002927A-page 50

dsPIC33CK Low-Voltage Motor Control Board User’s Guide


3V3

PICkit™ On-Board 4 C28


R23 R24 R155
4.7k 4.7k 10k U4A
0402 0402 0402 (DW_RX) TIOA0 72 1 DGI_IO0 0.1 μF 3V3
PA0/PWMC0_PWMH0/TIOA0/A17/BA1 PD0/GTXCK/PWMC1_PWML0/SPI1_NPCS1 25V 0603
1% 1% 1% 70 92 DGI_IO1 3V3
PA1/PWMC0_PWML0/TIOB0/A18 PD1/GTXEN/PWMC1_PWMH0/SPI1_NPCS2
66 91 DGI_IO2
PA2/PWMC0_PWMH1/DATRG PD2/GTX0/PWMC1_PWML1/SPI1_NPCS3
UTIL_SDA 64 89 DGI_IO3 X3
UTIL_SDA PA3/TWD0/LONCOL1/PCK2 PD3/GTX1/PWMC1_PWMH1/UTXD4
UTIL_SCL 55 88 PKOB4_REV0 1 4
UTIL_SCL PA4/TWCK0/TCLK0/UTXD1 PD4/GRXDV/PWMC1_PWML2/TRACED0 PKoB Revision 1 STB VDD
SYS_ID1 52 87 PKOB4_REV1
PA5/WMC1_PWML3/ISI_D4/URXD1 PD5/GRX0/PWMC1_PWMH2/TRACED1 Reserved for PKOB4
24 85 PKOB4_REV2 2 3
PG_SYSTEM PA7/XIN32 PD6/GRX1/PWMC1_PWML3/TRACED2 GND OUT XIN
STRONG_PULLUP_EN 25 84 PKOB4_REV3
PA8/XOUT32 PD7/GRXER/PWMC1_PWMH3/TRACED3 3V3
54 80 PKOB4_REV4 12.00 MHz
PA9/URXD0/ISI_D3/PWMC0_PWMFI0 PD8/GMDC/PWMC0_PWMFI1 R29
46 78 5V0_nUSBFLT DSC6011JI1A-012.0000
PA10/UTXD0/PWMC0_PWMEXTRG0/RD PD9/GMDIO/PWMC0_PWMFI2/AFE1_ADTRG
SYS_ID2 44 71 ACTIVE
PA11/QCS/PWMC0_PWMH0/PWMC1_PWML0 PD10/PWMC0_PWML0/TD 10k
SYS_ID3 48 69 STATUS
PA12/QIO1/PWMC0_PWMH1/PWMC1_PWMH0 PD11/GRX2/PWMC0_PWMH0/GTSUCOMP 0402
SYS_ID4 27 65 DGI_IO3_DIR
PA13/QIO0/PWMC0_PWMH2/PWMC1_PWML1 PD12/GRX3/CANTX1/SPI0_NPCS2 1%
ISP_SPI_SS 34 62 DGI_IO2_DIR
PA14/QSCK/PWMC0_PWMH3 PD13/GCOL/SDA10
33 59 DGI_IO1_DIR VCP
PA15/D14/TIOA1/PWMC0_PWML3 PD14/GRXCK/SDCKE 3V3
DATA_EN 30 75 STREAM_RXD2 (TDI_IN)
DATA_EN PA16/D15/TIOB1/PWMC0_PWML2 PD15/GTX2/RXD2/NWR1/NBS1 VCP_UART_RX
CLK_EN 16 56 STREAM_TXD2 (TMS_IN) VCP
CLK_EN PA17/QIO2/PCK1/PWMC0_PWMH3 PD16/GTX3/TXD2/RAS VCP_UART_TX
15 53 STREAM_SCK2 (TAUX_IN)
VPP_ON PA18/PWMC1_PWMEXTRG1/PCK2/A14 PD17/GTXER/SCK2/CAS
VBUS_DETECT 14 49
VBUS_DETECT PA19/PWMC0_PWML0/A15 PD18/NCS1/SDCS/RTS2/URXD4 R43
13 47 ICSP™
VPP_GND PA20/PWMC0_PWML1/A16/BA0 PD19/NCS3/CTS2/UTXD4 31.6k
((U)PDI_RXD1) PDI_RXD1 21 45 ICSP_SPI0_MISO (ICSP_SDI) ICSP_SPI0_MISO
PA21/RXD1/PCK1/PWMC1_PWMFI0 PD20/PWMC0_PWMH0/SPI0_MISO/GTSUCOMP MISO 0402
26 43 ICSP_SPI0_MOSI (ICSP_SDO) ICSP_SPI0_MOSI
VDD_GND PA22/RK/PWMC0_PWMEXTRG1/NCS2 PD21/PWMC0_PWMH1/SPI0_MOSI/TIOA11 MOSI 1%
(TAUX_TAR) PDI_SCK1 31 41 ICSP_SPI0_SPCK (ICSP_SCK) ICSP_SPI0_SPCK
PA23/SCK1/PWMC0_PWMH0/A19 PD22/PWMC0_PWMH2/SPI0_SPCK/TIOB11 SCK
TAUX_DIR 38 37 DGI_IO0_DIR ISP_SPI1_SPCK TVDD_GOOD
PA24/RTS1/PWMC0_PWMH1/A20 PD24/PWMC0_PWML0/RF/TCLK11 SCK_IN ICSP
TMS_DIR 40 35 DW_RX
PA25/CTS1/PWMC0_PWMH2/A23 PD25/PWMC0_PWML1/SPI0_NPCS1/URXD2 R44
TDI_DIR 42 36 DW_TX CLK_EN
PA26/DCD1/TIOA2/MCDA2 PD26/PWMC0_PWML2/TD/UTXD2 CLK_EN 47k
50 32 DGI_I2C_SDA DATA_EN
3V3 PA27/DTR1/TIOB2/MCDA3 PD27/PWMC0_PWML3/SPI0_NPCS3/TWD2 DATA_EN 0402
79 51 DGI_I2C_SCL
R31 PA28/DSR1/TCLK1/MCCDA PD28/URXD3/CANRX1/TWCK2 1%
5V0_USBGOOD 82 23
PA30/PWMC0_PWML2/PWMC1_PWMEXTRG0 PD30/UTXD3 TVDD_GOOD
83 2
10k 1% PA31/SPI0_NPCS1/PCK2/MCDA1 PD31/QIO3/UTXD3/PCK2
0402
D_P 95 12 ISP_SPI1_MISO
D_P HSDP PB0/PWMC0_PWMH0/RXD0
D_N 94 11 ISP_SPI1_MOSI (TDI_TAR)
D_N HSDM PB1/PWMC0_PWMH1/GTSUCOMP/TXD0
PKOB4_nRST 58 17 CTS0_SPI1_SS (SPI0_NPCS0)
PKOB4_nRST NRST PB2/CANTX0/CTS0
60 20 SPI1_NPCS0 (TMS_TAR)
TST PB3/CANRX0/PCK2/RTS0
3V3 73 74 PDI_TXD1 ((U)PDI_TXD1)
JTAGSEL PB4/TDI/TWD1/PWMC0_PWMH2
9 77 PKOB4_TDO
VREFP PB5/TDO/TWCK1/PWMC0_PWML0 PKOB4_TDO
6 57 PKOB4_SWDIO 3V3
R25 VREFN PB6/SWDIO/TMS PKOB4_SWDIO
USB_VBIAS 97 63 PKOB4_SWCLK U3
VBG PB7/SWCLK/TCK PKOB4_SWCLK
98 ICSP_FORCE_SPI_SS SPI1_NPCS0 1 6 ISP_SPI_SS
5.62k PB8/XOUT B2 S
99 XIN 2 5
0402 PB9/XIN XIN GND VCC
61 ERASE ICSP_FORCE_SPI_SS 3 4 CTS0_SPI1_SS
1% PB12/ERASE/PWMC0_PWML1/GTSUCOMP ERASE (SCK_IN) B1 A
100 ISP_SPI1_SPCK
PB13/PWMC0_PWML2/PCK0/SCK0
74LVC1G3157
ATSAME70N21B-ANT C41
0.1 μF
3V3 3V3 3V3 Vൽൽർඈඋൾ 25V
U4B
0603
18
VDDCORE
22
VDDCORE
Vൽൽർඈඋൾ 3V3 39
R26 R27 R28 VDDCORE
76
100k 100k 100k VDDCORE
0402 0402 0402
3V3 Vඌඌඑ඗ Bypass Caps Vඌඌඋ඗කඍ Bypass Caps
19 3
3V3 1% 1% 1% VDDIO GND 3V3 Vൽൽർඈඋൾ
SWD 28 7
FB1 FB2 VDDIO GND
68 8
J5 VDDIO GND
3V3 3V3 81 10
1 VDDIO GND
(TDO_SWO) PKOB4_TDO 29
2 GND
(NMCLR) PKOB4_nRST 5 67
3 VDDIN GND
(VDD_VIOREF) 93 C14 C16 C17 C18 C19 C20 C24 C25
4 VDDUTMII
86 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF
5 VDDPLL
(TDI_PGD) Vൽൽർඈඋൾ 96 25V 25V 25V 25V 25V 25V 25V 25V
6 VDDUTMIC
(TCK_PGC_SWDCLK) PKOB4_SWCLK 4 0603 0603 0603 0603 0603 0603 0603 0603
7 C32 VDDOUT
(TAUX) 90
8 0.1 μF VDDPLLUSB
 2020 Microchip Technology Inc.

(TMS_SWDIO) PKOB4_SWDIO
25V
ATSAME70N21B-ANT
DNP 0603
C27 C38 C34 C35 C36 C37
16V 4.7 μF 4.7 μF 0.1 μF 0.1 μF 0.1 μF
1 μF 0603 0603 25V 25V 25V
5V 0603 0603 0603
PKOB USB Interface 0603 16V 16V
3V3
J13 U2
USB MICRO-B FEMALE

TH1 8 4
1 R45 VCC VSS
VBUS
2 31.6k 1%
D- D_N 0.5A 5
3 0402 SDA UTIL_SDA
D+ D_P 1210 3 6
4 VBUS_DETECT J4 3V3 C40 A2 SCL UTIL_SCL
ID 2
5 0.1 μF A1
GND 1 7
2 1

R46 25V A0 WP
ERASE
47k 0603
0

24LC256
0402 DNP
1%
FIGURE A-8: SCHEMATICS PAGE 8 OF 8
 2020 Microchip Technology Inc.

PICkit™ On-Board 4 (buffers)


3V3

3V3

U6 C26
1
VCCA VCCB
6 0.1 μF Target ICSP™ Signals
25V
DATA_EN 5 0603
DATA_EN DIR
R40
ICSP_SPI0_MOSI (ICSP_SDO) R34 330R 3 4
A B PGD To Application PGD
0402 1%
22R
2
C43 GND 0603
ICSP_SPI0_MISO (ICSP_SDI) R35 330R R38
0.1 μF 1%
0402 1% 74LVC1T45GW 4.7k
25V
0402
0603
R32 3V3 1%
ICSP 3.3k
ICSP_SPI0_MOSI 0402
MOSI
ICSP_SPI0_MISO 1%
MISO
ICSP_SPI0_SPCK 3V3
SCK C29
ISP_SPI1_SPCK
ICSP SCK_IN 0.1 μF
U7
25V
CLK_EN 1 6
CLK_EN VCCA VCCB 0603
DATA_EN
DATA_EN
CLK_EN 5
CLK_EN DIR
R41
ICSP_SPI0_SPCK (ICSP_SCK) R36 330R 3 4 To Application PGC
A B PGC
0402 1%
22R
2
C44 GND 0603
0.1 μF
R39 1%
ISP_SPI1_SPCK (SCK_IN) R37 330R 74LVC1T45GW 4.7k
25V
0402 1% 0402
Power Supply Connection – PKOB 0603
1%
+3.3V 3V3
R33
3.3k
0402
R47 1%

0R 3V3

Schematics and Layout


0805
3V3
R48
C42
U8 0.1 μF
0R
1 6
R51
0805
R30 VCCA VCCB
25V
10k
10k 0603
0402
0402 5
DGND DIR 1%
1% R42
3 4 Vඉඉ/MCLR To Application Vඉඉ/MCLR
VPP_ON A B MCLR
1k
2
C45 GND 0603
VCP 0.1 μF
74LVC1T45GW
1%
R49 25V
DEBUG_TX VCP_UART_RX 0603
0R
VCP
DS50002927A-page 51

R50
DEBUG_RX VCP_UART_TX
0R
dsPIC33CK Low-Voltage Motor Control Board User’s Guide

FIGURE A-9: TOP LAYER: TOP SILK AND TOP COPPER

FIGURE A-10: MID LAYER -1: COPPER

DS50002927A-page 52  2020 Microchip Technology Inc.


Schematics and Layout

FIGURE A-11: MID LAYER -2: COPPER

FIGURE A-12: BOTTOM LAYER: BOTTOM SILK AND BOTTOM COPPER

 2020 Microchip Technology Inc. DS50002927A-page 53


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

NOTES:

DS50002927A-page 54  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Appendix B. Electrical Specifications


B.1 INTRODUCTION
This section provides the electrical specifications for the dsPIC33CK Low-Voltage
Motor Control Board User’s Guide (see Table B-1).

TABLE B-1: ELECTRICAL SPECIFICATIONS(1,2,3)


Parameter Operating Range
Input DC Voltage 12-48V
Absolute Maximum Input DC Voltage 55V
Maximum Input Current through Connector J1 2.5A
Maximum Input Current through Connector J2 24A
Continuous Output Current per Phase @ +25°C 10A (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 spin-
ning 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 Table B-1). Failure to ensure the DC
voltage will cause permanent damage to the Motor Control Board.

 2020 Microchip Technology Inc. DS50002927A-page 55


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

NOTES:

DS50002927A-page 56  2020 Microchip Technology Inc.


dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE

Appendix C. Design Details


C.1 INTRODUCTION

This chapter provides design details of the:


• Current Amplifier Circuits
• Auxiliary Power Supply

C.2 CURRENT 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
Figure C-3.

FIGURE C-1: dsPIC® DSC INTERNAL AMPLIFIERS

C D
V REF
U9
dsPIC33CK256MP508

B E 20
SHUNT_IA_P Filter, 16
A Feedback and F 18 Op Amp 1 IA
SHUNT_IA_N Bias Circuit

C D
VREF

B E 45
SHUNT_IB_P Filter,
41
A Feedback and F 43 Op Amp 2 IB
SHUNT_IB_N Bias Circuit

C D
V REF

B E 29
SHUNT_IBUS_P Filter,
23
A Feedback and F 28 Op Amp 3 I BUS
SHUNT_IBUS_N Bias Circuit

 2020 Microchip Technology Inc. DS50002927A-page 57


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

FIGURE C-2: EXTERNAL CURRENT AMPLIFIERS (U5, U15)

C D
V REF
U5
MCP6024

B E 3
SHUNT_IA_P Filter, 1
A Feedback and F 2 Op Amp A IA_EXT
SHUNT_IA_N Bias Circuit

C D
VREF

B E 5
SHUNT_IB_P Filter,
7
A Feedback and F 6 Op Amp B IB_EXT
SHUNT_IB_N Bias Circuit

C D
V REF

B E 10
SHUNT_IC_P Filter,
8
A Feedback and F 9 Op Amp C IC_EXT
SHUNT_IC_N Bias Circuit

U15
C D MCP651S
V REF

B E 3
SHUNT_IBUS_P Filter,
1
A Feedback and F 4 IBUS_EXT
SHUNT_IBUS_N Bias Circuit

DS50002927A-page 58  2020 Microchip Technology Inc.


Design Details

FIGURE C-3: FILTER, FEEDBACK AND BIAS CIRCUIT

C D

C2 RF RF
RRIN1
IN R
RIN2
IN
B E

C1
RRIN1
IN R
RIN2
IN
A F

C2

Equation C-1 provides the amplifier gain calculations. Equation C-2 and Equation C-3
provide the equations to calculate cutoff frequencies of the Differential-mode and
Common-mode filters.

EQUATION C-1: AMPLIFIER GAIN


Rf
Differential Amplifier Gain = (R + R )
IN1 IN2

EQUATION C-2: CUTOFF FREQUENCY DIFFERENTIAL-MODE FILTER

Differential-mode f–3dB  1
C2
2(RIN1 + RIN2)  + C1
 2 

EQUATION C-3: CUTOFF FREQUENCY COMMON-MODE FILTER

Common-mode f–3dB  1
2(RIN1)(C2)

 2020 Microchip Technology Inc. DS50002927A-page 59


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

Table 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
RIN1 = 62R, RIN2 = 470R, RSHUNT = 0.01R

Rf Resistor Part Number


Peak Current @
RF Amplifier Gain (use below part number
1.65V
or similar)
20.0 k 37.593 4.389 Amps Peak ERA-3AEB203V
10.0 k 18.796 8.778 Amps Peak ERA-3AEB103V
6.65 k 12.5 13.2 Amps Peak ERA-3AEB6651V
4.99 k 9.379 17.59 Amps Peak ERA-3AEB4991V
4.02 k 7.556 21.83 Amps Peak ERA-3AEB4021V

DS50002927A-page 60  2020 Microchip Technology Inc.


Design Details

C.3 AUXILIARY POWER SUPPLY


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

Auxiliary Power Supply

VIN +12V +5V +3.3 VA +3.3V

+12V Output +5V Output +3.3V Output


DC-DC DC-DC LDO
Converter Converter (MCP1826)
(MIC28511) (MCP16301)

PGND PGND DGND AGND DGND

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:
• Input Voltage (VIN) Range = +14V to +48V
• Output Voltage (labeled as ‘+12V’) = +12V

FIGURE C-5: +12V POWER SUPPLY CIRCUIT


D1
VIN
BAT46W

C1 U1
R1
20 6
PVDD BST
2.2 μF 10R +12V
R2 C2
5
C3 1.21R LX 0.1 μF
PGND
2.2 μF
C4 L1
19 18
VDD ILIM
100 μH
4 DNP
PVIN R3
7 R4
PVIN 100k
8 1k
PVIN
R5 9 PGND
PVIN R6 C5
1.21R 25 12
PVIN (EPAD1) SW 10k
21 C6 3300 pF
SW
17 27 0.1 μF
VIN (EPAD3) SW
14
R7 R8 FB
1 C7 C8 C22
100k 100k C30 DL (NC) R9
3 15 47 μF 2.2 μF 0.1 μF
C13 0.1 μF DH (NC) PGOOD
C15
22 μF 10k R10
2.2 μF 24 2
FREQ PGND 715R
10
PGND
16 11
R11 EN PGND
22
DNP PGND
13 23
AGND PGND
26
(EPAD2) PGND
MIC28511

PGND PGND

 2020 Microchip Technology Inc. DS50002927A-page 61


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

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 VIN,
which allows the output to be turned on when PVDD exceeds its UVLO threshold.
• 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 VOUT = +12V,
VFB = 0.8V and R6 = 10k. Then, R10 is calculated as:
0.8  R6 = 0.8  10k  714.3
VOUT – VFB 11.2V

• The MIC28511 uses the RDS-ON and a resistor connected from ILIM to the SW node
to decide the current limit. The current limit resistor R4 value is calculated as:
(ICLIM – IL(PP)  0.5)  RDS-ON + VCL (2A – 0.2 0.5) 28 m + 14 mV
= = 960
ICL 70 µA

• The Power Good (PGOOD) pin is an open-drain output, which is pulled up with a
10 kΩ resistor (R9) to VDD. 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:
VOUT 12V
(VINMAX – VOUT)  (60V – 12V) 
VINMAX 60V
= = 88.23 µH
IL ILMAX FSW 0.2 0.8A kHz

- The minimum value of the output capacitance can be calculated based on the
selected output inductance L1 (100 µH), which is:
0.8A 0.2 2
100 µH  (0.8A + ) 100 µH  (0.88)2
L  IPK2 2
= = = 32 µF
(VOUT + VOUT)2 – VOUT2 (12 + 0.1) 2 – (12)2 (12.1)2 – (12)2

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 VIN,
3A Synchronous Buck Regulator Data Sheet” (DS20005520) and “MIC28511-1YFL
Evaluation Board User’s Guide”.

DS50002927A-page 62  2020 Microchip Technology Inc.


Design Details

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 (VIN) = +12V
• Output Voltage (labeled as ‘+5V’) = +5V

FIGURE C-6: +5V POWER SUPPLY

DB

MCP16301
RBOOST CB
DCLOCAL BOOST VBUCK
L
VIN SW

RSNU
CIN D COUT
EN
CSNU
RTOP1

VFB
GND
RBOT1

The component values used in this circuit are listed in Table C-2,and were chosen
using Equation C-4 with VBUCK = +5V, VFB = 0.8V and K = 0.22V/H.

EQUATION C-4:
V
RTOP1 = RBOT1   BUCK – 1
 VFB 

K = VBUCK/L

TABLE C-2: +5V POWER SUPPLY COMPONENT VALUES


Label Component Designator Component Value
RBOT1 R18 10k
RTOP1 R14 52.5k
L L2 22 µH
RBOOST R13 82R
CB C39 01. µF
CIN C23, C31 20 µF
COUT C100 10 µF
RSNU R17 4.7R
CSNU C33 120 pF

 2020 Microchip Technology Inc. DS50002927A-page 63


dsPIC33CK Low-Voltage Motor Control Board User’s Guide

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:
VBUCK 
ID(AVG) = 1 – I
 DCLOCAL  OUT

A standard 1N4148 ultra-fast diode for boost diode DB 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, RSNU 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.


Design Details

FIGURE C-7: +3.3V POWER SUPPLY


+5V

+3.3V +3.3 VA
MCP1826S/3.3V
U12
R15
1 3
VIN VOUT
0R
GND 0805
2

C100 C101 C102 C103 C104 C105 C106


10 µF 10 µF 0.1 µF 0.1 µF 10 µF 10 µF 0.1 µF

R19

0R
0805

DGND AGND

 2020 Microchip Technology Inc. DS50002927A-page 65


Worldwide Sales and Service
AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE
Corporate Office Australia - Sydney India - Bangalore Austria - Wels
2355 West Chandler Blvd. Tel: 61-2-9868-6733 Tel: 91-80-3090-4444 Tel: 43-7242-2244-39
Chandler, AZ 85224-6199 China - Beijing India - New Delhi Fax: 43-7242-2244-393
Tel: 480-792-7200 Tel: 86-10-8569-7000 Tel: 91-11-4160-8631 Denmark - Copenhagen
Fax: 480-792-7277 Tel: 45-4450-2828
China - Chengdu India - Pune
Technical Support: Fax: 45-4485-2829
Tel: 86-28-8665-5511 Tel: 91-20-4121-0141
http://www.microchip.com/
China - Chongqing Japan - Osaka Finland - Espoo
support
Tel: 86-23-8980-9588 Tel: 81-6-6152-7160 Tel: 358-9-4520-820
Web Address:
www.microchip.com China - Dongguan Japan - Tokyo France - Paris
Tel: 86-769-8702-9880 Tel: 81-3-6880- 3770 Tel: 33-1-69-53-63-20
Atlanta Fax: 33-1-69-30-90-79
Duluth, GA China - Guangzhou Korea - Daegu
Tel: 678-957-9614 Tel: 86-20-8755-8029 Tel: 82-53-744-4301 Germany - Garching
Tel: 49-8931-9700
Fax: 678-957-1455 China - Hangzhou Korea - Seoul
Austin, TX Tel: 86-571-8792-8115 Tel: 82-2-554-7200 Germany - Haan
Tel: 512-257-3370 Tel: 49-2129-3766400
China - Hong Kong SAR Malaysia - Kuala Lumpur
Tel: 852-2943-5100 Tel: 60-3-7651-7906 Germany - Heilbronn
Boston
Tel: 49-7131-72400
Westborough, MA China - Nanjing Malaysia - Penang
Tel: 774-760-0087 Tel: 86-25-8473-2460 Tel: 60-4-227-8870 Germany - Karlsruhe
Fax: 774-760-0088 Tel: 49-721-625370
China - Qingdao Philippines - Manila
Chicago Tel: 86-532-8502-7355 Tel: 63-2-634-9065 Germany - Munich
Itasca, IL Tel: 49-89-627-144-0
China - Shanghai Singapore
Tel: 630-285-0071 Fax: 49-89-627-144-44
Tel: 86-21-3326-8000 Tel: 65-6334-8870
Fax: 630-285-0075 Germany - Rosenheim
China - Shenyang Taiwan - Hsin Chu
Dallas Tel: 49-8031-354-560
Tel: 86-24-2334-2829 Tel: 886-3-577-8366
Addison, TX Israel - Ra’anana
China - Shenzhen Taiwan - Kaohsiung
Tel: 972-818-7423 Tel: 972-9-744-7705
Tel: 86-755-8864-2200 Tel: 886-7-213-7830
Fax: 972-818-2924 Italy - Milan
China - Suzhou Taiwan - Taipei
Detroit Tel: 39-0331-742611
Tel: 86-186-6233-1526 Tel: 886-2-2508-8600
Novi, MI Fax: 39-0331-466781
Tel: 248-848-4000 China - Wuhan Thailand - Bangkok
Tel: 86-27-5980-5300 Tel: 66-2-694-1351 Italy - Padova
Houston, TX Tel: 39-049-7625286
Tel: 281-894-5983 China - Xian Vietnam - Ho Chi Minh
Tel: 86-29-8833-7252 Tel: 84-28-5448-2100 Netherlands - Drunen
Indianapolis Tel: 31-416-690399
Noblesville, IN China - Xiamen Fax: 31-416-690340
Tel: 317-773-8323 Tel: 86-592-2388138
Norway - Trondheim
Fax: 317-773-5453 China - Zhuhai Tel: 47-7288-4388
Tel: 317-536-2380 Tel: 86-756-3210040
Poland - Warsaw
Los Angeles Tel: 48-22-3325737
Mission Viejo, CA
Romania - Bucharest
Tel: 949-462-9523
Tel: 40-21-407-87-50
Fax: 949-462-9608
Tel: 951-273-7800 Spain - Madrid
Tel: 34-91-708-08-90
Raleigh, NC Fax: 34-91-708-08-91
Tel: 919-844-7510
Sweden - Gothenberg
New York, NY Tel: 46-31-704-60-40
Tel: 631-435-6000
Sweden - Stockholm
San Jose, CA Tel: 46-8-5090-4654
Tel: 408-735-9110
Tel: 408-436-4270 UK - Wokingham
Tel: 44-118-921-5800
Canada - Toronto Fax: 44-118-921-5820
Tel: 905-695-1980
Fax: 905-695-2078

DS50002927A-page 66  2020 Microchip Technology Inc.


05/14/19

You might also like