Other Parts Discussed in Thread: LAUNCHXL-F28379D, , ADS7038
Hello,
We bought the ADS7038Q1EVM-PDK evaluation board. I removed the daughter-board containing the ADC IC from the PAMboard and connected it directly to my LAUNCHXL-F28379D board.
My LP program is ostensibly talking to the ADC at 500kbps using SPIB and I am able to get plausible samples on AIN0. However, I have a strange register read back I cannot explain.
I have the following sequence:
SDI
- 0x18 0x01 0x01 : Set the RST bit in the GENERAL_CFG to reset the device.
- 0x18 0x00 0x01 : Set the BOR bit in the SYSTEM_STATUS to clear it.
- 0x08 0x10 0x00 : Write 0x00 to SEQUENCE_CFG to select manual mode.
- 0x10 0x10 0x00 : Request read (back) of SEQUENCE_CFG register.
- 0x00 0x00 0x00 : Dummy data. Contents of SEQUENCE_CFG is on SDO = 0x80 -> Unexpected/invalid value?
- 0x10 0x10 0x00 : Request read (back) of SEQUENCE_CFG register.
- 0x00 0x00 0x00 : Dummy data. Contents of SEQUENCE_CFG is on SDO = 0x00 -> Expected value.
Why does the read back of SEQUENCE_CFG contains 0x80 in step (5)? According to the manual, bit 7 should always read back 0 as per identical step (7).
Thank you very much.