electronics-engineering-ai999x 1.1.0, Rust build: command line, desktop app and browser. Creator / engineer: Ibnul Jaif Farabi · Company: AI999X · support@ai999x.com
Electronics Engineering covers semiconductors and pn junctions, diode circuits and rectifiers, BJT and MOSFET biasing and amplifiers, op-amp circuits, active filters, oscillators and 555 timers, ADCs and DACs, digital timing and power supplies. This guide is about electronics-engineering, the model as a self-contained program for Windows and Linux: 92 capabilities in 11 topics, answered on your own computer with no network, no Python and nothing else to install. The same compiled model runs in the AI999X desktop app and in the browser on the model's page (https://www.ai999x.com/models/electronics-engineering-ai999x/); the Python package (pip install electronics-engineering-ai999x) has its own guide. Every command output printed here is what the program printed.
Version 1.5.0 of the AI999X desktop app and of the command-line bundle. Checksums for every file: https://downloads.ai999x.com/desktop/1.5.0/SHA256SUMS; the newest version is always under https://downloads.ai999x.com/desktop/latest/. Full instructions: https://www.ai999x.com/desktop-cli/
| what | system | download |
|---|---|---|
| Desktop app: Electronics Engineering | Windows x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-electronics-engineering-1.5.0-windows-x86_64.zip |
| Desktop app: Electronics Engineering | Linux x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-electronics-engineering-1.5.0-linux-x86_64.tar.gz |
| Desktop app: all models | Windows x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-1.5.0-windows-x86_64.zip |
| Desktop app: all models | Linux x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-1.5.0-linux-x86_64.tar.gz |
| Command line | Windows x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-cli-1.5.0-windows-x86_64.zip |
| Command line | Linux x86-64 | https://downloads.ai999x.com/desktop/1.5.0/ai999x-cli-1.5.0-linux-x86_64.tar.gz |
Electronics Engineering in its own app: search, questions in words, input forms, live figures and explanations. Windows: Download ai999x-electronics-engineering-1.5.0-windows-x86_64.zip, right-click it → Extract All, then open the folder and start ai999x-electronics-engineering.exe. If Windows SmartScreen asks, choose More info → Run anyway. Linux:
curl -LO https://downloads.ai999x.com/desktop/1.5.0/ai999x-electronics-engineering-1.5.0-linux-x86_64.tar.gz
curl -LO https://downloads.ai999x.com/desktop/1.5.0/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
tar xzf ai999x-electronics-engineering-1.5.0-linux-x86_64.tar.gz
./ai999x-electronics-engineering-1.5.0-linux-x86_64/ai999x-electronics-engineering
It opens on this model: type a question or pick a capability, fill in the form and press Compute. The AI999X desktop app with every model works the same way (choose the model first). Windows: Download ai999x-1.5.0-windows-x86_64.zip, right-click it → Extract All, then open the folder and start ai999x.exe. If Windows SmartScreen asks, choose More info → Run anyway. Linux:
curl -LO https://downloads.ai999x.com/desktop/1.5.0/ai999x-1.5.0-linux-x86_64.tar.gz
curl -LO https://downloads.ai999x.com/desktop/1.5.0/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
tar xzf ai999x-1.5.0-linux-x86_64.tar.gz
./ai999x-1.5.0-linux-x86_64/ai999x
The bundle holds one program per model; electronics-engineering is this one. The checksum line should print OK.
curl -LO https://downloads.ai999x.com/desktop/1.5.0/ai999x-cli-1.5.0-linux-x86_64.tar.gz
curl -LO https://downloads.ai999x.com/desktop/1.5.0/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
mkdir -p ~/.local/share && tar xzf ai999x-cli-1.5.0-linux-x86_64.tar.gz -C ~/.local/share
echo 'export PATH="$HOME/.local/share/ai999x-cli-1.5.0-linux-x86_64:$PATH"' >> ~/.bashrc && source ~/.bashrc
electronics-engineering --version
The fourth line should print True.
$F = "ai999x-cli-1.5.0-windows-x86_64.zip"
Invoke-WebRequest "https://downloads.ai999x.com/desktop/1.5.0/$F" -OutFile $F
Invoke-WebRequest "https://downloads.ai999x.com/desktop/1.5.0/SHA256SUMS" -OutFile SHA256SUMS
(Get-FileHash $F -Algorithm SHA256).Hash.ToLower() -eq ((Select-String -SimpleMatch $F SHA256SUMS).Line -split ' ')[0]
Expand-Archive $F -DestinationPath "$env:LOCALAPPDATA\AI999X" -Force
$D = "$env:LOCALAPPDATA\AI999X\ai999x-cli-1.5.0-windows-x86_64"; $env:Path += ";$D"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$D", "User")
electronics-engineering --version
Open https://www.ai999x.com/models/electronics-engineering-ai999x/, choose a capability and press Compute in your browser: the same program runs on your device as WebAssembly; nothing is sent anywhere.
pip install electronics-engineering-ai999x
Prints the model, its version and that this is the Rust build.
$ electronics-engineering --version
electronics-engineering-ai999x 1.5.0 (Rust build, ax-engine 1.5.0)
Search the capabilities by what you want to know; the first column is the id to pass to info and solve.
$ electronics-engineering search "bjt voltage-divider bias: exact q-point"
elx_bjt_voltage_divider_bias BJT voltage-divider bias: exact Q-point (BJT / DC bias)
elx_mosfet_divider_bias MOSFET voltage-divider bias with source resistor: Q-point (MOSFET / DC bias)
elx_bjt_collector_feedback_bias BJT collector-feedback bias: Q-point (BJT / DC bias)
elx_bjt_fixed_bias BJT fixed (base-resistor) bias: Q-point (BJT / DC bias)
elx_bjt_emitter_bias BJT dual-supply emitter bias: Q-point (BJT / DC bias)
elx_diode_operating_point Operating point of a diode in series with a resistor (exact) (diodes / operating point)
elx_bjt_cascode BJT cascode: output resistance, transconductance and gain (BJT / amplifiers)
elx_differential_pair BJT differential pair: differential and common-mode gain, CMRR (BJT / differential amplifiers)
… 12 more
Every capability the program answers: its id (what you pass to solve) and its name.
$ electronics-engineering list
elx_555_astable 555 timer astable: frequency and duty cycle
elx_555_monostable 555 timer monostable pulse width
elx_adc_code ADC output code, LSB and quantisation error
elx_adc_enob Effective number of bits (ENOB) from SINAD
elx_adc_quantization_snr ADC quantisation SNR with oversampling
elx_adjustable_regulator_output Adjustable three-terminal regulator output voltage
elx_aperture_jitter_snr SNR limit from sampling-clock (aperture) jitter
elx_bjt_cascode BJT cascode: output resistance, transconductance and gain
… 84 more
The equation or method, every input and output with its SI unit. Read this before solve: it tells you the input names.
$ electronics-engineering info elx_bjt_voltage_divider_bias
BJT voltage-divider bias: exact Q-point
VTH = VCC R2/(R1 + R2); RTH = R1 || R2; IB = (VTH - VBE)/(RTH + (beta + 1) RE); VCE = VCC - IC RC - IE RE
in VCC supply voltage [V]
in R1 upper divider resistor (supply to base) [ohm]
in R2 lower divider resistor (base to ground) [ohm]
in RC collector resistor [ohm]
in RE emitter resistor [ohm]
in beta current gain [1]
in VBE base-emitter voltage [V]
out VTH Thevenin voltage of the divider [V]
out RTH Thevenin resistance of the divider [ohm]
out IB base current [A]
out IC collector current [A]
out IE emitter current [A]
out VB base voltage [V]
out VE emitter voltage [V]
out VC collector voltage [V]
out VCE collector-emitter voltage [V]
Inputs as name=value, each with any unit of the right kind. The answer lists every output, the method used, each input converted to SI, and the conditions the answer assumes.
$ electronics-engineering solve elx_bjt_voltage_divider_bias "VCC=12 V" "R1=47 kohm" "R2=10 kohm" "RC=2.2 kohm" "RE=470 ohm" beta=150.0 "VBE=0.7 V"
VTH = 2.105263158 V
RTH = 8245.614035 ohm
IB = 1.773972436e-05 A
IC = 0.002660958654 A
IE = 0.002678698378 A
VB = 1.958988238 V
VE = 1.258988238 V
VC = 6.145890962 V
VCE = 4.886902724 V
by: BJT voltage-divider bias: exact Q-point (VTH = VCC R2/(R1 + R2); RTH = R1 || R2; IB = (VTH - VBE)/(RTH + (beta + 1) RE); VCE = VCC - IC RC - IE RE)
VCC = 12 V
R1 = 47000 ohm
R2 = 10000 ohm
RC = 2200 ohm
RE = 470 ohm
beta = 150
VBE = 0.7 V
assumes: VTH > VBE; active region: VCE >= 0.2 V
--json prints the same answer as one line of JSON (values in SI): for scripts and other programs.
$ electronics-engineering solve elx_bjt_voltage_divider_bias "VCC=12 V" "R1=47 kohm" "R2=10 kohm" "RC=2.2 kohm" "RE=470 ohm" beta=150.0 "VBE=0.7 V" --json
{"outcome":"SOLVED","message":"","value":0.00266095865382,"unit":"A","solved_for":"IC","si":[["VCC",12.0],["R1",47000.0],["R2",10000.0],["RC",2200.0],["RE",470.0],["beta",150.0],["VBE",0.7]],"values":[["VTH",2.10526315789,"V"],["RTH",8245.61403509,"ohm"],["IB",0.0000177397243588,"A"],["IC",0.00266095865382,"A"],["IE",0.00267869837818,"A"],["VB",1.95898823774,"V"],["VE",1.25898823774,"V"],["VC",6.1458909616,"V"],["VCE",4.88690272386,"V"]],"target":"IC","phrase":"Thevenin voltage of the divider","assumptions":["VTH > VBE","active region: VCE >= 0.2 V"],"name":"BJT voltage-divider bias: exact Q-point","equation":"VTH = VCC R2/(R1 + R2); RTH = R1 || R2; IB = (VTH - VBE)/(RTH + (beta + 1) RE); VCE = VCC - IC RC - IE RE"}
No number is guessed: the answer names what is missing, shows a complete call, and the program exits with status 1.
$ electronics-engineering solve elx_bjt_voltage_divider_bias "VCC=12 V" "R1=47 kohm" "R2=10 kohm" "RC=2.2 kohm" "RE=470 ohm" beta=150.0
NEEDS_INPUT: elx_bjt_voltage_divider_bias needs VBE (base-emitter voltage). Example: solve('elx_bjt_voltage_divider_bias', VCC='12 V', R1='47000 ohm', R2='10000 ohm', RC='2200 ohm', RE='470 ohm', beta=150, VBE='0.7 V').
One JSON request per line in, one JSON answer per line out, in order: for scripts, notebooks and agents (the program starts once). In PowerShell: Get-Content cases.jsonl | electronics-engineering batch
cases.jsonl:
{"key": "elx_bjt_voltage_divider_bias", "inputs": {"VCC": "12 V", "R1": "47 kohm", "R2": "10 kohm", "RC": "2.2 kohm", "RE": "470 ohm", "beta": 150.0, "VBE": "0.7 V"}}
{"key": "elx_sallen_key_lowpass", "inputs": {"R1": "10 kohm", "R2": "10 kohm", "C1": "20 nF", "C2": "10 nF", "K": 1.0}}
$ electronics-engineering batch < cases.jsonl
{"outcome":"SOLVED","message":"","value":0.00266095865382,"unit":"A","solved_for":"IC","si":[["VCC",12.0],["R1",47000.0],["R2",10000.0],["RC",2200.0],["RE",470.0],["beta",150.0],["VBE",0.7]],"values":[["VTH",2.10526315789,"V"],["RTH",8245.61403509,"ohm"],["IB",0.0000177397243588,"A"],["IC",0.00266095865382,"A"],["IE",0.00267869837818,"A"],["VB",1.95898823774,"V"],["VE",1.25898823774,"V"],["VC",6.1458909616,"V"],["VCE",4.88690272386,"V"]],"target":"IC","phrase":"Thevenin voltage of the divider","assumptions":["VTH > VBE","active region: VCE >= 0.2 V"],"name":"BJT voltage-divider bias: exact Q-point","equation":"VTH = VCC R2/(R1 + R2); RTH = R1 || R2; IB = (VTH - VBE)/(RTH + (beta + 1) RE); VCE = VCC - IC RC - IE RE"}
{"outcome":"SOLVED","message":"","value":0.707106781187,"unit":"","solved_for":"Q","si":[["R1",10000.0],["R2",10000.0],["C1",2e-8],["C2",1e-8],["K",1.0]],"values":[["f0",1125.3953952,"Hz"],["Q",0.707106781187,""],["H0",1.0,""],["peak_gain",0.707106781187,""]],"target":"Q","phrase":"natural frequency","assumptions":["stable: R1 C2 + R2 C2 + R1 C1 (1 - K) > 0","ideal amplifier"],"name":"Sallen-Key low-pass filter: f0, Q and gain","equation":"w0 = 1/sqrt(R1 R2 C1 C2); Q = sqrt(R1 R2 C1 C2)/(R1 C2 + R2 C2 + R1 C1 (1 - K))"}
Inputs are written name=value, one per argument; electronics-engineering info <capability> lists the names. Quote an argument that holds a space or brackets (bash, zsh and PowerShell all accept double quotes). The answer always states each input as it was read, converted to SI, so a misread unit is visible at once.
| kind | example | how it is read |
|---|---|---|
| a number with a unit | "R=0.128 nm" | any unit of the same kind; converted to SI |
| a number in SI | R=1.28e-10 | no unit means the SI unit shown by info |
| a choice | structure=FCC | one of the values info lists |
| a list or vector | "v=[1, 2, 3]" or "v=1, 2, 3" | brackets keep it a list |
| a matrix | "A=[[1, 2], [3, 4]]" | one list per row |
| true / false | inclusive=true | for yes/no options |
An equation can be solved for any of its quantities: give the others and add --target <symbol>. Without --target, the program solves for the quantity the capability is named after.
The program never guesses a number: when it cannot answer, it says why and exits with status 1, so a script can tell an answer from a refusal without reading the text.
| outcome | meaning | exit status |
|---|---|---|
| SOLVED | the answer: every output with its unit, the method, the inputs in SI, the conditions assumed | 0 |
| NEEDS_INPUT | an input is missing; the message names it and shows a complete call | 1 |
| INVALID_INPUT | a value or unit of the wrong kind, an unknown input name, or a value outside the conditions | 1 |
| AMBIGUOUS | the inputs allow two different answers; say which one is meant | 1 |
| OUT_OF_SCOPE | the model has no capability for this, or the result would not be meaningful | 1 |
| (usage) | a command the program does not know: it prints its usage | 2 |
electronics-engineering solve ... --json prints one answer as one line of JSON. electronics-engineering batch reads one request per line on standard input and writes one JSON answer per line, in order, starting the program once for any number of requests. A request is {"key": "<capability>", "inputs": {"name": "value", ...}, "target": null}. In PowerShell, pipe the file in: Get-Content cases.jsonl | electronics-engineering batch. electronics-engineering catalog prints every capability with its inputs as JSON, to build forms or tool definitions.
| answer field | meaning |
|---|---|
| outcome | one of the outcomes above |
| message | why there is no answer (empty when SOLVED) |
| value, unit | the main result in SI units |
| values | every output: [symbol, value, unit] (procedures) |
| target | the quantity solved for |
| si | each numeric input converted to SI: [symbol, value] |
| assumptions | the conditions the answer relies on |
| name, equation | the capability and its equation or method |
import json, subprocess
reqs = [{"key": "<capability>", "inputs": {"name": "value"}}]
out = subprocess.run(["electronics-engineering", "batch"], input="\n".join(map(json.dumps, reqs)),
capture_output=True, text=True, check=True).stdout
answers = [json.loads(line) for line in out.splitlines()]
electronics-engineering figures <capability> name=value ... --out DIR draws the live figures for those inputs and writes each as an SVG file into DIR (an existing folder); without --out the SVG text comes back as JSON. The desktop app and the model page draw the same figures as soon as you press Compute.
The same model is a WebAssembly module, electronics_engineering_ai999x.wasm (https://www.ai999x.com/compute/rust/electronics_engineering_ai999x.wasm), with a small loader, ax-wasm.js (https://www.ai999x.com/compute/rust/ax-wasm.js). It runs in a browser, a Web Worker or Node.js, with no server.
<script src="ax-wasm.js"></script>
<script>
AXWasm.load("electronics_engineering_ai999x.wasm").then(function (m) {
var a = m.solve({key: "<capability>", inputs: {name: "value"}});
console.log(a.outcome, a.values || a.value);
console.log(m.catalog().capabilities.length + " capabilities");
});
</script>
By topic. For each: what it does, what it needs and gives, when it applies, and a command with what the program printed for it. electronics-engineering info <id> shows the same inputs and outputs in the terminal.
elx_butterworth_section_qThe quality factors of the cascaded second-order sections of an n-th order Butterworth filter (all at the cutoff frequency), and whether a first-order section is needed.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | filter order | , |
Q_max | out | largest section Q | , |
Q | out | section Q values, ascending | , |
sections | out | number of second-order sections | , |
first_order | out | 1 if a first-order section is needed | , |
Applies when: 2 <= n <= 20.
$ electronics-engineering solve elx_butterworth_section_q n=4
Q_max = 1.306562965
Q = [0.541196100146,1.30656296488]
sections = 2
first_order = 0
by: Butterworth filter: Q of each second-order section (Q_k = 1/(2 sin((2k - 1) pi/(2n))), k = 1 .. floor(n/2))
assumes: 2 <= n <= 20
What the worked example means: This calculation determines the quality factors for each second-order section in a cascaded Butterworth filter of order 4. The resulting values, listed as [0.541196, 1.30656], indicate how sharply each stage peaks near the cutoff frequency. A higher Q implies greater sensitivity to component tolerances and potential instability. The number of stages is given by 2, while 0 signals whether an additional single-pole stage is necessary to complete the design when the filter order is odd.
elx_filter_orderThe minimum order of a Butterworth or Chebyshev type I low-pass filter meeting a passband edge with at most Ap dB attenuation and a stopband edge with at least As dB.
| symbol | meaning | SI unit | |
|---|---|---|---|
ftype | in | butterworth or chebyshev (type I) | , |
fp | in | passband edge | Hz |
fs | in | stopband edge | Hz |
Ap | in | maximum passband attenuation (ripple) in dB | , |
As | in | minimum stopband attenuation in dB | , |
n | out | minimum filter order | , |
Applies when: fs > fp; As > Ap > 0.
$ electronics-engineering solve elx_filter_order ftype=Butterworth "fp=1000 Hz" "fs=2500 Hz" Ap=1 As=40
n = 6
by: Butterworth or Chebyshev low-pass filter order (Butterworth: n >= log10(D)/(2 log10(fs/fp)); Chebyshev: n >= acosh(sqrt D)/acosh(fs/fp), D = (10^(As/10) - 1)/(10^(Ap/10) - 1))
fp = 1000 Hz
fs = 2500 Hz
Ap = 1
As = 40
ftype = Butterworth
assumes: fs > fp; As > Ap > 0
What the worked example means: This calculation determines the minimum order required for a low-pass filter to meet specific attenuation constraints. Using the passband edge of 1000 Hz and stopband edge of 2500 Hz, along with maximum passband ripple of 1 and minimum stopband attenuation of 40, the result indicates that a filter of order 6 is necessary to satisfy these specifications.
elx_chebyshev_sectionsThe quality factors and natural frequencies (relative to the passband edge) of the second-order sections of an n-th order Chebyshev type I low-pass filter with a given passband ripple, and the real pole of an odd order.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | filter order | , |
ripple | in | passband ripple in dB | , |
Q_max | out | largest section Q | , |
Q | out | section Q values, ascending | , |
f0_ratio | out | section natural frequencies / passband edge, in the same order | , |
sections | out | number of second-order sections | , |
real_pole | out | real pole / passband edge (0 for even n) | , |
Applies when: 2 <= n <= 16; 0.001 dB <= ripple <= 6 dB.
$ electronics-engineering solve elx_chebyshev_sections n=4 ripple=0.5
Q_max = 2.940554174
Q = [0.705110236803,2.94055417439]
f0_ratio = [0.59700239512,1.03127040148]
sections = 2
real_pole = 0
by: Chebyshev type I filter: section Q and frequencies (eps = sqrt(10^(r/10) - 1); a = asinh(1/eps)/n; poles -sinh a sin th_k + j cosh a cos th_k; Q = |p|/(2 |Re p|))
ripple = 0.5
assumes: 2 <= n <= 16; 0.001 dB <= ripple <= 6 dB
What the worked example means: This calculation determines the internal characteristics of a Chebyshev Type I low-pass filter based on its order 4 and passband ripple 0.5. It computes the quality factors for each second-order section, yielding values in [0.70511, 2.94055], along with their natural frequency ratios [0.597002, 1.03127]. The result indicates that there are 2 such sections. If the order is odd, a real pole exists at ratio 0; otherwise, this value is zero. These parameters describe how the filter distributes gain and phase response across its stages.
elx_sallen_key_equal_component_designThe resistor value and amplifier gain of an equal-component (R1 = R2 = R, C1 = C2 = C) Sallen-Key low-pass filter for a cutoff frequency and Q, with the non-inverting gain ratio Rf/Rg = K - 1.
| symbol | meaning | SI unit | |
|---|---|---|---|
fc | in | natural (cutoff) frequency | Hz |
Q | in | quality factor (0.7071 for Butterworth) | , |
C | in | chosen capacitor value | F |
R | out | resistor value | ohm |
K | out | amplifier gain | , |
Rf_over_Rg | out | gain resistor ratio Rf/Rg | , |
Applies when: 0.5 <= Q <= 20.
$ electronics-engineering solve elx_sallen_key_equal_component_design "fc=1000 Hz" Q=0.7071 "C=10 nF"
R = 15915.49431 ohm
K = 1.585772875
Rf_over_Rg = 0.5857728751
by: Equal-component Sallen-Key low-pass design (R = 1/(2 pi fc C); K = 3 - 1/Q; Rf/Rg = K - 1)
fc = 1000 Hz
Q = 0.7071
C = 1e-08 F
assumes: 0.5 <= Q <= 20
What the worked example means: This calculation determines the component values for an equal-component Sallen-Key low-pass filter. Given a cutoff frequency of 1000 Hz, a quality factor of 0.7071, and a chosen capacitor value of 10 nF, the required resistance is computed as 15915.5 ohm. The necessary non-inverting amplifier gain is found to be 1.58577, which dictates that the feedback resistor should be 0.585773 times the ground resistor to achieve the desired response.
elx_first_order_active_lowpassThe passband gain -Rf/R1, the cutoff frequency 1/(2 pi Rf C) and the gain at a frequency of an inverting op-amp low-pass filter with C across the feedback resistor.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | input resistor | ohm |
Rf | in | feedback resistor | ohm |
C | in | capacitor across Rf | F |
f | in | frequency of interest | Hz |
H0 | out | passband gain | , |
fc | out | cutoff frequency | Hz |
gain_f | out | gain magnitude at f | , |
gain_dB | out | gain at f in dB | , |
Applies when: ideal op-amp.
$ electronics-engineering solve elx_first_order_active_lowpass "R1=10000 ohm" "Rf=100000 ohm" "C=1.59 nF" "f=1000 Hz"
H0 = -10
fc = 1000.974485 Hz
gain_f = 7.074510619
gain_dB = 16.99392806
by: First-order active low-pass filter (inverting) (H(s) = -(Rf/R1)/(1 + s Rf C); fc = 1/(2 pi Rf C))
R1 = 10000 ohm
Rf = 100000 ohm
C = 1.59e-09 F
f = 1000 Hz
assumes: ideal op-amp
What the worked example means: This calculation determines the characteristics of an inverting active low-pass filter. Using the input resistor value of 10000 ohm ohms, the feedback resistor of 100000 ohm ohms, and the capacitor of 1.59 nF farads, this gives the DC passband gain as -10. The cutoff frequency, where the signal power drops by half, is found to be 1000.97 Hz Hz. At the specific frequency of interest, 1000 Hz Hz, the linear gain magnitude is 7.07451, which corresponds to 16.9939 decibels.
elx_mfb_bandpassThe centre frequency, quality factor, -3 dB bandwidth and peak (inverting) gain of a multiple-feedback band-pass filter.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | input resistor | ohm |
R2 | in | resistor from the middle node to ground | ohm |
R3 | in | feedback resistor (inverting input to output) | ohm |
C1 | in | capacitor from the middle node to the inverting input | F |
C2 | in | capacitor from the middle node to the output | F |
f0 | out | centre frequency | Hz |
Q | out | quality factor | , |
BW | out | -3 dB bandwidth | Hz |
H_peak | out | gain at the centre frequency | , |
Applies when: ideal op-amp.
$ electronics-engineering solve elx_mfb_bandpass "R1=15900 ohm" "R2=1330 ohm" "R3=31800 ohm" "C1=10 nF" "C2=10 nF"
f0 = 2547.562384 Hz
Q = 2.54508224
BW = 1000.974485 Hz
H_peak = -1
by: Multiple-feedback (MFB) band-pass filter (w0 = sqrt((R1 + R2)/(R1 R2 R3 C1 C2)); Q = w0 C1 C2 R3/(C1 + C2); H = -C1 R3/(R1 (C1 + C2)))
R1 = 15900 ohm
R2 = 1330 ohm
R3 = 31800 ohm
C1 = 1e-08 F
C2 = 1e-08 F
assumes: ideal op-amp
In the worked example, R1 = 15900 ohm, R2 = 1330 ohm, R3 = 31800 ohm, C1 = 10 nF, C2 = 10 nF go through the equation above and give f0 = 2547.562384 Hz, Q = 2.54508224, BW = 1000.974485 Hz, H_peak = -1. It applies only when ideal op-amp: outside that it says what is wrong instead of returning a number.
elx_mfb_lowpassThe natural frequency, quality factor and inverting passband gain -R2/R1 of a second-order multiple-feedback low-pass filter.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | input resistor | ohm |
R2 | in | feedback resistor (middle node to output) | ohm |
R3 | in | resistor from the middle node to the inverting input | ohm |
C1 | in | capacitor from the middle node to ground | F |
C2 | in | capacitor from the inverting input to the output | F |
f0 | out | natural frequency | Hz |
Q | out | quality factor | , |
H0 | out | passband gain | , |
Applies when: ideal op-amp.
$ electronics-engineering solve elx_mfb_lowpass "R1=10000 ohm" "R2=10000 ohm" "R3=5000 ohm" "C1=47 nF" "C2=4.7 nF"
f0 = 1514.38839 Hz
Q = 1.118033989
H0 = -1
by: Multiple-feedback (MFB) low-pass filter (w0 = 1/sqrt(R2 R3 C1 C2); Q = sqrt(R2 R3 C1 C2)/(C2 (R2 + R3 + R2 R3/R1)); H0 = -R2/R1)
R1 = 10000 ohm
R2 = 10000 ohm
R3 = 5000 ohm
C1 = 4.7e-08 F
C2 = 4.7e-09 F
assumes: ideal op-amp
What the worked example means: This calculation determines the key characteristics of a second-order multiple-feedback low-pass filter using ideal op-amp assumptions. Based on the input resistor, feedback resistor, middle node resistor, and two capacitors, it computes the natural frequency, which sets the cutoff point, the quality factor, which describes the resonance peak sharpness, and the inverting passband gain. The resulting natural frequency is 1514.39 Hz, the quality factor is 1.11803, and the passband gain is -1.
elx_sallen_key_highpassThe natural frequency, quality factor and high-frequency gain of a second-order Sallen-Key high-pass filter with any components and amplifier gain K.
| symbol | meaning | SI unit | |
|---|---|---|---|
C1 | in | first series capacitor | F |
C2 | in | second series capacitor | F |
R1 | in | resistor from the middle node to the output (feedback) | ohm |
R2 | in | resistor from the amplifier input to ground | ohm |
K | in | amplifier gain | , |
f0 | out | natural frequency | Hz |
Q | out | quality factor | , |
H_inf | out | high-frequency gain | , |
Applies when: stable: R1 (C1 + C2) + R2 C2 (1 - K) > 0.
$ electronics-engineering solve elx_sallen_key_highpass "C1=10 nF" "C2=10 nF" "R1=11250 ohm" "R2=22500 ohm" K=1
f0 = 1000.351462 Hz
Q = 0.7071067812
H_inf = 1
by: Sallen-Key high-pass filter: f0, Q and gain (w0 = 1/sqrt(R1 R2 C1 C2); Q = sqrt(R1 R2 C1 C2)/(R1 (C1 + C2) + R2 C2 (1 - K)))
C1 = 1e-08 F
C2 = 1e-08 F
R1 = 11250 ohm
R2 = 22500 ohm
K = 1
assumes: stable: R1 (C1 + C2) + R2 C2 (1 - K) > 0
What the worked example means: This calculation determines the key performance metrics for a second-order Sallen-Key high-pass filter based on its passive components and amplifier configuration. Using the input values of 10 nF for the first series capacitor, 10 nF for the second series capacitor, 11250 ohm for the feedback resistor, 22500 ohm for the ground resistor, and 1 for the amplifier gain, the model computes the natural frequency as 1000.35 Hz, which defines where the filter begins to pass higher frequencies effectively. The resulting quality factor 0.707107 indicates the sharpness of the resonance peak near that frequency, while the high-frequency gain 1 represents the amplification level applied to signals well above the cutoff point.
elx_sallen_key_lowpassThe natural frequency, quality factor, passband gain and the gain at f0 (K Q) of a second-order Sallen-Key low-pass filter with any components and amplifier gain K.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | first series resistor | ohm |
R2 | in | second series resistor | ohm |
C1 | in | capacitor from the middle node to the output (feedback) | F |
C2 | in | capacitor from the amplifier input to ground | F |
K | in | amplifier gain (1 for a unity-gain buffer) | , |
f0 | out | natural frequency | Hz |
Q | out | quality factor | , |
H0 | out | passband gain | , |
peak_gain | out | gain at f0, K Q | , |
Applies when: stable: R1 C2 + R2 C2 + R1 C1 (1 - K) > 0; ideal amplifier.
$ electronics-engineering solve elx_sallen_key_lowpass "R1=10000 ohm" "R2=10000 ohm" "C1=20 nF" "C2=10 nF" K=1
f0 = 1125.395395 Hz
Q = 0.7071067812
H0 = 1
peak_gain = 0.7071067812
by: Sallen-Key low-pass filter: f0, Q and gain (w0 = 1/sqrt(R1 R2 C1 C2); Q = sqrt(R1 R2 C1 C2)/(R1 C2 + R2 C2 + R1 C1 (1 - K)))
R1 = 10000 ohm
R2 = 10000 ohm
C1 = 2e-08 F
C2 = 1e-08 F
K = 1
assumes: stable: R1 C2 + R2 C2 + R1 C1 (1 - K) > 0; ideal amplifier
What the worked example means: This calculation determines the key characteristics of a second-order Sallen-Key low-pass filter. Using the input resistors and capacitors along with the amplifier gain, it computes the natural frequency 1125.4 Hz where the filter response begins to roll off. The quality factor 0.707107 indicates the sharpness of the resonance peak near that frequency. The passband gain 1 represents the amplification level at frequencies well below the cutoff. Finally, the peak gain 0.707107 shows the maximum amplitude at the natural frequency.
elx_transition_frequencyThe beta cutoff frequency f_beta and the unity-current-gain (transition) frequency fT = gm/(2 pi (Cpi + Cmu)) of a bipolar transistor from its hybrid-pi capacitances.
| symbol | meaning | SI unit | |
|---|---|---|---|
gm | in | transconductance | S |
beta | in | low-frequency current gain | , |
Cpi | in | base-emitter capacitance | F |
Cmu | in | base-collector capacitance | F |
r_pi | out | r_pi = beta/gm | ohm |
f_beta | out | beta cutoff frequency | Hz |
f_T | out | transition frequency | Hz |
Applies when: single-pole h_fe (the feed-forward zero through Cmu neglected).
$ electronics-engineering solve elx_transition_frequency "gm=40 mS" beta=100 "Cpi=10 pF" "Cmu=2 pF"
r_pi = 2500 ohm
f_beta = 5305164.77 Hz
f_T = 530516477 Hz
by: BJT beta cutoff and transition frequency fT (f_beta = 1/(2 pi r_pi (Cpi + Cmu)); fT = beta f_beta = gm/(2 pi (Cpi + Cmu)))
gm = 0.04 S
beta = 100
Cpi = 1e-11 F
Cmu = 2e-12 F
assumes: single-pole h_fe (the feed-forward zero through Cmu neglected)
In the worked example, gm = 40 mS, beta = 100, Cpi = 10 pF, Cmu = 2 pF go through the equation above and give r_pi = 2500 ohm, f_beta = 5305164.77 Hz, f_T = 530516477 Hz. It applies only when single-pole h_fe (the feed-forward zero through Cmu neglected): outside that it says what is wrong instead of returning a number.
elx_bjt_cascodeThe output resistance, the short-circuit transconductance and the voltage gain into a load of a cascode (common emitter driving common base) of two identical transistors at the same bias current.
| symbol | meaning | SI unit | |
|---|---|---|---|
IC | in | bias current of both transistors | A |
beta | in | current gain | , |
VT | in | thermal voltage | V |
VA | in | Early voltage | V |
RL | in | load resistance | ohm |
gm | out | transconductance of each transistor | S |
r_o | out | output resistance of each | ohm |
Rout | out | output resistance of the cascode | ohm |
Gm | out | short-circuit transconductance | S |
Av | out | voltage gain into RL | , |
Applies when: identical transistors, base of the upper one at signal ground.
$ electronics-engineering solve elx_bjt_cascode "IC=1 mA" beta=100 "VT=25 mV" "VA=100 V" "RL=1000000 ohm"
gm = 0.04 S
r_o = 100000 ohm
Rout = 9858536.585 ohm
Gm = 0.03959426027 S
Av = -35947.88859
by: BJT cascode: output resistance, transconductance and gain (Rout = r_o + (1 + gm r_o)(r_o || r_pi); Gm = gm (gm + 1/r_o)/(gm + 2/r_o + 1/r_pi); Av = -Gm (Rout || RL))
IC = 0.001 A
beta = 100
VT = 0.025 V
VA = 100 V
RL = 1000000 ohm
assumes: identical transistors, base of the upper one at signal ground
What the worked example means: This calculation determines the performance of a BJT cascode amplifier consisting of two identical transistors biased at the same current. It computes the small-signal parameters, starting with the individual transistor transconductance of 0.04 S and output resistance of 100000 ohm. These values are combined to find the total output resistance of the stack, which is 9.85854e+06 ohm, and the effective short-circuit transconductance, calculated as 0.0395943 S. Finally, the overall voltage gain into the load resistor is found to be -35947.9. This result indicates how effectively the circuit converts input voltage to output voltage while providing high isolation between input and output.
elx_bjt_collector_feedback_biasThe Q-point of a transistor biased by a resistor from collector to base (collector feedback), with an optional emitter resistor.
| symbol | meaning | SI unit | |
|---|---|---|---|
VCC | in | supply voltage | V |
RC | in | collector resistor (carries IC + IB) | ohm |
RF | in | feedback resistor, collector to base | ohm |
beta | in | current gain | , |
VBE | in | base-emitter voltage | V |
RE | in | emitter resistor (default 0) (optional) | ohm |
IB | out | base current | A |
IC | out | collector current | A |
IE | out | emitter current | A |
VC | out | collector voltage | V |
VCE | out | collector-emitter voltage | V |
Applies when: active region: VCE >= 0.2 V.
$ electronics-engineering solve elx_bjt_collector_feedback_bias "VCC=10 V" "RC=4700 ohm" "RF=250000 ohm" beta=90 "VBE=0.7 V"
IB = 1.372288623e-05 A
IC = 0.001235059761 A
IE = 0.001248782647 A
VC = 4.130721558 V
VCE = 4.130721558 V
by: BJT collector-feedback bias: Q-point (IB = (VCC - VBE)/(RF + (beta + 1)(RC + RE)); VC = VCC - IE RC)
VCC = 10 V
RC = 4700 ohm
RF = 250000 ohm
beta = 90
VBE = 0.7 V
assumes: active region: VCE >= 0.2 V
What the worked example means: This calculation determines the quiescent operating point for a bipolar junction transistor using collector-feedback bias. The base current, calculated as 1.37229e-05 A, flows through the feedback resistor and sets the emitter current to 0.00124878 A. This current causes a voltage drop across the collector resistor, yielding a collector voltage of 4.13072 V. The final collector-emitter voltage is 4.13072 V, which indicates whether the transistor remains in the active region.
elx_current_mirrorThe reference current and the output current of a basic two-transistor current mirror with a resistor to the supply, including the base-current error Iout = Iref beta/(beta + 2).
| symbol | meaning | SI unit | |
|---|---|---|---|
VCC | in | supply voltage | V |
R | in | reference resistor | ohm |
VBE | in | base-emitter voltage | V |
beta | in | current gain of each (matched) transistor | , |
Iref | out | current in the reference resistor | A |
Iout | out | output (mirrored) current | A |
ratio | out | Iout/Iref | , |
Applies when: matched transistors, Early effect neglected.
$ electronics-engineering solve elx_current_mirror "VCC=10 V" "R=9300 ohm" "VBE=0.7 V" beta=100
Iref = 0.001 A
Iout = 0.0009803921569 A
ratio = 0.9803921569
by: BJT current mirror with finite beta (Iref = (VCC - VBE)/R; Iout = Iref beta/(beta + 2))
VCC = 10 V
R = 9300 ohm
VBE = 0.7 V
beta = 100
assumes: matched transistors, Early effect neglected
What the worked example means: This calculation determines the performance of a basic two-transistor BJT current mirror. First, the reference current 0.001 A is found by subtracting the base-emitter voltage 0.7 V from the supply voltage 10 V and dividing by the resistor 9300 ohm. Then, the actual output current 0.000980392 A is derived by applying the finite beta correction factor to the reference current. The resulting ratio 0.980392 indicates how closely the mirror replicates the input current, with values less than one reflecting the error caused by base currents.
elx_differential_pairThe differential gain (differential and single-ended output), the common-mode gain and the common-mode rejection ratio of a resistively loaded BJT differential pair with a tail current source of finite resistance.
| symbol | meaning | SI unit | |
|---|---|---|---|
I_tail | in | tail (bias) current | A |
beta | in | current gain | , |
VT | in | thermal voltage | V |
RC | in | collector resistor of each side | ohm |
REE | in | output resistance of the tail current source | ohm |
IC | out | collector current of each transistor | A |
gm | out | transconductance of each | S |
Ad_diff | out | differential gain, differential output | , |
Ad_se | out | differential gain, single-ended output | , |
Acm | out | common-mode gain, single-ended output | , |
CMRR | out | |Ad_se/Acm| | , |
CMRR_dB | out | CMRR in dB | , |
Applies when: matched transistors, r_o neglected.
$ electronics-engineering solve elx_differential_pair "I_tail=1 mA" beta=100 "VT=25 mV" "RC=10000 ohm" "REE=100000 ohm"
IC = 0.000495049505 A
gm = 0.0198019802 S
Ad_diff = -198.019802
Ad_se = -99.00990099
Acm = -0.04949257735
CMRR = 2000.5
CMRR_dB = 66.02277111
by: BJT differential pair: differential and common-mode gain, CMRR (IC = alpha I/2; gm = IC/VT; Ad = -gm RC (/2 single-ended); Acm = -gm RC/(1 + 2 REE (beta + 1)/r_pi); CMRR = |Ad,se/Acm|)
I_tail = 0.001 A
beta = 100
VT = 0.025 V
RC = 10000 ohm
REE = 100000 ohm
assumes: matched transistors, r_o neglected
What the worked example means: This calculation determines the performance of a bipolar junction transistor differential pair. Using the tail current of 1 mA and collector resistors of 10000 ohm, each transistor carries a collector current of 0.00049505 A with a transconductance of 0.019802 S. The resulting differential voltage gain is -198.02 for double-ended output or -99.0099 for single-ended, while the common-mode gain is suppressed to -0.0494926. The ratio of these gains yields a common-mode rejection ratio of 2000.5, indicating how well the circuit rejects noise common to both inputs.
elx_bjt_emitter_biasThe Q-point of a transistor with its base returned to ground through RB and its emitter returned to a negative supply -VEE through RE (emitter bias).
| symbol | meaning | SI unit | |
|---|---|---|---|
VCC | in | positive supply | V |
VEE | in | magnitude of the negative supply | V |
RB | in | base resistor to ground | ohm |
RC | in | collector resistor | ohm |
RE | in | emitter resistor to -VEE | ohm |
beta | in | current gain | , |
VBE | in | base-emitter voltage | V |
IB | out | base current | A |
IC | out | collector current | A |
IE | out | emitter current | A |
VB | out | base voltage | V |
VE | out | emitter voltage | V |
VC | out | collector voltage | V |
VCE | out | collector-emitter voltage | V |
Applies when: VEE > VBE; active region: VCE >= 0.2 V.
$ electronics-engineering solve elx_bjt_emitter_bias "VCC=10 V" "VEE=10 V" "RB=10000 ohm" "RC=4700 ohm" "RE=10000 ohm" beta=100 "VBE=0.7 V"
IB = 9.117647059e-06 A
IC = 0.0009117647059 A
IE = 0.0009208823529 A
VB = -0.09117647059 V
VE = -0.7911764706 V
VC = 5.714705882 V
VCE = 6.505882353 V
by: BJT dual-supply emitter bias: Q-point (IE = (VEE - VBE)/(RE + RB/(beta + 1)); VB = -IB RB; VE = VB - VBE; VC = VCC - IC RC)
VCC = 10 V
VEE = 10 V
RB = 10000 ohm
RC = 4700 ohm
RE = 10000 ohm
beta = 100
VBE = 0.7 V
assumes: VEE > VBE; active region: VCE >= 0.2 V
What the worked example means: This calculation determines the quiescent operating point of a bipolar junction transistor in an emitter bias configuration. Using the supply voltages, resistor values, and transistor gain, the emitter current is found to be 0.000920882 A. This current establishes the base voltage at -0.0911765 V and the collector voltage at 5.71471 V, defining the DC conditions for signal amplification.
elx_bjt_fixed_biasThe quiescent base and collector currents and the collector-emitter voltage of a common-emitter stage biased by a single base resistor from the supply.
| symbol | meaning | SI unit | |
|---|---|---|---|
VCC | in | supply voltage | V |
RB | in | base resistor | ohm |
RC | in | collector resistor | ohm |
beta | in | current gain | , |
VBE | in | base-emitter voltage (about 0.7 V) | V |
IB | out | base current | A |
IC | out | collector current | A |
IE | out | emitter current | A |
VCE | out | collector-emitter voltage | V |
Applies when: active region: VCE >= 0.2 V (otherwise refused as saturated).
$ electronics-engineering solve elx_bjt_fixed_bias "VCC=12 V" "RB=470000 ohm" "RC=2200 ohm" beta=100 "VBE=0.7 V"
IB = 2.404255319e-05 A
IC = 0.002404255319 A
IE = 0.002428297872 A
VCE = 6.710638298 V
by: BJT fixed (base-resistor) bias: Q-point (IB = (VCC - VBE)/RB; IC = beta IB; VCE = VCC - IC RC)
VCC = 12 V
RB = 470000 ohm
RC = 2200 ohm
beta = 100
VBE = 0.7 V
assumes: active region: VCE >= 0.2 V (otherwise refused as saturated)
What the worked example means: This calculation determines the DC operating point, or Q-point, for a bipolar junction transistor configured with fixed bias. The base current 2.40426e-05 A is derived from the supply voltage 12 V minus the base-emitter drop 0.7 V, divided by the base resistor 470000 ohm. This base current sets the collector current 0.00240426 A through the transistor's current gain 100. Consequently, the voltage at the collector relative to the emitter, 6.71064 V, is found by subtracting the voltage drop across the collector resistor 2200 ohm from the supply voltage. A stable Q-point ensures the amplifier operates in the active region.
elx_bjt_small_signal_parametersThe transconductance gm, the input resistance r_pi, the emitter resistance r_e, the output resistance r_o (Early voltage) and the intrinsic gain of a bipolar transistor at its bias current.
| symbol | meaning | SI unit | |
|---|---|---|---|
IC | in | collector bias current | A |
beta | in | current gain | , |
VT | in | thermal voltage (25 or 26 mV) | V |
VA | in | Early voltage | V |
gm | out | transconductance | S |
r_pi | out | base input resistance r_pi | ohm |
r_e | out | emitter resistance r_e | ohm |
r_o | out | output resistance | ohm |
A0 | out | intrinsic voltage gain gm r_o | , |
Applies when: IC, beta, VT, VA > 0; active region.
$ electronics-engineering solve elx_bjt_small_signal_parameters "IC=1 mA" beta=100 "VT=25 mV" "VA=100 V"
gm = 0.04 S
r_pi = 2500 ohm
r_e = 24.75247525 ohm
r_o = 100000 ohm
A0 = 4000
by: BJT small-signal (hybrid-pi) parameters (gm = IC/VT; r_pi = beta/gm; r_e = alpha/gm; r_o = VA/IC; A0 = VA/VT)
IC = 0.001 A
beta = 100
VT = 0.025 V
VA = 100 V
assumes: IC, beta, VT, VA > 0; active region
What the worked example means: This calculation determines the small-signal hybrid-pi parameters for a bipolar junction transistor operating in the active region. By using the collector bias current 1 mA, current gain 100, thermal voltage 25 mV, and Early voltage 100 V, this gives key performance metrics. The transconductance 0.04 S indicates how effectively the base-emitter voltage controls the collector current. The base input resistance 2500 ohm represents the impedance seen looking into the base terminal. The emitter resistance 24.7525 ohm and output resistance 100000 ohm characterize internal resistances, while the intrinsic voltage gain 4000 reflects the maximum amplification capability of the device without external loading.
elx_bjt_current_relationsThe collector and emitter currents and the common-base current gain alpha of a bipolar transistor in the active region from its base current and beta.
| symbol | meaning | SI unit | |
|---|---|---|---|
IB | in | base current | A |
beta | in | common-emitter current gain (hFE) | , |
IC | out | collector current | A |
IE | out | emitter current | A |
alpha | out | alpha = beta/(beta + 1) | , |
Applies when: IB > 0, beta > 0; active region.
$ electronics-engineering solve elx_bjt_current_relations "IB=20 uA" beta=100
IC = 0.002 A
IE = 0.00202 A
alpha = 0.9900990099
by: BJT terminal currents from beta (IC = beta IB; IE = (beta + 1) IB; alpha = beta/(beta + 1))
IB = 2e-05 A
beta = 100
assumes: IB > 0, beta > 0; active region
What the worked example means: This calculation determines the collector current, emitter current, and common-base current gain for a bipolar junction transistor operating in the active region. Using the provided base current of 20 uA and the current gain factor of 100, the model computes the resulting currents and the derived alpha value. The collector current 0.002 A represents the main output flow controlled by the base, while the emitter current 0.00202 A reflects the total current entering the device. The parameter alpha 0.990099 indicates the fraction of emitter current that reaches the collector.
elx_bjt_voltage_divider_biasThe Q-point (base, collector and emitter currents, node voltages and VCE) of a common-emitter stage with a base voltage divider and an emitter resistor, by the exact Thevenin analysis (base current included).
| symbol | meaning | SI unit | |
|---|---|---|---|
VCC | in | supply voltage | V |
R1 | in | upper divider resistor (supply to base) | ohm |
R2 | in | lower divider resistor (base to ground) | ohm |
RC | in | collector resistor | ohm |
RE | in | emitter resistor | ohm |
beta | in | current gain | , |
VBE | in | base-emitter voltage | V |
VTH | out | Thevenin voltage of the divider | V |
RTH | out | Thevenin resistance of the divider | ohm |
IB | out | base current | A |
IC | out | collector current | A |
IE | out | emitter current | A |
VB | out | base voltage | V |
VE | out | emitter voltage | V |
VC | out | collector voltage | V |
VCE | out | collector-emitter voltage | V |
Applies when: VTH > VBE; active region: VCE >= 0.2 V.
$ electronics-engineering solve elx_bjt_voltage_divider_bias "VCC=12 V" "R1=47000 ohm" "R2=10000 ohm" "RC=2200 ohm" "RE=470 ohm" beta=150 "VBE=0.7 V"
VTH = 2.105263158 V
RTH = 8245.614035 ohm
IB = 1.773972436e-05 A
IC = 0.002660958654 A
IE = 0.002678698378 A
VB = 1.958988238 V
VE = 1.258988238 V
VC = 6.145890962 V
VCE = 4.886902724 V
by: BJT voltage-divider bias: exact Q-point (VTH = VCC R2/(R1 + R2); RTH = R1 || R2; IB = (VTH - VBE)/(RTH + (beta + 1) RE); VCE = VCC - IC RC - IE RE)
VCC = 12 V
R1 = 47000 ohm
R2 = 10000 ohm
RC = 2200 ohm
RE = 470 ohm
beta = 150
VBE = 0.7 V
assumes: VTH > VBE; active region: VCE >= 0.2 V
What the worked example means: This calculation determines the exact quiescent operating point of a bipolar junction transistor in a common-emitter configuration with voltage-divider bias. By replacing the base resistors with their Thevenin equivalent, the base current is 1.77397e-05 A, which leads to a collector current of 0.00266096 A and an emitter current of 0.0026787 A. Consequently, the base voltage is 1.95899 V, the emitter voltage is 1.25899 V, and the collector voltage is 6.14589 V, resulting in a final collector-emitter voltage of 4.8869 V.
elx_common_base_amplifierThe voltage gain (emitter to collector and source to load), the low input resistance and the output resistance of a common-base stage (hybrid-pi model, r_o neglected).
| symbol | meaning | SI unit | |
|---|---|---|---|
IC | in | collector bias current | A |
beta | in | current gain | , |
VT | in | thermal voltage | V |
RC | in | collector resistor | ohm |
RL | in | load resistor | ohm |
RE | in | emitter bias resistor | ohm |
Rsig | in | source resistance | ohm |
Av | out | voltage gain emitter to output | , |
Rin | out | input resistance (RE || r_e) | ohm |
Rout | out | output resistance (RC) | ohm |
Gv | out | overall gain from the source | , |
Applies when: r_o neglected; base at signal ground.
$ electronics-engineering solve elx_common_base_amplifier "IC=1 mA" beta=100 "VT=25 mV" "RC=5000 ohm" "RL=5000 ohm" "RE=10000 ohm" "Rsig=50 ohm"
Av = 100
Rin = 24.69135802 ohm
Rout = 5000 ohm
Gv = 33.05785124
by: Common-base amplifier (Av = gm (RC || RL); Rin = RE || r_e with r_e = alpha/gm; Gv = Av Rin/(Rin + Rsig))
IC = 0.001 A
beta = 100
VT = 0.025 V
RC = 5000 ohm
RL = 5000 ohm
RE = 10000 ohm
Rsig = 50 ohm
assumes: r_o neglected; base at signal ground
What the worked example means: This calculation determines the performance of a common-base amplifier stage using the hybrid-pi model. The intrinsic emitter resistance is derived from the bias current, resulting in an input resistance of 24.6914 ohm, which is the parallel combination of the external emitter resistor and this intrinsic value. The voltage gain from the emitter to the collector is calculated as 100, driven by the transconductance and the parallel load at the collector. The overall source-to-load gain is 33.0579, accounting for signal loss across the source resistance. The output resistance looking into the collector is 5000 ohm, typically dominated by the collector resistor when neglecting the transistor's internal output resistance.
elx_common_collector_amplifierThe voltage gain, input resistance and output resistance of an emitter follower, including the source resistance reflected into the emitter (hybrid-pi model, r_o neglected).
| symbol | meaning | SI unit | |
|---|---|---|---|
IC | in | collector bias current | A |
beta | in | current gain | , |
VT | in | thermal voltage | V |
RE | in | emitter resistor | ohm |
RL | in | load resistor | ohm |
RB | in | bias resistance at the base | ohm |
Rsig | in | source resistance | ohm |
Av | out | voltage gain base to output | , |
Rin | out | input resistance | ohm |
Rout | out | output resistance | ohm |
Gv | out | overall gain from the source | , |
Applies when: r_o neglected.
$ electronics-engineering solve elx_common_collector_amplifier "IC=5 mA" beta=100 "VT=25 mV" "RE=1000 ohm" "RL=1000 ohm" "RB=100000 ohm" "Rsig=10000 ohm"
Av = 0.9901960784
Rin = 33774.83444 ohm
Rout = 86.7242088 ohm
Gv = 0.7639939486
by: Common-collector (emitter-follower) amplifier (Av = (beta + 1)(RE || RL)/(r_pi + (beta + 1)(RE || RL)); Rout = RE || (r_pi + Rsig || RB)/(beta + 1))
IC = 0.005 A
beta = 100
VT = 0.025 V
RE = 1000 ohm
RL = 1000 ohm
RB = 100000 ohm
Rsig = 10000 ohm
assumes: r_o neglected
What the worked example means: This calculation determines the performance of a common-collector amplifier, also known as an emitter follower. Using the collector bias current, thermal voltage, and circuit resistances, it computes the voltage gain from base to output, which is 0.990196, and the overall source-to-load gain, which is 0.763994. It also finds the input resistance, 33774.8 ohm, and the output resistance, 86.7242 ohm. These values indicate how effectively the stage buffers the signal and drives the load.
elx_common_emitter_amplifierThe voltage gain (base to collector and source to load), the input and output resistances of a common-emitter stage with an optional unbypassed emitter resistance, from the bias current (hybrid-pi model, r_o neglected).
| symbol | meaning | SI unit | |
|---|---|---|---|
IC | in | collector bias current | A |
beta | in | current gain | , |
VT | in | thermal voltage | V |
RC | in | collector resistor | ohm |
RL | in | load resistor | ohm |
RE1 | in | unbypassed emitter resistance (0 if fully bypassed) | ohm |
RB | in | bias resistance seen at the base (R1 || R2) | ohm |
Rsig | in | source resistance | ohm |
gm | out | transconductance | S |
r_pi | out | r_pi | ohm |
Av | out | voltage gain base to output | , |
Rin | out | input resistance (including RB) | ohm |
Rout | out | output resistance (RC) | ohm |
Gv | out | overall gain from the source voltage | , |
Applies when: r_o neglected; coupling and bypass capacitors short at signal frequency.
$ electronics-engineering solve elx_common_emitter_amplifier "IC=1 mA" beta=100 "VT=25 mV" "RC=5000 ohm" "RL=10000 ohm" "RE1=0 ohm" "RB=20000 ohm" "Rsig=1000 ohm"
gm = 0.04 S
r_pi = 2500 ohm
Av = -133.3333333
Rin = 2222.222222 ohm
Rout = 5000 ohm
Gv = -91.95402299
by: Common-emitter amplifier: gain, input and output resistance (Av = -beta (RC || RL)/(r_pi + (beta + 1) RE1); Rin = RB || (r_pi + (beta + 1) RE1); Gv = Av Rin/(Rin + Rsig))
IC = 0.001 A
beta = 100
VT = 0.025 V
RC = 5000 ohm
RL = 10000 ohm
RE1 = 0 ohm
RB = 20000 ohm
Rsig = 1000 ohm
assumes: r_o neglected; coupling and bypass capacitors short at signal frequency
In the worked example, IC = 1 mA, beta = 100, VT = 25 mV, RC = 5000 ohm, RL = 10000 ohm, RE1 = 0 ohm, RB = 20000 ohm, Rsig = 1000 ohm go through the equation above and give gm = 0.04 S, r_pi = 2500 ohm, Av = -133.3333333, Rin = 2222.222222 ohm. It applies only when r_o neglected; coupling and bypass capacitors short at signal frequency: outside that it says what is wrong instead of returning a number.
elx_miller_high_cutoffThe Miller capacitance, the upper -3 dB frequency of a common-emitter (or common-source) stage by the Miller approximation, and the open-circuit time-constant estimate that also counts the output side of Cmu.
| symbol | meaning | SI unit | |
|---|---|---|---|
gm | in | transconductance | S |
r_pi | in | r_pi (use a very large value for a MOSFET) | ohm |
Cpi | in | input capacitance Cpi (Cgs) | F |
Cmu | in | feedback capacitance Cmu (Cgd) | F |
RLp | in | total load at the collector (RC || RL || r_o) | ohm |
Rsigp | in | source resistance seen at the base (Rsig || RB) | ohm |
A_mid | out | gain across Cmu, -gm RL' | , |
C_M | out | Miller capacitance | F |
R_pi_eq | out | resistance seen by Cpi (r_pi || Rsig') | ohm |
f_H_miller | out | upper cutoff, Miller approximation | Hz |
tau_oc | out | sum of open-circuit time constants | s |
f_H_octc | out | upper cutoff, open-circuit time constants | Hz |
Applies when: mid-band gain unchanged by the capacitors; dominant-pole estimate.
$ electronics-engineering solve elx_miller_high_cutoff "gm=40 mS" "r_pi=2500 ohm" "Cpi=10 pF" "Cmu=2 pF" "RLp=2500 ohm" "Rsigp=1000 ohm"
A_mid = -100
C_M = 2.02e-10 F
R_pi_eq = 714.2857143 ohm
f_H_miller = 1051023.209 Hz
tau_oc = 1.564285714e-07 s
f_H_octc = 1017428.86 Hz
by: Common-emitter high-frequency cutoff: Miller effect and open-circuit time constants (C_M = Cmu (1 + gm RL'); f_H = 1/(2 pi (r_pi || Rsig')(Cpi + C_M)); tau = Cpi R' + Cmu (R' + RL' + gm R' RL'))
gm = 0.04 S
r_pi = 2500 ohm
Cpi = 1e-11 F
Cmu = 2e-12 F
RLp = 2500 ohm
Rsigp = 1000 ohm
assumes: mid-band gain unchanged by the capacitors; dominant-pole estimate
What the worked example means: This calculation determines the high-frequency response of a common-emitter amplifier stage. It first computes the mid-band gain -100 and the Miller capacitance 2.02e-10 F, which represents the feedback capacitor multiplied by one plus the magnitude of the gain. Using these values, the upper three-decibel cutoff frequency via the Miller approximation is found to be 1.05102e+06 Hz. Additionally, the open-circuit time constant method provides a more comprehensive estimate of 1.56429e-07 s seconds, resulting in a cutoff frequency of 1.01743e+06 Hz. This approach helps predict bandwidth limitations caused by internal transistor capacitances.
elx_low_frequency_cutoffThe resistance seen by each coupling and bypass capacitor of a common-emitter amplifier and the lower -3 dB frequency estimated as the sum of the short-circuit pole frequencies (r_o neglected).
| symbol | meaning | SI unit | |
|---|---|---|---|
Rsig | in | source resistance | ohm |
RB | in | bias resistance at the base (R1 || R2) | ohm |
r_pi | in | r_pi | ohm |
beta | in | current gain | , |
RE | in | emitter resistor (bypassed by CE) | ohm |
RC | in | collector resistor | ohm |
RL | in | load resistor | ohm |
C1 | in | input coupling capacitor | F |
C2 | in | output coupling capacitor | F |
CE | in | emitter bypass capacitor | F |
R_C1 | out | resistance seen by C1 | ohm |
R_CE | out | resistance seen by CE | ohm |
R_C2 | out | resistance seen by C2 | ohm |
f_C1 | out | pole of C1 | Hz |
f_CE | out | pole of CE | Hz |
f_C2 | out | pole of C2 | Hz |
f_L | out | estimated lower cutoff | Hz |
Applies when: short-circuit time-constant estimate; r_o neglected.
$ electronics-engineering solve elx_low_frequency_cutoff "Rsig=1000 ohm" "RB=20000 ohm" "r_pi=2500 ohm" beta=100 "RE=1000 ohm" "RC=5000 ohm" "RL=10000 ohm" "C1=10 uF" "C2=10 uF" "CE=100 uF"
R_C1 = 3222.222222 ohm
R_CE = 33.05219968 ohm
R_C2 = 15000 ohm
f_C1 = 4.939291337 Hz
f_CE = 48.15260244 Hz
f_C2 = 1.061032954 Hz
f_L = 54.15292673 Hz
by: Common-emitter low-frequency cutoff by short-circuit time constants (R_C1 = Rsig + RB || r_pi; R_CE = RE || (r_pi + Rsig || RB)/(beta + 1); R_C2 = RC + RL; f_L = sum 1/(2 pi R C))
Rsig = 1000 ohm
RB = 20000 ohm
r_pi = 2500 ohm
beta = 100
RE = 1000 ohm
RC = 5000 ohm
RL = 10000 ohm
C1 = 1e-05 F
C2 = 1e-05 F
CE = 0.0001 F
assumes: short-circuit time-constant estimate; r_o neglected
What the worked example means: This calculation determines the low-frequency response of a common-emitter amplifier using the short-circuit time constant method. The resistance seen by the input coupling capacitor is 3222.22 ohm, while the emitter bypass capacitor sees 33.0522 ohm and the output coupling capacitor sees 15000 ohm. These resistances, combined with their respective capacitance values, yield individual pole frequencies of 4.93929 Hz, 48.1526 Hz, and 1.06103 Hz. Summing these poles provides an approximation for the overall lower cutoff frequency of 54.1529 Hz, which indicates where the gain drops to half power.
elx_wilson_current_mirrorThe output current of a three-transistor Wilson current mirror and its small base-current error, 2/(beta^2 + 2 beta + 2).
| symbol | meaning | SI unit | |
|---|---|---|---|
Iref | in | reference current | A |
beta | in | current gain of each matched transistor | , |
Iout | out | output current | A |
ratio | out | Iout/Iref | , |
error | out | relative error 1 - Iout/Iref | , |
Applies when: matched transistors, Early effect neglected.
$ electronics-engineering solve elx_wilson_current_mirror "Iref=1 mA" beta=100
Iout = 0.00099980396 A
ratio = 0.99980396
error = 0.0001960399922
by: Wilson current mirror output current (Iout = Iref (1 - 2/(beta^2 + 2 beta + 2)))
Iref = 0.001 A
beta = 100
assumes: matched transistors, Early effect neglected
What the worked example means: This calculation determines the output current and transfer ratio of a three-transistor Wilson current mirror. Given a reference current of 1 mA and a transistor beta of 100, the model computes the output current as 0.000999804 A. The resulting transfer ratio is 0.999804, indicating that the circuit exhibits a relative error of 0.00019604 due to base current losses. This error term quantifies the deviation from ideal unity gain, showing how closely the output mirrors the input.
elx_cmos_propagation_delayThe high-to-low and low-to-high propagation delays (50 % points) and their average for a CMOS gate modelled as switched equivalent resistances driving a load capacitance.
| symbol | meaning | SI unit | |
|---|---|---|---|
Rn | in | equivalent on-resistance of the pull-down network | ohm |
Rp | in | equivalent on-resistance of the pull-up network | ohm |
CL | in | load capacitance | F |
tpHL | out | high-to-low delay | s |
tpLH | out | low-to-high delay | s |
tp | out | average propagation delay | s |
Applies when: step input, RC switch model.
$ electronics-engineering solve elx_cmos_propagation_delay "Rn=10000 ohm" "Rp=20000 ohm" "CL=100 fF"
tpHL = 6.931471806e-10 s
tpLH = 1.386294361e-09 s
tp = 1.039720771e-09 s
by: CMOS gate propagation delay (switch-resistor model) (tpHL = ln 2 Rn CL; tpLH = ln 2 Rp CL; tp = (tpHL + tpLH)/2)
Rn = 10000 ohm
Rp = 20000 ohm
CL = 1e-13 F
assumes: step input, RC switch model
What the worked example means: This calculation determines the propagation delays for a CMOS gate using a switch-resistor model. It computes the time required for the output to transition from high to low, denoted as 6.93147e-10 s, and from low to high, denoted as 1.38629e-09 s. These values are derived from the equivalent on-resistances of the pull-down network 10000 ohm and pull-up network 20000 ohm, combined with the load capacitance 100 fF. The average propagation delay 1.03972e-09 s represents the typical switching speed of the gate under these conditions.
elx_cmos_switching_thresholdThe switching threshold of a CMOS inverter (input = output, both transistors saturated) from the supply, the two threshold voltages and the two transconductance parameters.
| symbol | meaning | SI unit | |
|---|---|---|---|
VDD | in | supply voltage | V |
Vtn | in | NMOS threshold | V |
Vtp | in | magnitude of the PMOS threshold | V |
kn | in | NMOS mu_n Cox W/L | A/V^2 |
kp | in | PMOS mu_p Cox W/L | A/V^2 |
r | out | sqrt(kp/kn) | , |
VM | out | switching threshold | V |
Applies when: Vtn + |Vtp| < VDD; lambda neglected.
$ electronics-engineering solve elx_cmos_switching_threshold "VDD=2.5 V" "Vtn=0.4 V" "Vtp=0.4 V" "kn=0.1 mA/V^2" "kp=0.1 mA/V^2"
r = 1
VM = 1.25 V
by: CMOS inverter switching threshold VM (VM = (Vtn + r (VDD - |Vtp|))/(1 + r), r = sqrt(kp/kn))
VDD = 2.5 V
Vtn = 0.4 V
Vtp = 0.4 V
kn = 0.0001 A/V^2
kp = 0.0001 A/V^2
assumes: Vtn + |Vtp| < VDD; lambda neglected
What the worked example means: This calculation determines the CMOS inverter switching threshold, denoted as VM. The result of 1.25 V volts represents the input voltage level at which the output equals the input, assuming both transistors operate in saturation. This value is derived from the supply voltage 2.5 V, the NMOS threshold 0.4 V, the PMOS threshold magnitude 0.4 V, and the ratio of their conduction strengths defined by r = 1. A balanced inverter typically aims for a threshold near half the supply voltage to maximize noise margins.
elx_adc_codeThe output code (decimal and binary) of an ideal unipolar truncating n-bit ADC for an input voltage, the LSB size, the voltage the code represents and the quantisation error.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | analog input | V |
Vref | in | reference (full-scale) voltage | V |
n | in | resolution in bits | , |
code | out | output code (decimal) | , |
bits | out | output code in binary | , |
LSB | out | LSB = Vref/2^n | V |
V_code | out | voltage of the code | V |
error | out | quantisation error Vin - code LSB | V |
Applies when: 0 <= Vin <= Vref; 1 <= n <= 16.
$ electronics-engineering solve elx_adc_code "Vin=3.2 V" "Vref=5 V" n=8
code = 163
bits = 10100011
LSB = 0.01953125 V
V_code = 3.18359375 V
error = 0.01640625 V
by: ADC output code, LSB and quantisation error (code = floor(Vin 2^n/Vref), at most 2^n - 1; LSB = Vref/2^n)
Vin = 3.2 V
Vref = 5 V
assumes: 0 <= Vin <= Vref; 1 <= n <= 16
What the worked example means: This calculation determines the digital output of an ideal n-bit analog-to-digital converter. The output code, shown here as 163, is derived by truncating the scaled input voltage. Each step in this quantization process corresponds to the least significant bit value, calculated as 0.0195312 V. Consequently, the specific binary representation 10100011 indicates that the converter maps the input range into discrete levels, where the nominal voltage associated with this code is 3.18359 V. The difference between the actual input and this nominal value constitutes the quantization error.
elx_adc_quantization_snrThe signal-to-quantisation-noise ratio of an ideal n-bit converter for a sine input (6.02 n + 1.76 dB at full scale), with an oversampling ratio and a reduced amplitude, and the in-band noise in LSB.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | resolution in bits | , |
OSR | in | oversampling ratio (default 1) (optional) | , |
A_frac | in | sine amplitude as a fraction of full scale (default 1) (optional) | , |
SNR_dB | out | signal-to-quantisation-noise ratio, dB | , |
noise_rms_lsb | out | in-band noise rms in LSB | , |
SNR_full_scale_dB | out | full-scale SNR without oversampling, dB | , |
Applies when: uniform quantisation noise, white over Nyquist; OSR >= 1.
$ electronics-engineering solve elx_adc_quantization_snr n=12
SNR_dB = 74.00811155
noise_rms_lsb = 0.2886751346
SNR_full_scale_dB = 74.00811155
by: ADC quantisation SNR with oversampling (SNR = 20 log10(A 2^n sqrt(1.5)) + 10 log10(OSR) = 6.02 n + 1.76 + 20 log10 A + 10 log10 OSR)
assumes: uniform quantisation noise, white over Nyquist; OSR >= 1
What the worked example means: The signal-to-quantisation-noise ratio is 74.0081 dB, with an in-band noise level of 0.288675 LSB.
elx_dac_binary_weightedThe output voltage and summing current of a binary-weighted resistor DAC with an inverting op-amp (MSB resistor R, each lower bit doubling it) and the largest resistor needed.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | resolution in bits | , |
code | in | input code (decimal) | , |
Vref | in | reference voltage | V |
R | in | MSB resistor | ohm |
Rf | in | feedback resistor | ohm |
Vout | out | output voltage | V |
I_total | out | total current into the summing node | A |
R_LSB | out | LSB resistor R 2^(n-1) | ohm |
Applies when: ideal switches and op-amp.
$ electronics-engineering solve elx_dac_binary_weighted n=4 code=10 "Vref=5 V" "R=10000 ohm" "Rf=5000 ohm"
Vout = -3.125 V
I_total = 0.000625 A
R_LSB = 80000 ohm
by: Binary-weighted resistor DAC (I = Vref D/(R 2^(n-1)); Vout = -Rf I)
Vref = 5 V
R = 10000 ohm
Rf = 5000 ohm
assumes: ideal switches and op-amp
What the worked example means: This calculation determines the analog output voltage for a binary-weighted resistor digital-to-analog converter. By applying the input code to switches connected to resistors that double in value for each less significant bit, the circuit generates a proportional current at the summing node. The operational amplifier converts this current into a voltage using the feedback resistor. The resulting output voltage is -3.125 V, which reflects the magnitude of the digital input relative to the reference voltage 5 V. The total current flowing into the virtual ground is 0.000625 A, and the largest resistor required for the least significant bit is 80000 ohm.
elx_dac_outputThe output voltage of an ideal n-bit unipolar DAC for a code, Vout = Vref D/2^n, its step size and its full-scale output.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | resolution in bits | , |
code | in | input code (decimal) | , |
Vref | in | reference voltage | V |
Vout | out | output voltage | V |
LSB | out | step size Vref/2^n | V |
V_full_scale | out | output for the all-ones code | V |
Applies when: 0 <= code <= 2^n - 1.
$ electronics-engineering solve elx_dac_output n=8 code=200 "Vref=5 V"
Vout = 3.90625 V
LSB = 0.01953125 V
V_full_scale = 4.98046875 V
by: DAC output voltage (R-2R or any binary DAC) (Vout = Vref D/2^n; full scale Vref (2^n - 1)/2^n)
Vref = 5 V
assumes: 0 <= code <= 2^n - 1
What the worked example means: This calculation determines the analog output voltage produced by an ideal n-bit digital-to-analog converter. Using the input code 200 and reference voltage 5 V, the resulting output is 3.90625 V. The resolution defines the smallest change in voltage, known as the least significant bit or LSB, which equals 0.0195312 V. The maximum possible output for this architecture, corresponding to the all-ones binary code, is 4.98047 V. These values characterize the performance limits and granularity of the conversion process.
elx_dual_slope_adcThe fixed integration time, the de-integration time and count, and the peak integrator voltage of a dual-slope ADC.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | input voltage (magnitude) | V |
Vref | in | reference voltage (magnitude) | V |
N1 | in | fixed count of the integration phase | , |
fclk | in | clock frequency | Hz |
R | in | integrator resistor | ohm |
C | in | integrator capacitor | F |
T1 | out | integration time N1/fclk | s |
T2 | out | de-integration time | s |
N2 | out | count of the de-integration phase (unrounded) | , |
V_peak | out | peak integrator output | V |
Applies when: 0 < Vin <= Vref.
$ electronics-engineering solve elx_dual_slope_adc "Vin=0.5 V" "Vref=1 V" N1=1000 "fclk=100000 Hz" "R=100000 ohm" "C=0.1 uF"
T1 = 0.01 s
T2 = 0.005 s
N2 = 500
V_peak = 0.5 V
by: Dual-slope integrating ADC (T1 = N1/fclk; T2 = T1 Vin/Vref; N2 = N1 Vin/Vref; V_peak = Vin T1/(R C))
Vin = 0.5 V
Vref = 1 V
fclk = 100000 Hz
R = 100000 ohm
C = 1e-07 F
assumes: 0 < Vin <= Vref
What the worked example means: This calculation determines the timing and voltage characteristics of a dual-slope analog-to-digital converter. The fixed integration phase lasts for 0.01 s, which depends on the clock frequency and the initial count. During this phase, the integrator output rises to a peak value of 0.5 V. In the subsequent de-integration phase, the input voltage ratio dictates that the counter reaches 500 before the integrator returns to zero, establishing the digital result.
elx_adc_enobThe effective number of bits of a converter from its measured SINAD (IEEE 1241: ENOB = (SINAD - 1.76)/6.02) and the bits lost against its nominal resolution.
| symbol | meaning | SI unit | |
|---|---|---|---|
SINAD | in | signal to noise and distortion ratio in dB | , |
n | in | nominal resolution in bits | , |
ENOB | out | effective number of bits | , |
bits_lost | out | n - ENOB | , |
Applies when: full-scale sine test.
$ electronics-engineering solve elx_adc_enob SINAD=74 n=14
ENOB = 12
bits_lost = 2
by: Effective number of bits (ENOB) from SINAD (ENOB = (SINAD - 1.76)/6.02)
SINAD = 74
assumes: full-scale sine test
What the worked example means: This calculation determines the actual performance of an analog-to-digital converter using its measured signal to noise and distortion ratio. By applying the standard formula, the effective number of bits is 12. This value represents the true dynamic range achieved during a full-scale sine wave test. When compared to the nominal resolution of 14 bits, the difference reveals that 2 bits of theoretical precision are compromised by noise and non-linear distortions in the system.
elx_sample_hold_droopThe droop rate I/C of a sample-and-hold capacitor discharged by a leakage current, the droop over a hold time (in volts and LSB) and the longest hold that keeps the droop within half an LSB of an n-bit converter.
| symbol | meaning | SI unit | |
|---|---|---|---|
I_leak | in | leakage (bias) current | A |
C | in | hold capacitor | F |
t_hold | in | hold time | s |
Vref | in | converter full scale | V |
n | in | converter resolution in bits | , |
droop_rate | out | droop rate I/C | V/s |
droop | out | droop over the hold time | V |
droop_lsb | out | droop in LSB | , |
t_max_half_lsb | out | longest hold for half an LSB | s |
Applies when: constant leakage current.
$ electronics-engineering solve elx_sample_hold_droop "I_leak=1 nA" "C=1 nF" "t_hold=10 us" "Vref=5 V" n=12
droop_rate = 1 V/s
droop = 1e-05 V
droop_lsb = 0.008192
t_max_half_lsb = 0.0006103515625 s
by: Sample-and-hold droop (dV/dt = I/C; dV = I t/C; t_max = (Vref/2^(n+1)) C/I)
I_leak = 1e-09 A
C = 1e-09 F
t_hold = 1e-05 s
Vref = 5 V
assumes: constant leakage current
What the worked example means: This calculation determines how quickly the voltage on the sample-and-hold capacitor falls due to leakage current. The droop rate, given as 1 V/s, is derived by dividing the leakage current by the capacitance. Over the specified hold time, this results in a total voltage loss of 1e-05 V. This value represents the error introduced into the signal before it is converted, which can be compared against the least significant bit size of the converter to assess accuracy.
elx_aperture_jitter_snrThe SNR limit -20 log10(2 pi f tj) set by rms sampling-clock jitter for a full-scale sine, combined with the quantisation SNR of an n-bit converter into a total SNR and effective bits.
| symbol | meaning | SI unit | |
|---|---|---|---|
f | in | input frequency | Hz |
tj | in | rms clock jitter | s |
n | in | converter resolution in bits | , |
SNR_jitter_dB | out | jitter-limited SNR, dB | , |
SNR_quant_dB | out | quantisation SNR, dB | , |
SNR_total_dB | out | combined SNR, dB | , |
ENOB_total | out | effective bits of the combination | , |
Applies when: full-scale sine; jitter and quantisation noise uncorrelated.
$ electronics-engineering solve elx_aperture_jitter_snr "f=100000000 Hz" "tj=1 ps" n=14
SNR_jitter_dB = 64.03640263
SNR_quant_dB = 86.04931138
SNR_total_dB = 64.00916741
ENOB_total = 10.34039326
by: SNR limit from sampling-clock (aperture) jitter (SNR_j = -20 log10(2 pi f tj); SNR_q = 6.02 n + 1.76; noise powers add)
f = 100000000 Hz
tj = 1e-12 s
assumes: full-scale sine; jitter and quantisation noise uncorrelated
What the worked example means: This calculation determines the system performance by combining the noise limits imposed by sampling clock jitter and quantization. The jitter-limited signal-to-noise ratio is computed as 64.0364 dB based on the input frequency and rms clock jitter. Simultaneously, the quantization signal-to-noise ratio is established at 86.0493 dB for the converter resolution. Since these noise sources are uncorrelated, their powers add to produce a combined signal-to-noise ratio of 64.0092 dB, which translates to an effective number of bits of 10.3404.
elx_sar_conversionThe bit-by-bit trial voltages, the final code (decimal and binary) and the DAC voltage of an ideal n-bit successive-approximation ADC converting an input.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | analog input | V |
Vref | in | reference voltage | V |
n | in | resolution in bits | , |
code | out | final code | , |
bits | out | final code in binary | , |
trials | out | trial DAC voltages, MSB first (V) | , |
V_dac | out | DAC voltage of the final code | V |
cycles | out | comparison cycles | , |
Applies when: 0 <= Vin < Vref.
$ electronics-engineering solve elx_sar_conversion "Vin=3.2 V" "Vref=5 V" n=4
code = 10
bits = 1010
trials = [2.5,3.75,3.125,3.4375]
V_dac = 3.125 V
cycles = 4
by: Successive-approximation (SAR) ADC conversion (for each bit from the MSB: set it, keep it if Vin >= DAC(trial); LSB = Vref/2^n)
Vin = 3.2 V
Vref = 5 V
assumes: 0 <= Vin < Vref
What the worked example means: This calculation determines the digital output of an ideal successive approximation register analog-to-digital converter. It processes the input voltage 3.2 V against the reference voltage 5 V over 4 resolution steps. The algorithm iteratively tests bit values, starting from the most significant bit, comparing the trial DAC voltage against the input. The final result is the digital code 10, represented in binary as 1010, along with the specific sequence of trial voltages [2.5, 3.75, 3.125, 3.4375] used during conversion. The settled DAC voltage corresponding to this code is 3.125 V, achieved after 4 comparison cycles.
elx_capacitor_filter_rippleThe peak-to-peak ripple, the DC output, the RMS ripple and the ripple factor of a rectifier with a smoothing capacitor and resistive load (small-ripple approximation).
| symbol | meaning | SI unit | |
|---|---|---|---|
Vp | in | peak rectified voltage (after the diode drops) | V |
f | in | line frequency | Hz |
RL | in | load resistance | ohm |
C | in | filter capacitance | F |
circuit | in | half-wave or full-wave rectification | , |
f_ripple | out | ripple frequency | Hz |
Vr | out | peak-to-peak ripple | V |
Vdc | out | DC output voltage | V |
Vr_rms | out | RMS ripple | V |
ripple_factor | out | ripple factor | , |
Applies when: Vr < Vp (small ripple).
$ electronics-engineering solve elx_capacitor_filter_ripple "Vp=16.3 V" "f=60 Hz" "RL=500 ohm" "C=1000 uF" circuit=full-wave
f_ripple = 120 Hz
Vr = 0.2716666667 V
Vdc = 16.16416667 V
Vr_rms = 0.07842341156 V
ripple_factor = 0.004851682934
by: Capacitor-input filter: ripple voltage and DC output (Vr = Vp/(f_r RL C); Vdc = Vp - Vr/2; Vr,rms = Vr/(2 sqrt 3))
Vp = 16.3 V
f = 60 Hz
RL = 500 ohm
C = 0.001 F
circuit = full-wave
assumes: Vr < Vp (small ripple)
What the worked example means: This calculation determines the performance of a capacitor-input filter in a rectifier circuit. It computes the peak-to-peak ripple voltage, which is found to be 0.271667 V, and the resulting average direct current output voltage, calculated as 16.1642 V. These values indicate how effectively the smoothing capacitor reduces the pulsating nature of the rectified signal, with the ripple frequency being 120 Hz. The root mean square ripple is 0.0784234 V, providing a measure of the AC component's power relative to the DC level.
elx_shockley_diode_currentThe current of a pn-junction diode at a terminal voltage from its saturation current, ideality factor and temperature (forward or reverse).
| symbol | meaning | SI unit | |
|---|---|---|---|
Is | in | saturation current | A |
n | in | ideality (emission) factor, 1 to 2 | , |
VD | in | diode voltage (negative for reverse bias) | V |
T | in | junction temperature | K |
ID | out | diode current | A |
VT | out | thermal voltage | V |
Applies when: Is, n, T > 0.
$ electronics-engineering solve elx_shockley_diode_current "Is=1e-14 A" n=1 "VD=0.65 V" "T=300 K"
ID = 0.0008308438348 A
VT = 0.02585199979 V
by: Diode current from the Shockley equation (ID = Is (exp(VD/(n VT)) - 1), VT = kT/q)
Is = 1e-14 A
n = 1
VD = 0.65 V
T = 300 K
assumes: Is, n, T > 0
What the worked example means: This calculation determines the current flowing through a pn-junction diode using the Shockley equation. It takes the saturation current, ideality factor, applied voltage, and temperature to compute the resulting diode current and the intermediate thermal voltage. For the given inputs, the calculated diode current is 0.000830844 A and the thermal voltage is 0.025852 V, representing the expected behavior of the junction under these specific electrical and thermal conditions.
elx_diode_voltageThe voltage across a pn-junction diode carrying a given current (the inverse of the Shockley equation).
| symbol | meaning | SI unit | |
|---|---|---|---|
ID | in | diode current | A |
Is | in | saturation current | A |
n | in | ideality factor | , |
T | in | junction temperature | K |
VD | out | diode voltage | V |
VT | out | thermal voltage | V |
Applies when: ID > -Is; Is, n, T > 0.
$ electronics-engineering solve elx_diode_voltage "ID=0.001 A" "Is=1e-14 A" n=1 "T=300 K"
VD = 0.6547907227 V
VT = 0.02585199979 V
by: Diode voltage for a given current (VD = n VT ln(1 + ID/Is))
ID = 0.001 A
Is = 1e-14 A
n = 1
T = 300 K
assumes: ID > -Is; Is, n, T > 0
What the worked example means: This calculation determines the voltage drop across a pn-junction diode, resulting in 0.654791 V, based on an input current of 0.001 A, a saturation current of 1e-14 A, an ideality factor of 1, and a junction temperature of 300 K Kelvin. The thermal voltage used in this computation is 0.025852 V. This value represents the specific operating point where the diode conducts the given current under these physical conditions.
elx_led_series_resistorThe current-limiting resistor for one LED or a string of LEDs in series at a chosen forward current, and the power in the resistor and in the LEDs.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vs | in | supply voltage | V |
Vf | in | forward voltage of one LED | V |
If | in | LED forward current | A |
n | in | number of LEDs in series (default 1) (optional) | , |
R | out | series resistance | ohm |
P_R | out | power in the resistor | W |
P_LED | out | power in the LEDs | W |
Applies when: Vs > n Vf; If > 0.
$ electronics-engineering solve elx_led_series_resistor "Vs=5 V" "Vf=2 V" "If=20 mA"
R = 150 ohm
P_R = 0.06 W
P_LED = 0.04 W
by: LED series (current-limiting) resistor (R = (Vs - n Vf)/If; P_R = If^2 R)
Vs = 5 V
Vf = 2 V
If = 0.02 A
assumes: Vs > n Vf; If > 0
What the worked example means: The required series resistance is 150 ohm and the power dissipated in that resistor is 0.06 W.
elx_diode_operating_pointThe current and voltage of a forward-biased diode fed from a DC source through a resistor, solving the Shockley equation and Kirchhoff's voltage law together (no constant-drop approximation).
| symbol | meaning | SI unit | |
|---|---|---|---|
VS | in | source voltage | V |
R | in | series resistance | ohm |
Is | in | saturation current | A |
n | in | ideality factor | , |
T | in | junction temperature | K |
ID | out | diode current | A |
VD | out | diode voltage | V |
P_D | out | power in the diode | W |
Applies when: VS > 0 (forward bias); R, Is, n, T > 0.
$ electronics-engineering solve elx_diode_operating_point "VS=5 V" "R=1000 ohm" "Is=1e-14 A" n=1 "T=300 K"
ID = 0.004307456373 A
VD = 0.6925436275 V
P_D = 0.002983101461 W
by: Operating point of a diode in series with a resistor (exact) (solve VS = ID R + n VT ln(1 + ID/Is) (bisection on VD))
VS = 5 V
R = 1000 ohm
Is = 1e-14 A
n = 1
T = 300 K
assumes: VS > 0 (forward bias); R, Is, n, T > 0
What the worked example means: This calculation determines the exact operating point of a forward-biased diode connected in series with a resistor to a DC source. By solving Kirchhoff's voltage law alongside the Shockley diode equation, for a source voltage of 5 V, resistance of 1000 ohm, saturation current of 1e-14 A, ideality factor of 1, and temperature of 300 K, the resulting diode current is 0.00430746 A and the diode voltage is 0.692544 V. This method avoids the common constant-voltage-drop approximation, providing a more precise analysis of the circuit behavior.
elx_rectifier_averagesThe DC (average) and RMS output voltage, ripple factor, peak inverse voltage and conduction angle of an unfiltered half-wave, bridge or centre-tapped full-wave rectifier with a constant diode drop (0 V for ideal diodes).
| symbol | meaning | SI unit | |
|---|---|---|---|
Vm | in | peak AC voltage of the (secondary) winding | V |
circuit | in | half-wave, bridge or center-tapped (Vm per half of the winding) | , |
Von | in | forward drop of one diode (0 V for ideal diodes) | V |
Vp_out | out | peak output voltage | V |
Vdc | out | average output voltage | V |
Vrms | out | RMS output voltage | V |
ripple_factor | out | ripple factor (AC rms / DC) | , |
PIV | out | peak inverse voltage of a diode | V |
conduction_deg | out | conduction angle per half cycle, degrees | , |
Applies when: diode drops below Vm; resistive load, no filter.
$ electronics-engineering solve elx_rectifier_averages "Vm=10 V" circuit=half-wave "Von=0 V"
Vp_out = 10 V
Vdc = 3.183098862 V
Vrms = 5 V
ripple_factor = 1.211363323
PIV = 10 V
conduction_deg = 180
by: Rectifier output: average, RMS, ripple factor and PIV (output max(0, Vm|sin| - V) with V = Von (2 Von for a bridge); averages integrated exactly; PIV Vm, Vm - Von, 2Vm - Von)
Vm = 10 V
Von = 0 V
circuit = half-wave
assumes: diode drops below Vm; resistive load, no filter
What the worked example means: This calculation determines the average and RMS output voltages, ripple factor, and peak inverse voltage for a rectifier circuit using inputs such as the peak AC voltage 10 V, the diode forward drop 0 V, and the specific topology half-wave. The resulting average DC voltage is 3.1831 V, while the RMS value is 5 V, indicating the effective heating potential of the output. The peak inverse voltage across the non-conducting diodes is 10 V, which is critical for selecting components that can withstand reverse bias without breaking down.
elx_zener_series_resistor_designThe largest series resistance that keeps a Zener regulator in regulation at the lowest input and largest load, and the resulting worst-case Zener current and power (highest input, smallest load) and resistor power.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin_min | in | lowest input voltage | V |
Vin_max | in | highest input voltage | V |
Vz | in | Zener voltage | V |
IL_min | in | smallest load current | A |
IL_max | in | largest load current | A |
Iz_min | in | minimum Zener current for regulation | A |
Rs_max | out | largest series resistance | ohm |
Iz_max | out | worst-case Zener current | A |
Pz_max | out | worst-case Zener power | W |
PRs_max | out | worst-case resistor power | W |
Applies when: Vin_min > Vz; Vin_max >= Vin_min, IL_max >= IL_min >= 0.
$ electronics-engineering solve elx_zener_series_resistor_design "Vin_min=12 V" "Vin_max=15 V" "Vz=9.1 V" "IL_min=0 mA" "IL_max=50 mA" "Iz_min=5 mA"
Rs_max = 52.72727273 ohm
Iz_max = 0.1118965517 A
Pz_max = 1.018258621 W
PRs_max = 0.6601896552 W
by: Zener regulator design: series resistor and Zener rating (Rs = (Vin,min - Vz)/(Iz,min + IL,max); Iz,max = (Vin,max - Vz)/Rs - IL,min; Pz = Vz Iz,max)
Vin_min = 12 V
Vin_max = 15 V
Vz = 9.1 V
IL_min = 0 A
IL_max = 0.05 A
Iz_min = 0.005 A
assumes: Vin_min > Vz; Vin_max >= Vin_min, IL_max >= IL_min >= 0
What the worked example means: This calculation determines the maximum allowable value for the series resistor, which is 52.7273 ohm, to ensure the Zener diode remains in regulation under the most demanding conditions. Using this resistance, the worst-case Zener current reaches 0.111897 A, leading to a peak power dissipation of 1.01826 W in the diode and 0.66019 W in the resistor. These values are derived from the lowest input voltage, highest load current, and minimum required Zener current, ensuring the circuit functions safely across its operating range.
elx_zener_regulatorThe output voltage and the source, load and Zener currents and the Zener power of a Zener shunt regulator (series resistor, Zener across the load), with an optional Zener resistance.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | input voltage | V |
Rs | in | series resistance | ohm |
Vz | in | Zener (breakdown) voltage | V |
RL | in | load resistance | ohm |
rz | in | Zener resistance (0 for an ideal Zener) (optional) | ohm |
Vout | out | load voltage | V |
I_s | out | current in the series resistor | A |
I_L | out | load current | A |
I_z | out | Zener current | A |
P_z | out | Zener power | W |
Applies when: the Zener must be in breakdown: Vin RL/(Rs + RL) > Vz.
$ electronics-engineering solve elx_zener_regulator "Vin=20 V" "Rs=220 ohm" "Vz=10 V" "RL=1000 ohm"
Vout = 10 V
I_s = 0.04545454545 A
I_L = 0.01 A
I_z = 0.03545454545 A
P_z = 0.3545454545 W
by: Zener shunt regulator: load voltage and currents (ideal: Vout = Vz, Iz = (Vin - Vz)/Rs - Vz/RL; with rz: node equation at the load)
Vin = 20 V
Rs = 220 ohm
Vz = 10 V
RL = 1000 ohm
assumes: the Zener must be in breakdown: Vin RL/(Rs + RL) > Vz
What the worked example means: This calculation determines the operating point of a Zener shunt regulator using an input voltage of 20 V, series resistance of 220 ohm, Zener voltage of 10 V, and load resistance of 1000 ohm. The resulting load voltage is 10 V, which is maintained by the Zener diode if it remains in breakdown. The total current drawn from the source through the series resistor is 0.0454545 A, split between the load current of 0.01 A and the Zener current of 0.0354545 A. The Zener dissipates 0.354545 W watts, a critical value for thermal management.
elx_common_source_amplifierThe voltage gain, input and output resistances and overall gain of a common-source stage, exact with the transistor's output resistance ro and an optional unbypassed source resistor.
| symbol | meaning | SI unit | |
|---|---|---|---|
gm | in | transconductance | S |
ro | in | transistor output resistance | ohm |
RD | in | drain resistor | ohm |
RL | in | load resistor | ohm |
RS | in | unbypassed source resistance (0 if bypassed) | ohm |
RG | in | gate bias resistance | ohm |
Rsig | in | source resistance | ohm |
Av | out | voltage gain gate to output | , |
Rin | out | input resistance | ohm |
Rout | out | output resistance (excluding RL) | ohm |
Gv | out | overall gain from the source | , |
Applies when: gm, ro, RD, RL, RG, Rsig > 0; RS >= 0.
$ electronics-engineering solve elx_common_source_amplifier "gm=2 mS" "ro=100000 ohm" "RD=10000 ohm" "RL=10000 ohm" "RS=0 ohm" "RG=1000000 ohm" "Rsig=10000 ohm"
Av = -9.523809524
Rin = 1000000 ohm
Rout = 9090.909091 ohm
Gv = -9.42951438
by: Common-source amplifier with source degeneration and ro (Av = -gm ro RD'/(RD' + ro + RS (1 + gm ro)) with RD' = RD || RL; Rout = RD || (ro + RS(1 + gm ro)))
gm = 0.002 S
ro = 100000 ohm
RD = 10000 ohm
RL = 10000 ohm
RS = 0 ohm
RG = 1000000 ohm
Rsig = 10000 ohm
assumes: gm, ro, RD, RL, RG, Rsig > 0; RS >= 0
What the worked example means: This calculation determines the small-signal performance of a common-source amplifier stage that includes transistor output resistance and optional source degeneration. Using the transconductance, internal resistances, and external load values, the model computes the exact voltage gain from gate to drain as -9.52381, the input resistance seen at the gate as 1e+06 ohm, and the output resistance looking into the drain as 9090.91 ohm. The overall gain from the signal source is found to be -9.42951, reflecting the loading effects of the source and bias networks.
elx_mosfet_drain_currentThe operating region and drain current of an enhancement NMOS transistor by the square law: cutoff, triode or saturation with optional channel-length modulation (use magnitudes for PMOS).
| symbol | meaning | SI unit | |
|---|---|---|---|
kn | in | process transconductance times aspect ratio, mu Cox W/L | A/V^2 |
Vt | in | threshold voltage | V |
VGS | in | gate-source voltage | V |
VDS | in | drain-source voltage | V |
lam | in | channel-length modulation lambda (default 0) (optional) | 1/V |
region | out | cutoff, triode or saturation | , |
ID | out | drain current | A |
VOV | out | overdrive VGS - Vt | V |
VDS_sat | out | saturation voltage | V |
Applies when: kn, Vt > 0; VDS >= 0; long-channel square law.
$ electronics-engineering solve elx_mosfet_drain_current "kn=2 mA/V^2" "Vt=1 V" "VGS=3 V" "VDS=5 V"
region = saturation
ID = 0.004 A
VOV = 2 V
VDS_sat = 2 V
by: MOSFET drain current (cutoff, triode, saturation) (cutoff VOV <= 0; triode VDS < VOV: ID = kn (VOV VDS - VDS^2/2); saturation: ID = (kn/2) VOV^2 (1 + lambda VDS))
kn = 0.002 A/V^2
Vt = 1 V
VGS = 3 V
VDS = 5 V
assumes: kn, Vt > 0; VDS >= 0; long-channel square law
What the worked example means: This calculation determines the operating state and drain current for an enhancement mode NMOS transistor. By comparing the gate source voltage to the threshold voltage, the overdrive voltage is 2 V. The saturation boundary occurs at 2 V. Since the actual drain source voltage is 5 V, the device falls into the saturation mode. Consequently, the resulting drain current is calculated as 0.004 A, reflecting the square law relationship modified by channel length modulation if applicable.
elx_mosfet_gm_roThe overdrive voltage, gate-source voltage, transconductance gm = sqrt(2 kn ID), output resistance ro = 1/(lambda ID) and intrinsic gain of a MOSFET in saturation at a drain current.
| symbol | meaning | SI unit | |
|---|---|---|---|
kn | in | mu Cox W/L | A/V^2 |
ID | in | drain bias current | A |
lam | in | channel-length modulation lambda | 1/V |
Vt | in | threshold voltage | V |
VOV | out | overdrive voltage | V |
VGS | out | gate-source voltage | V |
gm | out | transconductance | S |
r_o | out | output resistance | ohm |
A0 | out | intrinsic gain gm r_o | , |
Applies when: saturation; ID taken without the (1 + lambda VDS) factor.
$ electronics-engineering solve elx_mosfet_gm_ro "kn=2 mA/V^2" "ID=1 mA" "lam=0.01 1/V" "Vt=0.7 V"
VOV = 1 V
VGS = 1.7 V
gm = 0.002 S
r_o = 100000 ohm
A0 = 200
by: MOSFET small-signal gm, ro and intrinsic gain (VOV = sqrt(2 ID/kn); gm = sqrt(2 kn ID) = 2 ID/VOV; ro = 1/(lambda ID))
kn = 0.002 A/V^2
ID = 0.001 A
lam = 0.01 1/V
Vt = 0.7 V
assumes: saturation; ID taken without the (1 + lambda VDS) factor
What the worked example means: This calculation determines the small-signal parameters of a MOSFET biased in saturation. Using the drain current 1 mA and process parameter kn, the overdrive voltage VOV is found to be 1 V, leading to a gate-source voltage VGS of 1.7 V. The transconductance gm, representing the change in drain current per unit change in gate voltage, computes to 0.002 S. Simultaneously, the output resistance ro, which models the effect of channel-length modulation via lambda, is calculated as 100000 ohm. The product of these two values yields the intrinsic gain A0 of 200, indicating the maximum voltage amplification capability of the transistor without external load effects.
elx_mosfet_body_effectThe threshold voltage of a MOSFET whose source is above its body, Vt = Vt0 + gamma (sqrt(2 phiF + VSB) - sqrt(2 phiF)).
| symbol | meaning | SI unit | |
|---|---|---|---|
Vt0 | in | zero-bias threshold voltage | V |
gamma | in | body-effect coefficient in V^0.5 | , |
phi2F | in | surface potential 2 phi_F (about 0.6 to 0.9 V) | V |
VSB | in | source-body voltage | V |
Vt | out | threshold voltage | V |
dVt | out | threshold increase | V |
Applies when: VSB >= 0; uniform substrate doping.
$ electronics-engineering solve elx_mosfet_body_effect "Vt0=0.7 V" gamma=0.4 "phi2F=0.7 V" "VSB=3 V"
Vt = 1.134751352 V
dVt = 0.4347513519 V
by: MOSFET threshold voltage with body effect (Vt = Vt0 + gamma (sqrt(2 phiF + VSB) - sqrt(2 phiF)))
Vt0 = 0.7 V
gamma = 0.4
phi2F = 0.7 V
VSB = 3 V
assumes: VSB >= 0; uniform substrate doping
In the worked example, Vt0 = 0.7 V, gamma = 0.4, phi2F = 0.7 V, VSB = 3 V go through the equation above and give Vt = 1.134751352 V, dVt = 0.4347513519 V. It applies only when VSB >= 0; uniform substrate doping: outside that it says what is wrong instead of returning a number.
elx_mosfet_divider_biasThe Q-point (gate voltage, VGS, drain current, node voltages and VDS) of an NMOS stage with a gate divider and a source resistor, solving the square law and the gate loop (the physical root), with a saturation check.
| symbol | meaning | SI unit | |
|---|---|---|---|
VDD | in | supply voltage | V |
R1 | in | upper gate resistor | ohm |
R2 | in | lower gate resistor | ohm |
RD | in | drain resistor | ohm |
RS | in | source resistor (0 allowed) | ohm |
kn | in | mu Cox W/L | A/V^2 |
Vt | in | threshold voltage | V |
VG | out | gate voltage | V |
VGS | out | gate-source voltage | V |
VOV | out | overdrive | V |
ID | out | drain current | A |
VS | out | source voltage | V |
VD | out | drain voltage | V |
VDS | out | drain-source voltage | V |
Applies when: VG > Vt; saturation: VDS >= VOV (otherwise refused); lambda neglected.
$ electronics-engineering solve elx_mosfet_divider_bias "VDD=15 V" "R1=1000000 ohm" "R2=500000 ohm" "RD=3300 ohm" "RS=1000 ohm" "kn=2 mA/V^2" "Vt=1.5 V"
VG = 5 V
VGS = 2.936491673 V
VOV = 1.436491673 V
ID = 0.002063508327 A
VS = 2.063508327 V
VD = 8.190422521 V
VDS = 6.126914194 V
by: MOSFET voltage-divider bias with source resistor: Q-point (VG = VDD R2/(R1 + R2); (kn RS/2) VOV^2 + VOV - (VG - Vt) = 0, positive root; ID = (kn/2) VOV^2)
VDD = 15 V
R1 = 1000000 ohm
R2 = 500000 ohm
RD = 3300 ohm
RS = 1000 ohm
kn = 0.002 A/V^2
Vt = 1.5 V
assumes: VG > Vt; saturation: VDS >= VOV (otherwise refused); lambda neglected
In the worked example, VDD = 15 V, R1 = 1000000 ohm, R2 = 500000 ohm, RD = 3300 ohm, RS = 1000 ohm, kn = 2 mA/V^2, Vt = 1.5 V go through the equation above and give VG = 5 V, VGS = 2.936491673 V, VOV = 1.436491673 V, ID = 0.002063508327 A. It applies only when VG > Vt; saturation: VDS >= VOV (otherwise refused); lambda neglected: outside that it says what is wrong instead of returning a number.
elx_source_followerThe voltage gain, input resistance, output resistance and overall gain of a MOSFET source follower, including ro.
| symbol | meaning | SI unit | |
|---|---|---|---|
gm | in | transconductance | S |
ro | in | transistor output resistance | ohm |
RS | in | source resistor | ohm |
RL | in | load resistor | ohm |
RG | in | gate bias resistance | ohm |
Rsig | in | source resistance | ohm |
Av | out | voltage gain gate to output | , |
Rin | out | input resistance | ohm |
Rout | out | output resistance | ohm |
Gv | out | overall gain | , |
Applies when: drain at signal ground.
$ electronics-engineering solve elx_source_follower "gm=2 mS" "ro=50000 ohm" "RS=2000 ohm" "RL=2000 ohm" "RG=1000000 ohm" "Rsig=10000 ohm"
Av = 0.6622516556
Rin = 1000000 ohm
Rout = 396.8253968 ohm
Gv = 0.6556947085
by: Source follower (common drain) (Av = gm R/(1 + gm R) with R = RS || RL || ro; Rout = RS || ro || 1/gm)
gm = 0.002 S
ro = 50000 ohm
RS = 2000 ohm
RL = 2000 ohm
RG = 1000000 ohm
Rsig = 10000 ohm
assumes: drain at signal ground
What the worked example means: This calculation determines the small-signal characteristics of a MOSFET configured as a source follower. Using the transconductance, output resistance, source resistor, and load resistor, this gives the effective parallel resistance seen at the source. The voltage gain is found to be 0.662252, which is always slightly less than one because the gain formula divides the product of transconductance and resistance by that product plus one. The input resistance is 1e+06 ohm, primarily set by the gate bias resistor since the gate draws no DC current. The output resistance is calculated as 396.825 ohm, representing the parallel combination of the source resistor, the transistor's internal output resistance, and the inverse of the transconductance. Finally, the overall gain from the signal source to the load is 0.655695, which accounts for the voltage division between the signal source resistance and the amplifier's input resistance.
elx_closed_loop_bandwidthThe closed-loop gain, the noise gain 1 + Rf/R1 and the -3 dB bandwidth GBW/(noise gain) of an inverting or non-inverting amplifier built with a single-pole op-amp.
| symbol | meaning | SI unit | |
|---|---|---|---|
GBW | in | gain-bandwidth product (unity-gain frequency) | Hz |
config | in | inverting or non-inverting amplifier | , |
Rf | in | feedback resistor | ohm |
R1 | in | input (or ground) resistor | ohm |
G0 | out | low-frequency closed-loop gain | , |
noise_gain | out | noise gain 1 + Rf/R1 | , |
f_3dB | out | closed-loop -3 dB bandwidth | Hz |
Applies when: single-pole op-amp with open-loop gain much larger than the closed-loop gain.
$ electronics-engineering solve elx_closed_loop_bandwidth "GBW=1000000 Hz" config=non-inverting "Rf=90000 ohm" "R1=10000 ohm"
G0 = 10
noise_gain = 10
f_3dB = 100000 Hz
by: Closed-loop bandwidth from the gain-bandwidth product (f_3dB = GBW/(1 + Rf/R1) for both configurations)
GBW = 1000000 Hz
Rf = 90000 ohm
R1 = 10000 ohm
config = non-inverting
assumes: single-pole op-amp with open-loop gain much larger than the closed-loop gain
What the worked example means: This calculation determines the frequency at which the amplifier's response drops by three decibels. It uses the op-amp's gain-bandwidth product, given as 1e+06 Hz, divided by the circuit's noise gain. The noise gain is calculated as one plus the ratio of the feedback resistor 90000 ohm to the input resistor 10000 ohm. The resulting bandwidth is 100000 Hz. This value indicates how fast the amplifier can respond to changes in the input signal before its gain begins to roll off.
elx_inverting_amplifier_finite_gainThe exact closed-loop gain of an inverting amplifier built with an op-amp of finite open-loop gain A0, its relative gain error and output.
| symbol | meaning | SI unit | |
|---|---|---|---|
Rf | in | feedback resistor | ohm |
R1 | in | input resistor | ohm |
A0 | in | open-loop voltage gain (a ratio, not dB) | , |
Vin | in | input voltage | V |
G | out | closed-loop gain | , |
G_ideal | out | ideal gain -Rf/R1 | , |
Vout | out | output voltage | V |
error | out | relative gain error 1 - G/G_ideal | , |
Applies when: A0 > 0 (ratio); infinite input resistance, zero output resistance.
$ electronics-engineering solve elx_inverting_amplifier_finite_gain "Rf=100000 ohm" "R1=1000 ohm" A0=10000 "Vin=0.01 V"
G = -99.000099
G_ideal = -100
Vout = -0.99000099 V
error = 0.009999009999
by: Inverting amplifier with finite open-loop gain (G = -(Rf/R1)/(1 + (1 + Rf/R1)/A0))
Rf = 100000 ohm
R1 = 1000 ohm
A0 = 10000
Vin = 0.01 V
assumes: A0 > 0 (ratio); infinite input resistance, zero output resistance
What the worked example means: This calculation determines the precise performance of an inverting amplifier when the operational amplifier's open-loop gain is finite rather than infinite. Using the feedback resistor value 100000 ohm, the input resistor value 1000 ohm, and the open-loop voltage gain ratio 10000, the model computes the actual closed-loop gain as -99.0001. This result is compared against the theoretical ideal gain of -100 to quantify the deviation, yielding a relative gain error of 0.00999901. The output voltage produced by this configuration for an input of 0.01 V is calculated as -0.990001 V.
elx_inverting_amplifierThe closed-loop gain, output voltage and input resistance of an ideal inverting amplifier.
| symbol | meaning | SI unit | |
|---|---|---|---|
Rf | in | feedback resistor | ohm |
Rin | in | input resistor | ohm |
Vin | in | input voltage | V |
G | out | closed-loop gain -Rf/Rin | , |
Vout | out | output voltage | V |
Zin | out | input resistance | ohm |
Applies when: ideal op-amp, output not saturated.
$ electronics-engineering solve elx_inverting_amplifier "Rf=100000 ohm" "Rin=10000 ohm" "Vin=0.5 V"
G = -10
Vout = -5 V
Zin = 10000 ohm
by: Inverting op-amp amplifier (G = -Rf/Rin; Vout = G Vin; Zin = Rin)
Rf = 100000 ohm
Rin = 10000 ohm
Vin = 0.5 V
assumes: ideal op-amp, output not saturated
What the worked example means: This calculation determines the performance of an ideal inverting operational amplifier circuit. Using the feedback resistor value of 100000 ohm and the input resistor value of 10000 ohm, the closed-loop gain is found to be -10. When the input voltage is 0.5 V, the resulting output voltage is -5 V. The input resistance seen by the signal source is equal to the input resistor, calculated as 10000 ohm. These values assume the op-amp is operating within its linear region without saturation.
elx_schmitt_triggerThe upper and lower switching thresholds, the hysteresis width and the centre of an inverting op-amp Schmitt trigger whose positive feedback divider (Rf from the output, R1 to a reference) sets the + input.
| symbol | meaning | SI unit | |
|---|---|---|---|
Rf | in | resistor from the output to the + input | ohm |
R1 | in | resistor from the + input to Vref | ohm |
VsatH | in | high output saturation voltage | V |
VsatL | in | low output saturation voltage (negative for a split supply) | V |
Vref | in | reference voltage (0 V for ground) | V |
V_TH | out | upper threshold | V |
V_TL | out | lower threshold | V |
hysteresis | out | hysteresis width | V |
center | out | centre of the hysteresis band | V |
Applies when: VsatH > VsatL; input on the inverting terminal.
$ electronics-engineering solve elx_schmitt_trigger "Rf=90000 ohm" "R1=10000 ohm" "VsatH=12 V" "VsatL=-12 V" "Vref=0 V"
V_TH = 1.2 V
V_TL = -1.2 V
hysteresis = 2.4 V
center = 0 V
by: Inverting Schmitt trigger thresholds (V_T = (Vsat R1 + Vref Rf)/(R1 + Rf); hysteresis = (VsatH - VsatL) R1/(R1 + Rf))
Rf = 90000 ohm
R1 = 10000 ohm
VsatH = 12 V
VsatL = -12 V
Vref = 0 V
assumes: VsatH > VsatL; input on the inverting terminal
What the worked example means: This calculation determines the switching points for an inverting Schmitt trigger using positive feedback. The upper threshold 1.2 V and lower threshold -1.2 V are derived from the saturation voltages, reference voltage, and resistor divider network. The difference between these thresholds defines the hysteresis band 2.4 V, which prevents rapid output toggling when the input signal contains noise or slowly crosses the decision boundary.
elx_summing_amplifierThe output of an ideal inverting summing amplifier with several inputs, each through its own resistor, and the feedback current.
| symbol | meaning | SI unit | |
|---|---|---|---|
V | in | input voltages in volts | , |
R | in | input resistors in kilohms, one per input | , |
Rf | in | feedback resistor | ohm |
Vout | out | output voltage | V |
I_f | out | current through the feedback resistor | A |
Applies when: one resistor per input; ideal op-amp.
$ electronics-engineering solve elx_summing_amplifier "V=[1, 2, -0.5]" "R=[10, 20, 5]" "Rf=10000 ohm"
Vout = -1 V
I_f = 0.0001 A
by: Inverting summing amplifier (Vout = -Rf sum(Vi/Ri))
Rf = 10000 ohm
assumes: one resistor per input; ideal op-amp
What the worked example means: This calculation determines the behavior of an ideal inverting summing amplifier. Using the input voltages [1, 2, -0.5] and their corresponding input resistors [10, 20, 5], along with the feedback resistor 10000 ohm, the circuit produces a specific output voltage -1 V. The result represents the weighted sum of the inputs, inverted by the op-amp action, while the feedback current 0.0001 A reflects the total current flowing through the feedback path.
elx_negative_feedbackThe closed-loop gain A/(1 + A beta), the loop gain, the desensitivity factor (also in dB) and the extended bandwidth of a single-pole amplifier with negative feedback.
| symbol | meaning | SI unit | |
|---|---|---|---|
A | in | open-loop gain (a ratio) | , |
beta | in | feedback factor (a ratio) | , |
fH | in | open-loop -3 dB bandwidth | Hz |
Af | out | closed-loop gain | , |
loop_gain | out | loop gain A beta | , |
desensitivity | out | 1 + A beta | , |
desensitivity_dB | out | amount of feedback in dB | , |
fH_closed | out | closed-loop bandwidth | Hz |
Applies when: single-pole open-loop response; frequency-independent beta.
$ electronics-engineering solve elx_negative_feedback A=10000 beta=0.01 "fH=1000 Hz"
Af = 99.00990099
loop_gain = 100
desensitivity = 101
desensitivity_dB = 40.08642748
fH_closed = 101000 Hz
by: Negative feedback: closed-loop gain and bandwidth extension (Af = A/(1 + A beta); fH,f = fH (1 + A beta))
A = 10000
beta = 0.01
fH = 1000 Hz
assumes: single-pole open-loop response; frequency-independent beta
What the worked example means: This calculation determines the performance of a single-pole amplifier with negative feedback. Using an open-loop gain of 10000, a feedback factor of 0.01, and an open-loop bandwidth of 1000 Hz Hz, it computes the resulting closed-loop gain as 99.0099. The loop gain is 100, leading to a desensitivity factor of 101, which represents 40.0864 dB of feedback. Consequently, the -3 dB bandwidth increases to 101000 Hz Hz, demonstrating the classic trade-off where reduced gain yields wider frequency response.
elx_noninverting_amplifierThe closed-loop gain 1 + Rf/Rg and the output voltage of an ideal non-inverting amplifier.
| symbol | meaning | SI unit | |
|---|---|---|---|
Rf | in | feedback resistor | ohm |
Rg | in | resistor from the inverting input to ground | ohm |
Vin | in | input voltage | V |
G | out | closed-loop gain | , |
Vout | out | output voltage | V |
Applies when: ideal op-amp.
$ electronics-engineering solve elx_noninverting_amplifier "Rf=90000 ohm" "Rg=10000 ohm" "Vin=0.3 V"
G = 10
Vout = 3 V
by: Non-inverting op-amp amplifier (G = 1 + Rf/Rg; Vout = G Vin)
Rf = 90000 ohm
Rg = 10000 ohm
Vin = 0.3 V
assumes: ideal op-amp
What the worked example means: This calculation determines the performance of a non-inverting operational amplifier configuration. Using the feedback resistor value 90000 ohm and the resistor to ground 10000 ohm, the closed-loop gain 10 is derived as one plus the ratio of these resistances. This gain factor is then applied to the input signal 0.3 V to calculate the resulting output voltage 3 V. The positive sign indicates that the output signal maintains the same phase relationship as the input, while the magnitude reflects the amplification level set by the external resistor network.
elx_difference_amplifierThe output of a one-op-amp difference amplifier with any four resistors, and its differential and common-mode gains (the common-mode gain is zero only when R4/R3 = R2/R1).
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | resistor from V1 to the inverting input | ohm |
R2 | in | feedback resistor | ohm |
R3 | in | resistor from V2 to the non-inverting input | ohm |
R4 | in | resistor from the non-inverting input to ground | ohm |
V1 | in | voltage at the inverting side | V |
V2 | in | voltage at the non-inverting side | V |
Vout | out | output voltage | V |
Ad | out | differential gain (per volt of V2 - V1) | , |
Acm | out | common-mode gain | , |
Applies when: ideal op-amp.
$ electronics-engineering solve elx_difference_amplifier "R1=10000 ohm" "R2=100000 ohm" "R3=10000 ohm" "R4=100000 ohm" "V1=1 V" "V2=1.2 V"
Vout = 2 V
Ad = 10
Acm = 0
by: Op-amp difference amplifier (with resistor mismatch) (Vout = -(R2/R1) V1 + (R4/(R3 + R4))(1 + R2/R1) V2; Ad = (a2 - a1)/2; Acm = a1 + a2)
R1 = 10000 ohm
R2 = 100000 ohm
R3 = 10000 ohm
R4 = 100000 ohm
V1 = 1 V
V2 = 1.2 V
assumes: ideal op-amp
What the worked example means: This calculation determines the behavior of an operational amplifier configured as a difference amplifier. Using the input voltages 1 V and 1.2 V along with the four resistors 10000 ohm, 100000 ohm, 10000 ohm, and 100000 ohm, the circuit produces an output of 2 V. The result highlights the impact of resistor mismatch, yielding a differential gain of 10 and a non-zero common-mode gain of 0, which indicates that the circuit does not perfectly reject signals common to both inputs.
elx_opamp_differentiatorThe gain |H| = 2 pi f R C of an ideal inverting differentiator at a frequency and the peak output for a sinusoidal input of given amplitude.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | feedback resistor | ohm |
C | in | input capacitor | F |
A | in | peak input amplitude | V |
f | in | input frequency | Hz |
gain | out | gain magnitude | , |
Vout_peak | out | peak output voltage | V |
gain_dB | out | gain in dB | , |
Applies when: ideal op-amp (no high-frequency limiting).
$ electronics-engineering solve elx_opamp_differentiator "R=10000 ohm" "C=10 nF" "A=1 V" "f=1000 Hz"
gain = 0.6283185307
Vout_peak = 0.6283185307 V
gain_dB = -4.036402633
by: Op-amp differentiator: gain and output amplitude (|H| = 2 pi f R C; Vout,peak = |H| A)
R = 10000 ohm
C = 1e-08 F
A = 1 V
f = 1000 Hz
assumes: ideal op-amp (no high-frequency limiting)
What the worked example means: This calculation determines the frequency response of an ideal inverting operational amplifier differentiator. Using the feedback resistor value of 10000 ohm, the input capacitor value of 10 nF, and the input signal frequency of 1000 Hz, the system computes the dimensionless gain magnitude as 0.628319. For a sinusoidal input with a peak amplitude of 1 V, the resulting peak output voltage is found to be 0.628319 V. The gain expressed in decibels is -4.0364. These values indicate how much the circuit amplifies the input signal at the specified frequency, assuming the op-amp operates within its linear range without high-frequency limitations.
elx_opamp_integratorThe output of an ideal inverting integrator after a time with a constant input, its ramp rate, and the frequency at which its gain is one.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | input resistor | ohm |
C | in | feedback capacitor | F |
Vin | in | constant input voltage | V |
t | in | time since the start | s |
V0 | in | initial output voltage (default 0) (optional) | V |
Vout | out | output voltage at t | V |
slope | out | output ramp rate | V/s |
f_unity | out | unity-gain frequency 1/(2 pi R C) | Hz |
Applies when: ideal op-amp, output not saturated.
$ electronics-engineering solve elx_opamp_integrator "R=10000 ohm" "C=1 uF" "Vin=0.5 V" "t=2 ms"
Vout = -0.1 V
slope = -50 V/s
f_unity = 15.91549431 Hz
by: Op-amp integrator: output ramp and unity-gain frequency (Vout = V0 - Vin t/(R C); f = 1/(2 pi R C))
R = 10000 ohm
C = 1e-06 F
Vin = 0.5 V
t = 0.002 s
assumes: ideal op-amp, output not saturated
What the worked example means: This calculation determines the behavior of an ideal inverting integrator. Given a constant input voltage, the output ramps linearly over time, resulting in a final voltage of -0.1 V and a rate of change of -50 V/s. The circuit's gain drops to one at the unity gain frequency of 15.9155 Hz, which is determined solely by the resistor and capacitor values.
elx_opamp_dc_offsetThe DC output error of an inverting or non-inverting amplifier (input grounded) caused by the input offset voltage and the input bias and offset currents, and the compensating resistor that cancels the bias-current error.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vos | in | input offset voltage (in series with the + input) | V |
IB | in | average input bias current | A |
Ios | in | input offset current IB- minus IB+ | A |
Rf | in | feedback resistor | ohm |
R1 | in | resistor from the inverting input to ground | ohm |
Rp | in | resistor from the + input to ground (0 if none) | ohm |
Vout_Vos | out | output error from Vos | V |
Vout_bias | out | output error from the bias currents | V |
Vout_total | out | total output error | V |
Rp_optimal | out | bias-cancelling Rp = R1 || Rf | ohm |
Applies when: currents flow into the inputs; IB- = IB + Ios/2, IB+ = IB - Ios/2.
$ electronics-engineering solve elx_opamp_dc_offset "Vos=2 mV" "IB=100 nA" "Ios=10 nA" "Rf=100000 ohm" "R1=10000 ohm" "Rp=0 ohm"
Vout_Vos = 0.022 V
Vout_bias = 0.0105 V
Vout_total = 0.0325 V
Rp_optimal = 9090.909091 ohm
by: Op-amp output offset from input offset voltage and bias currents (Vout = Vos (1 + Rf/R1) + IB- Rf - IB+ Rp (1 + Rf/R1))
Vos = 0.002 V
IB = 1e-07 A
Ios = 1e-08 A
Rf = 100000 ohm
R1 = 10000 ohm
Rp = 0 ohm
assumes: currents flow into the inputs; IB- = IB + Ios/2, IB+ = IB - Ios/2
What the worked example means: This calculation determines the DC output error for an operational amplifier circuit with grounded inputs, caused by input offset voltage and bias currents. The result separates the error into two parts: the component due to the input offset voltage, which is amplified by the non-inverting gain factor, and the component due to the bias currents flowing through the feedback and compensation resistors. The optimal compensation resistor value, calculated as the parallel combination of the input and feedback resistors, is 9090.91 ohm, which minimizes the bias current error if the currents are equal.
elx_two_pole_phase_marginThe loop-gain crossover frequency and the phase margin of an amplifier with two real poles and a frequency-independent feedback factor, and its closed-loop DC gain.
| symbol | meaning | SI unit | |
|---|---|---|---|
A0 | in | DC open-loop gain (a ratio) | , |
f1 | in | first pole frequency | Hz |
f2 | in | second pole frequency | Hz |
beta | in | feedback factor | , |
f_c | out | loop-gain crossover frequency | Hz |
PM_deg | out | phase margin in degrees | , |
Af | out | closed-loop DC gain | , |
Applies when: A0 beta > 1; two real left-half-plane poles.
$ electronics-engineering solve elx_two_pole_phase_margin A0=100000 "f1=10 Hz" "f2=1000000 Hz" beta=0.1
f_c = 99508.54868 Hz
PM_deg = 84.32304539
Af = 9.9990001
by: Phase margin of a two-pole amplifier with feedback (|A0 beta|^2 = (1 + (fc/f1)^2)(1 + (fc/f2)^2) solved for fc^2; PM = 180 - atan(fc/f1) - atan(fc/f2))
A0 = 100000
f1 = 10 Hz
f2 = 1000000 Hz
beta = 0.1
assumes: A0 beta > 1; two real left-half-plane poles
In the worked example, A0 = 100000, f1 = 10 Hz, f2 = 1000000 Hz, beta = 0.1 go through the equation above and give f_c = 99508.54868 Hz, PM_deg = 84.32304539, Af = 9.9990001. It applies only when A0 beta > 1; two real left-half-plane poles: outside that it says what is wrong instead of returning a number.
elx_slew_rate_limitThe full-power bandwidth SR/(2 pi Vp) of an op-amp, the largest undistorted amplitude at a frequency, the slope a sine wave needs and whether it is slew-limited.
| symbol | meaning | SI unit | |
|---|---|---|---|
SR | in | slew rate | V/s |
Vp | in | peak output amplitude | V |
f | in | signal frequency | Hz |
f_max | out | full-power bandwidth at Vp | Hz |
Vp_max | out | largest undistorted amplitude at f | V |
slope_needed | out | maximum slope of the sine, 2 pi f Vp | V/s |
limited | out | slew-limited or not slew-limited | , |
Applies when: sinusoidal output.
$ electronics-engineering solve elx_slew_rate_limit "SR=0.5 V/us" "Vp=10 V" "f=20000 Hz"
f_max = 7957.747155 Hz
Vp_max = 3.978873577 V
slope_needed = 1256637.061 V/s
limited = slew-limited
by: Slew-rate limit: full-power bandwidth (f_max = SR/(2 pi Vp); Vp,max = SR/(2 pi f); slope = 2 pi f Vp)
SR = 500000 V/s
Vp = 10 V
f = 20000 Hz
assumes: sinusoidal output
What the worked example means: This calculation determines the maximum frequency at which an operational amplifier can produce a sinusoidal output with a specific peak amplitude without being limited by its slew rate. By comparing the required slope for the signal, calculated as two pi times frequency times peak voltage, against the device's inherent slew rate, the full-power bandwidth is 7957.75 Hz. If the operating frequency exceeds this value, the output waveform will distort because the amplifier cannot change its output voltage fast enough to follow the input signal.
elx_instrumentation_amplifierThe gain and output of the classic three-op-amp instrumentation amplifier: input stage gain 1 + 2 R1/RG times the difference stage gain R3/R2.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | feedback resistor of each input buffer | ohm |
RG | in | gain-setting resistor between the buffers | ohm |
R2 | in | input resistors of the difference stage | ohm |
R3 | in | feedback and ground resistors of the difference stage | ohm |
V1 | in | input at the inverting side | V |
V2 | in | input at the non-inverting side | V |
G | out | differential gain | , |
G_stage1 | out | gain of the input stage | , |
Vout | out | output voltage | V |
Applies when: ideal op-amps, matched resistors.
$ electronics-engineering solve elx_instrumentation_amplifier "R1=25000 ohm" "RG=1000 ohm" "R2=10000 ohm" "R3=10000 ohm" "V1=1 V" "V2=1.01 V"
G = 51
G_stage1 = 51
Vout = 0.51 V
by: Three-op-amp instrumentation amplifier (G = (1 + 2 R1/RG)(R3/R2); Vout = G (V2 - V1))
R1 = 25000 ohm
RG = 1000 ohm
R2 = 10000 ohm
R3 = 10000 ohm
V1 = 1 V
V2 = 1.01 V
assumes: ideal op-amps, matched resistors
What the worked example means: This calculation determines the performance of a three-op-amp instrumentation amplifier. The input stage, composed of two buffers and a gain-setting resistor, provides a first-stage gain of 51. This is multiplied by the second-stage difference amplifier ratio to yield a total differential gain of 51. When applied to the voltage difference between the non-inverting input 1.01 V and the inverting input 1 V, the final output voltage is computed as 0.51 V.
elx_555_astableThe high and low times, period, frequency and duty cycle of a 555 timer in astable mode with resistors RA and RB and timing capacitor C.
| symbol | meaning | SI unit | |
|---|---|---|---|
RA | in | resistor from Vcc to the discharge pin | ohm |
RB | in | resistor from discharge to threshold/trigger | ohm |
C | in | timing capacitor | F |
t_high | out | output high time | s |
t_low | out | output low time | s |
T | out | period | s |
f | out | frequency | Hz |
duty | out | duty cycle (fraction high) | , |
Applies when: thresholds Vcc/3 and 2Vcc/3.
$ electronics-engineering solve elx_555_astable "RA=1000 ohm" "RB=10000 ohm" "C=10 uF"
t_high = 0.07624618986 s
t_low = 0.06931471806 s
T = 0.1455609079 s
f = 6.869976385 Hz
duty = 0.5238095238
by: 555 timer astable: frequency and duty cycle (t_H = ln2 (RA + RB) C; t_L = ln2 RB C; f = 1/(t_H + t_L))
RA = 1000 ohm
RB = 10000 ohm
C = 1e-05 F
assumes: thresholds Vcc/3 and 2Vcc/3
What the worked example means: This calculation determines the timing characteristics of a 555 timer configured in astable mode. Using the resistor values 1000 ohm and 10000 ohm, along with the capacitor value 10 uF, this gives the high time 0.0762462 s, low time 0.0693147 s, period 0.145561 s, frequency 6.86998 Hz, and duty cycle 0.52381. These values define how long the output stays high versus low, which is critical for applications like clock signals or pulse width modulation.
elx_555_monostableThe output pulse width T = ln 3 R C (about 1.1 R C) of a 555 timer in monostable (one-shot) mode.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | timing resistor | ohm |
C | in | timing capacitor | F |
T | out | pulse width | s |
Applies when: threshold at 2Vcc/3; trigger pulse shorter than T.
$ electronics-engineering solve elx_555_monostable "R=100000 ohm" "C=10 uF"
T = 1.098612289 s
by: 555 timer monostable pulse width (T = ln 3 R C)
R = 100000 ohm
C = 1e-05 F
assumes: threshold at 2Vcc/3; trigger pulse shorter than T
What the worked example means: This calculation determines the duration of the output pulse, known as the pulse width 1.09861 s, for a 555 timer configured in monostable mode. The result is derived directly from the values of the timing resistor 100000 ohm and the timing capacitor 10 uF using the relationship where the time constant is approximately 1.1 times the product of resistance and capacitance. This value represents how long the output remains high after being triggered.
elx_colpitts_oscillatorThe oscillation frequency of a Colpitts oscillator from its inductor and the series combination of its two tank capacitors, the feedback fraction C1/C2 and the minimum amplifier gain C2/C1.
| symbol | meaning | SI unit | |
|---|---|---|---|
L | in | tank inductance | H |
C1 | in | capacitor across the amplifier output | F |
C2 | in | capacitor across the amplifier input (feedback side) | F |
C_eq | out | series equivalent capacitance | F |
f0 | out | oscillation frequency | Hz |
beta | out | feedback fraction C1/C2 | , |
A_min | out | minimum amplifier gain C2/C1 | , |
Applies when: lossless tank, amplifier does not load the tank.
$ electronics-engineering solve elx_colpitts_oscillator "L=100 uH" "C1=1 nF" "C2=10 nF"
C_eq = 9.090909091e-10 F
f0 = 527857.2298 Hz
beta = 0.1
A_min = 10
by: Colpitts oscillator frequency and feedback ratio (C_eq = C1 C2/(C1 + C2); f0 = 1/(2 pi sqrt(L C_eq)); beta = C1/C2)
L = 0.0001 H
C1 = 1e-09 F
C2 = 1e-08 F
assumes: lossless tank, amplifier does not load the tank
What the worked example means: This calculation determines the operating characteristics of a Colpitts oscillator based on its tank circuit components. The series equivalent capacitance is found to be 9.09091e-10 F F, which combines with the inductor value of 100 uH H to produce an oscillation frequency of 527857 Hz Hz. The feedback fraction beta is calculated as 0.1, indicating the proportion of output voltage fed back to the input. Consequently, the minimum amplifier gain required to sustain oscillations is determined to be 10, ensuring that the loop gain exceeds unity at the resonant frequency.
elx_hartley_oscillatorThe oscillation frequency of a Hartley oscillator with a tapped (or two coupled) inductors and a tank capacitor, and the gain ratio (L1 + M)/(L2 + M).
| symbol | meaning | SI unit | |
|---|---|---|---|
L1 | in | inductance of the output-side coil | H |
L2 | in | inductance of the feedback-side coil | H |
M | in | mutual inductance (0 for uncoupled coils) | H |
C | in | tank capacitance | F |
L_eq | out | total inductance L1 + L2 + 2M | H |
f0 | out | oscillation frequency | Hz |
A_min | out | minimum amplifier gain (L1 + M)/(L2 + M) | , |
Applies when: series-aiding coils, lossless tank; M <= sqrt(L1 L2).
$ electronics-engineering solve elx_hartley_oscillator "L1=100 uH" "L2=20 uH" "M=0 uH" "C=1 nF"
L_eq = 0.00012 H
f0 = 459440.7462 Hz
A_min = 5
by: Hartley oscillator frequency (L_eq = L1 + L2 + 2M; f0 = 1/(2 pi sqrt(L_eq C)))
L1 = 0.0001 H
L2 = 2e-05 H
M = 0 H
C = 1e-09 F
assumes: series-aiding coils, lossless tank; M <= sqrt(L1 L2)
What the worked example means: This calculation determines the operating point of a Hartley oscillator using two coupled inductors and a tank capacitor. The total equivalent inductance, found by summing the individual coil values and twice the mutual inductance, results in 0.00012 H. Using this value with the tank capacitance yields an oscillation frequency of 459441 Hz. Additionally, the feedback ratio dictates that the amplifier must provide a minimum gain of 5 to sustain oscillations.
elx_opamp_relaxation_oscillatorThe period and frequency of a square-wave op-amp astable: an RC timing network on the inverting input and positive feedback R1/(R1 + R2) to the non-inverting input, symmetric supplies.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | timing resistor (output to inverting input) | ohm |
C | in | timing capacitor | F |
R1 | in | resistor from the + input to ground | ohm |
R2 | in | resistor from the output to the + input | ohm |
beta | out | feedback fraction R1/(R1 + R2) | , |
T | out | period | s |
f | out | frequency | Hz |
Applies when: symmetric output levels; ideal comparator action.
$ electronics-engineering solve elx_opamp_relaxation_oscillator "R=10000 ohm" "C=100 nF" "R1=10000 ohm" "R2=10000 ohm"
beta = 0.5
T = 0.002197224577 s
f = 455.1196133 Hz
by: Op-amp relaxation (astable) oscillator (T = 2 R C ln((1 + beta)/(1 - beta)) = 2 R C ln(1 + 2 R1/R2))
R = 10000 ohm
C = 1e-07 F
R1 = 10000 ohm
R2 = 10000 ohm
assumes: symmetric output levels; ideal comparator action
What the worked example means: This calculation determines the oscillation period and frequency of an op-amp astable relaxation oscillator. It uses the timing resistor, capacitor, and feedback network resistors to find the feedback fraction, which dictates the threshold voltages for switching. The resulting period is 0.00219722 s seconds, corresponding to a frequency of 455.12 Hz hertz.
elx_crystal_oscillatorThe series and parallel (anti-) resonant frequencies, their spacing and the quality factor of a quartz crystal from its Butterworth-Van Dyke equivalent circuit.
| symbol | meaning | SI unit | |
|---|---|---|---|
Lm | in | motional inductance | H |
Cm | in | motional capacitance | F |
Rm | in | motional resistance | ohm |
C0 | in | shunt (holder) capacitance | F |
fs | out | series resonance | Hz |
fp | out | parallel resonance | Hz |
delta_f | out | fp - fs | Hz |
Q | out | quality factor | , |
Applies when: resonances of the lossless circuit; Q from Rm.
$ electronics-engineering solve elx_crystal_oscillator "Lm=0.05 H" "Cm=20 fF" "Rm=20 ohm" "C0=5 pF"
fs = 5032921.21 Hz
fp = 5042977.007 Hz
delta_f = 10055.79666 Hz
Q = 79056.9415
by: Quartz crystal: series and parallel resonance, Q (fs = 1/(2 pi sqrt(Lm Cm)); fp = fs sqrt(1 + Cm/C0); Q = sqrt(Lm/Cm)/Rm)
Lm = 0.05 H
Cm = 2e-14 F
Rm = 20 ohm
C0 = 5e-12 F
assumes: resonances of the lossless circuit; Q from Rm
What the worked example means: This calculation determines the resonant frequencies and quality factor of a quartz crystal using its Butterworth-Van Dyke equivalent circuit parameters. The series resonance frequency, where the motional inductance and capacitance cancel each other out, is found to be 5.03292e+06 Hz. The parallel resonance frequency, occurring when the crystal behaves as an open circuit due to the shunt capacitance, is calculated as 5.04298e+06 Hz. The difference between these two frequencies, known as the bandwidth or spacing, is 10055.8 Hz. Finally, the quality factor, which indicates the sharpness of the resonance and energy storage efficiency relative to dissipation, is determined to be 79056.9 based on the motional resistance.
elx_rc_phase_shift_oscillatorThe oscillation frequency of a three-section RC phase-shift oscillator (high-pass ladder: series C, shunt R; or low-pass ladder) and the amplifier gain of 29 it needs.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | resistor of each section | ohm |
C | in | capacitor of each section | F |
ladder | in | highpass (series C, shunt R) or lowpass (series R, shunt C) | , |
f0 | out | oscillation frequency | Hz |
A_min | out | minimum inverting amplifier gain | , |
beta | out | feedback network attenuation at f0 | , |
Applies when: unloaded ladder (driven by a voltage source, feeding a high impedance).
$ electronics-engineering solve elx_rc_phase_shift_oscillator "R=10000 ohm" "C=10 nF" ladder=high-pass
f0 = 649.7473344 Hz
A_min = 29
beta = 0.03448275862
by: RC phase-shift oscillator frequency and gain (high-pass ladder f = 1/(2 pi sqrt(6) R C); low-pass ladder f = sqrt(6)/(2 pi R C); |beta| = 1/29)
R = 10000 ohm
C = 1e-08 F
ladder = high-pass
assumes: unloaded ladder (driven by a voltage source, feeding a high impedance)
What the worked example means: This calculation determines the operating point for an RC phase-shift oscillator using three identical sections. Given a resistance of 10000 ohm and capacitance of 10 nF, the network produces a total phase shift of one hundred eighty degrees at the frequency 649.747 Hz. To sustain stable oscillations, the amplifier must provide a voltage gain magnitude of at least 29, which corresponds to a feedback factor of 0.0344828. This result assumes an ideal unloaded ladder configuration where loading effects from the amplifier input or output are negligible.
elx_pll_loop_dynamicsThe natural frequency and damping factor of a second-order (type-2) phase-locked loop with phase-detector gain Kd, VCO gain Ko and an active PI loop filter F(s) = (1 + s tau2)/(s tau1).
| symbol | meaning | SI unit | |
|---|---|---|---|
Kd | in | phase-detector gain in V/rad | , |
Ko | in | VCO gain in rad/(s V) | , |
tau1 | in | integrator time constant R1 C | s |
tau2 | in | zero time constant R2 C | s |
wn | out | natural frequency | rad/s |
fn | out | natural frequency in Hz | Hz |
zeta | out | damping factor | , |
Applies when: linear phase model, ideal integrator.
$ electronics-engineering solve elx_pll_loop_dynamics Kd=0.5 Ko=20000 "tau1=10 ms" "tau2=1 ms"
wn = 1000 rad/s
fn = 159.1549431 Hz
zeta = 0.5
by: Type-2 PLL with active PI loop filter: natural frequency and damping (H(s) = K (1 + s tau2)/tau1 / (s^2 + s K tau2/tau1 + K/tau1), K = Kd Ko; wn = sqrt(K/tau1); zeta = tau2 wn/2)
Kd = 0.5
Ko = 20000
tau1 = 0.01 s
tau2 = 0.001 s
assumes: linear phase model, ideal integrator
What the worked example means: This calculation determines the dynamic response characteristics of a second-order phase-locked loop. Using the phase detector gain, VCO gain, and filter time constants, the system's natural frequency is found to be 159.155 Hz Hz. The corresponding damping factor is calculated as 0.5, which indicates how oscillatory or stable the lock acquisition process will be.
elx_wien_bridge_oscillatorThe oscillation frequency of a Wien-bridge oscillator (series R1 C1, parallel R2 C2) and the non-inverting gain it needs (3 for equal components).
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | series-arm resistor | ohm |
C1 | in | series-arm capacitor | F |
R2 | in | parallel-arm resistor | ohm |
C2 | in | parallel-arm capacitor | F |
f0 | out | oscillation frequency | Hz |
beta | out | feedback fraction at f0 | , |
A_min | out | required amplifier gain | , |
Rf_over_Rg | out | gain resistor ratio | , |
Applies when: ideal amplifier.
$ electronics-engineering solve elx_wien_bridge_oscillator "R1=10000 ohm" "C1=16 nF" "R2=10000 ohm" "C2=16 nF"
f0 = 994.7183943 Hz
beta = 0.3333333333
A_min = 3
Rf_over_Rg = 2
by: Wien-bridge oscillator frequency and required gain (f0 = 1/(2 pi sqrt(R1 R2 C1 C2)); A = 1 + R1/R2 + C2/C1)
R1 = 10000 ohm
C1 = 1.6e-08 F
R2 = 10000 ohm
C2 = 1.6e-08 F
assumes: ideal amplifier
What the worked example means: This calculation determines the oscillation frequency and the minimum non-inverting amplifier gain required for a Wien-bridge oscillator circuit. Using the series resistor R1, series capacitor C1, parallel resistor R2, and parallel capacitor C2, the system computes the natural frequency where the phase shift is zero. The result shows that for the given components, the oscillator will run at 994.718 Hz, while the feedback network attenuates the signal such that the amplifier must provide a gain of at least 3 to sustain stable oscillations.
elx_adjustable_regulator_outputThe output voltage of an adjustable three-terminal regulator (LM317 type: reference between OUT and ADJ, R1 from OUT to ADJ, R2 from ADJ to ground), including the adjust-pin current.
| symbol | meaning | SI unit | |
|---|---|---|---|
R1 | in | resistor from OUT to ADJ | ohm |
R2 | in | resistor from ADJ to ground | ohm |
Vref | in | internal reference (1.25 V for the LM317 type) | V |
Iadj | in | adjust-pin current (default 0) (optional) | A |
Vout | out | output voltage | V |
I_R1 | out | current through R1 | A |
Applies when: regulator in regulation (input high enough).
$ electronics-engineering solve elx_adjustable_regulator_output "R1=240 ohm" "R2=720 ohm" "Vref=1.25 V"
Vout = 5 V
I_R1 = 0.005208333333 A
by: Adjustable three-terminal regulator output voltage (Vout = Vref (1 + R2/R1) + Iadj R2)
R1 = 240 ohm
R2 = 720 ohm
Vref = 1.25 V
assumes: regulator in regulation (input high enough)
What the worked example means: This calculation determines the output voltage of an adjustable three-terminal regulator using the formula involving the internal reference voltage, the ratio of the two external resistors, and the current flowing into the adjustment pin. Given the input values, the resulting output voltage is 5 V. The current through the first resistor is calculated as 0.00520833 A. This result indicates the regulated voltage level available at the output terminal when the regulator is operating within its specified range.
elx_heat_sink_temperaturesThe junction, case and heat-sink temperatures of a power device dissipating P through junction-to-case, case-to-sink (interface) and sink-to-ambient thermal resistances.
| symbol | meaning | SI unit | |
|---|---|---|---|
P | in | power dissipated | W |
Ta | in | ambient temperature | K |
theta_jc | in | junction-to-case thermal resistance | K/W |
theta_cs | in | case-to-sink thermal resistance | K/W |
theta_sa | in | sink-to-ambient thermal resistance | K/W |
Tj | out | junction temperature | K |
Tc | out | case temperature | K |
Ts | out | sink temperature | K |
Tj_C | out | junction temperature in degC | , |
theta_ja | out | total junction-to-ambient resistance | K/W |
Applies when: steady state, series thermal path.
$ electronics-engineering solve elx_heat_sink_temperatures "P=15 W" "Ta=25 degC" "theta_jc=1.5 K/W" "theta_cs=0.5 K/W" "theta_sa=3 K/W"
Tj = 373.15 K
Tc = 350.65 K
Ts = 343.15 K
Tj_C = 100
theta_ja = 5 K/W
by: Heat-sink thermal path: junction, case and sink temperatures (Tj = Ta + P (theta_jc + theta_cs + theta_sa))
P = 15 W
Ta = 298.15 K
theta_jc = 1.5 K/W
theta_cs = 0.5 K/W
theta_sa = 3 K/W
assumes: steady state, series thermal path
What the worked example means: This calculation determines the steady-state temperatures at the semiconductor junction, case, and heat sink. It starts with the ambient temperature 25 degC and adds the voltage drop equivalent caused by the power dissipation 15 W flowing through the series thermal resistances. The junction-to-case resistance 1.5 K/W, case-to-sink resistance 0.5 K/W, and sink-to-ambient resistance 3 K/W are summed to find the total path resistance. The resulting junction temperature 373.15 K indicates how hot the active silicon region becomes, while the case temperature 350.65 K and sink temperature 343.15 K show the gradient along the cooling path. The total junction-to-ambient resistance 5 K/W summarizes the entire thermal impedance of the assembly.
elx_linear_regulator_efficiencyThe input and output power, the dissipation in the pass element and the efficiency of a linear (series) regulator including its quiescent current.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | input voltage | V |
Vout | in | regulated output voltage | V |
Iload | in | load current | A |
Iq | in | quiescent (ground-pin) current | A |
P_in | out | input power | W |
P_out | out | output power | W |
P_diss | out | dissipation in the regulator | W |
efficiency | out | efficiency | , |
efficiency_pct | out | efficiency in per cent | , |
Applies when: Vin > Vout.
$ electronics-engineering solve elx_linear_regulator_efficiency "Vin=12 V" "Vout=5 V" "Iload=500 mA" "Iq=5 mA"
P_in = 6.06 W
P_out = 2.5 W
P_diss = 3.56 W
efficiency = 0.4125412541
efficiency_pct = 41.25412541
by: Linear regulator dissipation and efficiency (P_in = Vin (IL + Iq); P_out = Vout IL; P_diss = P_in - P_out; eta = P_out/P_in)
Vin = 12 V
Vout = 5 V
Iload = 0.5 A
Iq = 0.005 A
assumes: Vin > Vout
What the worked example means: This calculation determines the power dissipation and efficiency of a linear regulator. The input power is derived from the product of the input voltage and the sum of the load current and quiescent current, while output power equals the regulated voltage multiplied by the load current. The difference between these values represents the heat generated within the device, shown here as 3.56 W. The resulting efficiency ratio indicates how effectively the input energy is converted to useful output power.
elx_heat_sink_requiredThe largest sink-to-ambient thermal resistance (and total junction-to-ambient resistance) that keeps a device dissipating P below its maximum junction temperature.
| symbol | meaning | SI unit | |
|---|---|---|---|
P | in | power dissipated | W |
Ta | in | ambient temperature | K |
Tj_max | in | maximum junction temperature | K |
theta_jc | in | junction-to-case thermal resistance | K/W |
theta_cs | in | case-to-sink thermal resistance | K/W |
theta_ja_max | out | largest junction-to-ambient resistance | K/W |
theta_sa_max | out | largest sink-to-ambient resistance | K/W |
Applies when: a positive result (otherwise no heat sink suffices).
$ electronics-engineering solve elx_heat_sink_required "P=20 W" "Ta=40 degC" "Tj_max=150 degC" "theta_jc=1 K/W" "theta_cs=0.5 K/W"
theta_ja_max = 5.5 K/W
theta_sa_max = 4 K/W
by: Required heat-sink thermal resistance (theta_sa = (Tj,max - Ta)/P - theta_jc - theta_cs)
P = 20 W
Ta = 313.15 K
Tj_max = 423.15 K
theta_jc = 1 K/W
theta_cs = 0.5 K/W
assumes: a positive result (otherwise no heat sink suffices)
What the worked example means: This calculation determines the largest heat-sink thermal resistance required to keep a device within safe operating limits. By taking the difference between the maximum junction temperature of 150 degC and the ambient temperature of 40 degC, then dividing by the power dissipation of 20 W, this gives the total junction-to-ambient budget. Subtracting the junction-to-case resistance of 1 K/W and the case-to-sink resistance of 0.5 K/W yields the final limit for the heat sink itself, which must be no greater than 4 K/W. If this value is positive, it indicates that a suitable heat sink exists; if negative, even an ideal heat sink would fail to prevent overheating.
elx_series_pass_regulatorThe output voltage, load, base, Zener and resistor currents and the pass-transistor dissipation of a regulator in which a Zener diode biased through Rs sets the base of an emitter-follower pass transistor.
| symbol | meaning | SI unit | |
|---|---|---|---|
Vin | in | unregulated input | V |
Vz | in | Zener voltage | V |
Rs | in | Zener bias resistor | ohm |
RL | in | load resistance | ohm |
beta | in | current gain of the pass transistor | , |
VBE | in | base-emitter voltage | V |
Vout | out | output voltage Vz - VBE | V |
I_L | out | load current | A |
I_B | out | base current | A |
I_z | out | Zener current | A |
I_Rs | out | current in Rs | A |
P_Q | out | pass-transistor dissipation | W |
Applies when: Vin > Vz > VBE; the Zener stays in breakdown (Iz > 0).
$ electronics-engineering solve elx_series_pass_regulator "Vin=15 V" "Vz=10 V" "Rs=1000 ohm" "RL=100 ohm" beta=100 "VBE=0.7 V"
Vout = 9.3 V
I_L = 0.093 A
I_B = 0.0009207920792 A
I_z = 0.004079207921 A
I_Rs = 0.005 A
P_Q = 0.5248514851 W
by: Zener-referenced series-pass (emitter-follower) regulator (Vout = Vz - VBE; IB = IL/(beta + 1); Iz = (Vin - Vz)/Rs - IB; P = (Vin - Vout) IC)
Vin = 15 V
Vz = 10 V
Rs = 1000 ohm
RL = 100 ohm
beta = 100
VBE = 0.7 V
assumes: Vin > Vz > VBE; the Zener stays in breakdown (Iz > 0)
What the worked example means: This calculation determines the operating point of a Zener-referenced series-pass regulator. The output voltage, set at 9.3 V, is derived by subtracting the base-emitter drop from the Zener voltage. Currents are calculated based on the input voltage 15 V and component values, yielding a load current of 0.093 A and a Zener current of 0.00407921 A. The power dissipated by the pass transistor is found to be 0.524851 W, which depends on the voltage difference between the input and output multiplied by the collector current.
elx_builtin_potentialThe built-in (contact) potential of an abrupt pn junction from the doping on each side, the intrinsic concentration and the temperature.
| symbol | meaning | SI unit | |
|---|---|---|---|
NA | in | acceptor concentration on the p side | 1/m^3 |
ND | in | donor concentration on the n side | 1/m^3 |
ni | in | intrinsic carrier concentration | 1/m^3 |
T | in | absolute temperature | K |
Vbi | out | built-in potential | V |
Applies when: NA, ND >= 100 ni; non-degenerate, complete ionisation.
$ electronics-engineering solve elx_builtin_potential "NA=1e+17 cm^-3" "ND=1e+16 cm^-3" "ni=1.5e+10 cm^-3" "T=300 K"
Vbi = 0.7528794135 V
by: Built-in potential of a pn junction (Vbi = (kT/q) ln(NA ND / ni^2))
NA = 1e+23 1/m^3
ND = 1e+22 1/m^3
ni = 1.5e+16 1/m^3
T = 300 K
assumes: NA, ND >= 100 ni; non-degenerate, complete ionisation
What the worked example means: This calculation determines the built-in potential of an abrupt pn junction using the formula Vbi equals kT over q times the natural log of NA ND divided by ni squared. The result, 0.752879 V, represents the voltage barrier that forms across the depletion region due to charge diffusion. It depends on the acceptor concentration 1e+17 cm^-3 on the p-side, the donor concentration 1e+16 cm^-3 on the n-side, the intrinsic carrier concentration 1.5e+10 cm^-3, and the absolute temperature 300 K. This potential balances the drift current caused by the electric field against the diffusion current caused by concentration gradients.
elx_semiconductor_conductivityThe conductivity sigma = q (n mu_n + p mu_p) and the resistivity of a semiconductor from its electron and hole concentrations and mobilities.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | electron concentration | 1/m^3 |
p | in | hole concentration | 1/m^3 |
mu_n | in | electron mobility | m^2/(V*s) |
mu_p | in | hole mobility | m^2/(V*s) |
sigma | out | conductivity | 1/(ohm*m) |
rho | out | resistivity | ohm*m |
rho_ohm_cm | out | resistivity in ohm cm | , |
Applies when: n, p >= 0 (not both zero); mobilities > 0.
$ electronics-engineering solve elx_semiconductor_conductivity "n=1e+16 cm^-3" "p=22500 cm^-3" "mu_n=1350 cm^2/(V*s)" "mu_p=480 cm^2/(V*s)"
sigma = 216.2938456 1/(ohm*m)
rho = 0.004623340055 ohm*m
rho_ohm_cm = 0.4623340055
by: Conductivity and resistivity of a semiconductor (sigma = q (n mu_n + p mu_p); rho = 1/sigma)
n = 1e+22 1/m^3
p = 2.25e+10 1/m^3
mu_n = 0.135 m^2/(V*s)
mu_p = 0.048 m^2/(V*s)
assumes: n, p >= 0 (not both zero); mobilities > 0
What the worked example means: This calculation determines the electrical properties of a semiconductor based on its carrier concentrations and mobilities. Using the electron concentration 1e+16 cm^-3 and hole concentration 22500 cm^-3, along with their respective mobilities 1350 cm^2/(V*s) and 480 cm^2/(V*s), the model computes the total conductivity as 216.294 1/(ohm*m). The reciprocal of this value yields the resistivity 0.00462334 ohm*m, which represents the material's opposition to current flow, also expressed in practical units as 0.462334.
elx_depletion_widthThe depletion-region width (and its parts on each side), the peak electric field and the depletion capacitance per area of an abrupt pn junction at a reverse bias (negative VR for a forward bias below Vbi).
| symbol | meaning | SI unit | |
|---|---|---|---|
NA | in | acceptor concentration (p side) | 1/m^3 |
ND | in | donor concentration (n side) | 1/m^3 |
Vbi | in | built-in potential | V |
VR | in | reverse bias (negative for forward) | V |
eps_r | in | relative permittivity of the semiconductor (11.7 for silicon) | , |
W | out | depletion width | m |
W_um | out | depletion width in micrometres | , |
xn | out | width on the n side | m |
xp | out | width on the p side | m |
Emax | out | peak electric field (V/m) | N/C |
Cj_area | out | depletion capacitance per area | F/m^2 |
Applies when: Vbi + VR > 0; abrupt junction, depletion approximation.
$ electronics-engineering solve elx_depletion_width "NA=1e+17 cm^-3" "ND=1e+16 cm^-3" "Vbi=0.81 V" "VR=5 V" eps_r=11.7
W = 9.090996814e-07 m
W_um = 0.9090996814
xn = 8.264542558e-07 m
xp = 8.264542558e-08 m
Emax = 12781876.66 N/C
Cj_area = 0.0001139522976 F/m^2
by: Depletion width, field and capacitance of an abrupt pn junction (W = sqrt(2 eps (Vbi + VR)/q (1/NA + 1/ND)); xn = W NA/(NA+ND); Emax = q ND xn/eps; C' = eps/W)
NA = 1e+23 1/m^3
ND = 1e+22 1/m^3
Vbi = 0.81 V
VR = 5 V
eps_r = 11.7
assumes: Vbi + VR > 0; abrupt junction, depletion approximation
What the worked example means: This calculation determines the physical extent of the charge-free region at the interface between p-type and n-type semiconductor materials. Using the doping concentrations on each side, the built-in potential, and the applied reverse bias, it computes the total depletion width as 9.091e-07 m, which corresponds to 0.9091 micrometres. The result also breaks down this width into the portion extending into the n-side (8.26454e-07 m) and the p-side (8.26454e-08 m). Additionally, it finds the maximum electric field strength within the junction, reported here as 1.27819e+07 N/C, and the capacitance per unit area, given by 0.000113952 F/m^2. These values characterize how the junction stores charge and withstands voltage under the specified conditions.
elx_drift_currentThe electric field, the carrier drift velocity, the drift current density and the current when a voltage is applied along a uniformly doped bar.
| symbol | meaning | SI unit | |
|---|---|---|---|
n | in | concentration of the carriers that drift | 1/m^3 |
mu | in | their mobility | m^2/(V*s) |
V | in | voltage applied along the bar | V |
L | in | bar length | m |
A | in | cross-sectional area | m^2 |
E | out | electric field (V/m) | N/C |
v_d | out | drift velocity | m/s |
J | out | drift current density | A/m^2 |
I | out | current | A |
Applies when: n, mu, L, A > 0; low field (constant mobility).
$ electronics-engineering solve elx_drift_current "n=1e+16 cm^-3" "mu=1350 cm^2/(V*s)" "V=5 V" "L=0.001 m" "A=1e-08 m^2"
E = 5000 N/C
v_d = 675 m/s
J = 1081469.228 A/m^2
I = 0.01081469228 A
by: Drift velocity and drift current in a semiconductor bar (E = V/L; v_d = mu E; J = q n v_d; I = J A)
n = 1e+22 1/m^3
mu = 0.135 m^2/(V*s)
V = 5 V
L = 0.001 m
A = 1e-08 m^2
assumes: n, mu, L, A > 0; low field (constant mobility)
What the worked example means: This calculation determines the electrical behavior of a uniformly doped semiconductor bar under an applied voltage. Starting from the potential difference across the length, this gives the electric field as 5000 N/C. This field drives the carriers to move at a drift velocity of 675 m/s. The resulting current density is 1.08147e+06 A/m^2, which yields a total current of 0.0108147 A flowing through the cross-sectional area.
elx_einstein_diffusionThe diffusion coefficient D = mu kT/q of carriers from their mobility (Einstein relation) and the diffusion length L = sqrt(D tau) from the minority-carrier lifetime.
| symbol | meaning | SI unit | |
|---|---|---|---|
mu | in | carrier mobility | m^2/(V*s) |
T | in | absolute temperature | K |
tau | in | minority-carrier lifetime | s |
D | out | diffusion coefficient | m^2/s |
D_cm2 | out | D in cm^2/s | , |
L_diff | out | diffusion length | m |
L_um | out | diffusion length in micrometres | , |
Applies when: mu, T, tau > 0; non-degenerate material.
$ electronics-engineering solve elx_einstein_diffusion "mu=1350 cm^2/(V*s)" "T=300 K" "tau=1 us"
D = 0.003490019971 m^2/s
D_cm2 = 34.90019971
L_diff = 5.907639098e-05 m
L_um = 59.07639098
by: Einstein relation and diffusion length (D = mu kT/q; L = sqrt(D tau))
mu = 0.135 m^2/(V*s)
T = 300 K
tau = 1e-06 s
assumes: mu, T, tau > 0; non-degenerate material
What the worked example means: This calculation determines the carrier diffusion coefficient D from mobility mu and temperature T using the Einstein relation, then finds the diffusion length L by combining D with the minority-carrier lifetime tau. The resulting diffusion coefficient is 0.00349002 m^2/s, while the diffusion length is 5.90764e-05 m. These values describe how far carriers spread due to thermal motion over their average lifetime.
elx_doped_carrier_concentrationsThe equilibrium electron and hole concentrations of a semiconductor with donors and acceptors, from charge neutrality and the mass-action law (exact, so it also holds for light or compensated doping).
| symbol | meaning | SI unit | |
|---|---|---|---|
ND | in | donor concentration | 1/m^3 |
NA | in | acceptor concentration | 1/m^3 |
ni | in | intrinsic carrier concentration | 1/m^3 |
n | out | electron concentration | 1/m^3 |
p | out | hole concentration | 1/m^3 |
n_cm3 | out | n in cm^-3 | , |
p_cm3 | out | p in cm^-3 | , |
type | out | n-type, p-type or intrinsic | , |
Applies when: ND, NA >= 0; ni > 0; complete ionisation, non-degenerate.
$ electronics-engineering solve elx_doped_carrier_concentrations "ND=1e+16 cm^-3" "NA=0 cm^-3" "ni=1.5e+10 cm^-3"
n = 1e+22 1/m^3
p = 2.25e+10 1/m^3
n_cm3 = 1e+16
p_cm3 = 22500
type = n-type
by: Electron and hole concentrations of doped (compensated) material (n - p = ND - NA and n p = ni^2: majority = |ND-NA|/2 + sqrt((ND-NA)^2/4 + ni^2), minority = ni^2/majority)
ND = 1e+22 1/m^3
NA = 0 1/m^3
ni = 1.5e+16 1/m^3
assumes: ND, NA >= 0; ni > 0; complete ionisation, non-degenerate
What the worked example means: This calculation determines the equilibrium electron and hole concentrations in a doped semiconductor by solving charge neutrality and the mass-action law simultaneously. Given a donor concentration of 1e+16 cm^-3 and an acceptor concentration of 0 cm^-3, with an intrinsic carrier concentration of 1.5e+10 cm^-3, the resulting electron density is 1e+22 1/m^3 and the hole density is 2.25e+10 1/m^3. These values classify the material as n-type, reflecting whether donors or acceptors dominate the net doping level.
elx_intrinsic_carrier_concentrationThe intrinsic carrier concentration ni = sqrt(Nc Nv) exp(-Eg/2kT) at a temperature, from the effective densities of states at 300 K (scaled as T^1.5) and the band gap; also the intrinsic level's offset from midgap.
| symbol | meaning | SI unit | |
|---|---|---|---|
Nc | in | effective density of states in the conduction band at 300 K | 1/m^3 |
Nv | in | effective density of states in the valence band at 300 K | 1/m^3 |
Eg | in | band gap energy | J |
T | in | absolute temperature | K |
ni | out | intrinsic carrier concentration | 1/m^3 |
ni_cm3 | out | ni in cm^-3 | , |
Ei_minus_midgap_eV | out | intrinsic Fermi level above midgap, eV | , |
Nc_T | out | Nc at T | 1/m^3 |
Nv_T | out | Nv at T | 1/m^3 |
Applies when: Nc, Nv, Eg, T > 0; non-degenerate statistics, band gap independent of T.
$ electronics-engineering solve elx_intrinsic_carrier_concentration "Nc=2.8e+19 cm^-3" "Nv=1.04e+19 cm^-3" "Eg=1.12 eV" "T=300 K"
ni = 6.67589872e+15 1/m^3
ni_cm3 = 6675898720
Ei_minus_midgap_eV = -0.01280189354
Nc_T = 2.8e+25 1/m^3
Nv_T = 1.04e+25 1/m^3
by: Intrinsic carrier concentration (Nc(T) = Nc (T/300)^1.5, Nv likewise; ni = sqrt(Nc Nv) exp(-Eg/(2kT)); Ei - Emid = (kT/2) ln(Nv/Nc))
Nc = 2.8e+25 1/m^3
Nv = 1.04e+25 1/m^3
Eg = 1.79443783e-19 J
T = 300 K
assumes: Nc, Nv, Eg, T > 0; non-degenerate statistics, band gap independent of T
What the worked example means: This calculation determines the intrinsic carrier concentration, denoted as ni, for a semiconductor material. It uses the effective densities of states in the conduction and valence bands at room temperature, scaled by the absolute temperature raised to the power of one and a half. The result, 6.6759e+15 1/m^3, represents the equilibrium concentration of electrons and holes in an undoped material. Additionally, the offset of the intrinsic Fermi level from midgap is calculated as -0.0128019, indicating the asymmetry between the band structures.
elx_junction_capacitanceThe depletion capacitance of a pn junction at a reverse bias from its zero-bias value, the built-in potential and the grading coefficient (1/2 abrupt, 1/3 linearly graded), as used for varactors.
| symbol | meaning | SI unit | |
|---|---|---|---|
Cj0 | in | zero-bias junction capacitance | F |
Vbi | in | built-in potential | V |
VR | in | reverse bias (negative for forward) | V |
m | in | grading coefficient (0.5 abrupt, 0.33 linearly graded) | , |
Cj | out | junction capacitance | F |
ratio | out | Cj/Cj0 | , |
Applies when: 0 < m < 1; VR > -Vbi.
$ electronics-engineering solve elx_junction_capacitance "Cj0=2 pF" "Vbi=0.75 V" "VR=5 V" m=0.5
Cj = 7.223151185e-13 F
ratio = 0.3611575593
by: Junction (depletion) capacitance versus bias (Cj = Cj0 / (1 + VR/Vbi)^m)
Cj0 = 2e-12 F
Vbi = 0.75 V
VR = 5 V
m = 0.5
assumes: 0 < m < 1; VR > -Vbi
What the worked example means: This calculation determines the depletion capacitance of a pn junction under reverse bias using the grading coefficient and built-in potential. Starting with the zero-bias junction capacitance of 2 pF, the model applies the voltage dependence defined by the reverse bias 5 V and the built-in potential 0.75 V. The resulting junction capacitance is 7.22315e-13 F, indicating that the capacitance has changed by a factor of 0.361158 compared to its initial state.
elx_thermal_voltageThe thermal voltage VT = kT/q at an absolute temperature (about 25.85 mV at 300 K), the voltage scale of every diode and transistor equation.
| symbol | meaning | SI unit | |
|---|---|---|---|
T | in | absolute temperature (degC is converted) | K |
VT | out | thermal voltage | V |
VT_mV | out | thermal voltage in millivolts | , |
Applies when: T > 0 K.
$ electronics-engineering solve elx_thermal_voltage "T=300 K"
VT = 0.02585199979 V
VT_mV = 25.85199979
by: Thermal voltage kT/q (VT = k T / q)
T = 300 K
assumes: T > 0 K
What the worked example means: This calculation determines the thermal voltage, a fundamental parameter in semiconductor physics that sets the scale for diode and transistor behavior. It is computed by dividing Boltzmann's constant times the absolute temperature by the elementary charge. At the given temperature of 300 K, the resulting thermal voltage is 0.025852 V, which corresponds to 25.852 when expressed in millivolts.
elx_cmos_dynamic_powerThe dynamic power alpha C VDD^2 f of CMOS logic, the energy drawn from the supply per 0 -> 1 transition, the energy stored on the load and the average supply current.
| symbol | meaning | SI unit | |
|---|---|---|---|
alpha | in | activity factor: probability of a 0 -> 1 transition per clock cycle | , |
C | in | switched capacitance | F |
VDD | in | supply voltage | V |
f | in | clock frequency | Hz |
P | out | dynamic power | W |
E_supply | out | energy from the supply per transition, C VDD^2 | J |
E_stored | out | energy stored on C, C VDD^2/2 | J |
I_avg | out | average supply current | A |
Applies when: 0 <= alpha <= 1; full-swing switching, short-circuit and leakage power not included.
$ electronics-engineering solve elx_cmos_dynamic_power alpha=0.1 "C=1000 pF" "VDD=1 V" "f=1000000000 Hz"
P = 0.1 W
E_supply = 1e-09 J
E_stored = 5e-10 J
I_avg = 0.1 A
by: CMOS dynamic (switching) power (P = alpha C VDD^2 f)
alpha = 0.1
C = 1e-09 F
VDD = 1 V
f = 1000000000 Hz
assumes: 0 <= alpha <= 1; full-swing switching, short-circuit and leakage power not included
What the worked example means: This calculation determines the CMOS dynamic switching power using the formula P equals alpha times C times VDD squared times f. Given an activity factor of 0.1, a switched capacitance of 1000 pF, a supply voltage of 1 V, and a clock frequency of 1e+09 Hz, the resulting dynamic power is 0.1 W. This value represents the energy drawn from the supply per unit time due to charging and discharging the load capacitance during logic transitions, excluding leakage and short-circuit currents.
elx_elmore_delayThe Elmore delay to every node of an RC ladder (a driver resistance and wire segments, each followed by a capacitance to ground), the delay at the far end and its 50 % estimate ln 2 tau.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | series resistances in ohms, from the driver outwards | , |
C | in | node capacitances in picofarads, one after each resistor | , |
tau_D | out | Elmore delay at the far end | s |
t50 | out | 50 % delay estimate ln 2 tau_D | s |
delays | out | Elmore delay at each node, seconds | , |
Applies when: one capacitance per resistor; step input.
$ electronics-engineering solve elx_elmore_delay "R=[100, 50, 50]" "C=[0.1, 0.1, 0.2]"
tau_D = 6.5e-11 s
t50 = 4.505456674e-11 s
delays = [4e-11,5.5e-11,6.5e-11]
by: Elmore delay of an RC ladder (interconnect) (tau_k = sum_i C_i R(shared path of nodes i and k))
assumes: one capacitance per resistor; step input
What the worked example means: This calculation determines the Elmore delay for an RC ladder network, representing the time it takes for a signal to propagate through series resistances and node capacitances. The primary result, 6.5e-11 s, is the total delay at the final node, derived from the sum of each capacitance multiplied by the resistance shared between that node and the source. A common approximation for the actual switching threshold is provided as 4.50546e-11 s, which equals the natural logarithm of two times the Elmore delay. The intermediate values in [4e-11, 5.5e-11, 6.5e-11] show how the delay accumulates at each step along the interconnect.
elx_setup_hold_timingThe setup slack, hold slack, maximum clock frequency and a verdict for a register-to-register path from clock-to-Q, logic delays, setup and hold times and clock skew (positive when the capture clock is late).
| symbol | meaning | SI unit | |
|---|---|---|---|
T | in | clock period | s |
tcq | in | maximum clock-to-Q delay | s |
tpd | in | maximum logic delay | s |
tsu | in | setup time | s |
tskew | in | clock skew, capture minus launch | s |
tccq | in | minimum (contamination) clock-to-Q | s |
tcd | in | minimum (contamination) logic delay | s |
th | in | hold time | s |
setup_slack | out | setup slack | s |
hold_slack | out | hold slack | s |
f_max | out | maximum clock frequency | Hz |
verdict | out | meets timing, setup violation, hold violation or both | , |
Applies when: edge-triggered registers, single clock.
$ electronics-engineering solve elx_setup_hold_timing "T=5 ns" "tcq=0.3 ns" "tpd=3.5 ns" "tsu=0.2 ns" "tskew=0.1 ns" "tccq=0.1 ns" "tcd=0.2 ns" "th=0.1 ns"
setup_slack = 1.1e-09 s
hold_slack = 1e-10 s
f_max = 256410256.4 Hz
verdict = meets timing
by: Flip-flop setup and hold slack, maximum clock frequency (setup slack = T + skew - (tcq + tpd + tsu); hold slack = tccq + tcd - th - skew; f_max = 1/(tcq + tpd + tsu - skew))
T = 5e-09 s
tcq = 3e-10 s
tpd = 3.5e-09 s
tsu = 2e-10 s
tskew = 1e-10 s
tccq = 1e-10 s
tcd = 2e-10 s
th = 1e-10 s
assumes: edge-triggered registers, single clock
What the worked example means: This calculation determines timing margins for a register-to-register path. Setup slack, computed as 1.1e-09 s, indicates how much time remains before data must be stable relative to the clock edge. Hold slack, shown as 1e-10 s, measures the margin preventing new data from overwriting old data too quickly. The maximum operating frequency is derived as 2.5641e+08 Hz, representing the fastest clock rate that satisfies both setup constraints.
elx_rc_delay_rise_timeThe time constant, the 50 % delay (ln 2 RC), the 10-90 % rise time (ln 9 RC = 2.2 RC), the -3 dB bandwidth and the rise-time-bandwidth product (0.35) of a first-order RC low-pass.
| symbol | meaning | SI unit | |
|---|---|---|---|
R | in | resistance | ohm |
C | in | capacitance | F |
tau | out | time constant RC | s |
t50 | out | 50 % delay | s |
t_rise | out | 10-90 % rise time | s |
f_3dB | out | -3 dB bandwidth | Hz |
tr_times_bw | out | rise time x bandwidth | , |
Applies when: step input, first-order RC.
$ electronics-engineering solve elx_rc_delay_rise_time "R=1000 ohm" "C=10 pF"
tau = 1e-08 s
t50 = 6.931471806e-09 s
t_rise = 2.197224577e-08 s
f_3dB = 15915494.31 Hz
tr_times_bw = 0.3496991526
by: RC delay, 10-90 % rise time and bandwidth (t50 = ln 2 RC; tr = ln 9 RC; f = 1/(2 pi RC); tr f = ln 9/(2 pi))
R = 1000 ohm
C = 1e-11 F
assumes: step input, first-order RC
In the worked example, R = 1000 ohm, C = 10 pF go through the equation above and give tau = 1e-08 s, t50 = 6.931471806e-09 s, t_rise = 2.197224577e-08 s, f_3dB = 15915494.31 Hz. It applies only when step input, first-order RC: outside that it says what is wrong instead of returning a number.
elx_metastability_mtbfThe mean time between synchronizer failures MTBF = exp(tr/tau)/(T0 fclk fdata) from the resolution time allowed, the flip-flop's time constant and window, and the clock and data rates.
| symbol | meaning | SI unit | |
|---|---|---|---|
tr | in | resolution time available | s |
tau | in | metastability time constant | s |
T0 | in | metastability window T0 | s |
fclk | in | clock frequency | Hz |
fdata | in | rate of asynchronous data changes | Hz |
MTBF_s | out | MTBF | s |
MTBF_years | out | MTBF in years (365.25 days) | , |
log10_MTBF_s | out | log10 of MTBF in seconds | , |
Applies when: tr/tau <= 700.
$ electronics-engineering solve elx_metastability_mtbf "tr=2 ns" "tau=50 ps" "T0=100 ps" "fclk=500000000 Hz" "fdata=10000000 Hz"
MTBF_s = 4.707705337e+11 s
MTBF_years = 14917.81801
log10_MTBF_s = 11.67280927
by: Synchronizer metastability MTBF (MTBF = exp(tr/tau)/(T0 fclk fdata))
tr = 2e-09 s
tau = 5e-11 s
T0 = 1e-10 s
fclk = 500000000 Hz
fdata = 10000000 Hz
assumes: tr/tau <= 700
What the worked example means: This calculation determines the mean time between synchronizer failures using the resolution time available, the metastability time constant and window, and the clock and data frequencies. The resulting mean time between failures is 4.70771e+11 s seconds, equivalent to 14917.8 years. This metric indicates how long the circuit is expected to operate before a synchronization error occurs, with higher values representing greater reliability.
Questions and reports: support@ai999x.com. AI999X, The Future Is Self-Improving.