Motorola MPC823e Reference Manual page 492

Microprocessor for mobile computing
Table of Contents

Advertisement

Communication Processor Module
/* Buffer Descriptors */
typedef struct dsp_fd {
unsigned short
unsigned short
} DSP_FD;
#define WRAP
0x2000
#define INTR
0x1000
/* define for function opcodes */
#define FIR_2
0x0102
#define MOD
0x0008
/* Initialize a static fd table for 2 functions */
DSP_FD
filters[2]= {
{ FIR_2,P11,P12, , P17}
,{(WRAP | INTR | MOD),P21,P22, , P27}
};
void main()
{
/* Setup FD chain pointer */
DSP2_Base. Fdbase = filters;
*
/* issue command to CPM to start processing the fd chain */
issue_command( START_FD );
*
*
*
}
16.3.4 DSP On-Chip Library Functions
The DSP library is an easy way to implement DSP functions. It consists of the following
functions:
• FIR1—Finite impulse response 1
• FIR2—Finite impulse response 2
• FIR3—Finite impulse response 3
• FIR5—Finite impulse response 5
• FIR6—Finite impulse response 6
• IIR—Infinite impulse response
• MOD—Modulation
• DEMOD—Demodulation
• LMS1—Least mean squared 1
• LMS2—Least mean squared 2
• WADD—Weighted vector addition
16-38
status;
parameter[7];
/* wrap bit */
/* interrupt on completion */
/* FIR2
filter */
/* Modulation function opcode */
MPC823e REFERENCE MANUAL
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents