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.

ADS1262 GPIO Data register read behavior

Other Parts Discussed in Thread: ADS1262

Hi there. I am using the ADS1262 with GPIO6 (AIN9) and GPIO7 (AINCOM) configured as outputs. I can set the output on each pin correctly by writing to register 0x14, but I always read back 0x00 regardless. I was confused because the note in the "Description" column in Table 47 says "Configured as an output, read returns the register value". I believe there is a mistake in the note but need confirmation. To me, it seems the note should read:


"Configured as an output, write sets the register value only.

Configured as an input, read returns the register value."

Please clarify.

Thanks very much!

  • Hi Paul,

    You're correct! The GPIODAT register can only be used to write to GPIOs configured as outputs, or read GPIOs configured as inputs.
    ...The behavior of each bit depends on how it is configured in the GPIODIR register; therefore, you may have some bits that are write-only and other bits that are read-only, all in the same register.

    I realize this behavior is odd and that it may present an inconvenience for systems that check on certain GPIO output settings occasionally. If this is important in your application, I would recommend creating a copy of the GPIODAT register in memory (a "shadow register") to keep track of the previously written values to GPIODAT.

    Best Regards,
    Chris