MICROCHIP ADM00599 Operating instructions

Type
Operating instructions
2017 Microchip Technology Inc. DS50002648A
MCP8026
TQFP BLDC Motor Driver
Evaluation Board
Users Guide
DS50002648A-page 2 2017 Microchip Technology Inc.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights unless otherwise stated.
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.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
QUALITYMANAGEMENTS
YSTEM
CERTIFIEDBYDNV
== ISO/TS16949==
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate,
dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq,
KeeLoq logo, Kleer, LANCheck, LINK MD, MediaLB, MOST,
MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC32 logo,
RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O
are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
ClockWorks, The Embedded Control Solutions Company,
ETHERSYNCH, Hyper Speed Control, HyperLight Load,
IntelliMOS, mTouch, Precision Edge, and QUIET-WIRE are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut,
BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, Dynamic Average Matching, DAM, ECAN,
EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip
Connectivity, JitterBlocker, KleerNet, KleerNet logo, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB,
MPLINK, MultiTRAK, NetDetach, Omniscient Code
Generation, PICDEM, PICDEM.net, PICkit, PICtail,
PureSilicon, RightTouch logo, REAL ICE, Ripple Blocker,
Serial Quad I/O, 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.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
GestIC is a registered trademarks 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.
© 2017, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
ISBN: 978-1-5224-2179-5
2017 Microchip Technology Inc. DS50002648A-page 3
EU Declaration of Conformity
This declaration of conformity is issued by the manufacturer.
The development/evaluation tool is designed to be used for research and development in a laboratory environment. This
development/evaluation tool is not a Finished Appliance, nor is it intended for incorporation into Finished Appliances that are made
commercially available as single functional units to end users under EU EMC Directive 2004/108/EC and as supported by the European
Commission's Guide for the EMC Directive 2004/108/EC (8th February 2010).
This development/evaluation tool complies with EU RoHS2 Directive 2011/65/EU.
This development/evaluation tool, when incorporating wireless and radio-telecom functionality, is in compliance with the essential
requirement and other relevant provisions of the R&TTE Directive 1999/5/EC and the FCC rules as stated in the declaration of conformity
provided in the module datasheet and the module product page available at www.microchip.com.
For information regarding the exclusive, limited warranties applicable to Microchip products, please see Microchip’s standard terms and
conditions of sale, which are printed on our sales documentation and available at www.microchip.com.
Signed for and on behalf of Microchip Technology Inc. at Chandler, Arizona, USA.
Object of Declaration: MCP8026 TQFP BLDC Motor Driver Evaluation Board
Automotive Networking Development Board User’s Guide
DS50002648A-page 4 2017 Microchip Technology Inc.
NOTES:
MCP8026 TQFP BLDC MOTOR
DRIVER EVALUATION BOARD
USERS GUIDE
2017 Microchip Technology Inc. DS50002648A-page 5
Table of Contents
Preface ........................................................................................................................... 7
Introduction............................................................................................................ 7
Document Layout .................................................................................................. 7
Conventions Used in this Guide ............................................................................ 8
Recommended Reading........................................................................................ 9
The Microchip Web Site ........................................................................................ 9
Development Systems Customer Change Notification Service .......................... 10
Customer Support ............................................................................................... 10
Document Revision History ................................................................................. 10
Chapter 1. Product Overview
1.1 Introduction ................................................................................................... 11
1.2 What Is the MCP8026 TQFP BLDC Motor Driver Evaluation Board? .......... 12
1.3 What Does the MCP8026 TQFP BLDC Motor Driver Evaluation Board
Kit Include? ............................................................................................. 12
Chapter 2. Installation and Operation
2.1 Introduction ................................................................................................... 13
2.2 Features ....................................................................................................... 13
2.3 Getting Started ............................................................................................. 14
2.3.1 Connections .............................................................................................. 14
2.3.2 Operating a Motor ..................................................................................... 17
2.3.3 Indicator LEDs ........................................................................................... 17
2.3.4 Test Points ................................................................................................ 17
2.3.5 Reprogramming the On-Board dsPIC33EP256MC504 ............................. 19
2.3.6 Configuring the MCP8026 ......................................................................... 19
2.3.7 MCP8026 Configuration Message Responses .......................................... 21
2.3.8 MCP8026 Status Messages ...................................................................... 23
2.3.9 MCP8026 Register Definitions .................................................................. 24
Appendix A. Schematic and Layouts
A.1 Introduction .................................................................................................. 29
A.2 Board – Schematic ....................................................................................... 30
A.3 Board – Top Silk .......................................................................................... 31
A.4 Board – Top Copper .................................................................................... 32
A.5 Board – Bottom Copper ............................................................................... 33
A.6 Board – MID1 Copper .................................................................................. 34
A.7 Board – MID2 Copper .................................................................................. 35
Appendix B. Bill of Materials....................................................................................... 37
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 6 2017 Microchip Technology Inc.
Appendix C. Software
C.1 Software Location ........................................................................................ 41
C.2 Selected Software Constants and Definitions .............................................. 41
C.3 dsPIC33EP256MC504 PIM Port Usage ...................................................... 43
C.3.1 Port A Mapping ..........................................................................................43
C.3.2 Port B Mapping ..........................................................................................43
C.3.3 Port C Mapping .........................................................................................44
C.3.4 A/D Mappings ............................................................................................44
C.3.5 UART Mappings ........................................................................................44
C.4 Communications Message Mappings .......................................................... 44
C.5 MPLAB X Compiler Startup ......................................................................... 45
C.6 MPLAB X IDE and PICkit 3 Exercise ........................................................... 45
Worldwide Sales and Service .....................................................................................47
MCP8026 TQFP BLDC MOTOR
DRIVER EVALUATION BOARD
USERS GUIDE
2017 Microchip Technology Inc. DS50002648A-page 7
Preface
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP8026 TQFP BLDC Motor Driver Evaluation Board. Items discussed in this chapter
include:
Document Layout
Conventions Used in this Guide
Recommended Reading
The Microchip Web Site
Customer Support
Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP8026 TQFP BLDC Motor Driver
Evaluation Board as a development tool to emulate and debug firmware on a target
board. The manual layout is as follows:
Chapter 1. “Product Overview” – Important information about the MCP8026
TQFP BLDC Motor Driver Evaluation Board.
Chapter 2. “Installation and Operation” – Includes instructions on how to get
started with this user’s guide and a description of the user’s guide.
Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP8026 TQFP BLDC Motor Driver Evaluation Board.
Appendix B. “Bill of Materials” – Lists the parts used to build the MCP8026
TQFP BLDC Motor Driver Evaluation Board.
Appendix C. “Software” – Provides information about the application firmware
and where the source code can be found.
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 web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXXXXA”, where “XXXXXXXX” is the document number and “A” is the revision level
of the document.
For the most up-to-date information on development tools, see the MPLAB® IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 8 2017 Microchip Technology Inc.
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
“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 brackets 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
2017 Microchip Technology Inc. DS50002648A-page 9
RECOMMENDED READING
This user's guide describes how to use the MCP8026 TQFP BLDC Motor Driver
Evaluation Board. Other useful documents are listed below. The following Microchip
documents are available and recommended as supplemental reference resources.
MCP8025/6 – “3-Phase Brushless DC (BLDC) Motor Gate Driver with Power
Module, Sleep Mode, and LIN Transceiver” (DS20005339) — This data sheet
provides detailed information regarding the MCP8025/6 product family.
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X and
PIC24EPXXXGP/MC20X – “16-Bit Microcontrollers and Digital Signal
Controllers with High-Speed PWM, Op Amps and Advanced Analog”
(DS70000657) — This data sheet provides detailed information regarding the
dsPIC33EP256MC504 product family.
“dsPIC33E/PIC24E Family Reference Manual” (DS70573)
“dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X, and
PIC24EPXXXGP/MC20X Family Silicon Errata and Data Sheet Clarification”
(DS80000533G) — This data sheet contains anomalies and clarifications for the
dsPIC33EPXXXMC504 processor.
AN1078 – “Sensorless Field Oriented Control of a PMSM” (DS01078)
AN1160 – “Sensorless BLDC Control with Back-EMF Filtering Using a
Majority Function” (DS01160)
AN992 – “Sensorless BLDC Motor Control Using dsPIC30F2010” (DS00992)
AN1292 – “Sensorless Field Oriented Control (FOC) for a Permanent Magnet
Synchronous Motor (PMSM) Using a PLL Estimator and Field Weakening
(FW)” (DS01292)
AN901 – “Using the dsPIC30F for Sensorless BLDC Control” (DS00901)
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site 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
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 10 2017 Microchip Technology Inc.
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive an 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 web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB® C compilers; all MPLAB
assemblers (including MPASM assembler); all MPLAB linkers (including MPLINK
object linker); and all MPLAB librarians (including MPLIB object librarian).
Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit 3 Debug
Express.
MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and
MPLAB SIM simulator, as well as general editing and debugging features.
Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB
ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included
are nonproduction development programmers such as PICSTART Plus and PICkit
2 and 3 programmers.
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 field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at:
http://www.microchip.com/support
DOCUMENT REVISION HISTORY
Revision A (July 2017)
Initial Release of this Document.
MCP8026 TQFP BLDC MOTOR
DRIVER EVALUATION BOARD
USERS GUIDE
2017 Microchip Technology Inc. DS50002648A-page 11
Chapter 1. Product Overview
The MCP8026 TQFP BLDC Motor Driver Evaluation Board is used to demonstrate the
drive capabilities of the MCP8026. The board uses the MCP8026 3-Phase Brushless
DC (BLDC) motor gate driver and dsPIC33EP256MC504 processor to implement a
6-step trapezoidal BLDC motor controller.
The MCP8026 TQFP BLDC Motor Driver Evaluation Board is used to evaluate
Microchip’s MCP8026 in a BLDC motor application. As provided, the MCP8026 TQFP
BLDC Motor Driver Evaluation Board is ready to operate a BLDC motor using one
on-board push button to start and stop the motor plus one on-board potentiometer to
set motor speed. The evaluation board can drive a BLDC motor with a supply voltage
of up to 24V and a motor current up to 15 amps. The MCP8026 TQFP BLDC Motor
Driver Evaluation Board provides a 6-step trapezoidal control algorithm along with a
750 mW buck converter, 5V and 12V LDO, high-to-low level voltage translators, current
sense operational amplifiers, and Hall-effect inputs. The evaluation board provides a
status indication for the power supplies and the six on-board Pulse-Width Modulation
(PWM) inputs.
This chapter covers the following topics:
What Is the MCP8026 TQFP BLDC Motor Driver Evaluation Board?
What Does the MCP8026 TQFP BLDC Motor Driver Evaluation Board Kit
Include?
FIGURE 1-1: MCP8026 TQFP BLDC Motor Driver Evaluation Board Block
Diagram.
6V to 24V
Power Supply
MCP8026 Evaluation Board
+-
Phase A
Phase C
Phase B
BLDC Motor
dsPIC33EP256MC504
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 12 2017 Microchip Technology Inc.
1.1 WHAT IS THE MCP8026 TQFP BLDC MOTOR DRIVER EVALUATION
BOARD?
The MCP8026 TQFP BLDC Motor Driver Evaluation Board is a complete stand-alone
motor controller for brushless DC motors (BLDC). The board is capable of driving a
three-phase brushless DC motor rated at up to 15 amps and 24V. The input voltage
range for the board is 6V to 24V. The on board MCP8026 generates 5V and 12V using
internal voltage regulators. The MCP8026 also contains an internal buck regulator
which generates the power for the attached dsPIC33EP256MC504 host
microcontroller.
An input terminal block is provided to apply the input voltage to the board. An output
header and plated Printed Circuit Board (PCB) through-hole pads are also provided as
a means to connect the external motor. Two programming headers are available for
updating the firmware contained in the dsPIC33EP256MC504 using either a PICkit 3
programmer/debugger or an MPLAB® ICD3 in-circuit debugger.
An input terminal block is also supplied on the board, to allow users to connect 5V/12V
Hall sensors signals.
1.2 WHAT DOES THE MCP8026 TQFP BLDC MOTOR DRIVER EVALUATION
BOARD KIT INCLUDE?
This MCP8026 TQFP BLDC Motor Driver Evaluation Board kit includes:
The MCP8026 TQFP BLDC Motor Driver Evaluation Board, ADM00599
Information Sheet
MCP8026 TQFP BLDC MOTOR
DRIVER EVALUATION BOARD
USERS GUIDE
2017 Microchip Technology Inc. DS50002648A-page 13
Chapter 2. Installation and Operation
2.1 INTRODUCTION
The MCP8026 TQFP BLDC Motor Driver Evaluation Board demonstrates Microchip’s
3-Phase Brushless DC (BLDC) Motor Gate Driver with Power Module, MCP8026, used
in a BLDC motor drive application. When used in conjunction with a microcontroller, the
MCP8026 will provide the necessary drive signals to drive for a 3-Phase BLDC motor.
The MCP8026 contains the high-side and low-side drivers for external N-channel
MOSFETs. A dsPIC33EP256MC504 processor is used to supply the PWM inputs to the
MCP8026 as well as handle the high-speed Analog-To-Digital Conversion (ADC)
required for 50 kHz PWM operation.
The MCP8026 UART interface is used to configure the MCP8026 device and to send
fault information to the dsPIC® Digital Signal Controller (DSC). The evaluation board
firmware, available on the Microchip web site, uses a 6-step trapezoidal drive control
algorithm to demonstrate the MCP8026 capabilities.
2.2 FEATURES
The MCP8026 TQFP BLDC Motor Driver Evaluation Board has the following features:
Input Operating Voltage Range: +6.0V to +24V
Maximum of 500 mA of gate drive current for external N-Channel MOSFETs
Drives up to a 15A BLDC motor
750 mW Buck Regulator with resistor-programmable output voltage
ON/OFF momentary contact switch
Reset momentary contact switch
Spare user-programmable momentary contact switch
PWM signal LED indicators
PICkit 3 and MPLAB ICD 3 debugger interfaces
Speed control potentiometer
Terminal block for 5V and 12V Hall-effect sensors
Programmable external MOSFET overcurrent protection
Programmable PWM dead-time protection
Programmable PWM blanking time for current switching spikes
Complete “C” source code (provided on the board web page)
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 14 2017 Microchip Technology Inc.
2.3 GETTING STARTED
The MCP8026 TQFP BLDC Motor Driver Evaluation Board is fully assembled and
tested for driving a BLDC motor. This board requires the use of an external voltage
source capable of supplying 6V to 24V at the rated motor current. A BLDC motor is also
required to evaluate the motor driver.
FIGURE 2-1: MCP8026 TQFP BLDC Motor Driver Evaluation Board PCB.
2.3.1 Connections
2.3.1.1 JUMPER SETTINGS
The MCP8026 TQFP BLDC Motor Driver Evaluation Board has several
user-configurable jumpers. The jumpers are described in Table 2-1 below.
TABLE 2-1: MCP8026 TQFP BLDC MOTOR DRIVER EVALUATION BOARD
JUMPERS
Jumper Default Position Description
JP1 (MONITOR1)
JP2 (MONITOR2)
JP3 (MONITOR3)
3-4 1-2 Connect phase current to MONITORn
3-4 Connect filtered phase to MONITORn
5-6 Connect Hall Sensor to MONITORn
JP4 1-2 1-2 Supplies 5V to the Hall Sensors
2-3 Supplies 12V to the Hall Sensors
JP15 1-2 1-2 Current Sense offset = JP6 selection
2-3 Current Sense offset = 0.0V
JP6 OFF ON Current Sense reference = 1.651V
OFF Current Sense reference = 0.992V
Installation and Operation
2017 Microchip Technology Inc. DS50002648A-page 15
2.3.1.1.1 The jumpers and their use are described in Table 2-2.
TABLE 2-2: JUMPER DESCRIPTION
Jumper Name Position Description
JP1
Monitor 1 Input
Selection
(A/D Channel AN0)
1-2 Connects Phase A Current to Monitor 1 net
3-4 Connects Filtered Phase A Voltage to
MONITOR1 net
5-6 Connects Hall Sensor A to Monitor 1 net
JP2
Monitor 2 Input
Selection
(A/D Channel AN1)
1-2 Connects Phase B Current to Monitor 2 net
3-4 Connects Filtered Phase B Voltage to
MONITOR2 net
5-6 Connects Hall Sensor B to Monitor 2 net
JP3
Monitor 3 Input
Selection
(A/D Channel AN2)
1-2 Connects Phase C Current to Monitor 3 net
3-4 Connects Filtered Phase C Voltage to
MONITOR3 net
5-6 Connects Hall Sensor C to Monitor 3 net
JP4 — 1-2 Supplies 5V to the Hall Sensors
2-3 Supplies 12V to the Hall Sensors
JP5 — 1-2 Current Sense Offset Voltage = JP6 selection
3-4 Current Sense Offset Voltage = 0.0V
JP6 — 1-2 Current Sense Reference Voltage = 1.651V
3-4 Current Sense Reference Voltage = 0.992V
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 16 2017 Microchip Technology Inc.
The jumper settings for use with the sensorless trapezoidal drive firmware are as
described in Table 2-3.
2.3.1.2 POWERING THE MCP8026 TQFP BLDC MOTOR DRIVER EVALUATION
BOARD (REFERENCE Figure 2-2)
1. Apply the input voltage to the input power terminal block, J3. The input voltage
source should be limited to +24V. For nominal operation the input voltage should
be between +6.0V and +24V.
2. Connect the positive side of the input power source (+) to pin 2 of J3. Connect
the negative or return side (-) of the input source to pin 1 of J3. Refer to
Figure 2-2.
FIGURE 2-2: Connection and Operation Diagram.
2.3.1.3 CONNECTING A MOTOR TO THE MCP8026 TQFP BLDC MOTOR
DRIVER EVALUATION BOARD
Connect each phase winding of a three-phase BLDC motor to the appropriate terminal
of the motor terminal block, J4, terminals A,B,C.
TABLE 2-3: JUMPERS USED BY SENSORLESS TRAPEZOIDAL FIRMWARE
Jumper Position Description
JP1 (MONITOR1)
JP2 (MONITOR2)
JP3 (MONITOR3)
3-4 Connect filtered phase voltage to MONITORn
Motor
Connections
VDD
GND
Switches Tes t
Points
Power
Speed
Adjust
Debugging Programming
Connector
Command
MCP8026
dsPIC33-DSC
Installation and Operation
2017 Microchip Technology Inc. DS50002648A-page 17
2.3.2 Operating a Motor
1. Turn the SPEED adjust potentiometer (R92) fully counter-clockwise to obtain the
slowest speed setting. Now turn the speed adjust approximately ¼ turn
clockwise to allow for 25% motor speed.
2. Turn on the power supply.
3. Press and release the RUN/STOP switch (SW2) to start the motor.
4. Turn the Speed Adjust potentiometer clockwise to increase motor speed,
counter-clockwise to decrease motor speed. The Speed Adjust changes the
PWM duty cycle of the PWM signals being sent to the MCP8026.
5. Press and release the RUN/STOP switch again to stop the motor.
2.3.3 Indicator LEDs
The MCP8026 TQFP BLDC Motor Driver Evaluation Board has ten LEDs to indicate
system status. Table 2-4 lists the LED indicators and their descriptions.
2.3.4 Test Points
There are several test points on the board to allow probing of voltages, currents and
signals. An abridged listing is shown in Table 2-5.
TABLE 2-4: LED INDICATORS
PCB Location Name Description
D11 SPARE Spare LED on dsPIC DSC RA4 port
D12 +12V +12V LDO voltage operating
D13 +5V +5V LDO voltage operating
D14 +Buck +3.3V Buck output voltage operating
D15 PWM3H PWM Phase 3 high-side input to MCP8026
D16 PWM3L PWM Phase 3 low-side input to MCP8026
D17 PWM2H PWM Phase 2 high-side input to MCP8026
D18 PWM2L PWM Phase 2 low-side input to MCP8026
D19 PWM1H PWM Phase 1 high-side input to MCP8026
D20 PWM1L PWM Phase 1 low-side input to MCP8026
TABLE 2-5: TEST POINTS DESCRIPTION
Test Point Name Description
TP1 VDD Power supply (+)
TP2, 4, 8, 9, 10 PGND Power supply ground (–)
TP3 DE2 MCP8026 DE2 communications signal
TP5 PHA Motor Phase A connection
TP6 PHB Motor Phase B connection
TP7 PHC Motor Phase C connection
VBn VBn Driver Bootstrap Voltage For Phase n
POT POT Motor Speed Potentiometer Output
ILIMIT ILIMIT ILIMIT_OUT signal from MCP8026
HVIN1 HVIN1 Level Shifter 1 input
HVIN2 HVIN2 Level Shifter 2 input
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 18 2017 Microchip Technology Inc.
MON1 MON1 Monitor Signal 1: connects to A/D input AN0
MON2 MON2 Monitor Signal 2: connects to A/D input AN1
MON3 MON3 Monitor Signal 3: connects to A/D input AN2
LVOUT1 LVOUT1 Level Shifter 1 output
LVOUT2 LVOUT2 Level Shifter 2 output
OVP CLAMP OVP CLAMP Gate pin of supply overvoltage clamp
PHA_FIL PHA_FIL Filtered Phase A BEMF signal
PHB_FIL PHB_FIL Filtered Phase B BEMF signal
PHC_FIL PHC_FIL Filtered Phase C BEMF signal
PWM1H PWM1H PWM phase A high-side input to MCP8026
PWM1L PWM1L PWM phase A low-side input to MCP8026
PWM2H PWM2H PWM phase B high-side input to MCP8026
PWM2L PWM2L PWM phase B low-side input to MCP8026
PWM3H PWM3H PWM phase C high-side input to MCP8026
PWM3L PWM3L PWM phase C low-side input to MCP8026
Q1G Q1G Phase A high-side MOSFET gate
Q2G Q2G Phase B high-side MOSFET gate
Q3G Q3G Phase C high-side MOSFET gate
Q4G Q4G Phase C low-side MOSFET gate
Q5G Q5G Phase B low-side MOSFET gate
Q6G Q6G Phase A low-side MOSFET gate
RA2, 3, 9, 10 RA2, 3, 9, 10 dsPIC DSC spare I/O pins
RB3 RB3 dsPIC DSC spare I/O pin
RC3-9 RC3-9 dsPIC DSC spare I/O pins
V_BUCK V_BUCK Buck 3.3V output voltage
TABLE 2-5: TEST POINTS DESCRIPTION (CONTINUED)
Test Point Name Description
Installation and Operation
2017 Microchip Technology Inc. DS50002648A-page 19
2.3.5 Reprogramming the On-Board dsPIC33EP256MC504
The on-board dsPIC33EP256MC504 may be reprogrammed with the user’s desired
firmware. The processor may be programmed by using an external power source and
either a PICkit 3, MPLAB REAL ICE in-circuit emulator or MPLAB ICD3 programmer.
1. Connect the power source to the board as explained in Section 2.3.1.2.
2. Connect a PICkit 3 to the J1 header or connect an MPLAB ICD 3 or MPLAB
REAL ICE in-circuit emulator to the J2 (RJ25) jack.
3. Start up the MPLABX Integrated Development Environment (IDE) and load the
MCP8026 TQFP BLDC Motor Driver Evaluation Board firmware project. In
MCP802X.H, replace the definition for driver type: #define DRIVER MCP8026.
4. Build the project.
5. Program the device.
6. Press the RESET switch on the board to reset the processor and allow the
processor to execute the new firmware program.
2.3.6 Configuring the MCP8026
The MCP8026 has configuration registers that may be used to modify operating
parameters of the device. The parameters are modified by sending commands to the
MCP8026 using the DE2 communication bus. The DE2 communication bus is a
half-duplex, 9600 baud, 8-bit, 1-stop bit, 1-start bit, no parity, serial communication link.
The user may add code to the evaluation board firmware to communicate with the
registers. The evaluation board software contains a subroutine which initializes the
MCP8026 registers.
There are three configuration registers that may be written to. The registers are written
to by sending a SET_CFG_X command byte followed by the desired register value byte.
The configuration messages and their respective requests are listed in Table 2-6.
Note: Note that the following project options may need to be changed for the
computer being used to build the firmware:
Add Library libdsp-elf.a located in XC16 ???\src\Libdsp\lib
directory.
Add XC16-as ASM Include Directory in XC16 ???\src\Libdsp\asm.
Set Hardware tool to “ICD 3”, “REAL ICE”, or “PICkit3”.
MCP8026 TQFP BLDC Motor Driver Evaluation Board User’s Guide
DS50002648A-page 20 2017 Microchip Technology Inc.
TABLE 2-6: CONFIGURATION MESSAGE COMMANDS
Command Byte Bit Value Description
SET_CFG_0 110000001 (81H) Set Configuration Register 0
27 0Reserved
6 (Always ‘0’ in SLEEP mode)
0Enable disconnect of 30 k Level Translator pull up when CE = 0
(Default)
1Disable disconnect of 30 k Level Translator pull up when CE = 0
50System enters Standby mode when CE = 0
1System enters Sleep mode when CE = 0
30 k Level Translator pull up disconnect always enabled
40Unimplemented: Read as '0'
30Enable MOSFET Undervoltage Lockout (Default)
1Disable MOSFET Undervoltage Lockout
20Enable external MOSFET short circuit detection (Default)
1Disable external MOSFET short circuit detection
1:0 00 Set external MOSFET overcurrent limit to 0.250V (Default)
01 Set external MOSFET overcurrent limit to 0.500V
10 Set external MOSFET overcurrent limit to 0.750V
11 Set external MOSFET overcurrent limit to 1.000V
GET_CFG_0 110000010 (82H) Get Configuration Register 0
SET_CFG_1 110000011 (83H) Set Configuration Register 1
DAC motor current limit reference voltage
2 7:0 00H – FFH Select DAC Current Reference value
(4.503V - 0.991V)/ 255 = 13.77 mV/bit
00H = 0.991 volts
40H = 1.872 volts (40H x 0.1377 mV/bit + 0.991V) (Default)
FFH = 4.503 volts (FFH x 0.1377 mV/bit + 0.991V)
GET_CFG_1 110000100 (84H) Get Configuration Register 1
Get DAC motor current limit reference voltage
SET_CFG_2 110000111 (87H) Set Configuration Register 2
2 7:5 00H Reserved
4:2 Driver Dead Time (For PWMH /PWML inputs)
000 2000 ns (Default)
001 1750 ns
010 1500 ns
011 1250 ns
100 1000 ns
101 750 ns
110 500 ns
111 250 ns
1:0 Driver blanking time (ignore switching current spikes)
00 4 µs (Default)
01 2 µs
10 1 µs
11 500 ns
GET_CFG_2 110001000 (88H) Get Configuration Register 2
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47

MICROCHIP ADM00599 Operating instructions

Type
Operating instructions

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI