MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Pull up and pull down resistors in digital circuits
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Pull up and pull down resistors in digital circuits

A pull up or pull down gives a floating node a definite level and is standard insurance against drift. This page covers the role, the resistor math and the traps.

1. How it works

When a digital input floats its level is undefined and noise prone, so a pull up defaults it high and a pull down low, ensuring determinism. Open drain or OC outputs have no high drive and must be pulled up to output high. A button often uses pull up: pressed pulls low, released is pulled high. Idle buses also pull up to hold logic 1. Without it the node drifts and the system glitches.

2. Practice and pitfalls

Too small a pull up wastes power and overloads the driver; too large is slow and noise prone. Rule of thumb: TTL pull up about 1 to 10 k, CMOS 10 to 100 k since input current is tiny. By rise time R under C load times t over ln 2, and fast buses want small. I2C has specs like 4.7 k at 5 V; buttons commonly 10 k. OC pull up must be small enough to rise in time without overcurrent.

3. Pull up down values

CaseResistorNote
TTL up1 to 10 kavoid over I
CMOS up10 to 100 ksave power
Button10 kdefault level
I2C4.7k at 5Vspec
OC gatesmall enoughrise in time
Wrong1M or 100slow or hot

4. Notes

Pull up or down sets the floating node; open drain must pull up. TTL about 1 to 10 k, CMOS 10 to 100 k; too large is slow and noise prone, too small runs hot. Do not forget the open drain pull up, do not exceed the next stage voltage, and match the button default to the program logic.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Digital interface per GB/T 4728; control to GB/T 5226.1 and IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Forgetting the pull up leaves an open drain never reaching high.
② Pull up of 1M is too slow and long lines still pick up noise.
③ Pull up to 5 V into a 3.3 V part overvolts and damages it.

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL