Tri-state GPIOs?

Hey Guys

Has the Beaglebone black tri-state gpios?

When yes, how can I set up them?

Thanks

No.

Gerald

No.

You can emulate tristate by changing GPIO outputs to GPIO inputs.

Regards,
John

But, you have to watch the pullups and pull downs when you do that.

Gerald

As a side note, you can also emulate open drain. Set the pin output state to 0, then enable/disable the output driver. And, for performance, writing to the gpio registers rather than doing file operations with sysfs is > 30 times faster.

And, pin muxing (pullups/down and input receiver enable for reading pin state) is separate from the gpio operations (output driver enable/disable, reading physical pin state, setting output driver level).