AN1931D Freescale Semiconductor / Motorola, AN1931D Datasheet - Page 53

no-image

AN1931D

Manufacturer Part Number
AN1931D
Description
3-Phase PM Synchronous Motor Vector Control
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
8.3 Drivers’ Initialization
8.4 Interrupts
8.5 PC Master Software
The appconfig.h file can be divided into two sections. The first section defines which components of
SDK libraries are included in the application; the second part overwrites components’ standard setting
during their initialization.
Each peripheral on the DSP chip or on the EVM board is accessible through a driver. The driver
initialization of all peripherals used is described in this section. For a more-detailed description of
drivers, see the Targeting Motorola DSP5680x Platformm manual.
To use a driver, following these steps:
Access to individual driver functions is provided by the ioctl function call.
The SDK serves the interrupt routine calls and automatically clears interrupt flags. The user defines the
callback functions called during interrupts. The callback functions are assigned during driver
initialization--open(). The callback function assignment is defined as one item of the initialization
structure, which is used as a parameter of the open()function. Some drivers define the callback
function in the appconfig.h file.
PC master software was designed to provide a debugging, diagnostic and demonstration tool for
development of algorithms and applications. It consists of components running on PCs and parts
running on the target DSP, connected by an RS-232 serial port. A small program is resident in the DSP
that communicates with the PC master software to parse commands, return status information to the
PC, and process control information from the PC. The PC master software executing on a PC uses
Microsoft Internet Explorer as a user interface to the PC.
The PC master software application is a part of the Motorola Embedded SDK and may be selectively
installed during SDK installation.
To enable the PC master software operation on the DSP target board application, add the following
lines to the appconfig.h file:
It automatically includes the SCI driver and installs all necessary services.
The default baud rate of the SCI communication is 9600 and is set automatically by the PC master
software driver.
A detailed PC master software description is provided in the PC Master Software User’s Manual.
Include the driver support to the appconfig.h
Fill the configuration structure in the application code for specific drivers, which depends on
driver type
Initialize the configuration setting in appconfig.h for specific drivers, which depends on driver
type
Call the open (create) function
#define INCLUDE_SCI
#define INCLUDE_PCMASTER
Freescale Semiconductor, Inc.
3-Phase PM Synchronous Motor Vector Control
For More Information On This Product,
Go to: www.freescale.com
/* SCI support */
/* PC master software support */
SDK Implementation
53

Related parts for AN1931D