Hello,
I am using F28379D. Is there a way to set a GPIO pin not high, not low, but in a high impedance state?
Thanks,
Chiyuan
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.
Hello,
I am using F28379D. Is there a way to set a GPIO pin not high, not low, but in a high impedance state?
Thanks,
Chiyuan
Hello Chiyuan,
GPIO can be configured to have an open drain output using the GPyODR register, I'm not sure if this is what you're looking for. May I ask what you are trying to use the pin for that you need it in high impedance?
Best regards,
Omer Amir
Thanks Omer,
I am using Texas Instrument DRV8886 stepper motor driver chip. There is pin, TRQ, connected to a F28379D GPIO.
The pin is used to configure the torque setting of the stepper driver according to the DRV8886 datasheet Table 5.
Do you think setting GPyODR register will work?
thanks,
Chiyuan
Hello Chiyuan,
This reference might help you determine if it can be used in your application; essentially using an open-drain output with a pull-up resistor lets you set the pin low, high impedance, or high. Let me know if you have further questions about this.
Best regards,
Omer Amir