Group different read values into a contiguous memory space
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
Hello, which Sigma DSP are you using ?
Hello,
We're using the ADAU1787
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
Hello,
Thank you ! That is exactly what we need.
Please log in to reply.
