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

Programmatic Control through MatLab Documentation

SigmaDSP & SigmaStudio Fishlamp Sep 17, 2013 00:00 2 replies Original on forum ↗
Thread Summary

Thread Summary

The user is trying to control the gain or delay on a SigmaDSP 1940 development board using MATLAB. The final answer suggests using a tutorial for safeload writes on the ADAU1701, as the general principle is the same. The user needs help with the REGISTER_SAFELOAD_WRITE() command to write values over the USB I2C port.
AI Generated Content
Subscribe
Fishlamp Question
Sep 17, 2013 00:00

Hello, I am presently working with the SigmaDSP 1940 development board, and would like to control the DSP through Matlab, to programmatically change the gain or delay, but I cannot figure out the values written to the Safeload registers. Using the compilation log, and changing the gain in the gui, I can get the address that the data is written to, but I don't understand how the bytes are calculated, to result in the 3 databytes written to the RAM. Is there any documentation on how SigmaStudio does this, so that I could sweep over gain or delay values?

An alternative would be how to control the gain value in the gui, so that I could simply write a value to the gui, which then updates the chip, though this method would add some delay time.

Thanks,

Keith McKinzie

ad1940

Audio Signal Processors

documentation

matlab

sigmastudio

SigmaDSP Audio Processors

Show More

ADIApproved Reply
Sep 17, 2013 00:00

I don't have a full tutorial for this at the moment, but Nando.One shared a nice tutorial for doing safeload writes on the ADAU1701, which you can find here: https://ez.analog.com/thread/15537. The addresses differ from that of the AD1940, but the general principle is the same. Hopefully this will help you get started.

I am traveling on a business trip at the moment so I unfortunately can't spend too much time right now writing a tutorial. Let me know if you run into problems.

Brett

Fishlamp Reply
Sep 20, 2013 00:00

Brett,

Thank you for referring me to the tutorial, it was very helpful, I believe I am all set, but I just need to know a few commands so that I can write my values from matlab. I need to do a hardware safeload, but I don't know how to get Matlab to write to the safeload registers over the usb I2C port. The command, REGISTER_SAFELOAD_WRITE() seems to be along the write lines, but I don't know the syntax and how it is used.

Any particular ideas?

~Keith M.