Microchip® Advanced Software Framework

dsp16_convolution/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 dsp16_t vect1 [VECT2_SIZE+2 *(VECT3_SIZE-1)+4]
 The output buffer. More...
 
A_ALIGNED dsp16_t vect2 [VECT2_SIZE]
 First input signal. More...
 
A_ALIGNED dsp16_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.

First input signal.

Initial value:
= {
DSP16_Q(0.015591),
DSP16_Q(0.008942),
DSP16_Q(-0.),
DSP16_Q(-0.010929),
DSP16_Q(-0.023387),
DSP16_Q(-0.036788),
DSP16_Q(-0.050455),
DSP16_Q(-0.063661),
DSP16_Q(-0.075682),
DSP16_Q(-0.085839),
DSP16_Q(-0.093548),
DSP16_Q(-0.098363),
DSP16_Q(0.1),
DSP16_Q(0.098363),
DSP16_Q(0.093548),
DSP16_Q(0.085839),
DSP16_Q(0.075682),
DSP16_Q(0.063661),
DSP16_Q(0.050455),
DSP16_Q(0.036788),
DSP16_Q(0.023387),
DSP16_Q(0.010929),
DSP16_Q(0.),
DSP16_Q(-0.008942),
}
#define DSP16_Q(fnum)
Convert a float into a 16-bit signed fixed-point type.
Definition: dsp_types.h:290

Second input signal.