When configuring a pin as output on the ESP32, does it set an internal pull-up or pull-down resistor?
I am connecting a bus buffer to an output pin, and I am not sure whether I should use a pull-up or pull-down resistor on the bus.
When configuring a pin as output on the ESP32, does it set an internal pull-up or pull-down resistor?
I am connecting a bus buffer to an output pin, and I am not sure whether I should use a pull-up or pull-down resistor on the bus.
Output pins output a certain voltage. Adding internal pull-up or pull-down resistors to output pins is silly because they won't do anything except for wasting power.
The output pin is equivalent to a 0-ohm pull-up or pull-down resistor already (depending on whether your software makes it high or low).
An output pin that is a push-pull output is a strong output - using an internal pull resistor (down or up) makes no sense.
Edit (due to new information): Since the ESP32 pin may not be an output when it boots up, it can be a floating input so the buffer output state is not known. Obviously to keep buffer output state stable and known during ESP32 boot, you need a pull-down (or pull-up) at the buffer input.