KEMI
/
Reference Library

KEMI Docs

Circuit Design Reference

Choosing pull-up/pull-down resistors, input voltage and heat calculations for three-terminal regulators (78XX/79XX), and NE555 astable/monostable timer formulas. Three representative sheets excerpted from KEMI Circuit Design Reference Vol.1 & 2 (printable sheets); formulas and worked figures are transcribed as published.

Excerpt 1 · Vol.1

Pull-up, Pull-down & Open Collector

With a pull-up vs without

ConfigurationWith pull-upNo pull-up (open)Result
TTL input opensolid HIGH ≈ VCCfloats to ≈ 1.4–1.6 V, reads HIGH, but flips easilyworks, but unreliable — tie it off
CMOS input opensolid HIGH ≈ VCCundefined. P and N sit half-on → shoot-through, heatalways tie to VCC or GND
Open-collector outputHIGH ≈ VCC / LOW ≈ 0.2–0.4 Vno HIGH at all. Transistor off = pin floating (hi-Z)unusable without a pull-up

Pull-up resistor value

Trade-offs matter more than the exact value

ValueCurrent drawRise speedWhere it fits
Small (few hundred Ω–1 kΩ)high — flows whenever output is LOWfastfast signals, long traces, noise
Medium (2.2–10 kΩ)moderatemoderategeneral logic, switch inputs — default
Large (47–100 kΩ)lowslowlow-power, low-speed, CMOS only

Isink = (VCC − VOL) / R · trise ≈ 2.2·R·C — at 5 V, VOL 0.4 V → 1 kΩ 4.6 mA · 4.7 kΩ 0.98 mA · 10 kΩ 0.46 mA / with 50 pF → 1 kΩ ≈110 ns · 10 kΩ ≈1.1 µs

Pull-up or pull-down?

One question — what state should the line hold when nothing happens?

  • · Pull-up: idle HIGH, pressed LOW. For LOW-only drivers (open collector, I²C) there is no alternative.
  • · Pull-down: idle LOW, pressed HIGH. For reset and enable — must not switch on by accident.
  • · For safety signals, pick the idle state that is safe when the wire breaks.

Caution: never parallel two totem-pole outputs — one HIGH against one LOW and current pours from VCC to GND, cooking both. Tie outputs together only with open-collector (or three-state) parts.

Excerpt 2 · Vol.1

78XX / 79XX Voltage Regulators

One rule that covers both families

Pin 1 = the highest voltage, pin 2 = the lowest voltage, pin 3 = always the output. 78XX (+12 / 0 / +5 V): the highest, +12 V, is pin 1 (input); the lowest, 0 V, is pin 2 (ground). 79XX (0 / −12 / −5 V): the highest, 0 V, is pin 1 (ground); the lowest, −12 V, is pin 2 (input). Printed face toward you, leads pointing down, count 1·2·3 from the left.

Current rating by series

PartMax currentPolarityPackage
78LXX100 mApos. (+)TO-92
78MXX500 mApos. (+)TO-220
78XX1.5 Apos. (+)TO-220
79LXX100 mAneg. (−)TO-92
79MXX500 mAneg. (−)TO-220
79XX1.5 Aneg. (−)TO-220

The last two digits are the output voltage — 7805 = +5 V, 7912 = −12 V. Ratings assume adequate heat sinking; packages vary by maker.

Input voltage and heat

Vin > Vout × √2 (√2 = 1.41421) · Ploss = (Vin − Vout) × Iout

PartOutputMin. input (Vout×√2)RecommendedIC loss at 15 V in · 500 mA
7805+5 V7.07 V8 – 12 V5.00 W (15−5)×0.5
7809+9 V12.73 V13 – 16 V3.00 W (15−9)×0.5
7812+12 V16.97 V17 – 20 V1.50 W (15−12)×0.5
7815+15 V21.21 V22 – 25 Vwill not run — 15 V < 21.21 V min.

79XX is identical with the sign reversed (a 7912 needs an input below −16.97 V). An unheatsinked TO-220 typically trips its thermal protection around 2 W. Taking 5 V at 500 mA from 15 V dumps 5 W as heat — without a heat sink the protection trips and the output cuts out.

Why capacitors go on both sides

  • · Input, large (electrolytic) — fills ripple and load-step sag, stabilising the input. Dip below the minimum even briefly and the output collapses with it.
  • · Output, small (ceramic) — stops the feedback loop ringing on load steps, preventing oscillation. Mount it at the IC pins.

Typical: 0.33 ㎌ in, 0.1 ㎌ out. The bulk smoothing electrolytic sits at the rectifier, separately. Caution — 79XX pin order differs from 78XX (pin 1 is ground, pin 2 is the input). Fit one with 78XX habits and it is destroyed the moment you apply power.

Excerpt 3 · Vol.2

NE555 Astable & Monostable

f = 1.44 / ((Ra + 2Rb)·C) · duty = (Ra + Rb) / (Ra + 2Rb) · monostable T = 1.1·R·C

Where 0.693 and 1.1 come from — in astable mode the capacitor only travels between ⅓ and ⅔VCC, and on both phases exactly half the remaining distance is covered, so t = RC·ln2 = 0.693RC and the coefficient in f = 1/T is 1/ln2 = 1.443 ≈ 1.44. The monostable starts at 0 V and stops at ⅔VCC, leaving one third — t = RC·ln3 = 1.0986RC ≈ 1.1RC.

Astable worked examples

tH = 0.693(Ra+Rb)C · tL = 0.693·Rb·C

RaRbCCharge tHDisch. tLPeriod TFreq. fDuty
47 kΩ100 kΩ10 µF1.019 s693 ms1.712 s0.58 Hz59.5 %
10 kΩ10 kΩ10 µF138.6 ms69.3 ms207.9 ms4.81 Hz66.7 %
1 kΩ10 kΩ10 µF76.2 ms69.3 ms145.6 ms6.87 Hz52.4 %
4.7 kΩ4.7 kΩ1 µF6.52 ms3.26 ms9.77 ms102 Hz66.7 %
10 kΩ47 kΩ0.01 µF395 µs326 µs721 µs1.39 kHz54.8 %

With Ra=Rb the duty is always 66.7% — only the ratio sets the duty cycle.

Monostable pulse (T = 1.1·R·C)

RCOutput pulse T
10 kΩ1 µF11 ms
10 kΩ10 µF110 ms
47 kΩ10 µF517 ms
220 kΩ10 µF2.42 s
1 MΩ10 µF11 s

Rb/Ra ratio vs duty

Rb / Ra12510100
Duty66.7 %60.0 %54.5 %52.4 %50.2 %

Duty converges on 50% but never reaches it. Mind the direction: shrink Ra.

Watch out

  • · The standard astable can never go below 50% duty — charging runs through Ra+Rb, discharging through Rb alone. Nor can Ra shrink without limit (on discharge the pin-7 transistor must sink the whole VCC/Ra current). Keep Ra ≥ 1 kΩ.
  • · A monostable ignores retriggering before its pulse ends — pulling pin 2 low again while the output is HIGH does nothing.
  • · At low frequencies the arithmetic stops matching — bulk electrolytics leak, so the time to ⅔VCC comes out longer than calculated or is never reached, and tolerance is around ±20%. Do not use a 555 for timers of minutes or more.

This document is an excerpt

The full PDF editions of the Circuit Design Reference include rectifier · smoothing · voltage-doubler circuits, clippers and clampers, BJT/FET logic gates, op-amp amplifiers and oscillators, flip-flops and counter design procedures — 40+ printable sheets plus practice worksheets.

Need this turned into a real circuit?

Send one line of requirements and KEMI carries it from platform choice to schematic, board and firmware.

Request circuit design

FAQ

What pull-up resistor value should I use?

For general logic and switch inputs, 2.2–10 kΩ is the default. Drop to a few hundred Ω–1 kΩ for fast signals, long traces or noisy environments (at the cost of current draw), or go up to 47–100 kΩ for low-power, low-speed CMOS-only lines. Check with Isink = (VCC − VOL) / R and rise time t ≈ 2.2·R·C.

What is the minimum input voltage for a 7805?

Minimum input = output × √2, so a 7805 needs at least 7.07 V; the recommended input is 8–12 V. A higher input is more stable, but every volt above the output becomes heat inside the IC — Ploss = (Vin − Vout) × Iout. Clear the minimum, but go no higher than you need.

Why can't a standard NE555 astable reach 50% duty cycle?

Charging runs through Ra+Rb while discharging runs through Rb alone, so charging is always longer. Growing Rb only converges on 50% without reaching it; the right direction is shrinking Ra — but keep Ra ≥ 1 kΩ, because on discharge the pin-7 transistor must sink the whole VCC/Ra current.

This document is an excerpt of KEMI's own reference material and an unofficial study reference. 74-series, 78XX/79XX and NE555 part numbers are trademarks of their respective semiconductor manufacturers; all trademarks are the property of their respective owners. Resistor and current figures are worked examples — check the datasheet for a real design.