biquad filter integrating

Technical questions regarding the XTC tools and programming with XMOS.
choya8152
New User
Posts: 3
Joined: Fri Feb 13, 2015 5:25 pm

biquad filter integrating

Post by choya8152 »

Hi...

I'm integrating a equalizer on Xs1-G04 using the sc_dsp_filters.

filter is biquad filter...

i'm testing the 1Khz sine wave..

but, after filtering...waveform is crashing ...

conefficients setting :
FILTER= '-min -20 -max 20 -step 1 -bits 24 -low 632 -fs 44100'

And Configrations..
Codec : sampling : 44100, 24bit

biquadState bs;
initBiquads(bs, 20);
.......
bs.desiredDb[0] = 10;

iSampleIn = g_iSine[0][iSineInOffset];

if( iLrcVal == AUDIO_RIGHT )
{
//iSineInOffset = ((iSineInOffset+1)<SINE_SIZE)?(iSineInOffset+1):0;
iSineInOffset = ((iSineInOffset+1)<g_iNumSine[0])?(iSineInOffset+1):0;
}

iSampleIn = biquadCascade(bs, iSampleIn);

outSpk( iSampleIn );
................................................................................
Sine Wave code
0x011555,0x02250B,0x0329A1,0x041DCF,0x04FCA2,
0x05C195,0x0668AC,0x06EE84,0x075065,0x078C55,
0x07A11C,0x078E4F,0x07544F,0x06F448,0x06702E,
0x05CAAE,0x050721,0x04297F,0x033645,0x023262,
0x012319,0x000DE9,0xFEF872,0xFDE852,0xFCE30D,
0xFBEDEE,0xFB0DED,0xFA4795,0xF99EEA,0xF91757,
0xF8B39B,0xF875BD,0xF85EFC,0xF86FCF,0xF8A7DF,
0xF90609,0xF98864,0xFA2C4C,0xFAEE6F,0xFBCADE,
0xFCBD20,0xFDC04E,0xFECF26,0xFFE42C,
................................................................................
You do not have the required permissions to view the files attached to this post.
srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

choya8152 wrote:
but, after filtering...waveform is crashing ...
Outputs in your attachments does not provide much info about crash - can you share the crash trace that you are getting?
choya8152
New User
Posts: 3
Joined: Fri Feb 13, 2015 5:25 pm

Post by choya8152 »

srinie wrote:
choya8152 wrote:
but, after filtering...waveform is crashing ...
Outputs in your attachments does not provide much info about crash - can you share the crash trace that you are getting?
Sorry, i'm mistake...
This Attachment files is result of output.
It was input the -45dbm for all frequencies(20Hz~20kHz). so, all frequencies of "before.png" are flat. but, "After.png" not have a flat. I'm think that it is incorrect a signal(crash). I believe that it should be displayed like as red line in attachment file.(i want to output of high pass filter..)
You do not have the required permissions to view the files attached to this post.