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

safeload

SigmaDSP & SigmaStudio hjelveh Sep 15, 2014 00:00 3 replies Original on forum ↗
Thread Summary

Thread Summary

The user inquired about the correct syntax for normal and safeload I2C messages to address 0x000A on the ADAU1701 DSP. The final answer clarified that the payload word for safeload should be 5 bytes, not 4, and provided a link to documentation for further details. Additional information on safeloading the ADAU1701 was also referenced.
AI Generated Content
Subscribe
hjelveh Question
Sep 15, 2014 00:00

Hej

My understanding of normal I2C and safeload I2C message is described below as and example message sent to addres 0x000a in the DSP as normal and safe load operation.

Please inspect and tell me if I have understood the syntax correctly.

If we send data to DSP selecting the Audio ON/OFF Mode for a tone generator, we send to address 0x000A the bytes 0x00,0x80,0x00,0x00

That will in terms of DSP communication be:

Init I2C Communucation with address 0x0038h

Send the bytes:

0a 00 00 80 00 00

If we are to safeload this we:
Init I2C Communucation with address 0x0038h
Send the bytes:
06 00 09 00 02 00 00 80 00 00

06 00 being the 0x0006 safeload address

09 00 being the 0x000a - 1 cell address

02 00 being the payload size in words (4 bytes)

00 80 00 00 The 4 bytes (2 words) for address 0x000A when there is no activity

Is it correct understood?

KJBob Reply
Sep 15, 2014 00:00

Hello hjelveh,

The payload word needs to be 5 bytes, even though the parameter itself is only 4 bytes. For the reason why, see Implementing Safeload Writes on the ADAU1701

Best regards,

Bob

KJBob Reply
Sep 16, 2014 00:00

Hi once more,

More info on safeloading the ADAU1701 is at https://ez.analog.com/message/117262#117262

Bob

hjelveh Reply
Sep 16, 2014 00:00

Thank you, Bob.