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

Group different read values into a contiguous memory space

SigmaDSP & SigmaStudio YBecher Nov 6, 2024 00:00 4 replies Original on forum ↗
Subscribe
YBecher Question
Nov 6, 2024 00:00

Hi,

I need to read with i2c 3 different values located at different memory addresses.

To facilitate the synchronization of the data, I want to be able to read these 3 values in one i2c read.

How can I regroup those values in a contiguous memory space to be able to achieve this ?

Thank you !

T.

software

i2c

memory

4.8

ONESHOT

read

contiguous

sigmastudio

Show More

ChristopherH Reply
Nov 7, 2024 00:00

Hello, which Sigma DSP are you using ?

YBecher Reply
Nov 8, 2024 00:00

Hello,
We're using the ADAU1787

ChristopherH Reply
Nov 8, 2024 00:00

Hello, you can add readbacks to an instance and the addresses will be sequential:

if you Export system files you can see the addresses in *PARAM.h file:

/* Module ReadBack1 - DSP Readback*/
#define MOD_READBACK1_COUNT 3
#define MOD_READBACK1_DEVICE "IC1_Sigma"
#define MOD_READBACK1_ALG0_READBACKALGSIGMA2001_ADDR 8240
#define MOD_READBACK1_ALG0_READBACKALGSIGMA2001_FIXPT 0x00000000
#define MOD_READBACK1_ALG0_READBACKALGSIGMA2001_VALUE SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0)
#define MOD_READBACK1_ALG0_READBACKALGSIGMA2001_TYPE SIGMASTUDIOTYPE_FIXPOINT
#define MOD_READBACK1_ALG1_READBACKALGSIGMA2002_ADDR 8244
#define MOD_READBACK1_ALG1_READBACKALGSIGMA2002_FIXPT 0x00000000
#define MOD_READBACK1_ALG1_READBACKALGSIGMA2002_VALUE SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0)
#define MOD_READBACK1_ALG1_READBACKALGSIGMA2002_TYPE SIGMASTUDIOTYPE_FIXPOINT
#define MOD_READBACK1_ALG2_READBACKALGSIGMA2003_ADDR 8248
#define MOD_READBACK1_ALG2_READBACKALGSIGMA2003_FIXPT 0x00000000
#define MOD_READBACK1_ALG2_READBACKALGSIGMA2003_VALUE SIGMASTUDIOTYPE_FIXPOINT_CONVERT(0)
#define MOD_READBACK1_ALG2_READBACKALGSIGMA2003_TYPE SIGMASTUDIOTYPE_FIXPOINT

pastedimage1731077923729v1.png
pastedimage1731077923729v1.png
YBecher Reply
Nov 11, 2024 00:00

Hello,
Thank you ! That is exactly what we need.