How to write volume value from spi-connected Arduino to safeload?
Hi. My problem is that I shut down the power using push volume on adau1466 When turned on, the volume is initialized (interface read, write does not work)
So, by connecting Arduino Nano with SPI, I want to control the volume by pressing the button in Arduino, save the volume value to Arduino, and write the volume value stored in safeload when the power is turned on.
I have no experience in programming, and I've looked a lot on the internet, but I never understood it. May I know how to code?
When you simply turn on the power, you want to write the volume value stored in Arduino to the DSP RAM, and when you press two buttons (volume up, down) connected to Arduino, you want to write a specific volume value.
This is the value when the volume value is changed in sigmastudio.
All I want is to press the button and simply let it drop or go up one by one from 16 values.
Safeload Write
Time: 00:21:26 - 542ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 1
Bytes: 4
Param Data:
0x01, 0x00, 0x00, 0x00
Safeload Write
Time: 00:21:32 - 421ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.562341332435608
Bytes: 4
Param Data:
0x00, 0x8F, 0xF5, 0x9A
Safeload Write
Time: 00:21:34 - 883ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.316227793693542
Bytes: 4
Param Data:
0x00, 0x50, 0xF4, 0x4E
Safeload Write
Time: 00:21:34 - 919ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.177827954292297
Bytes: 4
Param Data:
0x00, 0x2D, 0x86, 0x22
Safeload Write
Time: 00:21:35 - 032ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.100000023841858
Bytes: 4
Param Data:
0x00, 0x19, 0x99, 0x9A
Safeload Write
Time: 00:21:35 - 099ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.0562341213226318
Bytes: 4
Param Data:
0x00, 0x0E, 0x65, 0x5C
Safeload Write
Time: 00:21:35 - 165ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.0316227674484253
Bytes: 4
Param Data:
0x00, 0x08, 0x18, 0x6E
Safeload Write
Time: 00:21:35 - 199ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.0177828073501587
Bytes: 4
Param Data:
0x00, 0x04, 0x8D, 0x6A
Safeload Write
Time: 00:21:35 - 231ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.00999999046325684
Bytes: 4
Param Data:
0x00, 0x02, 0x8F, 0x5C
Safeload Write
Time: 00:21:35 - 256ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.00562340021133423
Bytes: 4
Param Data:
0x00, 0x01, 0x70, 0x89
Safeload Write
Time: 00:21:35 - 277ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.00316226482391357
Bytes: 4
Param Data:
0x00, 0x00, 0xCF, 0x3E
vSafeload Write
Time: 00:21:35 - 328ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.000999987125396729
Bytes: 4
Param Data:
0x00, 0x00, 0x41, 0x89
Safeload Write
Time: 00:21:35 - 339ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.000562369823455811
Bytes: 4
Param Data:
0x00, 0x00, 0x24, 0xDB
Safeload Write
Time: 00:21:35 - 388ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.000316202640533447
Bytes: 4
Param Data:
0x00, 0x00, 0x14, 0xB9
Safeload Write
Time: 00:21:35 - 410ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.00017780065536499
Bytes: 4
Param Data:
0x00, 0x00, 0x0B, 0xA7
Safeload Write
Time: 00:21:35 - 418ms
IC: IC 1
Cell Name: Single 1
Param Name: HWGainADAU145XAlg1target
Param Address: 0x0022
Param Value: 0.000100016593933105
Bytes: 4
Param Data:
0x00, 0x00, 0x06, 0x8E
1466_2.dspproj
Audio Signal Processors
Audio Products
software
spi
sigmaStudio 4.7
arduino
safeload write
SigmaDSP Audio Processors
safeload
adau1466
Show More
Hello NSteven,
For interfacing the MCU with DSP, please refer the below uC interfacing page. It has the example code which is arduino compatible. You will have some idea about how to control the DSP with the uC.
Page: Interfacing SigmaDSP Processors with a Microcontroller [Analog Devices Wiki]
Regards,
Harish
Please log in to reply.


