AN1917D Freescale Semiconductor / Motorola, AN1917D Datasheet - Page 21

no-image

AN1917D

Manufacturer Part Number
AN1917D
Description
3-Phase PM Synchronous Motor Control with Quadrature Encoder Using DSP56F80x
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
7.
7.1 Drivers and Library Functions
7.2 Appconfig.h File
7.3 Initialization of Drivers
The Motorola Embedded SDK is a collection of APIs, libraries, services, rules and guidelines. This
software infrastructure is designed to let DSP5680x software developers create high-level, efficient,
and portable code. The application code is available in the SDK. This chapter describes how the PM
Synchronous motor control application is written under the SDK.
The PM Synchronous motor control application uses the following drivers:
All drivers except the Timer driver are included in the bsp.lib library. The Timer driver is included in
the sys.lib library.
The PM Synchronous motor control application uses the following library functions:
The purpose of the appconfig.h file is to provide a mechanism for overwriting the default configuration
settings which are defined in the config.h file.
There are two appconfig.h files. The first appconfig.h file is dedicated to External RAM
(..\ConfigExtRam directory) and the second one is dedicated to FLASH memory (..\ConfigFlash
directory). In the case of the PM Synchronous motor control application, both files are identical.
The appconfig.h file can be divided into two sections. The first section defines which components of
the SDK libraries are included in the application, the second part overwrites the standard settings of the
components during their initialization.
Each peripheral on the DSP chip or on the EVM board is accessible through a driver. The driver
initialization of each peripheral used is described in this chapter. For a detailed description of drivers
see the document Embedded SDK Targeting Motorola DSP5680x Platform.
The following steps are required to use the driver:
Access to individual driver functions is provided by the ioctl function call.
SDK Implementation
ADC driver
Timer driver
Quad Timer driver
Quadrature Decoder driver
PWM driver
LED driver
Switch driver
Button driver
mcgen3PhWaveSineIntp (3-phase sinewave generation; mcfunc.lib library)
controllerPItype1 (standard PI controller; mcfunc.lib library)
switchcontrol (switch control; mcfunc.lib library)
Include driver support in the appconfig.h file
Fill the configuration structure in the application code for specific drivers (depends on driver
type)
Initialize the configuration setting in appconfig.h for specific drivers (depends on driver type)
Call the open (create) function
3-Phase PMSM Control with Quadrature Encoder
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
SDK Implementation
21

Related parts for AN1917D