Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, WiperLock 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.
All other trademarks mentioned herein are property of their
respective companies.
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
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.
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
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
®
IDE online help.
This chapter contains general information that will be useful to know before using the
F1 LV Evaluation Platform Motor Control Add-ons User’s Guide. Items discussed in this
chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the F1 LV Evaluation Platform Motor Control
Add-ons User’s Guide as a development tool to emulate and debug firmware on a
target board. The manual layout is as follows:
• Chapter 1. “F1 LV Evaluation Platform Overview”
• Chapter 2. “The BLDC Add-on Board”
• Chapter 3. “The Brushed DC Add-on Board”
• Chapter 4. “The Bipolar Stepper Add-on Board”
• Chapter 5. “The Unipolar Stepper Add-on Board”
• Appendix A. “Board Layout and Schematics”
• Appendix B. “Conversion Factors”
2012 Microchip Technology Inc.DS41629A-page 7
F1 LV Evaluation Platform Motor Control Add-Ons
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
Italic charactersReferenced booksMPLAB
Emphasized text...is the only compiler...
Initial capsA windowthe Output window
A dialogthe Settings dialog
A menu selectionselect Enable Programmer
QuotesA field name in a window or
dialog
Underlined, italic text with
right angle bracket
Bold charactersA dialog buttonClick OK
N‘RnnnnA number in verilog format,
Text in angle brackets < >A key on the keyboardPress <Enter>, <F1>
Courier New font:
Plain Courier NewSample source code#define START
Italic Courier NewA variable argumentfile.o, where file can be
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
DS41629A-page 8 2012 Microchip Technology Inc.
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This user’s guide describes how to use the F1 LV Evaluation Platform Motor Control
Add-ons User’s Guide. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference
resources.
Readme for F1 LV Evaluation Platform Motor Control Add-ons User’s Guide
For the latest information on using F1 LV Evaluation Platform Motor Control Add-ons
User’s Guide, read the “Readme for F1 LV Evaluation Platform Motor Con-trol Add-ons User’s Guide.txt” file (an ASCII text file) in the Readmes subdirectory of the MPLAB IDE installation directory. The Readme file contains update
information and known issues that may not be included in this user’s guide.
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in
the Readmes subdirectory of the MPLAB IDE installation directory. The Readme files
contain update information and known issues that may not be included in this user’s
guide.
Preface
2012 Microchip Technology Inc.DS41629A-page 9
F1 LV Evaluation Platform Motor Control Add-Ons
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
DEVELOPMENT SYSTEMS CUSTOMER 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 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 and other language
tools. These include the HI-TECH C
pilers; MPASM™ and MPLAB ASM30 assemblers; MPLINK™ and MPLAB
LINK30 object linkers; and MPLIB™ and MPLAB LIB30 object librarians.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 2, MPLAB ICD 3, PICkit™ 3.
• MPLAB
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager
and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 device programmers and PICkit™ 3 development programmers.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
C16, MPLAB C18 and MPLAB C30 C com-
DS41629A-page 10 2012 Microchip Technology Inc.
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://support.microchip.com
DOCUMENT REVISION HISTORY
Revision A (March 2012)
• Initial Release of this Document.
Preface
2012 Microchip Technology Inc.DS41629A-page 11
F1 LV Evaluation Platform Motor Control Add-Ons
NOTES:
DS41629A-page 12 2012 Microchip Technology Inc.
Chapter 1. F1 LV Evaluation Platform Overview
1.1INTRODUCTION
This user’s guide offers a quick start-up and eventual troubleshooting for the motor
control add-ons used together with the F1 LV Evaluation Platform. For more details
regarding the supported applications, control algorithms, hardware and software support, please visit the reference sections inside this user’s guide.
1.2HARDWARE OVERVIEW
1.2.1Evaluation Platforms
The F1 Evaluation and F1 LV Evaluation Boards are stand-alone evaluation platforms
for investigating the capabilities of the PIC16(L)F1XXX family of devices. F1 is an
abbreviation for all PIC
number. All F1 devices are enhanced mid-range devices. Only enhanced mid-range
devices have the F1 notation.
There are two development boards for evaluating the F1 devices:
• F1 Evaluation Platform with 44-pin PIC16LF1937 microcontroller
• F1 LV Evaluation Platform with 64-pin PIC16LF1947 microcontroller
This document refers primarily to the F1 LV Evaluation Platform.
The F1 LV Evaluation Platform is the second generation evaluation platform for the
enhanced mid-range devices with more I/O pins and expanded capability. For more
information about the F1 LV Evaluation Platform refer to DS41614, “F1 LV Evaluation
Platform for Enhanced PIC
F1 LV EVALUATION PLATFORM
MOTOR CONTROL ADD-ONS
®
microcontroller devices with the notation “F1” in the device
®
Microcontrollers User’s Guide”.
1.2.2Add-on Boards
Four motor control add-on boards are available for use in conjunction with the F1 LV
Evaluation Platform. This document describes those boards and the companion control
software for evaluating and optimizing motor control. The four motor control boards
include:
TABLE 1-1:
Motor TypeID Shown on Platform LCDPart NumberF1 LV EvalF1 Eval
Brushless DCbldcDM164130-2YesYes
Brushed DCbdcDM164130-6YesNo
Bipolar StepperbstpDM164130-7YesNo
Unipolar StepperustpDM164130-8YesNo
The software and hardware interface of the F1 Evaluation Board supports only the
BLDC Add-on Board. The software supplied and preloaded on the F1 LV Evaluation
Platform supports all four of the add-on boards.
2012 Microchip Technology Inc.DS41629A-page 13
F1 LV Evaluation Platform Motor Control Add-ons
1.2.3USB Interface
The F1 LV Evaluation Platform includes a USB to serial interface. This provides the
capability to control the motors in real time without entering Debug mode. PC control
software communicates with the F1 LV Evaluation Platform software to create an integrated motor control evaluation system. The PC software and interface driver are available for free download from the Microchip web site at www.microchip.com/F1Eval
1.2.4Add-on Board Power
When using an add-on board, the F1 LV Evaluation Platform power should be supplied
from the add-on board. The J6 jumper option makes this connection. There is no
jumper option to supply power to the add-on board from the F1 LV Evaluation Platform,
because most of the platform power options do not have sufficient capacity. When
power is applied to the F1 LV Evaluation Platform through the add-on board, then the
®
UNI/O
ures itself to operate the motor identified in the memory. This automatic configuration
also applies to the PC control software.
1.2.5Add-on Board Memory
Every add-on board, with one exception, includes a UNI/O memory device that contains:
• board ID
• board revision
• parameters associated with the motor supplied with the add-on board
When the F1 LV Evaluation Platform senses that an add-on board is attached, the initial
display shows the motor type and add-on board revision. Motor speed can be controlled with either the potentiometer on the F1 LV Evaluation Platform or with the PC
interface speed control. Additional motor capabilities are available through the PC control interface. These are described in more detail in the sections specific to each motor.
The first generation BLDC boards do not have a UNI/O memory. When the F1 LV
Evaluation Platform does not detect a UNI/O memory, it then checks voltages on other
selected J3 connections to determine if a BLDC circuit is present. When a BLDC board
without UNI/O memory is detected, the motor parameters are then retrieved from the
F1 LV Evaluation Platform EEPROM memory. The factory defaults for these parameters match those needed for the motor originally supplied with the BLDC board. If the
parameters are modified for another motor, then the File->RAM->EEPROM
save those parameters to the F1 LV Evaluation Platform EEPROM memory in lieu of
the UNI/O memory.
The advantage that the UNI/O equipped boards have is that several different add-on
boards can each support and remember the settings for a different motor. Various
BLDC motors can be accommodated when working with the first generation BLCD
Add-on Board, by saving and recalling the motor parameters to and from the PC disc
storage with the File->Save…
memory is detected and read. The F1 LV Evaluation Platform software config-
and File->Open… options.
.
option will
1.3PC SOFTWARE OVERVIEW
The F1LVDemo software is a Graphical User Interface (GUI) providing control of the
motor speed and direction. The GUI also provides access to key parameters of the
motor operation. The control parameters vary by motor type. Each parameter and
method of optimization are described in detail in the motor sections of this document.
Figure 1-1 and Figure 1-2 show the front panel of the PC control GUI. Features of the
control GUI are identified and described below.
DS41629A-page 14 2012 Microchip Technology Inc.
FIGURE 1-1:
1
11
121718
2345678
9
16
10
131514
1. Motor Parameters pull-down menu. Save
and recall to and from disc.
2. Speed control (relative 0 to 255):
• Commutation rate in open loop
• Drive level in closed loop
3. Zero cross advance/retard (BLDC only).
4. Motor drive voltage control (open loop). In
BLDC closed loop this control reverts to a
balance control.
5. BLDC open-loop single-step button.
6. Open/closed-loop control selection (BLDC
and stepper motors only).
7. Panic STOP button – Forces drive and com-
mutation to zero.
8. Motor direction selection.
9. Number of motor poles (BLDC only).
10. Serial port selection.
11. Serial link Open/Close button.
12. Motor type indicator.
13. Motor RPM – click label to update.
14. Initial drive level for start-up.
15. Initial speed setting for start-up.
16. PC Software version.
17. F1 LV Evaluation Platform software version.
18. Run time and static motor parameters tabs.
F1 LV Evaluation Platform Overview
2012 Microchip Technology Inc.DS41629A-page 15
F1 LV Evaluation Platform Motor Control Add-ons
19
20
21
3332
222325262724
28
29
3130
19. BLDC flyback voltage blanking time.
20. BLDC dwell time at each start-up step.
21. BLDC milliseconds to remain in Open-Loop
mode at start-up before closing the loop.
22. BLDC minimum commutation time below
which a stall is detected.
23. BLDC error feedback multiplication factor.
Each shift divides error by 2.
24. Stepper motor steps in each drive phase
when microstepping is selected.
25. Button to invoke new microstep sinusoid
drive look-up table.
26. Peak drive level in microstep look-up table.
27. Stepper motor commutation mode selection.
28. Stepper motor maximum RPM commutation
rate when speed control is set at maximum.
29. Degrees per step physical attribute of the
attached motor.
30. Maximum drive voltage duty cycle applied
when speed control is at the maximum
RPM. This prevents excessive overdrive of
the motor.
31. Stepper motor drive voltage duty cycle
applied when speed control is at the lowest
run speed above stop.
32. Percent of speed control setting, relative to
maximum, below which the motor drive is
removed and the motor is stopped.
33. Percent of speed control setting, relative to
maximum, above which the motor starts
from a stopped state.
FIGURE 1-2:
DS41629A-page 16 2012 Microchip Technology Inc.
F1 LV Evaluation Platform Overview
1.4USING THE F1LVDEMO CONTROL SOFTWARE
1.4.1Software Updates
The software supplied and preloaded into the F1 LV Evaluation Platform supports all
four of the add-on motor control boards. The preloaded software is the latest version
available at time of manufacture. Source code including any updates is available for
free download from the Microchip web site: www.microchip.com/F1Eval
All motors can be controlled with the PC-based F1LVDemo control GUI. The
F1LVDemo control software is available for free download from the Microchip web site:
www.microchip.com/F1Eval
1.4.2Serial Link
The F1LVDemo control GUI operates through a USB to serial interface that appears as
a standard RS-232 serial port to the PC operating system. The USB interface on the
F1 LV Evaluation Platform is an MCP2200 USB to Serial interface device. Ensure that
the drivers for this interface are loaded in the PC before making the connection. Interface drivers can be downloaded for free from the MCP2200 product page of the Microchip web site.
1.4.3Connecting the F1 LV Evaluation Platform to the Add-on Board
.
.
Perform the following steps in the order shown to establish the link between the
F1LVDemo control software and the F1 LV Evaluation Platform.
1. Connect the desired add-on board to the F1 LV Evaluation Platform J3.
2. Connect the supplied motor to the add-on board.
3. Ensure the following jumpers are in place on the F1 LV Evaluation Platform:
• J10 – Pot Enable
• J9 – Temperature Sense Enable
• J4 – I Sense break
• J6 – Expansion Board Power
4. Turn the RF2 potentiometer fully counter clockwise.
5. Each add-on board is equipped with a linear 3.3 Volt regulator that supplies
power to the F1 LV Evaluation Platform.
Apply 9-12 V
2.5 mm power jack or directly to the appropriate pins of the add-on board motor con-
nector. The power jack connector is designed to accept 9 V
former. The center pin is the positive terminal. When power is applied the F1 LV
Evaluation Platform LCD will display the motor type and add-on board revision.
At this point the motor can be operated stand-alone with the potentiometer on the F1
LV Evaluation Platform. Additional motor controls are accessible only with the control
GUI.
DC power to the add-on board. Power can be applied through the black
DC, 0.75 amp wall trans-
1.4.4Connecting the F1 LV Evaluation Platform to the PC
6. Connect a USB cable from the PC to the F1 LV Evaluation Platform J2.
7. Execute the F1LVDemo program.
8. Select the communication port associated with the F1 LV Evaluation Platform.
This will most likely be the highest numbered communication port in the selection
box.
9. The communication port list is built during the F1LVDemo program initialization.
If you connect to the board after the program is started, the communication port
will not appear in the selection list.
2012 Microchip Technology Inc.DS41629A-page 17
F1 LV Evaluation Platform Motor Control Add-ons
10. Click the Open button. After the link to the F1 LV Evaluation Platform is estab-
lished, the F1 LV Evaluation Platform software version will be displayed, as well
as the detected motor type.
When the link is established, all user accessible motor parameters stored in the add-on
board will be retrieved and shown in the corresponding controls of the GUI. Controls
not applicable to the detected motor will be disabled and grayed out.
1.4.5Open Versus Closed Loop
The open-loop and closed-loop selections apply only to brushless DC and stepper
motors. In open-loop operation, the motor voltage and speed controls are independent.
In closed-loop operation the speed control functions as the control for both the speed
and voltage.
Brushless DC is truly a closed-loop operation where the applied voltage is set with the
speed control and the motor speed responds automatically to keep the back EMF
voltage equal to the applied voltage.
Stepper motor closed-loop operation is technically not closed loop. Both the motor
voltage and speed outputs simultaneously follow the single-speed control input as
independent open-loop functions of the minimum and maximum speed and drive
parameters.
1.4.6Changing Motor Parameters
To change a motor parameter, type the new value into the corresponding text box. The
initial key press clears the previous value and changes the value to red. Red indicates
that the value has not been sent to the Platform RAM. When the enter key is pressed
the value is immediately sent to the Evaluation Platform RAM and the display returns
to the default black. The entry can be terminated without updating the Platform RAM
by pressing the Escape key. Changed parameters reside in volatile RAM only. Any
Platform Reset will restore the RAM values to those in the Platform EEPROM memory.
Unexpected Platform Resets will cause inconsistencies between the parameters
displayed in the GUI and those in the Platform RAM. Select the pull-down menu
File->RAM->Display
Platform RAM.
option to resynchronize the displayed values with those in the
1.4.7Saving and Restoring Motor Parameters
Sometimes it is useful to try many different motor setups when optimizing performance.
Setups can be saved to disc storage with the pull-down menu File->Save…
Previously stored setups can be recovered with the pull-down menu File->Open…
option. Parameters retrieved from disc update both the display and the Platform RAM.
When the optimum setup is determined those parameters can be saved to the Platform
nonvolatile memory with the pull-down menu File->RAM->EEPROM
Parameters saved to EEPROM will be restored to RAM on every Platform Reset. The
values in the Platform EEPROM can be restored to RAM without a Reset with the
pull-down menu File->EEPROM->RAM
The EEPROM can also be restored to the factory defaults with the pull-down menu
File->Defaults->EEPROM
the source code and programming the Platform program memory after recompiling the
source code.
option. The factory defaults can be altered only by changing
option.
option.
option.
DS41629A-page 18 2012 Microchip Technology Inc.
Loading...
+ 42 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.