The Microchip name and logo, the Microchip logo, and MPLAB are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are property of their respective
companies. © 2011, Microchip Technology Incorporated, Printed in the U.S.A. All Rights Reserved. 08/10
Microchip Technology Inc. • 2355 West Chandler Blvd. • Chandler, AZ 85224-6199
Americas
Atlanta - 678-957-9614
Boston - 774-760-0087
Chicago - 630-285-0071
Cleveland - 216-447-0464
Dallas - 972-818-7423
Detroit - 248-538-2250
Indianapolis - 317-773-8323
Los Angeles - 949-462-9523
Phoenix - 480-792-7200
Santa Clara - 408-961-6444
Toronto - 905-673-0699
Europe
Austria - Wels - 43-7242-2244-39
Denmark - Copenhagen - 45-4450-2828
France - Paris - 33-1-69-53-63-20
Germany - Munich - 49-89-627-144-0
Italy - Milan - 39-0331-742611
Netherlands - Drunen - 31-416-690399
Spain - Madrid - 34-91-708-08-90
UK - Wokingham - 44-118-921-5869
Asia/Pacific
Australia - Sydney - 61-2-9868-6733
China - Beijing - 86-10-8569-2100
China - Chengdu - 86-28-8665-5511
www.microchip.com
Asia/Pacific (Continued)
China - Chongqing - 86-23-8980-9588
China - Hangzhou - 86-571-2819-3180
China - Hong Kong SAR - 852-2401-1200
China - Nanjing- 86-25-8473-2460
China - Qingdao - 86-532-8502-7355
China - Shanghai - 86-21-5407-5533
China - Shenyang - 86-24-2334-2829
China - Shenzhen - 86-755-8203-2660
China - Wuhan - 86-27-5980-5300
China - Xiamen - 86-592-2388138
China - Xian - 86-29-8833-7252
China - Zhuhai - 86-756-3210040
India - Bangalore - 91-80-3090-4444
India - New Delhi - 91-11-4160-8631
India - Pune - 91-20-2566-1512
Japan - Yokohama - 81-45-471-6166
Korea - Daegu - 82-53-744-4301
Korea - Seoul - 82-2-554-7200
Malaysia - Kuala Lumpur - 60-3-6201-9857
Malaysia - Penang - 60-4-227-8870
Philippines - Manila - 63-2-634-9065
Singapore - 65-6334-8870
Taiwan - Hsin Chu - 886-3-6578-300
Taiwan - Kaohsiung - 886-7-213-7830
Taiwan - Taipei - 886-2-2500-6610
Thailand - Bangkok - 66-2-694-1351
*DS51991A*
DS51991A
05/02/11
Motor Control Starter Kit Information Sheet
The Motor Control Starter Kit is designed to facilitate the development of low-cost motor control
applications using PIC24 microcontrollers and dsPIC33F digital signal controllers. The kit includes
a BLDC motor, a three-phase inverter, an on-board Debugger/Programmer, a user-configurable
switch, a two-channel mTouch™ slider with LED indicators for motor speed display, and a 9V
power supply.
Installing MPLAB
The MPLAB Integrated Development Environment (IDE) should be installed prior to using the
Motor Control Starter Kit. While MPLAB IDE provides the assembler tools for development, most
of the demos and code examples are written in the C language and require a C compiler to be
installed. Microchip’s MPLAB C Compiler seamlessly integrates into MPLAB IDE. Both the MPLAB
IDE and MPLAB C compiler are free (see the note below) and are available for download at
www.microchip.com/MPLAB
Code Examples and More Information
For code examples and more information, please visit http://www.microchip.com/motor. From the
Development Tools menu, click Development and Evaluation Boards and from the list select dsPIC
Motor Control Starter Kit DM330015. Then, from the Download section, select code for the starter
kit. You can also visit http//www.microchip.com/16bit: from the left navigation menu select Find
Development Tools and then choose Motor Control Starter Kit from the list. From the Download
section, select the code for the starter kit.
Running and Debugging Applications
After downloading the code example and installing the development tools, please use the following
procedure to build and run your software:
1. Ensure the BLDC motor is properly connected to the Motor Control Starter Kit board and that
2. Connect the 9V power supply to the Motor Control Starter Kit.
3. Connect the USB port on the board to a USB port on the development computer using a USB
4. Extract the Motor Control Starter Kit software from the archive file and load the software project
5. If using MPLAB 8.xx IDE, do the following; otherwise, skip to step 6:
6. If using the MPLAB X IDE, do the following:
7. After the code is downloaded to the device, the USB connection can be removed. In Release
8. By pressing the S1 button, the motor will toggle between Run and Stop modes. If the rotor
9. Use the Capacitive Touch Slider to change the motor speed. The speed magnitude will be
Note:
the rotor is able to move freely.
cable. This will power up the on-board Debugger/Programmer and connect it to the develop-
ment computer.
into the development environment.
a)
b)
c)
a)
b)
c)
mode, only the 9V power supply is needed. In Debug mode, both the 9V power supply and the
USB connection must be used.
stops without pressing the button (due to external mechanical factors), it will try to restart on
its own without requiring another button press.
indicated by the three user LEDs on the board.
Select Programmer > Select Tool and then choose the appropriate tool.
Build the project by selecting Project > Build All.
Download your code to the DSC or MCU by selecting Programmer > Program.
Select Run > Set Project Configuration > Customize.
Select the required tool under Hardware Tools, and then click Apply followed by OK.
Select Run > Run Project to download the code to the target device, and then click the
Reset Release icon.
Standard Evaluation (Free) – All optimization levels are enabled for 60 days, but then
revert to optimization level 1 only.
®
IDE and C Compilers
and www.microchip.com/compilers, respectively.