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.

MSPM0G3507: Difference between enable and HiZ

Part Number: MSPM0G3507

Tool/software:

What is the difference between DL_GPIO_enableHiZ(pinmux)

and DL_GPIO_enableOutput(port, pin)?

I assume they both activate the HiZ functionality of the pin. Are there any other differences? Which should I choose if I am making a pin Hi-Z to convert from an output to reading the ADC for example?

The DriverLib docs ("Enable Output on a group of pins") and TRM are not very clear

  • enableOutput sets the GPIO DOE (Output Enable) bit, which allows the DOUT to be propagated to the IOMUX ["Hi-Z Output Mux" in TRM (SLAU846A) Fit 8-1]. The (IOMUX) HIZ1 controls how the IOMUX interprets DOUT=1 (only). [Ref TRM Table 8-2]

    I.e. for a GPIO (PF=1): If DOE=0, the pin is always Hi-Z. If DOE=1, DOUT=1 is Hi-Z and DOUT=0 is driven.