background image

Project file structure 

BLDC Control Demo User's Guide, Rev. 6, 06/2020 

NXP Semiconductors 

 

15 

 

 

Figure 13.  Assembled Freedom system  

4.6.  High-Voltage Platform 

To run the BLDC application within the High-Voltage Platform, you need these components:  

 

Kinetis KV31F High-Voltage Daughter Board (

HVP-KV31F512

), Kinetis KV46F High-Voltage 

Daughter Board (

HVP-KV46F150

), Kinetis KV58F220M High-Voltage Daughter Board 

(

HVP-KV58F220M

), or Kinetis KE18F High-Voltage Daughter Board (

HVP-KE18F

)

 

High-Voltage Platform (

HVP-MC-3PH

(motor not included). 

Order all the modules of the High-Voltage Platform fro

www.nxp.com

 (or from distributors) and build 

the hardware platform for the target application easily. 

5. Project file structure 

The demo project folder

 

(for example

 boards\frdmkv11z\demo_apps\mc_bldc

)

 

contains these folders and 

files: 

 

IAR

 folder—contains the configuration files for IAR Embedded Workbench

®

 IDE. If IAR 

Embedded Workbench for Arm is installed on your computer, open the project using IAR IDE. 

 

Project files

—contains the device-specific files. These files specify the peripheral initialization 

routines, motor definitions, and state machines. The source code contains a lot of comments. The 

functions of the particular files are explained in this list: 

o

 

m1_bldc_appconfig.h

—contains the definitions of constants for the application control 

processes (parameters of the motor and regulators and constants for the BLDC sensorless 

control-related algorithms).  

Содержание BLDC

Страница 1: ...nductors Document Number BLDCDEMOUG User s Guide Rev 6 06 2020 Contents 1 Introduction 1 2 Supported development boards 2 3 Motor Control vs SDK Peripheral Drivers 2 4 Hardware setup 2 4 1 Linix 45ZWN...

Страница 2: ...Motor Control vs SDK Peripheral Drivers The motor control examples use the SDK peripheral drivers to configure the general peripherals such as clocks SPI SIM and ports However motor control requires...

Страница 3: ...wer the motor The second cable has five wires and it is designated for the Hall sensors signal sensing Only the power input wires are needed for the BLDC sensorless application 4 2 MIGE 60CST MO1330 m...

Страница 4: ...n the BLDC application using the Tower System these Tower boards are required Tower board with a Kinetis V series MCU TWR KV46F150M or TWR KV58F220M Tower board with Kinetis E series MCU TWR KE18F 3 P...

Страница 5: ...evel of board protection over current under voltage over temperature is provided by the MC33937 pre driver Before you insert the TWR MC LV3PH module into the Tower System ensure that the jumpers on yo...

Страница 6: ...operly Table 7 lists the relevant jumpers and their settings for the TWR KV46F150 MCU module Table 5 TWR KV46F jumper settings Jumper Setting Jumper Setting Jumper Setting J1 open J16 open J505 3 4 J2...

Страница 7: ...of motor control peripherals lots of memory depending on the model used and a powerful core To begin configure the jumpers on the TWR KV58F220M and TWR MC LV3PH Tower System modules properly Table 8 l...

Страница 8: ...MC LV3PH Tower System modules properly Table 9 lists the specific jumpers and their settings for the TWR KE18F Tower System module Table 7 TWR KE18F jumper settings Jumper Setting Jumper Setting Jumpe...

Страница 9: ...R MC LV3PH system kit to the motor control peripheral board TWR MC LV3PH Connect the TWR MCU module to the host PC via a USB cable Figure 7 Assembled Tower System 4 5 Freedom development platform To r...

Страница 10: ...n board in a shield form factor effectively turns the Freedom development platform into a complete motor control reference design compatible with the existing Freedom development platforms FRDM KV31F...

Страница 11: ...ith the Arduino R3 pin layout providing a broad range of expansion board options The FRDM KV11Z platform features OpenSDA the open source hardware embedded serial and debug adapter running an open sou...

Страница 12: ...t providing a broad range of expansion board options including FRDM MC LVPMSM and FRDM MC LVBLDC for PMSM and BLDC motor control The FRDM KV31F platform features OpenSDA the open source hardware embed...

Страница 13: ...FRDM KE15Z Freedom System module Table 9 FRDM KE15Z jumper settings Jumper Setting Jumper Setting Jumper Setting J7 1 2 J10 1 2 J15 2 3 J8 1 2 J14 1 2 Figure 11 FRDM KE15Z Freedom development board 4...

Страница 14: ...ove PTC0 MC_PWM_AT R111 add PTC1 GES_R1 R8 remove PTC1 MC_PWM_AB R13 add PTD1 RGB_BLUE R6 remove PTD1 MC_PWM_BB R9 add PTC1 GES_R1_R6 R107 remove PTC2 MC_CUR_DCB R108 add PTC0 GES_R0 R112 remove PTB2...

Страница 15: ...d the hardware platform for the target application easily 5 Project file structure The demo project folder for example boards frdmkv11z demo_apps mc_bldc contains these folders and files IAR folder co...

Страница 16: ...asic information about the requirements settings and the demo The motor control folder KSDK_install_folder middleware motor_control bldc contains these common source and header files used in all motor...

Страница 17: ...does not provide any push buttons to control the application the demo mode runs automatically after the HVP board is switched on 6 1 Control button Pressing the control button switches the demo mode...

Страница 18: ...munication COMxx speed 115200 When the communication setup fails a FreeMASTER warning pop up window appears Figure 15 FreeMASTER communication status when communication is established successfully 3 C...

Страница 19: ...TR_USE_TSA macro in the board h file Only the variables necessary for the MCAT functionality are stored in the TSA and visible in FreeMASTER If you want to monitor your own variables provide a symbol...

Страница 20: ...pplication State Notification shows the actual application state and faults Figure 18 FreeMASTER control page The MCAT tuning tool plug in module is in the FreeMASTER GUI This tool is targeted at moto...

Страница 21: ...otor on the speed slider on the FreeMASTER control page 7 2 Stopping the motor 1 Click on the Stop button on the FreeMASTER control page 2 Require zero speed with using speed slider 3 In emergency cas...

Страница 22: ...history Table 14 Revision history Revision number Date Substantive changes 0 07 2016 Initial release 1 03 2017 Updated the document with information about FRDM KV11Z and the MCUXpresso IDE 2 09 2017...

Страница 23: ...n customer s applications and products and NXP accepts no liability for any vulnerability that is discovered Customers should implement appropriate design and operating safeguards to minimize the risk...

Отзывы: