Dspic33ck User Guide
Dspic33ck User Guide
• 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.
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
NOTES:
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.
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 { ...
}
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:
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.
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.
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.
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
` 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
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
NOTES:
J3 J1 J2
J6
J10
J13
J16
J4
J11
J14
J12
J9 J7 J8
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.
2.3.1 LEDs
The LEDs provided on the Motor Control Board are shown in Figure 2-3 and
summarized in Table 2-11.
LD1
LD2
LD3
LD11
LD10
LD5
LD4
LD7
LD6
LD9
LD8
SW4
MCLR
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.
POT1
DGND
+12V
PGND
VDC
AGND
+5V
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
HOME
DGND
9 2
1
11
8
3
4
1 4
10
4
7 6
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.
+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
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”.
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)
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”.
VBUS
BAS40-04 R73 BAS40-04 R74
R76 R77
VC
BAS40-04
VA
BAS40-04
VB
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.
J9
TP21
R93
2 1
TEMP_EXT
DNP
DNP
R98
C57
DNP
DNP
AGND AGND
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 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.
Table A-2 summarizes the layout diagrams of the Motor Control Board:
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.
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
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
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
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
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.
+D
D
U10 1
DNP MCP6024
C71
C72
3
AGND
Vൽർ
VDC
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
+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
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.
+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
DGND
+3.3V
4
1k
5
R60
6
QEI_INDEX
R61 1k
TERMINAL 1x6
QEI_HOME
1k
(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.
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
R50
DEBUG_RX VCP_UART_TX
0R
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
NOTES:
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
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
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.
Differential-mode f–3dB 1
C2
2(RIN1 + RIN2) + C1
2
Common-mode f–3dB 1
2(RIN1)(C2)
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.
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
• 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”.
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
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.
+3.3V +3.3 VA
MCP1826S/3.3V
U12
R15
1 3
VIN VOUT
0R
GND 0805
2
R19
0R
0805
DGND AGND