This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS125H01: ADS125H01 cannot read and write registers whose addresses exceed 10H, even if CS2(low active) has been pulled down.

Part Number: ADS125H01

ADS125H01 cannot read and write registers whose addresses exceed 10H, even if CS2(low active) has been pulled down.

Figure 1 below is the write register function (WREG Command), and Figure 2 is the SPI read-write array for single-step debugging. 

The written data is 55 53 65 00, the theoretically received data is FF 55 53 65, but the actually received data is FF 00 00 00, indicating that the write failed.

Similar problems occurs in read register data Command. 

  • Hi Ziheng,

    Can you confirm that CS1 is high during the time you are trying to write to the registers that require CS2?

    Do you have a logic analyzer where you can send us timing information for the WREG command you send to the ADC? It would be good to see what is going on for both the CSx pins, DOUT, DIN, and SCLK pins.

    -Bryan

  • How to configure the SPI initialization with MCU STM32G474? NSS is connected to CS1 and CS2 is connected to another GPIO. When the NSS is software triggered, the SPI receives 7F or FF no matter what I write/read. When the NSS is hardware triggered (input or output), CS1 is always low and I cannot read and write registers whose addresses exceed 10H.

  • Finally, I used the GPIO monitored SPI, and all the registers can be read/written. Besides, the SPI time sequence description might be SPI mode 0, i.e. (CPOL = 0 and CPHA = 0). In CubeMX, CPHA should be 2edge instead of 1edge.

  • Hi Ziheng,

    Glad we could help you resolve this issue by reconfiguring the CS lines.

    -Bryan