MCUdude / SigmaDSP

A versatile Arduino library for interfacing with the ADAU1401, ADAU1701 and ADAU1702 audio DSPs
GNU Lesser General Public License v3.0
165 stars 33 forks source link

Help cascading 2nd order filters to form 6th order filter #25

Closed SitrucL closed 2 years ago

SitrucL commented 2 years ago

Hi,

I've been attempting to implement 6th order filters using this library but haven't had any success. I've attached a screenshot of my sigma program and I know the program works as I've tested it using SigmaDSP and a programmer.

image

I'm struggling to figure out how to initialise the stacked EQ bands within the code. Based on the examples I assumed I could do something along the lines of this for each half of my filter:

    dsp.EQsecondOrder(MOD_LOW_D_ALG0_STAGE0_B0_ADDR, Low_D);
    dsp.EQsecondOrder(MOD_LOW_D_2_ALG0_STAGE0_B0_ADDR, Low_D_2);
    dsp.EQsecondOrder(MOD_LOW_D_3_ALG0_STAGE0_B0_ADDR, Low_D_3);

image

image

However this hasnt worked as expected - the dsp just emits a high frequency sound and the occasional pop when trying to control it via an MCU (adjusting gain or muting the EQ bands) . Is anyone able to advise on how to proceed or see anything I've done wrong from the screenshots?

Let me know if I need to attach more info & thanks in advance

SitrucL commented 2 years ago

Closing this one as I've come to the realisation that it was a hardware/setup related issue