AnsweredAssumed Answered

Problem with several readback action in adau1701

Question asked by francismariano on Jul 9, 2018
Latest reply on Jul 18, 2018 by JulianoCioffi

Hello everyone. I have the following setup to evaluate the readback block.

I use a microcontroller via SPI communication. In my program I write 5 in DC1 and 3 in DC2, so I should read 15 in readback1 and 9 in readback2.

In sigma studio the readback1 counter is 0x0152 and readback2 counter is 0x0146.

In my test program I have the following:

- Write 5 in DC1

- Write 3 in DC2

- Write 0x0152 in readback1

- Read readback1 (read 15)

- Write 0x0146 in readback2

- Read readback2 (read 15)

- Write 0x0152 in readback1

- Read readback1 (read 15)

- Write 0x0146 in readback2

- Read readback2 (read 15)

In this case I read 15 in all attempts. 

 

However, if I have the following:

- Write 5 in DC1

- Write 3 in DC2

- Write 0x0146 in readback2

- Read readback2 (read 9)

- Write 0x0152 in readback1

- Read readback1 (read 9)

- Write 0x0146 in readback2

- Read readback2 (read 9)

 

- Write 0x0152 in readback1

- Read readback1 (read 9)

I read 9 in all the cases.

 

Why does the result read is wrong? 

Thanks in advanced.

Outcomes