# 555 Timer (`timer555`)

> Makes timed pulses or a steady square wave from a resistor and a capacitor.

![timer555](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/timer555.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/ic/timer555/)

**Group:** ICs · **Kind:** `{"definition":"timer555","kind":"subsystem"}`

## When to use it

Use it for RC timing such as an oscillator, a one-shot pulse or a delay. Use Comparator with Hysteresis when you need a threshold and no timing.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `VCC` | electrical | Supply, sets the thresholds and the output high level |
| `GND` | electrical | Ground reference of every pin |
| `TRIG` | electrical | Trigger, a low level sets the output high |
| `THR` | electrical | Threshold, a high level sets the output low |
| `CTRL` | electrical | Control voltage, add 10 nF to GND |
| `DIS` | electrical | Discharge, shorted to GND while the output is low |
| `OUT` | electrical | Output |
| `RESET` | electrical | Reset, a low level forces the output low |

## Common parameters

- `rDiv`: Each of the three equal resistors of the internal divider VCC-CTRL-GND (Default: 5000)
- `vOhDrop`: Output high level below VCC with no load (Default: 0.9)
- `rOutHi`: Output resistance when high (Default: 8)
- `rOutLo`: Output resistance to GND when low (Default: 7.5)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `rDiv` | Ω | 5000 | 100 – 10meg Ω | Each of the three equal resistors of the internal divider VCC-CTRL-GND | Functional block diagram: three 5 kOhm resistors (hence the name 555) |
| `vReset` | V | 0.7 | 100m – 5 V | RESET threshold: below it the output is forced low | Electrical characteristics, reset voltage typ 0.7 V |
| `vOhDrop` | V | 0.9 | 0 – 5 V | Output high level below VCC with no load | Derived: VOH typ 13.3 V at 100 mA and 12.5 V at 200 mA from VCC = 15 V, extended to zero current |
| `rOutHi` | Ω | 8 | 10m – 10k Ω | Output resistance when high | Derived: the slope between the VOH rows (0.8 V per 100 mA) |
| `rOutLo` | Ω | 7.5 | 10m – 10k Ω | Output resistance to GND when low | Derived: VOL typ 0.1 V at 10 mA and 0.4 V at 50 mA from VCC = 15 V |
| `rDis` | Ω | 10 | 10m – 10k Ω | On resistance of the discharge transistor from DIS to GND | assumption: a saturated transistor carrying the timing capacitor's discharge current |
| `rOff` | Ω | 100000000 | 1k – 1t Ω | Off-state resistance of the output and discharge switches (leakage) | assumption: discharge off-state current typ 20 nA is below this model's resolution |

_Parameter descriptions are in English in both languages._

## Model

Three resistors rDiv from VCC through CTRL to GND set the upper threshold V(CTRL) = 2/3 VCC and the lower one V(CTRL)/2 = 1/3 VCC. The latch is set while V(TRIG) < V(CTRL)/2 and reset while V(THR) > V(CTRL). The trigger wins when both hold, and RESET below vReset resets it over both. Set, OUT is driven to VCC - vOhDrop through rOutHi and DIS is open. Reset, OUT goes to GND through rOutLo and DIS to GND through rDis. The latch starts reset. An astable with RA, RB and C runs at f = 1.44 / ((RA + 2 RB) C) with duty (RA + RB) / (RA + 2 RB). A monostable with R and C gives a pulse of ln 3 R C, about 1.1 R C. Propagation delay, bias currents and supply current are not modelled.

## Common mistakes

- The comparators reach the latch and the latch reaches the output one solver step late each. Keep the step below a thousandth of the period, or the frequency comes out a few percent low.
- RESET has no internal pull-up, so tie it to VCC. A capacitor on CTRL starts at 0 V and moves the thresholds until it charges, so precharge it to two thirds of VCC or ignore the first periods.
- In an astable, RA carries current through the discharge transistor while the output is low. A very small RA lengthens the low time and loads the supply, so keep RA at 1 kOhm or more.

Problems rules: `step.too_large`

## Datasheet and sources

rDiv is the internal divider resistor of the block diagram (5 kOhm for the bipolar 555, and much larger for CMOS versions such as the 7555). vReset is the typical reset voltage. vOhDrop and rOutHi come from two rows of the high-level output voltage, and rOutLo from two rows of the low-level output voltage. rDis is the discharge saturation voltage divided by its test current. Pass them to ic.fromSpec with the timer555 template, for example rDiv 100k for a CMOS timer.

## Example

Open the example with the command `file.openExample` and the name `demo:timer555`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
