Quick Startup Guide
Low-Voltage Starter Kit
For Motor Control
Document No. UxxxxxEU1V0UM00
©2006 April. NEC Electronics America, Inc.
All rights reserved.
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
iii
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Revision History
Date
Revision
Section
Description
04-2006
—
—
First release
iv
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Contents
Hardware Setup..............................................................................................................................2
v
Download from Www.Somanuals.com. All Manuals Search And Download.
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
1. Introduction
The low-voltage starter kit for motor control (MC-LVKIT-714) is a complete 3-phase motor control
evaluation system for NEC Electronics’ microcontroller-type, application-specific standard products
(ASSPs) for motor control.
The kit contains all necessary hardware and software to quickly set up and run a low-voltage
brushless DC motor (BLDCM).
Figure 1. Motor Control Starter Kit
2. Kit Contents
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
ꢀ
MC-78F0714 micro-board containing the µPD78F0714 microcontroller
MC-I/O board that interfaces between the micro-board and the power module
Low-voltage power module (MC-PWR-LV) containing the power MOSFETs
Pittman N2311 12V BLDC motor
FW7362/15 DC power supply
PC serial cable DB-9F to DB-9F (null modem – crossover cable)
Sample software for a BLDC-Hall-714-LV 120-degree trapezoidal drive
20 MHz oscillator for on-chip debugger.
For information about the electrical characteristics and hardware functions of the µPD78F0714
microcontroller, refer to µPD78F0714 Preliminary User’s Manual (U16928E).
1
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
For the instruction descriptions, refer to the 78K/0 Series Instruction User’s Manual (U12326E)
3. Hardware Setup
The kit can be purchased as one unit with all three boards connected as shown below:
Figure 2. MC-LV-KIT-714 Boards Stacked Up
To attach the motor, connect the phase U, V and W terminals to the J3 connector block on the MC-
PWR-LV power board and the Hall sensor terminals to the J5 connector block on the MC-IO control
board.
Table 1. Motor Connections
Pittman N2311 Motor Terminals
MC-IO
—
MV-PWR-LV
Phase U
- Beige
- Red
J3 - 1
J3 - 2
J3 - 3
—
Phase V
—
Phase W
- Orange
- Gray
- Blue
—
Hall sensor 1
Hall sensor 2
Hall sensor 3
J5–13
J5–14
J5–7
J5–6
J5–5
—
- White
—
Hall sensor 5VDC - Purple
Hall sensor GND - Black
—
—
Motor terminal connections are shown in Figures 3 and 4.
2
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Figure 3. Motor Phase Connections
Figure 4. Hall Sensor Connections
The software to run the motor is programmed into the microcontroller’s flash memory. After the
motor is connected, the program is ready to run the motor as soon as the 15VDC power supply is
plugged into J6 of the MC-IO board and power switch SW1 on the MC-PWR-LV power module is
turned ON.
When the kit is powered up or reset, the LED displays “SELF”, indicating that the kit is in
standalone mode and you can use the pushbuttons and potentiometer on the MC-IO board to control
the motor.
3
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
To control the motor from a GUI on your PC, connect a serial cable to the J9 RS-232 port on the
MC-IO board and rebuild the code with the GUI macro option as described later in this manual.
Figure 5. Standalone Operation
Three seconds after power up, the LED displays the current set speed.
Figure 6. Speed Display
4. Standalone Operation
After power up in standalone mode, the motor can be operated as follows:
1. Press the START/STOP button to run the motor.
2. Turn the potentiometer clockwise to accelerate or counterclockwise to decelerate.
3. Wait for the LED to display the actual motor speed calculated from the Hall sensor interrupts.
4. Press the FORWARD or REVERSE button to change the rotation direction.
5. Press the MODE button to display the set speed.
6. Press START/STOP to stop the motor.
Note: If the potentiometer position is set to higher speeds, and the motor rotation is suddenly
reversed, an error condition may occur due to a timeout or over-current detection and the motor will
stop operating. To reboot, press the RESET switch on the MC-IO board, adjust the potentiometer to
a lower speed and restart.
5. Drive and Motor Protection
The starter kit and the motor are protected against unexpected events such as overload, motor stall
and malfunction of the Hall sensors. If such faults are detected, the motor stops rotating and the fault
4
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
condition is displayed on the seven-segment LED. For details on the protection functions
implemented in hardware, consult the user’s manual for MC-PWR-LV low-voltage power module.
The sample code software also has built-in fault detection algorithms as an extra measure of
protection. Consult the software manual for details.
In standalone (SELF) mode, the LED displays the following fault conditions:
ꢀ
ꢀ
ꢀ
Motor over-current:
Motor stall fault:
Hall sensor fault:
“O – C – “
“– – – –“
“H A L L“
In PC (GUI) mode, the LED displays “PC” all the time and the GUI will displays all fault conditions.
Refer to section 10 for more information.
6. Software Setup
The software CD-ROM bundled with the kit contains PDF versions of this document, the user
manuals and electrical schematics for all hardware module components, and the entire sample project
program for the NEC Electronics 78K0 firmware-based development tools environment. The
software sample code is supplied in source format and can be modified as needed.
The following sections describe NEC Electronics America’s development tools environment, how to
install it on your computer, and how to rebuild and download executable code to the
microcontroller’s flash memory.
Before proceeding with the tools installation, however, refer to all of the documentation on the CD-
ROM for detailed information about the starter kit and the sample software.
7. Software Installation
1. Insert the CD-ROM supplied with your MC-LVKIT-714 starter kit.
2. The CD-ROM should initialize automatically. If it doesn’t, click Start ꢁRun. Browse to your
CD-ROM drive and select Motol_Control.exe.
3. Select MC-LVKIT-714 from the drop down list.
5
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Figure 7. Motor Control Software and Documents Installation GUI
4. Install all of the software in the following recommended sequence:
• NEC Electronics C compiler and assembler software
• MC-LVKIT-714 software
Figure 8. Software Installation Window
8. Using the NEC Electronics C Compiler and Source Code Debugger
To set up the MC-LVKIT-714 starter kit for debugging, follow the steps below.
1. Disconnect the M-78F0714 micro board by separating it from the MC-IO board.
6
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
2. Remove jumpers JP5 2-5, JP5 3-6 and 2JP7 1-2 and reconnect M-78F0714 to MC-IO board.
7
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Figure 9. Jumpers for Standalone Operation
Figure 10. Debugging Setup
3. Attach the on-chip debugging emulator’s target connector to 2JP7 on the M-78F0714 and the
USB cable to your computer as shown bellow.
8
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Figure 11. Debugging Environment Shown with QB-78K0MINI On-Chip Debugger
Note: The on-chip debugger has a 5 MHz internal clock source by default.
The MC-78F0714 must be operated at 20 MHz. Use the external 20 MHz oscillator supplied with the
kit. Consult the on-chip debugger user’s manual for information about how to attach the external
oscillator.
The sample program “BLDC-Hall-714-LV 120-degree Trapezoidal Drive” is installed in step (b) of
the “Install Software” section in \Motor_Control\BLDC_Hall_714 folder. The sample code includes
a workspace and project files used with Project Manager Plus, which is NEC Electronics’ integrated
development environment software.
To recompile and debug the sample program follow the steps below:
1. Run PM Plus program installed by the NEC Electronics assembler software.
2. Launch PM Plus from Start ꢁPrograms ꢁNEC Tools32.
3. PM Plus will display its main window as shown below.
9
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
Figure 12. PM Plus Workspace
4. Click File and select Open Workspace.
5. Browse to C:\NECTools32\ \Motor_Control\BLDC_Hall_714 and select BLDC_LV.prw PM
Plus workspace file.
6. The newly loaded workspace file will contain one project called LV_BLDC_Hall-714.prj as
shown below.
Figure 13. PM Plus Window
7. To recompile the code, click Build and select Rebuild.
8. At this point, you may change the code and recompile as needed.
9. After building the code successfully, you may download and run or debug the code using an on-
chip debugging emulator.
9. Download and Debug the Code
1. To debug the code, select Debug from Build menu or click the Debug button on the tool bar. By
default the code automatically will be downloaded to the microcontroller’s flash memory
10
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
through the on-chip debugging emulator and the source code displayed in the Debugger window
as shown below.
Figure 14. Source Code in Debugging Window
2. Use the RUN command to execute code in debugging mode. At this point, the motor can be
controlled from the user interface in standalone mode or GUI mode.
3. Stop execution using the STOP button.
4. For details on how to use the debugger, consult the ID78K0-QB User’s Manual.
11
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
10. GUI Operation
To operate the motor from the PC GUI, the code has to be rebuilt with “GUI” option. Select
Compiler Options from PM+ Tool menu and type “GUI” in PreprocessorꢁDefine Macro entry.
Figure 15. Compiler Options for PC GUI Operation
Rebuild and download the code to the microcontroller flash. At this point the motor can be
controlled from the GUI only.
Connect the PC serial port to the starter kit J9 DB-9 RS232 connector with the serial cable supplied
and launch the communication program Motor Panel, click Start ꢁPrograms ꢁNEC Tools32 ꢁ
Motor Panel GUI
1. Select the appropriate COM port your PC and click OK.
Figure 16. PC COM Port Selection
12
Download from Www.Somanuals.com. All Manuals Search And Download.
Motor Control I/O Board User’s Manual
The GUI will launch if the connection is established:
Figure 17. BLDCM GUI
2. To operate the motor, use the controls in the GUI.
3. To change the PID parameters click on the tuning key symbol
Figure 18. Launching PID Parameter Window
The tuning window will allow the changing of P, I or D constants:
Figure 19. PID Parameter Window
The new parameter values will be updated in the internal RAM when the motor is restarted again. To
make the changes permanent, the user has to update #define values in on KP_DEF, KI_DEF and
KD_DEF in control.h header file and rebuild the code.
13
Download from Www.Somanuals.com. All Manuals Search And Download.
|
MTD Snow Blower H660G User Manual
Nostalgia Electrics Frozen Dessert Maker SCM 802 User Manual
Numark Industries CD Player CDN 32S User Manual
Olympus Automobile Battery Charger DM 420 User Manual
Onkyo Laser Pointer ABX N300 User Manual
Oregon Scientific Games 086 003875 034 User Manual
Orion Car Audio Car Speaker C463 User Manual
Panasonic Camcorder AG HPX250 User Manual
Panasonic Fax Machine KX PW503DL User Manual
Panasonic Network Card 2SA2122G User Manual