MICROCHIP DSPIC33CK (01) PDF MANUAL


Post questions, comments, reviews or errors in the comment box below.

Your File is Ready … Download PDF

CLICK HERE TO DOWNLOAD MICROCHIP DSPIC33CK (01) PDF MANUAL


PDF Content Summary: 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 ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR 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, IMPLIED, WRITTEN OR ORAL, STATUTORY OR PackeTime, PIC, picoPower, PICSTART, PIC32 logo, PolarFire, OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR 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 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 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 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, 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 microchip.com/quality. DS50002927A-page 2 © 2020 Microchip Technology Inc. © 2020 Microchip Technology Inc. DS50002927A-page 3 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 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 ( 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. INTRODUCTIONThis 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 dialog DS50002927A-page 6 © 2020 Microchip Technology Inc. “Save project before build” Underlined, italic text with right angle bracket A menu path File>Save Bold characters A dialog button Click OK A tab Click the Power tab N‘Rnnnn A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. 4‘b0010, 2‘hF1 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 character: { | } Choice of mutually exclusive arguments; an OR selection errorlevel {0|1} Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by user void main (void) { ... } 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 explains Family the operation Reference of the Manuals dsPIC® (FRMs) DSC MCU are available family architecture for each module, and peripheral which modules. The specifics of each device family are discussed in their data sheet. To obtain any of these documents, visit the Microchip website at: 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 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 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: 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. © 2020 Microchip Technology Inc. DS50002927A-page 9 dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD USER’S GUIDE Chapter 1. Introduction 1.1 OVERVIEWThe 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 dsPIC33CK Low-Voltage Motor Control Board User’s Guide 1.2 FEATURESKey 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) • PICkitTM On-Board (PKOB4) for Programming and Debugging • Two mikroBUSTM 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 ` © 2020 Microchip Technology Inc. DS50002927A-page 11 Hall Sensor Interface Quadrature Encoder Interface Speed/ Position Feedbacks Timer1 CLC QEI PTG SCCP DMA Interrupt HR PWM Control External Temperature Interface +3.3 VA Three-Phase Inverter MIC4605 x 3 Half-Bridge MOSFET Drivers Three-Phase Inverter Bridge J14 Motor Terminal Connector I/O Control – Analog, Digital, Pull-up, Pull -Down, Remappable, Change Notification Phase Voltages Scaling Circuit ADC – 2 x Dedicated Core and Shared Core V_A, V_B, V_C IBUS_FILT_EXT IA_EXT, IB_EXT, IC_EXT MCP6024 Op Amps for Phase Currents Amplification Phase Current Sensing Shunts Op Amps IA, IB, IBUS J2 Input Terminal Connector 12-48 VDC, 24A dsPIC33CK256MP508 Bus Current Sensing Shunt IBUS_EXT MCP651S Op Amp for Bus Current Amplification DAC/ Comparators MCP9700 Temp Sensor for Thermal Protection DC Voltage Scaling Circuit VBUS Input DC Voltage WDT DMT CRC PMP +12V Output DC-DC Converter (MIC28511) +12V MCP2200 USB to UART Converter mikroBUSTM Socket-A mikroBUS Socket-B CAN FD Other Interfaces UART SENT SPI I2C Auxiliary Power Supply Clock +5V Output DC-DC Converter (MCP16301) +5V J1 Input Jack Connector ICSPTM Program/ Debug Reset Control 12-24 VDC, 2.5A +3.3V Output LDO (MCP1826) User Interface Potentiometer +3.3V Push Buttons ICSP Header MCLR Push Button Program/ Debug Interface PKOB V4 LEDs dsPIC33CK Low-Voltage Motor Control Board User’s Guide NOTES: DS50002927A-page 12 © 2020 Microchip Technology Inc. © 2020 Microchip Technology Inc. DS50002927A-page 13 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 BoardsTM • 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. dsPIC33CK Low-Voltage Motor Control Board User’s Guide FIGURE 2-1: CONNECTORS – dsPIC33CK LOW-VOLTAGE MOTOR CONTROL BOARD J13 J10 J6 J3 J4 J11 J12 J9 J7 J8 TABLE 2-1: MOTOR CONTROL BOARD CONNECTORS Connector No. of Designator Pins Status Description 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 PICkitTM 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 ICSPTM header – interfacing programming/debugging the dsPIC® DSC J11 16 Populated mikroBUSTM socket for interfacing a Click BoardTM 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. J16J1 J2 J14 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

J2VDC24A Three-Phase Inverter J16 Jumper J1 2.5A PGND NT1 Net Tie NT1 Net Tie t luafeDy bd etalupoPAuxiliary Power Supply t luafeDy bd etalupoPAuxiliary Power Supply t luafeDy bd etalupoPAuxiliary Power Supply t luafeDy bd etalupoPAuxiliary 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 ICSPTM Header for Programmer/Debugger Interface (J10) The 6-pin header J10 can be used for connecting the programmer/debugger, for example, PICkitTM 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 mikroBUSTM Sockets for Interfacing a Click BoardTM (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 “mikroBUSTM Standard Specifications v2.0” (refer to 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 LD2LD3 LD11 LD10 LD4 LD6 LD8 TABLE 2-11: LEDs LED Designator © 2020 Microchip Technology Inc. DS50002927A-page 19 LD5 LD7 LD9 LED Color LED Indication 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). 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 SI # Push Button Designator LED Indication 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 LED2 VBUS IBUS_EXT IBUS VA VB IB_EXT PGND IB DS50002927A-page 22 © 2020 Microchip Technology Inc. TP12 TP11 VC IBUS_FILT_EXT IA TP14 IA_EXT AGND AL TP13 BL CL AHBH DGND CH IC_EXT VREF TP21 HALL_BQEI_AQEI_INDEXHALL_A HALL_CQEI_BQEI_HOME DGND HOME 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 Signal dsPIC® DSC Pin # dsPIC DSC Pin Function dsPIC DSC Peripheral Remarks 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/ PMD10/PMA10/RB0 © 2020 Microchip Technology Inc. DS50002927A-page 25 Oscillator with PLL Connects to crystal (X2) on the board OSCO 35 OSCO/CLKO/AN6/RP33/ PMA1/PMALH/PSA1/RB1 MCLR 9 MCLR Reset Connects to a push button (SW4), ICSPTM header (J10) and PKOB circuit PGD 55 PGD3/RP37/SDA2/PMA14/ PMCS1/PSCS/RB5 In-Circuit Serial ProgrammingTM (ICSPTM) or In-Circuit Debugger Connects to ICSP header (J10) and PKOB programming/debugging tool PGC 56 PGC3/RP38/SCL2/RB6 dsPIC DSC Internal Amplifier Connections for Current Amplification SHUNT_IA_P 20 OA1IN+/AN9/PMA6/RA2 Operational Amplifier 1 (Op Amp #1) and Dedicated ADC Core #0 Differential current feedback from shunt SHUNT_IA_N 18 OA1IN-/ANA1/RA1 resistor Rsh1 connects to noninverting and inverting inputs of Op Amp #1 through input resistors IA 16 OA1OUT/AN0/CMP1A/ IBIAS0/RA0 Op Amp #1 output, which is amplified Phase A 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 Amplifier 2 (Op Amp #2) and Dedicated ADC Core #1 Differential current feedback from shunt SHUNT_IB_N 43 PGD2/OA2IN-/AN8/RP35/ RB3 resistor Rsh2 connects to noninverting and inverting inputs of Op Amp #2 through input resistors IB 41 OA2OUT/AN1/AN7/ANA0/ CMP1D/CMP2D/CMP3D/ RP34/SCL3/INT0/RB2 Op Amp #2 output, which is amplified Phase B current. For the output to be available, config- 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/ ISRC1/RP50/PMD13/ PMA13/RC2 Operational Amplifier 3 (Op Amp #3) and Shared ADC Core Differential current feedback from shunt resistor Rsh4 connects to noninverting and inverting inputs of Op Amp #3 through input SHUNT_IBUS_N 28 OA3IN-/AN13/CMP1B/ resistors ISRC0/RP49/PMA7/RC1 IBUS 23 OA3OUT/AN4/CMP3B/ IBIAS3/RA4 Op Amp #3 output, which is amplified bus 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 dsPIC33CK Low-Voltage Motor Control Board User’s Guide TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED) Signal dsPIC® DSC Pin # dsPIC DSC Pin Function dsPIC DSC Peripheral Remarks 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/ CMP1D/CMP2D/CMP3D/ RP34/SCL3/INT0/RB2 DS50002927A-page 26 © 2020 Microchip Technology Inc. Dedicated ADC Core #1 Phase Current B amplified by the amplifier U5-B; when using this output, populate the resistor R129 (0R), remove the resistor R133, if populated and disable dsPIC DSC Operational Amplifier #2 IBUS_EXT 23 OA3OUT/AN4/CMP3B/ IBIAS3/RA4 Shared ADC Core Bus current amplified by the amplifier U15; 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 Comparator #1 (CMP #1) and DAC #1 Amplified bus current is further filtered prior to connecting to the positive input of the CMP #1 used for overcurrent detection. Overcurrent threshold can be set through DAC. Comparator output is internally available as Fault input of the PWM Generators so that it can be used for shutting down PWMs without CPU intervention. Voltage Feedbacks V_BUS 33 AN15/CMP2A/IBIAS2/RP51/ PMD11/PMA11/RC3 Shared ADC Core DC bus voltage feedback V_A 30 AN17/ANN1/IBIAS1/RP54/ PMD12/PMA12/RC6 Shared ADC Core Phase A voltage feedback 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/ SDA3/RB7 Shared ADC Core Feedback from external temperature sensor interfaced via connector J9 SPEED_ REFERENCE 61 PGC1/AN11/RP41/SDA1/RB9 Shared ADC Core Potentiometer (POT1) can be used for setting the speed reference in motor control application Hall Sensor Feedbacks (Interfaced via Connector J7) HALL_A 42 RE8 I/O Ports and Change Notification (CN) Change Notification interrupt can be enabled HALL_B 44 RE9 HALL_C 57 RE10 to identify the transitions of any of the Hall sensor inputs Quadrature Encoder Feedbacks (Interfaced via Connector J8) QEI_A 5 RP60/PWM8H/PMD7/RC12 Remappable feature of I/O and QEI QEI module can be configured to read position QEI_B 6 RP61/PWM8L/PMA5/RC13 QEI_INDEX 7 RP62/PWM6H/PMA4/RC14 QEI_HOME 8 RP63/PWM6L/PMA3/RC15 or speed information based on the encoder signals as required by the motor control application Debug Interface (J6, J5 or PKOB) DEBUG_RX 13 RP78/PCI21/RD14 Remappable function of I/O and UART These signals are connected to MCP2200 DEBUG_TX 14 ANN2/RP77/RD13 (U13), header J5 and PKOB; connect and disconnect appropriate jumper resistors to establish serial communication via any of these channels Board Interface Description TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED) Signal dsPIC® DSC Pin # dsPIC DSC Pin Function dsPIC DSC Peripheral Remarks 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/ RB12 © 2020 Microchip Technology Inc. DS50002927A-page 27 PWM Generator #2 Controls top MOSFET Q3 of the Inverter 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 BoardTM Socket A Signals (J11) CLICK_AN_A 4 AN21/RE1 Analog Channel or GPIO Click Board socket is provided to extend the feature by interfacing appropriated Click CLICK_RST_A 77 RE14 CLICK_CS_A 75 TMS/RP42/PWM3H/PMD1/ RB10 CLICK_SCK_A 27 RP76/RD12 GPIO Can Remappable PWM be or configured GPIO Pin or Boards. Pin the signals requirements. feature Click are Board requirement allocated inserted as changes per in the the socket; general are based the on CLICK_MISO_A 38 CLICK_MOSI_A 36 AN18/CMP3C/ISRC3/RP74/ PMD9/PMA9/RD10 AN19/CMP2C/RP75/PMA0/ PMALL/PSA0/RD11 as SPI Input/ Output or Clock through Remappable 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/ PMA8/RC7 Can be configured 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/ RB11 Can be configured as SCCP Input or Output or use PWM Generator Output dsPIC33CK Low-Voltage Motor Control Board User’s Guide TABLE 2-14: dsPIC® DSC PIN FUNCTIONS (CONTINUED) Signal dsPIC® DSC Pin # dsPIC DSC Pin Function dsPIC DSC Peripheral Remarks Click BoardTM 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 CLICK_CS_B 48 CLICK_SCK_B 46 RP66/RD2 RP73/PCI20/RD9 RP56/ASDA1/SCK2/RC8 Dedicated Remappable GPIO Remappable PWM or GPIO SPI Pin Pin #2 or or Boards. Pin Click are generic feature allocated Board requirements. requirement inserted as per the in the changes Click socket; Board based the signal signals on the 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/ PMWR/PMENB/PSWR/RC5 DS50002927A-page 28 © 2020 Microchip Technology Inc. and Clock Pins of 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/ PMWR/PSRD/RC10 Can be configured as SCCP Input or Output or use as PWM Generator Output © 2020 Microchip Technology Inc. DS50002927A-page 29 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, mikroBUSTM sockets and a PICkitTM 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 • mikroBUSTM Sockets • Programmer/Debugger Interface Figure 3-1 and Table 3-1 describe the hardware sections of the Motor Control Board. dsPIC33CK Low-Voltage Motor Control Board User’s Guide FIGURE 3-1: HARDWARE SECTIONS TABLE 3-1: HARDWARE SECTIONS DS50002927A-page 30 © 2020 Microchip Technology Inc. 2 1 9 11 8 3 4 5 4 1 4 10 4 8 7 6 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 mikroBUSTM Sockets 11 Programmer/Debugger Interface 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 BoardsTM interfaced via the mikroBUSTM 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 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.

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

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: 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 VAR114 R117 C70 1k VREF 10k U5D 1000 pF TP17 13-DR119 R118 2.49k U10 12 +D 20R DNP C72 R120 C74 7.5k DNP C75 0.1 μF OUTD 14 VREF 2 1 3MCP6024 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 Signal Internal Amplifier Output External Amplifier Output Remarks 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 Currents IB or IB_EXT 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 R133 R129 R129 R133 In internal amplifier configuration, configure and enable Op Amp 2 (OA2). In external amplifier configuration, ensure internal amplifier Op Amp 2 (OA2) is disabled. Amplified Phase C Currents IC_EXT Not Applicable Phase C current is amplified only by external amplifier U5-C and its output (IC_EXT) is connected directly to an analog input of the dsPIC® DSC. Amplified Bus Currents IBUS or IBUS_EXT R141 R137 R137 R141 In internal amplifier configuration, configure and enable Op Amp 3 (OA3). In external amplifier configuration, ensure internal amplifier Op Amp 3 (OA3) is disabled. dsPIC33CK Low-Voltage Motor Control Board User’s Guide FIGURE 3-4: CURRENT SENSE CONFIGURATION(1) DS50002927A-page 36 © 2020 Microchip Technology Inc. Phase A Current (-) R125 IA 0R Phase A Current (+) Phase B Current (-) R133 0R Phase B Current (+) Phase C Current (-) Phase C Current (+) R137 R141 IBUS Note 1: This is a representational diagram only; for detailed schematics, refer to Appendix A. “Schematics and Layout”. +1.65V (+3.3VA/2) Bus Current (-) Bus Current (+) VREF (+1.65V) VREF (+1.65V) VREF (+1.65V) VREF (+1.65V) VREF (+1.65V) Phase A Current (+) Phase A Current (-) Rsh1 (0.010ȍ) MCP6024 MCP651S + + + + + - - - - - U5A U15 U5D U5B U5C Phase B Current (+) Phase B Current (-) Bus Current (+) Bus Current (-) Rsh1 (0.010ȍ) Rsh1 (0.010ȍ) Three-Phase Inverter Bridge Phase B Current (+) Phase A Current (+) Phase B Current (-) Phase A Current (-) IA_EXT IC_EXT Bus Current (-) Bus Current (+) IB_EXT IBUS_EXT VREF (+1.65V) VREF (+1.65V) VREF (+1.65V) R108 PGND VDC AGND IBUS_FILT_EXT Phase C Current (+) Phase C Current (-) C66 R129 R121 DNP DNP DNP Rsh1 (0.010ȍ) 0R dsPIC33CK256MP508 IB + + + - - - OA2 OA1 OA3 Fault PCI I/P C CMP1 - P + DAC M M HRPWM PG1 PG2 PG4 ADC 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 PHASE_B PHASE_C PHASE_A VDC DC Bus Voltage R70 D4 2 +3.3VA 34k 3R67 34kD5 2 +3.3 VA 3+3.3 VA +3.3 VA V_C 3.3k C51 1000 pF 1000 pF 3.3k 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 R68 D6 R69 34k34k2 113BAS40-04 BAS40-04 2 D7 311T BAS40-04 R76 34k B VAGND R73 34kC VAGND BAS40-04 R82 V_B R80 R74 34kA VR81 V_A AGND R77 34kAGND 301R 301R 301R AGND AGND AGND AGND R83 V_BUS 301R R86 R84 3.3k C49 R85 3.3k C50 1000 pF R87 C52 0.1 μF 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 TEMP_EXT DNP DNP R98 DNP C57 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: microchip.com. FIGURE 3-7: DEBUG SERIAL UART INTERFACE 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, access ports such for operating as the USB systems driver, (Linuxinformation ®, Macrelated ® and Windowsto driver ®installation ) can be found and how on the to Microchip website ( 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

dsPIC33CK256MP508 (U9) R157 MCP2200 (U13) MCP2200 (U13) D+ UART_USB_P UART_USB_P UART_USB_P J6 J6 J6 PKOB Circuit DEBUG_TX R50 0R 0R Rx Rx D+ D+ D- +3.3V UART_USB_N UART_USB_N UART_USB_P UART_USB_P UART_USB_P DEBUG_RX DEBUG_RX 5 2 3 5 2 3 5 2 3 J6 J6 J6 J6 DEBUG_RX R49 0R R158 0R Tx RST RST DGND R153 R159 MCP2200_RST DEBUG_TX 5 2 3 5 2 3 J3

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 mikroBUSTM 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 BoardsTM, 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 gories, position on such sensors, Microchip as wireless remote products connectivity temperature, (visit mikroe.com/brands/microchip) (Wi-Fi, thermocouple, BluetoothECG, ®, LoRaIrDA®), ®sensors ), interfaces (inductive in (CAN, cate- LIN, Ethernet®, DALITM, 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 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 PICkitTM 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 ICSPTM programming header, J10, is provided for connecting the programmer/debugger (for example, PICkitTM 4 In-Circuit Debugger Part Number: PG164140). For connector pin details, refer to Section 2.2.7 “ICSPTM 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. © 2020 Microchip Technology Inc. DS50002927A-page 43 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 Figure Index Schematics Sheet No. Hardware Sections 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; ICSPTM 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 FIGURE A-1: SCHEMATICS PAGE 1 OF 8 D1 BAT46W C1 U1 10R 2.2 μF 0.1uF 10V 20 PVDD BST 6 R1ILIM 18 DNP 7 8 9 PVIN PVIN PVIN 17 VIN FB 14 PGOOD 15 24 FREQ 16 EN 13 AGND VDC J1 1 32PGND C3 2.2 μF 10V R2 1.21R LX 5 C2 +12V POWER 2 mm HDR-2.54 Male 1x2 19 VDD 4 PVIN 25 PVIN (EPAD1) 0.1 μF 16V 100k R16 1MTP4 TP5 DNP DNP DGND C4 12 J16 PGND L1 100 μH TP1 PGND VDC NT1 R5 R4 1kR3 100k C5 DNP Net Tie R6 5mm Black TP 47 μF 2.2 μF 100V 1.21R SW 12 3300 50V 10k 35V PGNDPGND PGND PGND Black TP DGND+3.3VA MCP16301 10 μF 16V pF (EPAD3) SW SW 21 27 C6 10k TP7 Black TP TP9 22 μH TP22 TP20 C8 C22 Black TP Black TP 715R AGNDNet Tie 0.5 mm 0.1 μF R7J2 100k 2 DNP R8 C30 1 3 DL (NC) DH (NC) 1C9 C10 C11 C12 C13 330 μF 330 μF 330 μF 330 μF 63V 63V 63V 63V 0.1 μF R9 C7 2.2 μF 0.1 μF C21 22 μF C15 100V 16V 100V TERMINAL 1x2 10 μF 25V 0.1 μF 100V PGND PGND PGND PGND PGND (EPAD2) PGND 2 10 11 22 23 26 R10 MIC28511 PGND R11 PGND 0R0805 TP8 TP18 TP19 Black TP DGND DGNDD2 +5V 1 VIN GND 2 R12 1N4148 R13 C39 L2 4.7R DGND 82R +12V U11 15 VIN BOOST SW 6 R14 MCP1826S/3.3V +3.3V 52.3k U12 R15 TP3 DNP +3.3 VA +5V +3.3V +12V 4 EN GND VFB 3 VOUT 3 0R0805 R17 TP6 DNP 10k 0.1 μF 10 μF 16V 16V 120 pF 100V R18 C100 C101 10 μF C23 C31 16V 10 μF D3 C102 C103 C104 0.1 μF 16V C105 C106 10 μF 0.1 μF 16V 16V 25V MBRA140T3G C33 R19 AGND Designed with Altium.com AGND Black TP FIGURE A-2: SCHEMATICS PAGE 2 OF 8 Internal Op Amp OA2IN- IB OA2IN+ R121 SHUNT_IA_P PIN25 IA_EXT +3.3 VA DNP 0603 AGND C76 DNP R124 R125 C77 4.7 μF C78 C79 0.1 μF 10000 pF +3.3 VA C83 DNP C84 DNP DNP PGC dsPIC33CK256MP508 10V TANT-A MCLR C81 C82 0.1 μF 10000 pF C85 C86 4.02k 0.1% 0R 0.1 μF 10000 pF RP46/PWM1H/PMD5/RB14 1 2 AN20/RE0 C89 C90 0.1 μF 10000 pF C92 C93 0.1 μF 10000 pF 100R C97 C99 0.1 μF 0.1 μF U9 R122 R123 4.02k 0R SHUNT_IA_N 0.1% +3.3V 9 MCLR 62R 1% 470R 0.1% 12 Vൽൽ C80 OA1IN- -IA AGND +VREF 470R 0.1% 14 13 10 ANN2/RP77/RD13 RP78/PCI21/RD14 RP79/PCI22/PMA2/RD15 PWM_AH PWM_AL - +AN12/ANN0/RP48/RC0 15 0603 -+31 51 Vൽൽ Vൽൽ 1000 pF OA1 IA 71 Vൽൽ OA1OUT/AN0/CMP1A/IBIAS0/RA0 OA1IN-/ANA1/RA1 OA1IN+/AN9/PMA6/RA2 16 18 20 32 Vඌඌ 17 AN22/RE2 AN15/CMP2A/IBIAS2/RP51/PMD11/PMA11/RC3 33 IAOA1IN- OA1IN+ 50V OA1IN+ 74 73 72 54 53 52 RP64/PWM4L/PMD0/RD0 RP65/PWM4H/RD1 RP66/RD2 RP69/PMA15/PMCS2/RD5 RP70/PMD14/RD6 PGD3/RP37/SDA2/PMA14/PMCS1/PSCS/RB5 PGC3/RP38/SCL2/RB6 55 56 RP71/PMD15/RD7 TMS/RP42/PWM3H/PMD1/RB10 TCK/RP43/PWM3L/PMD2/RB11 19 AN23/RE3 57 RE10 75 76 77 RE14 DACOUT1/AN3/CMP1C/RA3 21 AGND DGND DGND 22 RE4 DGND The operational amplifiers, OA1, OA2 and OA3, are internal to dsPIC33CK256MP508 PIN 12 IBUS_FILT_EXT PIN 51 BUTTON1 PIN 71 11 Vඌඌ OA3OUT/AN4/CMP3B/IBIAS3/RA4 23 24 RE5 IBUS R126 R127 R128 +3.3V DGND 50 Vඌඌ +3.3V +3.3V 4.02k 0.1% +3.3V 70 Vඌඌ 62R 1% 4.02k 0.1% 25 26 AVൽൽ AVඌඌ PWM_CL OSCI/CLKI/AN5/RP32/PMD10/PMA10/RB0 PWM_CH AGND CLICK_RST_B CLICK_SCL_A CLICK_SDA_A 34 69 68 RP67/ASCL3/RD3 RP68/ASDA3/RD4 OA2OUT/AN1/AN7/ANA0/CMP1D/CMP2D/CMP3D/RP34/SCL3/INT0/RB2 OSCO/CLKO/AN6/RP33/PMA1/PMALH/PSA1/RB1 35 41 27 RP76/RD12 OA3IN+/AN14/CMP2B/ISRC1/RP50/PMD13/PMA13/RC2 OA3IN-/AN13/CMP1B/ISRC0/RP49/PMA7/RC1 28 29 AN17/ANN1/IBIAS1/RP54/PMD12/PMA12/RC6 30 OSCI OSCO PGD2/OA2IN-/AN8/RP35/RB3 PGC2/OA2IN+/RP36/RB4 43 45 IBOA2IN- OA2IN+ R129 IB_EXT PIN 31 CLICK_TX_B CLICK_RX_B CLICK_RX_A PGD TDO/AN2/CMP3A/RP39/SDA3/RB7 58 PGC 36 AN19/CMP2C/RP75/PMA0/PMALL/PSA0/RD11 IBCLICK_AN_B CLICK_AN_A OA3IN- OA3IN+ VREF DNPTP11 37 RE6 DNP 42 44 RE8 RE9 RP56/ASDA1/SCK2/RC8 RP57/ASCL1/SDI2/RC9 46 47 59 RE11 QEI_A QEI_B CLICK_RST_A QEI_INDEX QEI_HOME X2 OSCI OSCO OA3IN- IBUS DNPIBUS OA3IN+ DNP AGND 0603 CLICK_MISO_B CLICK_CS_B TEMP_EXT CLICK_MISO_A CLICK_SCK_A V_C 49 48 38 RP72/SDO2/PCI19/RD8 RP73/PCI20/RD9 AN18/CMP3C/ISRC3/RP74/PMD9/PMA9/RD10 PGC1/AN11/RP41/SDA1/RB9 PGD1/AN10/RP40/SCL1/RB8 60 61 IC_EXT SPEED_REFERENCE CLICK_CS_A R130 R131 R132 R133CLICK_MOSI_A CLICK_PWM_A SHUNT_IB_N DEBUG_TX V_B V_BUS 470R 0.1% LED1 LED2 39 RE7 AN16/ISRC2/RP55/PMD8/PMA8/RC7 40 V_A CLICK_TX_A CLICK_SCK_B CLICK_MOSI_B BUTTON2 62 RE12 BUTTON3 0R TDI/RP44/PWM2H/PMD3/RB12 62R 1% 470R 0.1% RP45/PWM2L/PMD4/RB13 78 80 PWM_BH PWM_BL DEBUG_RX CLICK_INT_A RP47/PWM1L/PMD6/RB15 3 C871000 pF OA2 50V 4 AN21/RE1 SHUNT_IB_P AGND RP60/PWM8H/PMD7/RC12 RP61/PWM8L/PMA5/RC13 5 6 79 RE15 RP62/PWM6H/PMA4/RC14 RP63/PWM6L/PMA3/RC15 7 8 dsPIC33CK256MP508 OA3 TEMP_LOCAL R134 R135 R136 62R 1% C88 TP12RP53/PWM5L/ASCL2/PMWR/PMENB/PSWR/RC5 RP52/PWM5H/ASDA2/RC4 63 65 CLICK_SDA_B CLICK_SCL_B RP58/PWM7H/PMRD/PMWR/PSRD/RC10 RP59/PWM7L/RC11 4.02k 0.1% 66 67 CLICK_PWM_B CLICK_INT_B 64 RE13 TP13 DNPC91 DNP C98 DNP HALL_A HALL_B HALL_C R137 DGND IBUS_EXT DNP AGND R138 R139 R140 R141 SHUNT_IBUS_N 62R 1% 470R 0.1% +3.3V C96R142 4.7k SHUNT_IBUS_P VREF 470R 0.1% 4.02k 0.1% 1AGND 4 DGND C94 C95 1000 pF DNP DNP 50V R144 R145 R146 R143 MCLR J10 +3.3V DGND DGND 62R 1% 2SW4 MCLR Vൽൽ GND PGD PGC AUX 12MCLR 3PTS645SM43SMTR92 LFS 456 3 ICSPTM DNP PGD DGND FIGURE A-3: SCHEMATICS PAGE 3 OF 8 External Op Amp VREF R120 7.5k Phase Voltage Feedbacks PHASE_A PHASE_B V_C VDC R66 R87 3.3k C52 0.1 μF 4.02k 0.1% PHASE_C C107 DNP AGND 4.02k 0.1% R70 D4 2 R86 3.3k DC Bus Voltage C47 DNP +3.3 VA +3.3 VA +3.3 VA +3.3 VA +3.3 VA 34k 3 +3.3 VA +3.3 VA +3.3 VA +3.3 VA +3.3 VA R67 D5 R68 R69 34k 34k 34k 2 13 BAS40-04 1BAS40-04 AGND AGND AGND AGND 2 D6 3 1BAS40-04 D7 12 DNP 2 SHUNT_IA_N R71 R72 IA_EXT 3 162R 1% C46 470R 0.1% 1000 pF BAS40-04 62R 1% 470R 0.1% 2 -A 4 U5A MCP6024 R75 R78 50V R79 3 +A IA_EXT VREF IB_EXT SHUNT_IB_P 5 +B Vൽൽ OUTA 1 R76 34k R73 Vඌඌ B VAGND 34k C VAGND R74 34k A VR77 AGND 34k AGND 11301R 301R 301R V SHUNT_IA_P 301R C48 DNP 0R 0603 R82 V_B R81 R85 3.3k AGND R80 V_A R83 V_BUS AGND C51 1000 pF R84 3.3k C49 1000 pF C50 1000 pF R88 AGND AGND 4.02k 0.1% R117 10k AGND AGND AGND AGND C53 R89 Temperature Sensor Interface – External Temperature Sensor – MOSFET Thermal Protection Speed Reference DNP R90 SHUNT_IB_N 62R 1% R91 U5B 470R 0.1% 6 -B -B R92 200R DNP C56 C58 DNP C60 0.1 μF 0.1 μF 4.02k 0.1% 0R0603 TEMP_EXT IB_EXT J9 TP21 OUTB OUTB 7 3 C54 R94 R93 U14 TEMP_LOCAL POT1 2 10k 1SPEED_REFERENCE R95 1000 50V pF R96 +B 0R0603 TP14 62R 1% 470R 0.1% MCP6024 TEMP_EXT 4 Vൽൽ C59 R98 DNP C57 DNP TEMP_LOCAL 2 GND 100R DNP MCP9700 VREF IBUS_FILT_EXT IC_EXT Voltage Reference SHUNT_IC_P 10 +C Vඋൾൿ TP17 C55 Vඈඎඍ 3 R97 1 μF AGND AGND R99 100R R100 IBUS_EXT 4.02k 0.1% PGND AGND AGND +3.3 VA DC Bus Current Sensing Circuit +3.3 VA R101 R102 C73 C61 4.02k 0.1% IBUS_EXT C62 DNP AGND 0.1 μF DNP SHUNT_IBUS_P C65 DNP 4.02k 0.1% 4.02k 0.1% C71 0.1 μF C72 0.1 μF AGND SHUNT_IC_N R105 R106 U5C IC_EXT C67 DNP R114 AGND 1kAGND AGND AGND R103 SHUNT_IBUS_N 62R 1% R104 U15 9 -C OUTC 8 470R 0.1% 4 -A 5 MCP651S 62R 1% 470R 0.1% -C C64 R112 1000 pF 50V+C R109 VൽൽOUTA A1 IBUS_FILT_EXT OUTC Vඌඌ A C 470R 0.1% 470R 0.1% VREF 12 +D AGND C63 R107 R108 R113 C R110 1000 pF R111 3 +A 0R200R 0603 62R 1% MCP6024 62R 1% C66 C68 10000 pF C69 DNP R115 DNP C70 VREF AGND C75 0.1 μF R116 AGND U5D 1000 pF 13 -D -D R119 2.49k 2 U10 1 OUTD OUTD 14 R118 20R +D DDNP 3MCP6024 C74 DNP AGND AGND AGND FIGURE A-4: SCHEMATICS PAGE 4 OF 8 HO_A HS_GATE_A LO_A LS_GATE_A Vൽർ VDC PGND HB HO HS 2 3 4 C125 SIR120DP 5,6,7,8 Q3 4 1,2,3 DNP SIR120DP 5,6,7,8 C124 Q1 DNP 4 1,2,3 2.2 μF 4 2.2 μF HS_GATE_A 4 1,2,3 100V 1,2,3 100V 4 1,2,3 C129 J14 PGND PGND PGND PGND 0.01R 2512 ±1% +12V 2.74R HS_GATE_B HS_GATE_C 3 21TERMINAL 1x3 LS_GATE_A C126 C127 5,6,7,8 DNP SIR120DP Q5 C128 2.2 μF DNP C132 R176 C130 R175 DNP R174 100V PHASE_A DNP 332k PGND PGND 332k C131 332k DNP PHASE_B PHASE_C PHASE_A PHASE_B PHASE_C SIR120DP 5,6,7,8 SIR120DP 5,6,7,8 Q4 SIR120DP 5,6,7,8 Q2 LS_GATE_B LS_GATE_C 4 1,2,3 DNP 332k DNP 332k 332k SHUNT_IA_N D10 DNPD12 DNPQ6 SHUNT_IBUS_P C133 R177 R180 SHUNT_IB_P C134 R178 C135 R179 SHUNT_IC_P 39R 0805 R181 DNP D8 SHUNT_IA_P HO_C HS_GATE_C DNPD9 LO_C LS_GATE_C DNPSHUNT_IBUS_N D11 DNPD13 DNPDNP Rsh1 Rsh2 0.01R Rsh3 0.01R 2512 ±1% DNP SHUNT_IB_N 2512 ±1% 0.01R 2512 ±1% PGND PGND PGND PGND SHUNT_IC_N R182 39R 0805 Rsh4 R183 R184 39R 0805 R185 39R 0805 R186 39R HO_B DNP HS_GATE_B C137 PHASE_C 0805 R187 R188 1 μF LO_B LS_GATE_B DNP DNP PGND C136R192 PGND DNP DNP 39R 0805 LO_C 8 U18 1 μF 2.74R 7 6 5 LO Vඌඌ R189 R190 LI HI Vൽൽ HB HO HS 1 2 PWM_CL PWM_CH 3 4 HO_C MIC4605-1YM-TR R191 R193 R194 D14 DNP DNP VSSA210-E3/61T +12V +12V PWM_BH PGND C140 PHASE_A C141 PHASE_B PGND PGND 1 μF 1 U16 C138R195 LO_A 8 LO Vൽൽ 1 1 μF VSSA210-E3/61T PGND PGNDU17 μF C139R196 LO_B 8 LO HB HO HS 1 μF 2.74R 7 PWM_AL 6 5 Vඌඌ LI HO_A HI PWM_BL 7 6 5 Vඌඌ LI HI Vൽൽ 1 2 3 4 HO_B PWM_AH MIC4605-1YM-TR MIC4605-1YM-TR D16 R197 R198 D15 R199 R200 DNP DNP VSSA210-E3/61T PGND FIGURE A-5: SCHEMATICS PAGE 5 OF 8 mikroBUSTM Interface A +3.3V +3.3V CLICK_SCL_A CLICK_SDA_A +5V I2C pull-ups are not populated, typically installed on mikroBUS daughter boards. R161 R162 1k1kR163 R164 1k1kmikroBUSTM Interface B +3.3V +3.3V CLICK_SCL_B CLICK_SDA_B +5V I2C pull-ups are not populated, typically installed on mikroBUS daughter boards. Push Buttons +3.3V Diagnostics USB to UART Interface 5V_USB UART_USB_N ID 4 UART_USB_P R154 1kR1561kGREEN 5V_USB J11 CLICK_AN_A CLICK_RST_A CLICK_CS_A CLICK_SCK_A CLICK_MISO_A 1 2 3 4 5 6 7 8 AN ANRST CS SCK MISO MOSI +3.3V GND PWM 16 INT RX TX SCL SDA +5V GND J12 15 14 13 12 CLICK_PWM_A CLICK_INT_A CLICK_RX_A CLICK_TX_A R20 R21 DNP DNP 11 5 x1elaM45.2-RDHJ3 DNP MCP2200_RST Note: Note: Power-on Status General Purpose LEDs PWM Indication LEDs R22 R169 DNP 10 9 CLICK_AN_B CLICK_RST_B 1 2 3 4 5 6 7 8 AN ANRST CS SCK MISO MOSI +3.3V GND PWM INT RX TX SCL SDA +5V GND 16 15 14 13 12 11 10 9 CLICK_PWM_B CLICK_INT_B DNP CLICK_CS_B 0.1 CLICK_TX_B C119 CLICK_RX_B μF CLICK_MOSI_A CLICK_SCK_B CLICK_MISO_B +3.3V USB Micro-B TH/SMT CLICK_MOSI_B J6 R153 4.7k 0.1 μF U13 1 2 3 4 5 6 7 8 9 10 VDD OSC1 OSC2 RST GP7/TxLED GP6/RxLED GP5 GP4 GP3 TX VSS D+ D- VUSB GP0 GP1 GP2 CTS RX RTS 20 19 18 17 16 15 14 13 12 11 MCP2200DGND C108 0.1 μF C116 C117 C118 DEBUG_TX DEBUG_RX VBUS D- D+ 1 2 3 0.1 μF 0.1 μF 0.1 μF GND 5 0 DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND +3.3V +3.3V +3.3V +3.3V +3.3V +3.3V +3.3V X1 C120 R147 4.7k R148 4.7k R149 4.7k 2 DGND 100R UART_USB_P UART_USB_N 111MCP2200_RST C122 C121 C142 C123 0.1 μF 0.1 μF 0.1 μF R159 DNP DGND DGND 1 12 MHz LD1 LD2 R152 R151 BUTTON2 R150 BUTTON3 YELLOW 3DGND 2100R BUTTON1 2100R 2SW3 SW1 SW2 PTS645SM43SMTR92 LFS PTS645SM43SMTR92 LFS 3 4 PTS645SM43SMTR92 LFS 3 4 3 4 0.1 μF R158 R157 DEBUG_TX DEBUG_RX 0R 0R DGNDDGND DGND J15 11PWM_AL 22PWM_AH 33PWM_BL 44PWM_BH 1 DEL2 DELLED2 TP16 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 H A_MWPL A_MWPH B_MWPH C_MWPL B_MWP556677DNP DGND L C_MWPR165 R166 1k1kR167 R168 1k1kPWM_CL PWM_CH R160 LED1 1kTP15 FIGURE A-6: SCHEMATICS PAGE 6 OF 8 Hall Sensor Interface +3.3V +5V +3.3V R170 4.7k D19 D18 HALL_A HALL_B HALL_C SD103AW 4.7k SD103AW HALL_A HALL_C 100 pF DGND DGND DGND DGND DGND DGND +5V D23 SD103AW D22 D21 SD103AW SD103AW D17 SD103AW D20 SD103AW QEI_A QEI_INDEX HOME DGND DGND DGND DGND DGND DGND DGND DGND Fiducial R171 R172 4.7k J7 123456 TERMINAL 1x6 1R173 2345100R 6 TERMINAL 1x6 100R R204 100R HALL_B R203 R202 DNP C109 R201 C110 DNP 100 pF C111 100 pF R62 R63 2.2k 2.2k R52 DNP DGND +3.3V Quadrature Encoder Interface +3.3V QEI_A QEI_B QEI_INDEX QEI_HOMER54 DNP R56 DNP R55 R57 DNP DNP J8 R58 1k R59 QEI_B R60 1k R61 1k QEI_HOME 1k C112 10 pF C113 R64 2.2k C143 10 pF 10 pF R65 2.2k C144 DGND 10 pF FD1 FD2 FD3 FD4 Fiducial Fiducial Fiducial PAD1 Bumpon Hemisphere Black PAD2 PAD3 PAD4 FIGURE A-7: SCHEMATICS PAGE 7 OF 8 D_P 3V3 R23 R24 R155 PICkitTM On-Board 4 C28 4.7k 4.7k 10k 0402 0402 0402 1%1%1%1 STB 2 GND OUT 3 VDD_GND PKOB4_SWDIO PKOB4_SWCLK PKOB USB Interface 0.5A 1210 TIOA0 U4A PD0/GTXCK/PWMC1_PWML0/SPI1_NPCS1 1 DGI_IO0 0.1 PD1/GTXEN/PWMC1_PWMH0/SPI1_NPCS2 UTIL_SDA UTIL_SCL ERASE μF 25V 0603 PD2/GTX0/PWMC1_PWML1/SPI1_NPCS3 PD3/GTX1/PWMC1_PWMH1/UTXD4 DGI_IO2 UTIL_SDA UTIL_SCL (DW_RX) 72 70 66 64 DGI_IO3 55 SYS_ID1 52 24 STRONG_PULLUP_EN 25 54 46 44 48 27 34 33 30 16 15 14 13 21 26 31 38 40 42 50 79 82 PA0/PWMC0_PWMH0/TIOA0/A17/BA1 PA1/PWMC0_PWML0/TIOB0/A18 PA2/PWMC0_PWMH1/DATRG PA3/TWD0/LONCOL1/PCK2 PA4/TWCK0/TCLK0/UTXD1 PD4/GRXDV/PWMC1_PWML2/TRACED0 PA5/WMC1_PWML3/ISI_D4/URXD1 PD5/GRX0/PWMC1_PWMH2/TRACED1 PA7/XIN32 PD6/GRX1/PWMC1_PWML3/TRACED2 PA8/XOUT32 PD7/GRXER/PWMC1_PWMH3/TRACED3 PA9/URXD0/ISI_D3/PWMC0_PWMFI0 PD8/GMDC/PWMC0_PWMFI1 PKOB4_REV0 PKOB4_REV1 PKOB4_REV2 PKOB4_REV3 PKOB4_REV4 PA10/UTXD0/PWMC0_PWMEXTRG0/RD PD9/GMDIO/PWMC0_PWMFI2/AFE1_ADTRG PA11/QCS/PWMC0_PWMH0/PWMC1_PWML0 PD10/PWMC0_PWML0/TD PA12/QIO1/PWMC0_PWMH1/PWMC1_PWMH0 PD11/GRX2/PWMC0_PWMH0/GTSUCOMP PA13/QIO0/PWMC0_PWMH2/PWMC1_PWML1 PD12/GRX3/CANTX1/SPI0_NPCS2 PA14/QSCK/PWMC0_PWMH3 PD13/GCOL/SDA10 PA15/D14/TIOA1/PWMC0_PWML3 PD14/GRXCK/SDCKE PA16/D15/TIOB1/PWMC0_PWML2 PD15/GTX2/RXD2/NWR1/NBS1 PA17/QIO2/PCK1/PWMC0_PWMH3 PD16/GTX3/TXD2/RAS PA18/PWMC1_PWMEXTRG1/PCK2/A14 PD17/GTXER/SCK2/CAS PA19/PWMC0_PWML0/A15 PD18/NCS1/SDCS/RTS2/URXD4 PA20/PWMC0_PWML1/A16/BA0 PD19/NCS3/CTS2/UTXD4 PA21/RXD1/PCK1/PWMC1_PWMFI0 PD20/PWMC0_PWMH0/SPI0_MISO/GTSUCOMP PA22/RK/PWMC0_PWMEXTRG1/NCS2 PD21/PWMC0_PWMH1/SPI0_MOSI/TIOA11 PA23/SCK1/PWMC0_PWMH0/A19 PD22/PWMC0_PWMH2/SPI0_SPCK/TIOB11 PA24/RTS1/PWMC0_PWMH1/A20 PD24/PWMC0_PWML0/RF/TCLK11 ISP_SPI1_SPCK PA25/CTS1/PWMC0_PWMH2/A23 PD25/PWMC0_PWML1/SPI0_NPCS1/URXD2 PA26/DCD1/TIOA2/MCDA2 PD26/PWMC0_PWML2/TD/UTXD2 PA27/DTR1/TIOB2/MCDA3 PD27/PWMC0_PWML3/SPI0_NPCS3/TWD2 PA28/DSR1/TCLK1/MCCDA PD28/URXD3/CANRX1/TWCK2 PD30/UTXD3 PD31/QIO3/UTXD3/PCK2 92 DGI_IO1 3V3 91 89 88 87 85 84 80 78 71 69 65 62 59 75 56 53 49 47 45 43 41 37 35 36 32 51 23 3V3 DSC6011JI1A-012.0000 83 2 95 94 58 60 73 9 6 97 HSDP HSDM NRST TST JTAGSEL VREFP VREFN VBG DATA_EN DGI_I2C_SCL PA30/PWMC0_PWML2/PWMC1_PWMEXTRG0 PA31/SPI0_NPCS1/PCK2/MCDA1 PB0/PWMC0_PWMH0/RXD0 PB1/PWMC0_PWMH1/GTSUCOMP/TXD0 PB2/CANTX0/CTS0 PB3/CANRX0/PCK2/RTS0 PB4/TDI/TWD1/PWMC0_PWMH2 PB5/TDO/TWCK1/PWMC0_PWML0 PB6/SWDIO/TMS PB7/SWCLK/TCK PB8/XOUT PB9/XIN PB12/ERASE/PWMC0_PWML1/GTSUCOMP PB13/PWMC0_PWML2/PCK0/SCK0 12 11 17 20 74 77 57 63 98 99 61 100 XIN X3 PKoB Revision 1 VDD 4 Reserved for PKOB4 PG_SYSTEM XIN 12.00 MHz SYS_ID2 SYS_ID4 3V3R43 ((U)PDI_RXD1) 31.6k 0402 PDI_SCK1 1%TVDD_GOOD R44 47k 0402 1%((U)PDI_TXD1) ERASE ATSAME70N21B-ANT 24LC256 3V3 31.6k 0402 5V0_nUSBFLT R29 10k 0402 1%5V0_USBGOOD ACTIVE SYS_ID3 STATUS DGI_IO3_DIR ISP_SPI_SS DGI_IO2_DIR DGI_IO1_DIR VCP DATA_EN CLK_EN DATA_EN CLK_EN STREAM_RXD2 VCP STREAM_SCK2 VBUS_DETECT DGI_IO0_DIR CLK_EN TVDD_GOOD ICSP_FORCE_SPI_SS ATSAME70N21B-ANT (TDI_IN) STREAM_TXD2 (TMS_IN) (TAUX_IN) VCP_UART_RX VCP_UART_TX VPP_ON VBUS_DETECT VPP_GND PDI_RXD1 ICSPTM (TAUX_TAR) TAUX_DIR TMS_DIR ICSP_SPI0_MISO (ICSP_SDI) ICSP_SPI0_MOSI (ICSP_SDO) ICSP_SPI0_SPCK (ICSP_SCK) ICSP_SPI0_MISO ICSP_SPI0_MOSI ICSP_SPI0_SPCK MISO MOSI SCK DW_RX SCK_IN ICSP TDI_DIR 3V3 DW_TX DGI_I2C_SDA CLK_EN DATA_EN R31 10k 1% 0402D_P D_N D_P ISP_SPI1_MISO D_N ISP_SPI1_MOSI (TDI_TAR) PKOB4_nRST (SPI0_NPCS0) PDI_TXD1 ISP_SPI1_SPCK (SCK_IN) 74LVC1G3157 3V3 3V3 SWD PKOB4_nRST CTS0_SPI1_SS SPI1_NPCS0 (TMS_TAR) R25 5.62k 0402 1%3V3 USB_VBIAS PKOB4_TDO PKOB4_TDO 5V PKOB4_SWDIO PKOB4_SWCLK 3V3 U3 SPI1_NPCS0 1 ISP_SPI_SS 2 ICSP_FORCE_SPI_SS 3 B2 GND B1 S VCC A 6 XIN 5 4 CTS0_SPI1_SS C41 0.1 μF 25V 0603 0.1 μF 3V3 Vൽൽർඈඋൾ U4B 25V 0603 3V3 3V3 3V3 (TDI_PGD) (TAUX) 18 22 39 76 VDDCORE R26 R27 R28 Vൽൽർඈඋൾ 3V3VDDCORE VDDCORE 100k 100k 100k VDDCORE 0402 0402 0402 1%1%1%FB1 FB2 Vൽൽർඈඋൾ 93 86 96 VDDUTMII VDDPLL VDDUTMIC PKOB4_SWDIO 90 VDDPLLUSB 4.7 μF 0603 16V Vඌඌඑ඗ Bypass Caps Vඌඌඋ඗කඍ Bypass Caps 19 28 GND 68 81 VDDIO VDDIO VDDIO VDDIO 3 GND GND GND GND GND 7 8 10 29 67 3V3 Vൽൽർඈඋൾ J5 (TDO_SWO) (NMCLR) (VDD_VIOREF) (TCK_PGC_SWDCLK) 12343V3 PKOB4_TDO 567(TMS_SWDIO) 8 DNP16V 1 μF 0603 PKOB4_nRST 5 VDDIN C14 C16 C17 C18 C19 C20 C24 C25 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 0.1 μF 25V 25V 25V 25V 25V 25V 25V 25V PKOB4_SWCLK C32 4 VDDOUT 0603 0603 0603 0603 0603 0603 0603 0603 0.1 μF 25V 0603 C27 C38 C34 C35 C36 C37 4.7 μF 0.1 μF 0.1 μF 0603 25V 25V 16V0603 0603 0.1 μF 25V 0603 3V3 E LAMEFB-ORCIMBSUJ13 VBUS D- D+ 1 2 3 U2 8 VCC UTIL_SCL 0 D_N TH1 R45 VSS 1% 4 ID GND 4 5 R46 3 2 A2 A1 SCL 6 47k 0402 1%SDA 5 WP 7 UTIL_SDA VBUS_DETECT J4 3V3 C40 ERASE DNP 1 A0 FIGURE A-8: SCHEMATICS PAGE 8 OF 8 PICkitTM On-Board 4 (buffers) 74LVC1T45GW CLK_EN 3V33V3 3V3 3V3 330R 0402 1% Target ICSPTM Signals C26 0.1 μF 25V 0603 U6 0.1 1 VCCA VCCB 6 25V μF DATA_EN DATA_EN 5 DIR 0603 3 A B 4 2 GND 330R 0402 1% 0.1 μF 25V 0603 R40 22R 0603 1%MOSI SCK ICSP_SPI0_MOSI (ICSP_SDO) R34 ICSP_SPI0_MISO (ICSP_SDI) 330R 0402 1% ISP_SPI1_SPCK ICSP_SPI0_SPCK (ICSP_SCK) (SCK_IN) PGD To Application PGD R35 C43 0.1 μF 25V R32 0603 To Application PGC 74LVC1T45GW 0R0805 R30 10k 0402 1%R38 4.7k 0402 ICSP 3.3k 1%ICSP_SPI0_MOSI 0402 MISO ICSP_SPI0_MISO ICSP_SPI0_SPCK 1%3V3 ICSP SCK_IN CLK_EN DATA_EN R36 330R 0402 1% R39ISP_SPI1_SPCK 4.7k 0402 1%R33 3.3k 0402 1%R51 10k 0402 1%VPP_ON Vඉඉ/MCLR To Application Vඉඉ/MCLR 74LVC1T45GW C29 U7 CLK_EN DATA_EN 1 VCCA VCCB 6 CLK_EN 5 DIR 3 A B 4 2 GND 0.1 μF 25V 0603 R41 22R 0603 1%PGC C44 R37 0.1 μF 25V Power Supply Connection – PKOB 0603 +3.3V 3V3 R47 0R0805 DGND R49 0RR50 DEBUG_RX 0R3V3 R48 C42 U8 1 VCCA VCCB 6 5 DIR 3 A B 4 R42 2 GND 1k0603 1%MCLR VCP C45 DEBUG_TX VCP_UART_RX VCP VCP_UART_TX 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. © 2020 Microchip Technology Inc. DS50002927A-page 55 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. dsPIC33CK Low-Voltage Motor Control Board User’s Guide NOTES: DS50002927A-page 56 © 2020 Microchip Technology Inc. © 2020 Microchip Technology Inc. DS50002927A-page 57 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 VREF C DD Filter, Feedback and Bias Circuit D E SHUNT_IBUS_N U9 B AdsPIC33CK256MP508 SHUNT_IA_P B Filter, ESHUNT_IA_N AFeedback and Bias Circuit F 2018 Op Amp 1 16 IAVREF C SHUNT_IB_P E SHUNT_IB_N F4543 Op Amp 2 41 IBVREF C B Filter, AFeedback and F Bias Circuit SHUNT_IBUS_P 2928 Op Amp 3 23 IBUS dsPIC33CK Low-Voltage Motor Control Board User’s Guide FIGURE C-2: EXTERNAL CURRENT AMPLIFIERS (U5, U15) VREF C DU5 MCP6024 SHUNT_IA_P B Filter, EAFeedback and Bias Circuit F 32 Op Amp A 1 D B Filter, AFeedback and Bias Circuit F56 Op Amp B 7 IB_EXT D SHUNT_IC_N IA_EXT SHUNT_IA_N VREF C SHUNT_IB_P E SHUNT_IB_N VREF C SHUNT_IC_P B Filter, E 10AFeedback and F Bias Circuit 9 Op Amp C 8 IC_EXT U15 VREF C D MCP651S SHUNT_IBUS_P B Filter, E 3SHUNT_IBUS_N AFeedback and Bias Circuit F 4 DS50002927A-page 58 © 2020 Microchip Technology Inc. 1 IBUS_EXT Design Details FIGURE C-3: FILTER, FEEDBACK AND BIAS CIRCUIT C D C2 RF RF B © 2020 Microchip Technology Inc. DS50002927A-page 59 RRIN IN1 RRININ2 EC1RRIN IN1 RRIN IN2 AF 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 Differential Amplifier Gain = Rf (RIN1 + RIN2) EQUATION C-2: CUTOFF FREQUENCY DIFFERENTIAL-MODE FILTER Differential-mode f–3dB ≅ 1 2π(RIN1 + RIN2) ⎛⎝ C22 + C1 ⎞⎠ EQUATION C-3: CUTOFF FREQUENCY COMMON-MODE FILTER Common-mode f–3dB ≅ 2π(RIN11 )(C2) 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 Amplifier Gain Peak Current @ 1.65V DS50002927A-page 60 © 2020 Microchip Technology Inc. Rf Resistor Part Number (use below part number 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 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 +12V Output +5V Output DC-DC DC-DC Converter Converter (MIC28511) (MCP16301) +3.3V +3.3V Output LDO (MCP1826) 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 20 U1 R1 PVDD 10R C2 C3 0.1 μF 2.2 μF 19 VDD DNP 7 8 9 BST 6 2.2 μF R2 PGND 1.21R LX 5 +12V ILIM 18 4 PVIN PVIN PVIN R4 1k25 PVIN PVIN (EPAD1) C6 17 VIN 0.1 μF R7R8 FB 14 100k 100k PGOOD 15 24 FREQ R11 16 EN DNP 13 AGND PGND © 2020 Microchip Technology Inc. DS50002927A-page 61 C4 PGND L1 100 μH R3 100k R5 1.21R SW SW (EPAD3) SW 12 21 27 C7 C8 47 μF 2.2 μF 22 μF C15 2.2 μF R10 715RPGND R6 C5 10kC22 0.1 μF 10k 3300 pF C30 DL 0.1 μF 1 3 (NC) DH (NC) R9 C13 PGND PGND PGND PGND PGND (EPAD2) PGND 2 10 11 22 23 26 MIC28511 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 VOUT – VFB = 0.8 11.2V × 10k ≅ 714.3Ω • The to decide MIC28511 the current uses the limit. RDS-ON The current and a resistor limit resistor connected R4 value from is ILIM calculated to the SW as: DS50002927A-page 62 © 2020 Microchip Technology Inc. node (ICLIM – ∆IL(PP) × 0.5) × RDS-ON + VCL ICL = (2A – 0.2 × 0.5) 70 × μA 28 mΩ + 14 mV = 960Ω • 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: (VINMAX – VOUT) × VINMAX VOUT ∆IL × ILMAX × FSW = 0.2 (60V × 0.8A – 12V) × 680 × 12V 60V kHz = 88.23 μH - The minimum value of the output capacitance can be calculated based on the selected output inductance L1 (100 μH), which is: L × IPK2 (VOUT + ∆VOUT)2 – VOUT2 = 100 μH × (0.8A + 0.8A 2 × 0.2 )2 (12 + 0.1)2 – (12)2 = 100 μH × (0.88)(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”. 2 = 32 μF 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 VBUCKVIN SWCIN COUT EN 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: 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 L D RSNU CSNU RTOP1 = RBOT1 × ⎛⎝ VBUCK VFB – 1 ⎞⎠ K = VBUCK/L 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: ID(AVG) = ⎛⎝ 1 – DCVBUCK LOCAL DS50002927A-page 64 © 2020 Microchip Technology Inc. ⎞⎠ × IOUT 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. Design Details FIGURE C-7: +3.3V POWER SUPPLY +5V MCP1826S/3.3V +3.3V +3.3 VA U12 1 VIN VIN VOUT VOUT 3 R15 GND 0R0805 2 C100 C101 10 μF 10 μF DGND © 2020 Microchip Technology Inc. DS50002927A-page 65 C102 0.1 μF C103 0.1 μF C104 10 μF C105 10 μF C106 0.1 μF R19 0R0805 AGND DS50002927A-page 66 © 2020 Microchip Technology Inc. AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: microchip.com/ support Web Address: microchip.com Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Austin, TX Tel: 512-257-3370 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Tel: 317-536-2380 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 Tel: 951-273-7800 Raleigh, NC Tel: 919-844-7510 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Tel: 408-436-4270 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 Worldwide Sales and Service ASIA/PACIFIC ASIA/PACIFIC EUROPE Australia - Sydney India - Bangalore Austria - Wels Tel: 61-2-9868-6733 Tel: 91-80-3090-4444 Tel: 43-7242-2244-39 China - Beijing India - New Delhi Fax: 43-7242-2244-393 Tel: 86-10-8569-7000 Tel: 91-11-4160-8631 Denmark - Copenhagen China - Chengdu India - Pune Tel: 86-28-8665-5511 Tel: 91-20-4121-0141 05/14/19 Tel: 45-4450-2828 Fax: 45-4485-2829 China - Chongqing Japan - Osaka Tel: 86-23-8980-9588 Tel: 81-6-6152-7160 Finland - Espoo Tel: 358-9-4520-820 China - Dongguan Tel: 86-769-8702-9880 Japan - Tokyo Tel: 81-3-6880- 3770 France - Paris Tel: 33-1-69-53-63-20 China - Guangzhou Korea - Daegu Fax: 33-1-69-30-90-79 Tel: 86-20-8755-8029 Tel: 82-53-744-4301 Germany - Garching China - Hangzhou Korea - Seoul Tel: 49-8931-9700 Tel: 86-571-8792-8115 Tel: 82-2-554-7200 Germany - Haan China - Hong Kong SAR Malaysia - Kuala Lumpur Tel: 49-2129-3766400 Tel: 852-2943-5100 Tel: 60-3-7651-7906 Germany - Heilbronn China - Nanjing Malaysia - Penang Tel: 49-7131-72400 Tel: 86-25-8473-2460 Tel: 60-4-227-8870 Germany - Karlsruhe China - Qingdao Philippines - Manila Tel: 49-721-625370 Tel: 86-532-8502-7355 Tel: 63-2-634-9065 Germany - Munich China - Shanghai Singapore Tel: 86-21-3326-8000 Tel: 65-6334-8870 Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 China - Shenyang Tel: 86-24-2334-2829 Taiwan - Hsin Chu Tel: 886-3-577-8366 Germany - Rosenheim Tel: 49-8031-354-560 China - Shenzhen Tel: 86-755-8864-2200 Taiwan - Kaohsiung Tel: 886-7-213-7830 Israel - Ra’anana Tel: 972-9-744-7705 China - Suzhou Tel: 86-186-6233-1526 China - Wuhan Tel: 86-27-5980-5300 China - Xian Tel: 86-29-8833-7252 China - Xiamen Tel: 86-592-2388138 China - Zhuhai Tel: 86-756-3210040 Taiwan - Taipei Tel: 886-2-2508-8600 Thailand - Bangkok Tel: 66-2-694-1351 Vietnam - Ho Chi Minh Tel: 84-28-5448-2100 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Padova Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Norway - Trondheim Tel: 47-7288-4388 Poland - Warsaw Tel: 48-22-3325737 Romania - Bucharest Tel: 40-21-407-87-50 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Gothenberg Tel: 46-31-704-60-40 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820


FREE ENGLISH PDF

OPERATING INSTRUCTIONS

USER GUIDE - USER MANUAL

OWNER GUIDE - OWNER MANUAL

REFERENCE GUIDE - REFERENCE MANUAL

INSTRUCTION GUIDE - INSTRUCTION MANUAL

Leave a Reply