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.

AMC7836: GPIOs

Part Number: AMC7836

Customer Question:

I have a question about using the AMC 7836 GPIOs.

In the datasheet, I was expecting to find some way to configure the GPIOs as an input or an output, but I don't find that.

Rather, there is one register (0x7A), if I write it, all pins are considered GPIO outputs, and if I read this same register all pins are considered GPIO inputs.

 

In our application, we will use four GPIOs, all as outputs.

The datasheet says when a this register is written is a pin low, the signal is driven.  If high, the signal is not driven, but floats high due to the internal 48K pull up.

So my question is this:

If I write a pin low, and then do a read to find the state of another pin, does the first driven low pin also become a GPIO input and float high?

  • Hi Sagar,

    If the pin is being used as an input, then the register should be written high, making the pin high-impedance. Reading this register does not change the state of the pins. If the register has been written to as a 0, then it will read back as a 0. When the pin is high-impedance, then it can be driven high or low. Reading the register will show if it his driven high or low.

    Thanks,
    Paul