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 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
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