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.

CCS/MSP430F5529: Hi-z state of port pin

Part Number: MSP430F5529

Tool/software: Code Composer Studio

Hi guys,

I have a question regarding the Hi-z state of micro controller pins.

My question is can i make my port pin to behave as HIGH, LOW and Inactive.

means i want my port to behave high for some clock cycles, and low for some clock cycles and also Inactive for some clock cycles?

  • To go hi-Z, switch the pin to an input (PxDIR bit=0). The PxOUT setting is retained for whenever you turn it back to an output (PxDIR bit=1).

    [Edit: Also, stay away from the PxREN register, which will switch the pin from hi-Z to medium-Z.]

**Attention** This is a public forum