Voltecx 目前為測試版。macOS 版先推出,Windows 與 Linux 安裝包仍在測試中。測試版。macOS 版先推出,Windows 與 Linux 版仍在測試。⁠最新消息
文件

單極點運算放大器 (opAmp)

放大輸入的微小差值,速度與輸出範圍都有限制。

opAmp

元件參考 · English

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

何時使用

用於誤差放大器、濾波器與準位轉換。分流電阻上的量測改用電流感測放大器,要邏輯輸出時改用具遲滯的比較器。

接腳

接腳 訊號域 意義
INP 電氣 非反相輸入,只吸取 ib(預設為 0)
INN 電氣 反相輸入,只吸取 ib(預設為 0)
OUT 電氣 輸出,以電路接地為參考
VCC 電氣 正電源,決定輸出上限
VEE 電氣 負電源,決定輸出下限

常用參數

  • gbw: Gain-bandwidth product (single pole at GBW / a0) (預設值: 1200000)
  • a0: DC open-loop gain (預設值: 140000)
  • sr: Slew rate (0.5 V/us) (預設值: 500000)
  • vos: Input offset voltage (the datasheet gives it as +/-) (預設值: 0.0003)

參數

鍵 單位 預設值 典型範圍 說明 規格書來源
a0 V/V 140000 10 – 1g V/V DC open-loop gain Section 5.5 AOL typ 140 V/mV (VS = 15 V, RL >= 10 kOhm), p.6
gbw Hz 1200000 1k – 10g Hz Gain-bandwidth product (single pole at GBW / a0) Section 5.5 GBW typ, p.6
sr V/s 500000 1k – 10g V/s Slew rate (0.5 V/us) Section 5.5 SR typ (G = +1), p.6
vos V 0.0003 -100m – 100m V Input offset voltage (the datasheet gives it as +/-) Section 5.5 VOS typ +/-0.3 mV (LM358B), p.6
headHi V 1.35 0 – 20 V Output swing below the positive rail Section 5.5 VO positive rail, IOUT = 50 uA, p.6
headLo V 0.1 0 – 20 V Output swing above the negative rail Section 5.5 VO negative rail, IOUT = 50 uA, p.6
rOut Ω 300 0 – 1meg Ω Output resistance (0 = ideal output) Section 5.5 RO open-loop output resistance typ, p.6
pm ° 0 0 – 85 ° Phase margin at unity gain, set by a second pole (0 = single pole) Off by default, so results stay those of the single-pole model
cmrr dB 0 0 – 200 dB Common-mode rejection ratio (0 = ideal, no common-mode error) Off by default, so results stay those of the single-pole model
ib A 0 -1m – 1m A Input bias current drawn by each input (positive into the pin) Off by default, so results stay those of the single-pole model

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

模型

內部狀態 y 依 dy/dt = 2pigbw*(Vid + vos) - (2pigbw / a0) * y 變化,即直流增益 a0、極點在 gbw / a0 的單極點響應。變化率限制在正負 sr 之內。狀態超出電源軌且仍被往外推時停止積分,因此不會積分飽和,脫離飽和時立即恢復。輸出是 y 被限制在 VEE + headLo 到 VCC - headHi 之間,再經 rOut 輸出。有三個選項預設關閉。pm(度)在第一極點前加入第二極點,位置使電壓隨耦器剛好有該相位裕度:fc = gbw*cos(90 - pm),fp2 = fc / tan(90 - pm)。cmrr(dB)把共模電壓除以 CMRR 加到 Vid。ib 讓每個輸入從所接的網路吸取電流。共模範圍、雜訊與電源電流沒有建模,相位裕度也不會隨電容性負載下降。

常見錯誤

  • 輸出到不了電源軌,預設會停在 VCC 之下 1.35 V 與 VEE 之上 0.1 V。需要在 15 V 電源下輸出 14.5 V 的電路會被截波。
  • 輸出會晚一到兩個求解步長才進入電路。步長請遠小於最高閉迴路頻寬週期的兩百分之一,否則頻寬誤差會超過數個百分點。
  • 預設是乾淨的單極點,所以在運算放大器頻寬附近設計的補償器看起來會比實際好。迴路交越頻率與 gbw 相差不到十倍時,請設定 pm(或改用 TLV9062 等預設零件,它設 pm 為 55)。
  • vos 只取一個正負號,而規格書給的是正負值。做最壞情況分析時請兩種符號都試,gbw 與 sr 請帶單位字首,例如 1.2meg。

Problems 規則: step.too_large, param.out_of_range

規格書與來源

a0 取典型開迴路增益,並把 V/mV 換成 V/V(140 V/mV 即 1.4e5)。gbw 取增益頻寬積,sr 取轉換率並換成 V/s(0.5 V/us 即 0.5e6)。vos 取典型輸入偏移電壓。headHi 與 headLo 取表中輕載條件下輸出離正、負電源軌的距離,rOut 取開迴路輸出電阻。pm 取相位裕度(G = +1)那一列,cmrr 取以 dB 表示的 CMRR,ib 取典型輸入偏壓電流;表中沒有相位裕度時 pm 留 0。以 ic.fromSpec 搭配 opAmp 模板傳入,並把腳位改成規格書的名稱。

範例

以指令 file.openExample 開啟範例,名稱為 demo:opAmp.


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