Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon
Part VII  Design calculatorsReferenceContentsIndex
57

555 timer

The 555 as an astable oscillator or a monostable one-shot. The Simple view uses the datasheet formulas. The Advanced view works the timing out exactly for four real chips (NE555, TLC555, LMC555, ICM7555), designs the parts from a target, and checks the tolerance, the drift, the chip’s limits and its output. Group Parts. Search words include 555, ne555, timer, astable, monostable, oscillator, pulse, duty and one shot.

The window, the Simple and Advanced views, full screen and the place buttons are in The calculator window.

57.1Simple: the datasheet formulas

Simple: the datasheet formulas
ChoiceOptionsWhat it does
ModeAstable, Monostable
DutyRA + RB (over 50 %), Diode across RBAstable. A diode across RB gives a duty under 50 %.
Simple: the datasheet formulas
FieldUnitDefaultWhat it does
SupplyV54.5 to 18 V. Only sets the plotted levels and the placed source: the timing does not depend on it, except with the diode.
RAΩ, kΩ, MΩ1 kΩAstable. SOLVE, solved when the calculator opens: RA and RB are designed for the frequency and duty.
Diode forward voltageV0.7Diode across RB. 0 gives the datasheet 0.693 RC.
RBΩ, kΩ, MΩ10 kΩAstable, shown while RA is not solved.
Frequency, Duty cycleHz, kHz, %1000 Hz, 60 %The target, while RA is solved.
RΩ, kΩ, MΩ10 kΩMonostable. SOLVE, solved when the mode opens.
Pulse widthµs, ms, s1.1 msMonostable, the target while R is solved.
Timing capacitor CpF, nF, µF100 nFReads a selected capacitor.

Astable: f = 1.44 / ((RA + 2 RB) C), thigh = 0.693 (RA + RB) C, tlow = 0.693 RB C, duty = (RA + RB) / (RA + 2 RB). With the diode C charges through RA alone toward the supply less the diode drop: thigh = ln((⅔ Vcc − Vd) / (⅓ Vcc − Vd)) RA C, and duty = RA / (RA + RB) when Vd is 0. Monostable: t = 1.1 R C: the output goes high at the trigger and low again when the capacitor reaches ⅔ of the supply. In this view RA (or R) is the solved field, so the 555 is designed from the frequency and duty (or the width).

Simple: the datasheet formulas
ResultWhat it is
FrequencyOrange.
RA, RBThe designed resistors.
Duty cycle, Period, Output high time, Output low time
Pulse width, Resistor, CapacitorMonostable.
Trigger must stay low for less thanMonostable: the pulse width.

The plot shows the output and the capacitor for two periods, with ⅓ and ⅔ of the supply marked (monostable: the trigger, the capacitor and the output).

Simple: the datasheet formulas
MessageWhen it shows
"Without the diode the duty is always above 50 %. Add the diode across RB, or invert the output."A duty at or under 50 % asked without the diode.
"The duty is close to 50 %. Make RB much larger than RA for a square wave, or add the diode across RB for 50 % with RA = RB."Duty under 55 % without the diode.
"RA below 1 kΩ lets the discharge pin pass 10 mA while it shorts RA. Keep RA at 1 kΩ or more."RA under 1 kΩ.
"RB below 1 kΩ is outside the datasheet range of 1 kΩ to 10 MΩ."RB under 1 kΩ.
"RA + RB above 10 MΩ is limited by the threshold input current."Over 10 MΩ.
"Above about 500 kHz a bipolar 555 drifts from these equations. Use a CMOS 555 and a smaller capacitor."Over 500 kHz.
"A phase shorter than a few microseconds is limited by the 555 propagation delays, so the real frequency is lower."A phase under 10 µs.
"R below 1 kΩ draws too much from the supply while the capacitor charges. The datasheet range for R is 1 kΩ to 10 MΩ."Monostable R under 1 kΩ (over 10 MΩ: limited by the threshold current).
"A timing capacitor under 100 pF is dominated by stray capacitance, so the pulse is not 1.1 R C."C under 100 pF.
Simple: the datasheet formulas
ButtonWhat it does
Place and run a transientU_555 with V_555 at the supply, 10 nF on CONT, a 10 kΩ load on OUT, RA_555, RB_555 and CT_555 (and D_555 across RB), or R_555, CT_555 and a trigger source for the monostable. Probes V out, V C (and V trig). A transient of 12 periods: Output frequency within ±5 % and Output duty within ±3 points.
Apply to the selected timing partsThe first selected resistor gets RA (or R), the second RB, the first capacitor C.
Try it
A 1 kHz astable
  1. Open the 555 timer (type 555): astable, 1 kHz, 60 %, 100 nF, 5 V.
  2. Press Place and run a transient.

You should seeRA 2.89 kΩ and RB 5.77 kΩ: 1 kHz, 60 %, high 600 µs, low 400 µs. The run measures the frequency and duty and both pass. With the diode at 50 % the design is RA 4.99 kΩ and RB 7.21 kΩ.

57.2Advanced: four chips, exact timing

The 555’s Advanced view in full screen: an NE555 designed for 1 kHz and 60 %, with the corners table, the waveforms, the parts, the checks, the spread, the
Figure 57.1The 555’s Advanced view in full screen: an NE555 designed for 1 kHz and 60 %, with the corners table, the waveforms, the parts, the checks, the spread, the frequency against supply, the error budget, against temperature and the formula error.
Advanced: four chips, exact timing
ChoiceOptionsWhat it does
ModeAstable, MonostableMonostable sets C to 100 nF and the chip’s monostable figures.
ChipNE555, TLC555, LMC555, ICM7555Loads that chip’s datasheet values into the Chip group.
Duty networkRA + RB, Diode across RBAstable.
Advanced: four chips, exact timing
TabIts dotCards
DesignAmber when there is a warning. Red when the circuit cannot oscillate.Result (tiles, warnings and the corners table), V(C) and output, Parts.
Tolerance and driftThe state of Worst case vs accuracy.Error budget, Frequency spread, Frequency vs temperature, Frequency vs supply.
Chip limits and outputThe worst of the chip checks.Checks, Output and chip power, Formula error.
Verify in simulationNone.Calculator vs simulation.
Advanced: four chips, exact timing
FieldUnitDefaultWhat it does
Design, Check partsDesignGroup Target. Design works the parts out from the target. Check parts takes the typed parts.
Frequency, Duty, AccuracyHz, %, ±%1000, 60, 10Astable target. Monostable: Pulse width (10 ms) and Accuracy.
Timing capacitorAuto (E6), ManualAuto picks the E6 value that brings the main resistor near 10 kΩ (bipolar) or 100 kΩ (CMOS).
RA, RB (R), CkΩ, nFSOLVED in Design modeGroup Timing parts. Typed in Check parts mode.
R tol., R tempco, C tol.±%, ppm/°C, ±%1, 100, 5
Resistor seriesE24, E96
CapacitorC0G, Film, X7R, ElectrolyticSets the C tolerance (X7R 10 %, electrolytic 20 %). Electrolytic adds Leakage (spec max) in µA.
Diode drop, Drop tempcoV, mV/°C0.65, −2With the diode.
Vcc min / Nominal / MaxV4.5 / 5 / 5.5Group Supply and temperature.
T min / Nominal / T max°C−20 / 25 / 70
Threshold current max, Discharge Ron, Propagation delay, Timing error, Drift, Supply sens., Max frequency, θJAnA, Ω, ns, ±%, ppm/°C, %/V, kHz, °C/Wfrom the chipGroup Chip, editable. A * after a label marks a value the datasheet does not give (assumed).
Load current (high), VOH minmA, V10, 3.5Group Output and load. Monostable adds Trigger pulse (100 µs) and Trigger period (50 ms). CMOS chips add Output R (high).
Advanced: four chips, exact timing
NE555TLC555LMC555ICM7555
TechnologybipolarCMOSCMOSCMOS
Supply4.5 to 16 V2 to 15 V1.5 to 15 V2 to 18 V
Threshold current (max / typical)250 nA / 30 nA75 pA / 10 pA10 pA10 nA
Discharge Ron19 Ω6 Ω30 Ω *20 Ω *
Propagation delay100 ns *100 ns *100 ns100 ns *
Timing error (astable)2.25 % typ *1 % typ *9 % max2 % typ *
Drift150 ppm/°C75 ppm/°C *75 ppm/°C150 ppm/°C *
Supply sensitivity0.3 %/V0.1 %/V0.3 %/V0.3 %/V *
Max frequency100 kHz1.2 MHz3 MHz500 kHz
Supply current3 mA180 µA150 µA40 µA
Output resistance (high)(bipolar drop)200 Ω150 Ω *150 Ω *
Max discharge current8 mA10 mA10 mA10 mA

The chip presets. * marks a value the datasheet does not give: assumed. θJA is 125 °C/W for all four.

The exact model. The thresholds are ⅔ and ⅓ of Vcc. C charges toward Vcc (Vcc − Vd with the diode) less the pin and leakage current times the charging resistance, and discharges toward the Thevenin voltage of RA against the discharge switch Ron. The propagation delay lets C overshoot both thresholds before the output turns. With Ron, the delay and the pin current at zero this is the datasheet 0.693 RC exactly (TI SLFS022K), and TI’s TLC555 datasheet (SLFS043K, eq. 8) makes the same corrections. Design inverts this model and rounds the resistors to the series. The worst case takes every corner of the resistors, C, temperature, supply, the chip’s error and the capacitor class at once. The Monte Carlo draws 2500 boards at nominal supply and temperature.

Advanced: four chips, exact timing
ResultWhat it is
Frequency (Pulse width)Exact, with the delays and Ron (and the diode drop).
DutyWith the high and low times.
0.693 R C (1.1 R C)The textbook value, and how far it is from the exact one.
Worst caseAll corners at once: −% / +%, and the frequency range.
Spread, 99.7 %±3σ of the Monte Carlo.
Duty range, Supply I, RA + RB maxThe duty over all corners, the supply current, and the largest RA + RB the threshold current allows.
Recovery, Max trigger rateMonostable: 4.6 Ron C to discharge C, and 1 / (width + recovery).

The corners table gives f and duty (or the width) at Vcc min, nominal and max and at T min, nominal and T max. The Parts card names the timer (amber use a CMOS part when a bipolar one is out of its range), RA and RB with series, tolerance and tempco, the power while discharging, the timing C with its dielectric and voltage rating, the diode, 10 nF on CONT and the decoupling, and in Design mode a table of target against result. The Error budget moves one item at a time to its limit: resistor and capacitor tolerance, the chip’s initial error, the parts over temperature, the chip’s drift and supply sensitivity, the supply through the circuit, and the threshold pin current, with their sum and root-sum-square.

Advanced: four chips, exact timing
CheckValue and limitPassesMarginalFails
Supply vs chip rangeVcc range · the chip’s rangeInsideOutside
RA + RB vs the threshold currentsum · max at Vcc min2 × marginWithin itOver
Discharge current, RAVmax/RA · the chip’s maximumWithin itUp to 1.25 × itMore
Frequency vs chip limitf · max frequency2 × marginWithin itOver
Shortest phase vs delayphase · delay100 × or more20 × or moreLess
Textbook formula errortextbook · exactUnder 1 %Under 5 %More
Threshold pin current (with leakage)timing shiftUnder 0.5 %Under 2 %More
Timing capacitor dielectricits tempcoC0G or filmX7R or electrolytic
Worst case vs accuracy−a % / +b % · accuracyInsideUp to 1.43 × itMore: too wide
Output high at loadVOH · load and VOH min5 % above the minimumAt the minimumBelow: low
Chip temperatureTj · power at T maxUnder 104 °CUnder 125 °CMore
Trigger width vs pulse (monostable)trigger · pulseHalf the pulse or lessUp to the pulseLonger: stretches
Trigger period vs pulse + recoveryperiod · width + recovery1.2 × or moreEqual or moreLess: missed
Advanced: four chips, exact timing
MessageWhen it shows
"Duty 40 % is below the 50 % minimum of RA + RB: C charges through both resistors while the output is high. Select Diode across RB, or design for 60 % and invert the output. The parts below are the typed RA and RB."Design with a duty under 50 % and no diode.
"The target needs phases shorter than a few propagation delays (100 ns). Lower the frequency or use a faster CMOS part. The parts below are the typed values."A phase too short to design.
"C settles at 1.7 V and never reaches the 3.33 V threshold: threshold-pin current plus capacitor leakage drop too much across the timing resistor. Use a smaller resistor with a larger capacitor, a CMOS 555 or a film capacitor."It cannot oscillate (only this card shows).
"C never falls to the trigger level: RA is too small against the discharge switch resistance. Raise RA."RA far too small.
"RA + RB = 10 MΩ is above the 3 MΩ limit set by the NE555 threshold current (up to 250 nA). Use a larger C with smaller resistors, or a CMOS 555 (pA pin currents)."Over the threshold-current limit.
"2 MHz is above the NE555 limit of 100 kHz. The delays add to every phase. Use the LMC555 (3 MHz)."Over the chip’s frequency.
"0.693 R C is +123.9 % off here (delays 100 ns, discharge switch 19 Ω). The results above include these."The textbook formula is more than 2 % off.
"With the diode across RB, f moves −2.3 % over the supply range and drifts with the diode drop (−2 mV/°C), because C charges toward Vcc − Vd. …"Diode with a supply effect over 0.5 %.
"C = 100 pF is close to the pin and board capacitance (about 5 pF), which adds about 5 % to C. Use 1 nF or more with larger resistors."C under 1 nF.
"X7R drifts up to ±15 % over temperature and loses capacitance with DC bias, and the timing follows it. Use C0G up to about 100 nF and PP film above."X7R chosen.
"Aluminium electrolytics leak (spec …, doubling every 10 °C) and age. …"Electrolytic chosen.
"Tj … °C with this load. Drive the load through a transistor."Chip over 105 °C.
Advanced: four chips, exact timing
CheckAnalysis and measurementLimit
FrequencyTransient, freq of V(OUT) from the third period±1.5 %
DutyTransient, duty of V(OUT)±1 point
Capacitor peak and valleyNot measured (the overshoot of the thresholds)
Pulse width (monostable)The duty of a period of five widths19.7 to 20.3 %
Spread, Monte Carlo 99.7 %Tolerance analysis: 100 Monte Carlo runs of R and CThe yield within the accuracy
Advanced: four chips, exact timing
ButtonWhat it does
Place circuit and run transientThe Simple circuit with the chip’s keys on U_555: rdis = Ron, iq, tdelay = the propagation delay, ithr, and for a CMOS chip family: cmos and its output resistance (555 timer). An electrolytic gets its leakage as rleak.
Run tolerance analysisThe same with tol on RA, RB and C, the transient saved, and a Monte Carlo of 100 runs (seed 1). Output frequency within the accuracy: the Tolerance tab shows the yield. The chip’s own error and drift are not parts, and stay in the budget.
Apply to selected R and CResistor 1 = RA (R), resistor 2 = RB, capacitor 1 = C.
Advanced: four chips, exact timing
SimpleAdvanced
Frequency, Duty cycle, Pulse widthFrequency, Duty, Pulse width
RA, RB, R, Timing capacitor CRA, RB, R, C
Mode, Duty (diode)Mode, Duty network
SupplyVcc nominal
Try it
An NE555 at 1 kHz, and why it is marginal
  1. Open the 555 timer and press Advanced: NE555, Design, 1 kHz, 60 %, ±10 %, E96, film C.
  2. Open Tolerance and drift.

You should seeAuto C is 68 nF, RA 4.32 kΩ and RB 8.45 kΩ: 995 Hz, duty 59.9 %, and 0.693 RC is 0.51 % off the exact value. The worst case is −9.2 % / +10.4 % (904 Hz to 1.1 kHz), just outside ±10 %, so Worst case vs accuracy is amber. The budget shows why: the capacitor’s 5 % is +5.26 %, the chip’s initial error +2.25 %, the resistors +1.01 %. The Monte Carlo spread is ±8.5 %. Place circuit and run transient passes at 979.8 to 1009.7 Hz.

Try it
Past the chip’s limit
  1. Type Frequency 2000000.

You should seeAuto C 100 pF, RA 1.02 kΩ, RB 1.1 kΩ. Three checks fail: 2 MHz against the NE555’s 100 kHz, a 201 ns phase against the 100 ns delay, and the textbook formula 123.9 % off. The warning names the LMC555 (3 MHz).

Sources. TI NE555 (SLFS022K), TLC555 (SLFS043K), LMC555 (SNAS558) and ICM7555 datasheets. The tests check the exact model against 0.693 RC and 1.1 RC, the threshold-current limit against TI’s 3.4 MΩ at 5 V and 10 MΩ at 15 V, design from a target, the diode’s supply effect, and the placed circuits against bspice within 1.5 to 2 %, including the 0.8.1 tdelay.