AN1914 Freescale Semiconductor / Motorola, AN1914 Datasheet - Page 47

no-image

AN1914

Manufacturer Part Number
AN1914
Description
3-Phase BLDC Motor Control with Sensorless Back EMF Zero Crossing Detection Using DSP56F80x
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
8.2 Appconfig.h File
8.3 Driver Initialization
The purpose of the appconfig.h file is to provide a mechanism for overwriting default configuration
settings which are defined in the config.h file (..\config directory).
There are two appconfig.h files The first appconfig.h file is dedicated for External RAM
(..\ConfigExtRam directory) and the second one is dedicated for FLASH memory (..\ConfigFlash
directory). In case of BLDC motor control application with BEMF Zero Crossing, the both files are
identical.
The appconfig.h file is divided to two sections. The first section defines which components of SDK are
included in the application. The second part of the appconfig.h file overrides standard settings of
components during their initialization.
Each peripheral on the DSP chip or on the EVM board is accessible through its driver. The driver
initialization of all used peripherals is described in this chapter. For detailed description of drivers see
document Embedded SDK (Software Development Kit) Targeting Motorola DSP5680X Platform
where X means target DSP (DSP56803, DSP56805, DSP56807).
To open driver the following step must be done:
The access to peripheral functions driver is provided by the ioctl function.
bldczcTimeoutIntAlg (time-out interrupt algorithm for BLDC commutation control with
BEMF Zero Crossing; bldc.lib library)
bldczcHndlrStop (stop handler for BLDC commutation control with BEMF Zero Crossing;
BLDC.LIB library)
bldczcComputInit (computation initialization for BLDC commutation control with BEMF
Zero Crossing; BLDC.LIB library)
bldczcComput (computation for BLDC commutation control with BEMF Zero Crossing;
bldc.lib library)
bldczcCmtInit (commutation initialization for BLDC commutation control with BEMF Zero
Crossing; BLDC.LIB library)
bldczcCmtServ (commutation serve for BLDC commutation control with BEMF Zero
Crossing; BLDC.LIB library)
bldczcZCrosInit (zero crossing initialization for BLDC commutation control with BEMF Zero
Crossing; BLDC.LIB library)
bldczcZCrosIntAlg (zero crossing interrupt algorithm for BLDC commutation control with
BEMF Zero Crossing; BLDC.LIB library)
bldczcZCrosServ (zero crossing service for BLDC commutation control with BEMF Zero
Crossing; BLDC.LIB library)
controllerPItype1 (calculation of PI controller; MCFUNC.LIB library)
boardId (hardware board identification; BSP.LIB library)
fill configuration structure if necessary (this depends on the type of driver)
write the configuration items to appconfig.h if necessary (this depends on the type of driver)
call the open (create) function
DSP56F80x MC PWM Module in Motor Control Applications
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
SDK Implementation
47

Related parts for AN1914