Pull-ups set idle levels, enable open-drain outputs and limit key-press current.
Typical 4.7k~10kΩ; I²C needs 1k~4.7k by bus capacitance and speed; too weak picks noise, too strong wastes current.
Wire keys to ground with a pull-up (active low); parallel open-drain outputs form wired-AND; keep the pull-up supply in the pin's voltage domain.
| Case | Value | Reason | Watch |
|---|---|---|---|
| MCU key input | 10kΩ | 0.5mA | 4.7k on long wires |
| I²C 100k | 4.7kΩ | Rise time OK | 2.2k for big bus |
| I²C 400k | 2.2kΩ | Sharp edges | Sink current |
| Open-drain alarm | 10kΩ | Idle high | Wired-AND ok |
| Enable default | 10k up/down | Fail-safe | Direction per system |
| MOSFET gate pull | 10k~100k | No floating on | Drive loop separate |
Apply the points above to Pull; the figures are typical engineering values, so confirm them against the device datasheet and the actual design before release.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Per GB/T 35004, GB/T 17900 and the corresponding IEC documents. Ratings and derating follow the device datasheet and the product design file. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.