Hi, I have a question for IIR Accelerator.
my sw flow is (input- > IIR Filter (1) for 20channel -> any audio processing -> IIR Filter (2) for 10channel -> any audio processing -> output),
in this case, how to operate accelerator?
My psuedo code is below(accelerator section), TCBs are chaining for 20channel and 10channel each other.(IIR Filter(1) : TCB_1, IIR Filter(1) : TCB_2)
TCB_1 and TCB_2 are not chaining.
what's the problem below code?
// IIR Filter (1) for 20channel
*pIIRCTL1&=~(IIR_EN | IIR_DMAEN);
*pCPIIR = (int) TCB _1 + 12;
*pIIRCTL1 = IIR_CH20 | IIR_EN | IIR_DMAEN;
// IIR Filter (2) for 10channel
*pCPIIR = (int) TCB _2 + 12;
*pIIRCTL1 = IIR_CH10 | IIR_EN | IIR_DMAEN;
Hi,Apologies for delay in response. I understand that you wish to perform IIR filtering twice(1st for 20 channel and the next for 10 channels). Is this correct? I have reviewed your code snippet and everything seems fine. I would suggest you to disable the accelerator before switching over to the next one. BTW, are you facing any issues regarding this? Meanwhile, you can also have a look at the attached IIR example project.Hope this helps.Regards,Lalitha S