Programmatic Control through MatLab Documentation
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
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
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.
Please log in to reply.