ΣSigmaStudio Ask AI Русский Log in

RE: [SHARING] Filter coeficents online calculator with sample code for C++, C#, MicroPython and Arduino Sketch

SigmaDSP & SigmaStudio liangsea Oct 20, 2022 00:00 3 replies Original on forum ↗
Subscribe
liangsea Question
Oct 20, 2022 00:00

Hello, I use the 1701 and 1452 development boards. I want to use stm32 to control EQ, limiter, compressor, etc. Is there any instance code of C language and keil? If possible, it can be sent to the email address: 378940229@qq.com

Harishgowtham Reply
Oct 20, 2022 00:00

Hello liangsea,

If you want to control the parameters of above-mentioned blocks (EQ,compressor,limiter,etc), then there is an example code that is interfacing uC with sigmaDSP here .

You can access the address of those parameters in real time using your uC. Teensy was the uC that was used in that example, and it is arduino compatible. You can refer the example file attached in that page with an explanation. You can modify that code based on your requirement.

Regards,

Harish

liangsea Reply
Oct 21, 2022 00:00

Hello, I still have many questions. For example, I used to use 1452 spi to control. If the first write register address is 0, then it is write. If it is 1, then it is read.

Now I use i2c to control 1701. I don't know the read/write address. The method is different from that of SPI。

Also, I need to calculate the C language code of the filter. Some parameters of the code downloaded from the online calculation are undefined, and I don't know how to define values. I want to get the code for calculating the filter. There is no such code in the routine you provided for download.

I don't know how to add pictures

DaveThib Reply
Oct 21, 2022 00:00

Hello Iiangsea,

liangsea said:
Now I use i2c to control 1701. I don't know the read/write address. The method is different from that of SPI。

This is a big topic that it too much for a response on the forum. I suggest you read this as a starting point.

I²C - Wikipedia

The datasheet does explain a little.

Then search the forum and you will find many posts talking about how to control different objects. Some are very simple and some a lot more complicated. You can also watch the Capture window to see how SigmaStudio is controlling the objects running in the DSP. What STM32 needs to do is the same thing SigmaStudio is doing to control objects.

For your filter calculation question. Look at this post:

(+) Calculating Filter Coefficients to Store in a Microcontroller - Discussions - SigmaDSP Processors & SigmaStudio Dev. Tool - EngineerZone (analog.com)

To add pictures to your posts you can simple drop them into the window. You can also use the "Insert" menu but it is easier to drag and drop.

Dave T