MICROCHIP DM330031 User guide

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 applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime, BitCloud, chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, HELDO, IGLOO, JukeBlox, KeeLoq, Kleer, LANCheck, LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo, MOST, MOST logo, MPLAB, OptoLyzer, PackeTime, PIC, picoPower, PICSTART, PIC32 logo, PolarFire, Prochip Designer, QTouch, SAM-BA, SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom, SyncServer, Tachyon, TempTrackr, TimeSource, tinyAVR, UNI/O, Vectron, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
APT, ClockWorks, The Embedded Control Solutions Company, EtherSynch, FlashTec, Hyper Speed Control, HyperLight Load, IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision Edge, ProASIC, ProASIC Plus, ProASIC Plus logo, Quiet-Wire, SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub, TimePictra, TimeProvider, Vite, WinPath, and ZL are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BlueSky, BodyCom, CodeGuard, CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. The Adaptec logo, Frequency on Demand, Silicon Storage Technology, and Symmcom are registered trademarks of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies.
© 2020, Microchip Technology Incorporated, All Rights Reserved.
For information regarding Microchip’s Quality Management Systems, please visit www.microchip.com/quality.
ISBN: 978-1-5224-5762-6
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 Select the Help menu, and then Topics to open a list of available online help files.
®
IDE online help.

INTRODUCTION

This preface contains general information that will be useful to know before using the dsPIC33CK Low-Voltage Motor Control Board. Topics discussed in this preface include:
Document Layout
Conventions Used in this Guide
Recommended Reading
The Microchip Website
Product Change Notification Service
Customer Support
Document Revision History

DOCUMENT LAYOUT

The user’s guide describes the dsPIC33CK Low-Voltage Motor Control Board. The document is organized as follows:
Chapter 1. “Introduction” – This chapter introduces the board and provides a
brief overview of its features.
Chapter 2. “Board Interface Description” – This chapter provides information
about the board input and output interfaces.
Chapter 3. “Hardware Description” – This chapter describes the hardware
sections of the board.
Appendix A. “Schematics and Layout” – This appendix provides board
schematics and layout.
Appendix B. “Electrical Specifications” – This appendix summarizes the
electrical specifications.
Appendix C. “Design Details” – This appendix provides design calculations for
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
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
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly braces and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the total number of digits, R is the radix and n is a digit.
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void) { ... }
®
IDE User’s Guide
DS50002927A-page 6 2020 Microchip Technology Inc.

RECOMMENDED READING

This user’s guide describes how to use the dsPIC33CK Low-Voltage Motor Control Board. The device-specific data sheets contain additional information on programming the specific microcontroller or Digital Signal Controller (DSC) devices. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources:
dsPIC33CK256MP508 Family Data Sheet (DS70005349)
This document provides device-specific information for the dsPIC33CK256MP508 16-bit Digital Signal Controller with High-Resolution PWM and CAN Flexible Data (CAN FD).
MCP2200 Data Sheet (DS50002106)
This document provides device-specific information for the MCP2200 USB 2.0 to UART Protocol Converter with GPIO.
MPLAB® X IDE User’s Guide (DS50002027)
This document describes how to set up the MPLAB X IDE software and use it to create projects and program devices.
Preface
AN1299, Single-Shunt Three-Phase Current Reconstruction Algorithm for Sensorless FOC of a PMSM (DS01299)
AN1160, Sensorless BLDC Control with Back-EMF Filtering Using a Majority Function (DS01160)
AN1078, Sensorless Field Oriented Control of a PMSM (DS01078)
AN1292, Sensorless Field Oriented Control (FOC) for a Permanent Magnet Synchronous Motor (PMSM) Using a PLL Estimator and Field Weakening (FW) (DS01292)
AN1017, Sinusoidal Control of PMSM Motors with dsPIC30F DSC (DS01017)
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in the Readme subdirectory of the MPLAB X IDE installation directory. The Readme files contain updated information and known issues that may not be included in this user’s guide.
For step-by-step instructions to set up and run a motor control application using the dsPIC33CK Low-Voltage Motor Control Board, refer to the Readme file provided along with the motor control application code.
dsPIC33 Family Reference Manuals
Specific Family Reference Manuals (FRMs) are available for each module, which explains the operation of the dsPIC modules. The specifics of each device family are discussed in their data sheet.
To obtain any of these documents, visit the Microchip website at: www.microchip.com.
2020 Microchip Technology Inc. DS50002927A-page 7
®
DSC MCU family architecture and peripheral
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

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 single-core 16-bit DSC with enhanced on-chip peripherals, such as High-Resolution PWM (HRPWM),12-bit high-speed ADC cores, analog comparators with DAC, op amps, QEI, CAN-FD, SENT, UART, SPI, I
In some instances of the document text, the dsPIC33CK Low-Voltage Motor Control Board is also referred to as the ‘Motor Control Board’ to enhance readability. The Motor Control Board is shown in Figure 1-1.

FIGURE 1-1: dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD

®
DSC features a 100 MIPS,
2
C, DMA, timers, etc.
USER’S GUIDE
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.

1.3 BLOCK DIAGRAM

`
Debug
Interface
Push Buttons
LEDs
Potentiometer
DC-DC
Converter
(MIC28511)
DC-DC
Converter
(MCP16301)
+3.3V Output
LDO
(MCP1826)
Motor Terminal
Input Terminal
12-48 VDC, 24A
Input Jack
PKOB V4
MCLR
Push Button
ICSP Header
MIC4605 x 3
Half-Bridge MOSFET Drivers
Current
Sensing
Temp Sensor
for Thermal
Protection
Current
Sensing
Shunt
Position
Feedbacks
Quadrature
Encoder Interface
Hall Sensor
Interface
Reset
Control
I/O Control – Analog, Digital, Pull-up, Pull -Down, Remappable, Change Notification
Program/
HR PWM
SCCP
DAC/
Comparators
QEI
Timer1
ADC – 2 x Dedicated Core and Shared Core
Op Amps
Clock
CLC
PTG
Interrupt
Control
Temperature
_
Current Shunt Feedbacks
Op Amps for
Phase
Currents
Amplification
I
A_EXT,
I
B_EXT,
I
C_EXT
Op Amp for Bus Current Amplification
I
BUS_EXT
Voltages
Scaling
Circuit
g
_A
,
_B
,
_C
I
BUS_FILT_EXT
p
g
DC Voltage
Scaling
Circuit
BUS
mikroBUS Socket-B
mikroBUS™ Socket-A
IA, IB, I
BUS
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

Introduction
Quadrature Encoder
Feedbacks
Speed/
EXT
TEMP
External
Interface
Hall Sensor Feedbacks
Three-Phase Inverter Bridge
J14
Connector
dsPIC33CK256MP508
V V V
es
Phase
Volta
MCP6024
Phase
PWMs
MCP651S
V
MOSFET Temperature
Three-Phase Inverter
Phase
Shunts
Bus
J2
Connector
MCP9700
CAN FD
PMP
WDT
SENT
DMT
UART
DMA
CRC
e
ut DC Volta In
SPI
I2C
Other Interfaces
MCP2200
USB to UART Converter
+12V +5V
+12V Output
ICSP™
Debug
Auxiliary Power Supply
+5V Output
J1
Connector
12-24 VDC, 2.5A
User Interface
+3.3 VA
Program/
+3.3V
2020 Microchip Technology Inc. DS50002927A-page 11
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
NOTES:
DS50002927A-page 12 2020 Microchip Technology Inc.

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 Ta b le 2 -1 .
dsPIC33CK LOW-VOLTAGE
MOTOR CONTROL BOARD
USER’S GUIDE
2020 Microchip Technology Inc. DS50002927A-page 13
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
J13
J10
J6
J3
J4
J11
J12
J9
J7
J8
J14
J16
J1
J2

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

TABLE 2-1: MOTOR CONTROL BOARD CONNECTORS

Connector
Designator
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)
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,
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,
J12 16 Populated mikroBUS socket for interfacing a Click Board with the Motor Control Board, labeled
J13 5 Populated PICkit On-Board (PKOB) programmer/debugger interface connector (standard
J14 3 Populated Three-phase inverter output for connecting motor (5 mm pitch,
J16 2 Not Populated Jumper (2.54 mm pitch) which may be optionally used to connect the positive supply
No. of
Pins
Status Description
programmer/debugger to Boot Recovery mode through MPLAB
20-30 AWG wire insert)
labeled as ‘A’ on the board
as ‘B’ on the board
female USB Micro-B connector)
12-30 AWG wire insert)
DC
) input of connectors, J1 and J2; shorted by default on the board using PCB trace
(V
®
X IDE
DS50002927A-page 14 2020 Microchip Technology Inc.
Board Interface Description
Auxiliary Power Supply
Three-Phase Inverter
VDC
NT1
Net Tie
J16
Jumper
Populated by Default
J2
J1
PGND
24A
2.5A
PGND
dsPIC33CK Low-Voltage Motor Control Board
Note 1: The Motor Control Board is designed to operate at a DC voltage range of 12V to 48V. When
powering the board through J1, limit the voltage to 24V Max. When the applied voltage is greater than 24V, always use connector J2 to power the board.
2: When J1 and J2 are shorted through either J16 or NT1, always power the Motor Control Board
using only one connector, either J1 or J2.

2.2.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)
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. Ta bl e 2 -2 and
Ta bl e 2 -3 summarize the pin assignments of connectors, J1 and J2, respectively.
TABLE 2-2: PIN DESCRIPTION – CONNECTOR J1
Pin # Signal Name Pin Description
1VDC DC Input Supply Positive
2 PGND DC Input Supply Negative or PGND
3 PGND DC Input Supply Negative or PGND
Pin # Signal Name Pin Description
1 PGND DC Input Supply Negative or PGND
2VDC DC Input Supply Positive
TABLE 2-3: PIN DESCRIPTION – CONNECTOR J2
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). Ta bl e 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 V
2 UART_USB_N USB Data-
3 UART_USB_P USB Data+
4 No Connection
5 GND Digital Ground
DC

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. Ta b le 2 -7 shows the pin description of connector J8. The connector provides two supply outputs, +5V and +3.3V, which can be used as input supplies to the Quadrature Encoder based on the encoder specification.
TABLE 2-7: PIN DESCRIPTION – CONNECTOR J8
Pin # Signal 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
1MCLR
2DVDD Digital Supply Voltage
3 DGND Digital Ground
4 PGD Device Programming Data Line (PGD)
5 PGC Device Programming Clock Line (PGC)
6 No Connection
Device Master Clear (MCLR)
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 I additional pins (PWM, interrupt, analog input, Reset and chip select) and two power groups (+3.3V-GND and 5V-GND).
For pin mapping information between the dsPIC DSC and the mikroBUS sockets, refer to the schematics in Section A.1 “Board Schematics and Layout” or
Section 2.4 “Pin Functions of the dsPIC DSC”.

2.2.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 Ta bl e 2 -9 .
TABLE 2-9: PIN DESCRIPTION – CONNECTOR J13
Pin # Signal Name Pin Description
2
C), six
0 No Connection Body is Connected to GND
1VBUS 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 Ta b le 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
LD1 LD2
LD3
LD11
LD10
LD4
LD5
LD7
LD6
LD9
LD8

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 Tab le 2- 11.
FIGURE 2-3: LEDs – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
TABLE 2-11: LEDs
LED
Designator
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
LED
Color
LED Indication
dsPIC33CK Low-Voltage Motor Control Board User’s Guide
SW1 SW2 SW3
SW4
MCLR

2.3.2 Push Buttons

The push buttons provided on the Motor Control Board are shown in Figure 2-4 and summarized in Tab le 2- 12.
The push buttons, SW1, SW2 and SW3, are provided to control motor operations; for example, starting or stopping the motor. The functions of these push buttons are defined by the motor control application firmware.
FIGURE 2-4: PUSH BUTTONS – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD
TABLE 2-12: PUSH BUTTONS
SI #
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
DS50002927A-page 20 2020 Microchip Technology Inc.
Push Button
Designator
will reset the dsPIC
®
DSC.
LED Indication
pin of the dsPIC33CK256MP508. Pressing this button
Loading...
+ 46 hidden pages