Some devices have a smart pull-down resistor. It is active until the user drives the pin, and as soon as a threshold is reached, the pull-down is deactivated.
How is this implemented, e.g. if I wanted to design a smart pull-down or pull-up for a load switch myself, having low power in mind, so that during startup the load switch has a known state, and then an MCU controls it, how would that be done?
I'm not talking about a simple resistor (permanently consuming quiescent current while the Gate of the load switch is being driven).
As an example, for a device with smart-enable functionality, the TPS7A20 LDO:
This device has a smart enable circuit to reduce quiescent current. When the voltage on the enable pin is driven above VEN(HI), as listed in the Electrical Characteristics table, the device is enabled and the smart enable internal pulldown resistor (REN(PULLDOWN)) is disconnected. When the enable pin is floating, the REN(PULLDOWN) is connected and pulls the enable pin low to disable the device. The REN(PULLDOWN) value is listed in the Electrical Characteristics table.
How does it detect whether the enable pin is being driven or not? With low power.