Académique Documents
Professionnel Documents
Culture Documents
2GII1
6- filtre RIF
a-
// L138_loop_intr.c
//
#include "L138_LCDK_aic3106_init.h"
int main(void)
{
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
}
return;
}
int main(void)
{
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
}
Fichier haut.h
#include "L138_LCDK_aic3106_init.h"
#include "bas.h" //tableau des coefficients du filtre passe bas
//#include "haut.h" //tableau des coefficients du filtre passe bas
float x[N]; // tableau pour stocker les échantillons
return;
}
int main(void)
{
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
}
Fichier bas .h
d-
// Programme qui gère les deux filtres passe haut et passe bas
//
#include "L138_LCDK_aic3106_init.h"
#include "bas.h"
#include "haut.h"
return;
}
int main()
{
int i;
for (i=0; i<N; i++) // initialisation du tableau des coefficients des deux
filtres passe bas et haut
{
dly[i] = 0.0;
h[0][i] = fbas[i];
h[1][i] = fhaut[i];
}
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
}
Part 4