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.

NHET pin disable output

I want to enable and disable (force to high-impedance) individual NHET output pins.  I was originally going to hold pin nDIS low, and then use register HETPINDIS to enable and disable output pins.

I understand now that holding pin nDIS low will also force HETGCR.HETPINENA low, which will disable ALL NHET output pins.

Am I correct in this understanding ?  If so, how can I individually enable and disable NHET output pins, preferably by using the control registers ?

  • Tim,

    I am looking into your question will get back to you as soon as possible.

    -Daniel

  • Tim,

    Yes. You are correct in your understanding.  Holding the pin nDIS low will disable all NHET output pins.

    To individually enable and disable NHET output pins, you will need to make sure that that corresponding bit is cleared to 0 in the HETPINDIS register.  This causes the pin to function as a general purpose I/O.  You will also need to clear to 0 the respective bit in the HETDIR register to specifically enable it as an input pin.  This should achieve the high-impedance functionality you need.  Also, if you need to re-enable the pin as an NHET output, you will need to set the corresponding bit to 1 in both the HETPINDIS and HETDIR registers.

    Regards,

    Daniel