Home
NEC EU1V0UM00 User's Manual
Contents
1. Files ema L _BLDC_Hall_714 E Source Files l m minicube s i w E control c l w E faulta c l amp main w E carrier c E Include Files w E main f i H E cantral h o E E stdlibh t pue E stddef h E Project Related Files E sDlL rel F cIDt lib adl For Help press F1 mm E fx fv ux 7 Torecompile the code click Build and select Rebuild 8 Atthis 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 Motor Control I O Board User s Manual NEC 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 E i ID78K0 QB BLDC Hall 714 prj EE iC xl File Edit view Option Run Event Browse Jump Window Help ir me e m mi vor ES E EZ Oe gas Sall I EE ox Search lt lt gt gt watch Quick Refresh Close system init start fiDC INTPO ont EI lt gt while lt i gt lt clear_WDTM lt gt KS if sys_flag t FLG OFF 5 if Ccw_ccw_wait FLG OFF amp
2. Quick Startup Guide Low Voltage Starter Kit For Motor Control nt No Uxx xxEU1VOUMOO E jus ril NEC 5 ctronics America Inc All rights reserved Motor Control I O Board User s Manual NEC The information in this document is current as of April 2006 The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC sales representative for availability and additional information No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any errors that may appear in this document NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such NEC Electronics products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and
3. amp aed stop_flag FLG OFF sw get su switchtswd case STOP if sw t tmp_swo lt stop flag FLG ON break case FORWARD if sw t tmp sv amp amp 52 cu ccu flag CCK Imain c 29 main ID1BE BREAK Z 2 Usethe 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 D75K0 QB User s Manual 1 Motor Control I O Board User s Manual NEC 10 GUI Operation To operate the motor from the PC GUI the code has to be rebuilt with GUT option Select Compiler Options from PM Tool menu and type GUI in Preprocessor gt Define Macro entry Figure 15 Compiler Options for PC GUI Operation Compiler Options X Extend Others Startup Routine Preprocessor Memory Model Data Assign Optimize Debug Output Define Macra d GUI T Edit LIndefine M acra u E dil Include Search Path 1 Command Line Options daul Cancel Apply Help 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 JO DB 9 RS232 connector with the serial cable supplied and launch the communication program Motor Panel click Start gt Programs gt NEC Tools32 gt Motor Panel GUI 1 Sel
4. application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC Electronics no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC Electronics products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic applian
5. ces machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact NEC Electronics sales representative in advance to determine NEC Electronics s willingness to support a given application Notes 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above MSE 02 10 Motor Control I O Board User s Manual NEC iii Motor Control I O Board User s Manual Revision History NEC Date 04 2006 Revision Section Description First release 1V Motor Control I O Board User s Manual NEC Contents ewirilifudri c M M MM 1 2 ISTE ONGOINES pec
6. dow s s Electronics America lol xl Development Tools NEC Electronics America s k Motor Control Solutions Software and Documents for MC LVKIT 714 SOFTWARE DOCUMENTS ssembler and C Co s evaluation versio Cor er with documentat c ID 37197156Y MC LVKIT 7 14 Software Incl 20 degree Trapezoidal Drive Sample Code and or Control PID parameter tuning GUI 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 Motor Control I O Board User s Manual NEC 2 Remove jumpers JP5 2 5 JP5 3 6 and 2JP7 1 2 and reconnect M 78F0714 to MC IO board Motor Control I O Board User s Manual NIEC Figure 9 Jumpers for Standalone Operation al 1 Joe BEES Hb gta lt P 2 3 RF I HPN FLASH SELF PROGRAM EI s 2JP12 FLASH SELF PROGRAM FLMDA Figure 10 Debugging Setup lt FP 1 2 INTP3 PI EM ELSE n Fig Pod PP vl FLASH SELF OGRE ZJPi2 FLASH SELF PROGRAM TLG 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 Motor Control I O Board User s Manual NIEC fiiis 11 Debugging aon SNOWN with QB 78KOMINI I Debugger AGEN RRISIN CY E K Ned ND Tah tesa A SAONE Menor rer a Pg 0 Mee Note The on chip debugger has a 5 MHz internal clock source by defaul
7. ect the appropriate COM port your PC and click OK Figure 16 PC COM Port Selection Connect Port X Cancel 12 Motor Control I O Board User s Manual NEC The GUI will launch if the connection is established Figure 17 BLDCM GUI Motor Panel E Bi x Brushless DC Motor BLDCH c Operation Al gt mj Rotational Speed 300 rpm Status Stopped 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 WIDE action jii Rot Tuning Jed 300 rpm Ki gt The tuning window will allow the changing of P I or D constants Figure 19 PID Parameter Window me 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
8. 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 gt Run Browse to your CD ROM drive and select Motol_Control exe 3 Select MC LVKIT 714 from the drop down list Motor Control I O Board User s Manual NIEC Figure 7 Motor Control Software and Documents Installation GUI ANEC Electronics America 5 x Development Tools NEC Electronics America s Motor Control Solutions Engineered to provide a total environment for the exploration of NEC Electronics motor control microcontrollers These kits contain all necessary hardware and software to quickly set up and run a motor Software and Documents for your Motor Control Solutions select your Motor Control Kit gt 4 Install all of the software in the following recommended sequence e NEC Electronics C compiler and assembler software e MC LVKIT 714 software Figure 8 Software Installation Win
9. ontroller s flash memory After the motor is connected the program is ready to run the motor as soon as the 15Vpc power supply is plugged into J6 of the MC IO board and power switch SW 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 Motor Control I O Board User s Manual NEC 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 as 6 pend ey Batis CH OES ICI T 5 a me Ee 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 Turn the potentiometer clockwise to accelerate or counterclockwise to decelerate Wait for the LED to display the actual motor speed calculated from the Hall sensor interrupts 2 3 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 e
10. rT A 1 3 Hardware SCUD sanun axe ia o Un EE HE OE PEE OE A EIN EN VI NN Ue 2 4 NIEHNBII ESSI M 4 5 Drive and Motor Protections cesoie A A 4 6 SOIEWabe SCUD odd oes oaae aas EE a a S ah 5 7 ORCW ANG TNS Calla ClO EP E 5 8 Using the NEC Electronics C Compiler and Source Code Debugger 6 9 Download and Deb b the COG ette e tee ee ee Ep ee Pee pa ee eu ee oe ee eee eue e Eee Eae eae Gase eo eae be ee ee eve eee oou Ua ee 10 10 CER O Per AGM C 12 Motor Control I O Board User s Manual NEC 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 Motor Control Evaluation System 2 Kit Contents MC 78F0714 micro board containing the uPD78F0714 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
11. rror 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 Motor Control I O Board User s Manual NEC 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 O C lt Motor stall fault ee Hall sensor fault HALL 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
12. t 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 ControhBLDC 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 Motor Control I O Board User s Manual NEC Figure 12 PM Plus Workspace IDixj File Edit Find Layer View Project Build Tool Window Help e Dsus see ae seo elale ProjectWindow Fies Memo i No Workspace For Help press F1 4 Click File and select Open Workspace 5 Browse to C NECTools32 Motor ControNBLDC 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 Enea z ER za PM plus BLDC LV prw ProjectWindow ES mi x ni Fie Edit Find Layer View Project Build Tool Window Help m x
13. trapezoidal drive 9o gt gt 9o o 39 20 MHz oscillator for on chip debugger For information about the electrical characteristics and hardware functions of the uPD78F0714 microcontroller refer to uPD78F0714 Preliminary User s Manual U16928E Motor Control I O Board User s Manual NIEC 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 TIT sols af 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 JS connector block on the MC IO control board Table 1 Motor Connections Pittman N2311 Motor Terminals MC IO MV PWR LV Phase U Beige J3 1 Phase V Red ES J3 2 Phase W Orange Se J3 3 Hall sensor 1 Gray Hall sensor 2 Blue Hall sensor 3 White Hall sensor 5Vpc Purple Hall sensor GND Black Motor terminal connections are shown in Figures 3 and 4 Motor Control I O Board User s Manual NIEC Figure 3 Motor Phase oe yy at Lr a unn a o E gt m su E ed RET Me IE uh m Py E Figure 4 Hall Sensor Connections eo ee ie oe ee i soeseoss W com 3 AUT iy TEN T arm A oo LF 1 sp m rr nia The software to run the motor is programmed into the microc
Download Pdf Manuals
Related Search
Related Contents
公 募 - 水産総合研究センター FRITZ!Box Fon WLAN 7330 - Telecom Namibia Limited mode d`emploi composants pour montrac ba-100083 Mode d`emploi Melaudio 18 S2 Manual 1771-6.5.80, High Resolution Thermocouple/Millivolt Input Module Copyright © All rights reserved.
Failed to retrieve file