Does anyone have any experience reading from the AD8403 over the SPI bus? I'd like to verify my writes are indeed working.
Does anyone have any experience reading from the AD8403 over the SPI bus? I'd like to verify my writes are indeed working.
Hi,
Yes.How can i help you?
Regards,
Koushik
Hi,
I'm trying to verify if I am actually writing to the ad8403. Can you
outline what I need to do to read a value from it?
Thanks!
-Chris
On Fri, Mar 9, 2018 at 12:55 AM, koushik.kops <
Hello,
I was looking through the AD8403 specs and see an ID PROM register listed. Can you tell me how to read from it? I believe my writes are working but I need to access the ID Prom register and read the model or serial number to verify the SPI bus is behaving correctly.
Hi Chris,
AD8403 is a very simple part. It doesn't have any complicated register sets for additional functionality.
The SDO outputs whatever data is written in the previous SPI command. So if you do the same write operation twice, you will be able to confirm the value written.
SDI | SDO | Remarks |
---|---|---|
0x04 | 0xXX | SDI: writing the value 4 to the ch0 of the digipot. SDO: Return the value of the previous command. |
0x04 | 0x04 | SDI: writing the value 4 to the ch0 of the digipot. SDO: Return the value of the previous command which is 0x04 |
Regards,
Koushik
Thanks, Koushik!
Much appreciate the info.
-Chris