Skip to main content
Glama
mo9652962-ai

circuit-agent

by mo9652962-ai

analyze_divider_tolerance

Read-onlyIdempotent

Tolerance band of a resistor divider — nominal is not a specification. Reports BOTH the exact worst case (corner enumeration, valid because the transfer function is monotonic in each resistor) and the realistic statistical band…

Instructions

Tolerance band of a resistor divider — nominal is not a specification. Reports BOTH the exact worst case (corner enumeration, valid because the transfer function is monotonic in each resistor) and the realistic statistical band (first-order sensitivity propagation, NOT naive RSS of percentage tolerances — the output is a quotient of random variables, so RSS-ing the percentages directly is invalid; TI SNVA112 states this explicitly). Includes TCR, sqrt-of-time life drift, supply tolerance, and matched-pair ratio tolerance, and names which resistor dominates the error budget so you fix the right part.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
v_inYesInput voltage to the divider, in volts.
r1_ohmYesHigh-side resistor (input to midpoint), in ohms.
r2_ohmYesLow-side resistor (midpoint to ground), in ohms.
delta_temp_cNoTemperature excursion from 25 °C that the design must hold accuracy over.
tcr_ppm_per_cNoTemperature coefficient in ppm/°C. Thick film is ~200, thin film ~25, metal foil ~2.
tolerance_pctNoResistor value tolerance in percent at 25 °C.
life_drift_pctNoLife drift percent over the datasheet's stated hours. Scales with sqrt of the time ratio.
v_in_tolerance_pctNoSupply tolerance in percent, treated as an independent contribution.
ratio_tolerance_pctNoRatio tolerance for a matched pair in one package. Replaces both absolute tolerances — the biggest free accuracy win.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
v_inYesInput voltage to the divider.
notesYesHuman-readable findings: which term dominates, what to change, and any caveat.
methodYesWhich methods were used, so the numbers are auditable.
r1_ohmYesHigh-side resistor.
r2_ohmYesLow-side resistor.
v_out_maxYesStatistical upper bound (sensitivity RSS).
v_out_minYesStatistical lower bound (sensitivity RSS).
error_rss_pctYesStatistical error band as a percentage of nominal.
v_out_nominalYesOutput at nominal resistor values.
sensitivity_r1Yes∂V_out/∂R1, in volts per ohm.
sensitivity_r2Yes∂V_out/∂R2, in volts per ohm.
error_worst_pctYesWorst-case error as a percentage of nominal.
v_out_worst_maxYesExact worst-case upper bound (corner enumeration).
v_out_worst_minYesExact worst-case lower bound (corner enumeration).
dominant_resistorYesWhich resistor contributes more error — fix this one first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

Score is being calculated.

Deploy Server

Other Tools