Microchip® Advanced Software Framework

convolution_example.c File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "dsp.h"
#include "dsp_debug.h"
#include "pm.h"
#include "cycle_counter.h"

Macros

#define VECT2_SIZE   64
 The size of the input signal. More...
 
#define VECT3_SIZE   25
 The number of tap. More...
 

Functions

int main (int argc, char *argv[])
 The main function. More...
 

Variables

A_ALIGNED dsp32_t vect1 [VECT2_SIZE+2 *(VECT3_SIZE-1)+4]
 The output buffer. More...
 
A_ALIGNED dsp32_t vect2 [VECT2_SIZE]
 First input signal. More...
 
A_ALIGNED dsp32_t vect3 [VECT3_SIZE]
 Second input signal. More...
 

#define VECT2_SIZE   64

The size of the input signal.

Referenced by main().

#define VECT3_SIZE   25

The number of tap.

Referenced by main().

The output buffer.

Referenced by dsp16_vect_convpart(), dsp32_vect_convpart(), and main().

First input signal.

Referenced by dsp16_vect_convpart(), dsp32_vect_convpart(), and main().

Initial value:
= {
DSP32_Q(0.01559148806),
DSP32_Q(0.00894210585),
DSP32_Q(-0.00000000000),
DSP32_Q(-0.01092924048),
DSP32_Q(-0.02338723209),
DSP32_Q(-0.03678830106),
DSP32_Q(-0.05045511524),
DSP32_Q(-0.06366197724),
DSP32_Q(-0.07568267286),
DSP32_Q(-0.08583936913),
DSP32_Q(-0.09354892838),
DSP32_Q(-0.09836316431),
DSP32_Q(0.10000000000),
DSP32_Q(0.09836316431),
DSP32_Q(0.09354892838),
DSP32_Q(0.08583936913),
DSP32_Q(0.07568267286),
DSP32_Q(0.06366197724),
DSP32_Q(0.05045511524),
DSP32_Q(0.03678830106),
DSP32_Q(0.02338723209),
DSP32_Q(0.01092924048),
DSP32_Q(0.00000000000),
DSP32_Q(-0.00894210585),
}
#define DSP32_Q(fnum)
Convert a float into a 32-bit signed fixed-point type.
Definition: dsp_types.h:294

Second input signal.

Referenced by dsp16_vect_convpart(), dsp32_vect_convpart(), and main().