Why is the address of the ‘Multi-Tap Mixer’ module the same?
I want to modify the parameters of ‘Multi-Tap Mixer’ module through i2c, and find that the addresses of multiple modules are the same 0x0000. What's the problem, Master? Successfully compiled and downloaded to target board,Thanks a lot
adau1701.rar
Audio Signal Processors
SigmaDSP Audio Processors
adau1701
Hello,
Thank you for including the example file.
You seem to have run into a bug in SigmaStudio. It should not be using address 0x0000 for these objects. When I look at the memory map assignment I see location 0x0000 is the B1 coefficient of one of the IIR filters. This is clearly the wrong address.
There is a work-around for now.
If you look at the "Params" window you can find the delay objects and there you can find the address of the delays. You can also directly click on the field and enter in a new value. For an integer field like this one it is easiest to use the Data 28.0 format column to enter in the new values. For something like the gain setting, then using the Data 5.23 column is the best to use.
I will show a screenshot of where you can find these parameters and you can see the address. Keep in mind that the address defaults to decimal address. If you prefer hex you can right-click on the window and choose "Address in Hex" and change the address field to hex.
You can see in this screenshot I highlighted the four delay value fields. You cannot change the buffersize variable. Doing so will cause errors. You must re-compile when changing the delay buffer sizes. The current delay setting you can change during operation but do not exceed the buffer size. There is no range checking in the DSP program so it will use pointers to invalid memory locations for the delay.
One thing I will also point out. There are five parameters for each delay:
buffersize
gain0
delay0
gain1
delay1
The first three are used and function as labeled. The last two, gain1 and delay1 are all set to zero and are not used. I have no idea why they are there. This must be a mistake and wastes memory. I will be putting in a bug fix request and also mentioning this problem with the extra unused parameters.
I hope this helps.
Thanks,
Dave T
Thanks
Please log in to reply.
