# 555 計時器 (`timer555`)

> 用電阻與電容產生定時脈波或穩定的方波。

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

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/ic/timer555/)

**分類:** 積體電路 · **種類:** `{"definition":"timer555","kind":"subsystem"}`

## 何時使用

用於 RC 定時，例如振盪器、單擊脈波或延遲。只需要臨界判斷、不需要定時時，改用具遲滯的比較器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `VCC` | 電氣 | 電源，決定臨界值與輸出高準位 |
| `GND` | 電氣 | 所有腳位的接地參考 |
| `TRIG` | 電氣 | 觸發輸入，低準位使輸出變高 |
| `THR` | 電氣 | 臨界輸入，高準位使輸出變低 |
| `CTRL` | 電氣 | 控制電壓，需接約 10 nF 到 GND |
| `DIS` | 電氣 | 放電腳，輸出為低時短路到 GND |
| `OUT` | 電氣 | 輸出 |
| `RESET` | 電氣 | 重設，低準位使輸出變低 |

## 常用參數

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

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `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 |

_參數說明在兩種語言中都是英文。_

## 模型

三個 rDiv 電阻由 VCC 經 CTRL 接到 GND，決定上臨界 V(CTRL) = 2/3 VCC 與下臨界 V(CTRL)/2 = 1/3 VCC。V(TRIG) < V(CTRL)/2 時閂鎖被設定，V(THR) > V(CTRL) 時被重設。兩者同時成立時觸發優先，RESET 低於 vReset 時則凌駕兩者將其重設。設定時 OUT 經 rOutHi 被驅動到 VCC - vOhDrop，DIS 開路。重設時 OUT 經 rOutLo 接到 GND，DIS 經 rDis 接到 GND。閂鎖初始為重設。以 RA、RB、C 組成的無穩態電路頻率為 f = 1.44 / ((RA + 2 RB) C)，責任比為 (RA + RB) / (RA + 2 RB)。以 R、C 組成的單穩態電路脈寬為 ln 3 R C，約 1.1 R C。傳遞延遲、偏壓電流與電源電流未建模。

## 常見錯誤

- 比較器到閂鎖、閂鎖到輸出各晚一個求解步長。步長請保持在週期的千分之一以下，否則頻率會偏低數個百分點。
- RESET 沒有內部上拉，請接到 VCC。接在 CTRL 上的電容從 0 V 開始，充電完成前會移動臨界值，請預先充電到 VCC 的三分之二，或忽略最初幾個週期。
- 無穩態電路中，輸出為低時 RA 的電流會流經放電電晶體。RA 太小會拉長低準位時間並增加電源負載，請讓 RA 保持在 1 kOhm 以上。

Problems 規則: `step.too_large`

## 規格書與來源

rDiv 取方塊圖中的內部分壓電阻（雙極性 555 為 5 kOhm，7555 等 CMOS 版本大得多）。vReset 取典型重設電壓。vOhDrop 與 rOutHi 由高準位輸出電壓的兩列推得，rOutLo 由低準位輸出電壓的兩列推得。rDis 是放電飽和電壓除以其測試電流。以 ic.fromSpec 搭配 timer555 模板傳入，例如 CMOS 計時器的 rDiv 設 100k。

## 範例

以指令 `file.openExample` 開啟範例，名稱為 `demo:timer555`.

---
由 `cargo xtask reference` 依使用說明文字與參數規格產生，請勿手動編輯。
