Download and extract the reader ZIP archive (a compressed collection of files). Links labelled “reader ZIP; extract …” download this archive; after extraction, open the named file. It includes the offline article, full-size Portable Network Graphics (PNG) images, editable Scalable Vector Graphics (SVG) diagrams, complete source code, tests and worksheets.
A load switch can already be reducing its output voltage while its fault pin still reads high. In this experiment the Texas Instruments TPS2553DBVR integrated circuit (IC), a complete circuit inside one package, supplies either a modest resistor load or a deliberate overload. You calculate the current first, then compare that behavior with the delayed fault indication. No microcontroller or firmware is needed.
The distinction matters when a controller records faults: a high flag does not prove the load has never been limited, and a low flag can remain after the overload has gone. Current limiting is the switch’s regulation of output current. A deglitch delay is a waiting interval that filters brief conditions before reporting them.
Evidence: the supplied Python model and its behavior tests run on a host computer. The diagrams and timing records are constructed. This fixture has not been physically built or measured here; no target firmware compilation or target execution is claimed.
Use the exact constant-current part
Use TPS2553DBVR: active-high enable, constant-current behavior, DBV six-pin Small Outline Transistor (SOT-23) package. “Active high” means the enable input turns the switch on at a sufficiently high voltage. The R at the end identifies the supplied reel packaging; it does not change the circuit’s pin assignment. Solder the small surface-mount part to a correctly numbered adaptor or a purpose-made board with short power and current-setting paths.
The TPS2553-1 latches off after a sustained fault; the TPS2552 has the opposite enable polarity. The newer TPS25530-1 has an output-discharge function. None of these names identifies this fixture’s part. The DRV package also has a different pin assignment. Check the ordered suffix and the package’s pin-1 mark against Figure 5-1 of the current manufacturer document before applying power.
The design uses Texas Instruments datasheet SLVS841G, revised October 2026, especially pin table 5-1, recommended conditions, electrical table 6.5, sections 8.3.1/8.3.3 and equations 1–3. The current product page lists revision G dated October 27, 2026. Its six listed technical documents did not expose a separate errata item during this check; that is a bounded documentation search, not a claim that later corrections cannot exist. This revision increased the overcurrent flag’s specified maximum deglitch interval to 11 milliseconds.
Build the low-current resistor fixture
One millisecond (ms) is one thousandth of a second. One milliampere (mA) is one thousandth of an ampere. The regulated supply is 5.00 volts (V), set initially to a 0.20-ampere current ceiling. The ceiling is backup protection, not the device-under-test current setting; if the supply enters current limit, the intended stiff 5 V assumption has failed. Use short supply leads and a common ground (GND), the reference and return conductor.
Resistance is measured in ohms (Ω); a resistor limits current and turns electrical energy into heat. Its watt (W) rating describes an allowed power dissipation under specified conditions. A farad (F) is the unit of capacitance, charge stored per volt; the capacitors here store small amounts of charge locally.
| Part | Value / purpose |
|---|---|
| U1 | TPS2553DBVR, constant-current switch; Tricky Circuit (TC) current-limit fixture revision 1 |
| R1 | 226 kΩ ±1%, at least 0.125 W; ILIM current-setting pin to ground; kΩ means 1,000 ohms |
| R2 / SW1 | 100 kΩ pull-down and single-pole single-throw switch; a pull-down holds EN low when SW1 is open |
| R3 | 10 kΩ pull-up from +5 V to FAULT; establishes a high voltage when the output transistor is off |
| C1 / C2 | 100 nF ceramic plus 10 µF electrolytic at IN; nanofarad nF = 10⁻⁹ F, microfarad µF = 10⁻⁶ F; C2 positive to IN |
| C3 | 1 µF ceramic from OUT to ground; all capacitors rated at least 10 V |
| R_LOAD | Choose 100 Ω ±1%, 1 W normal load, or 33 Ω ±1%, 2 W overload; one load at a time |
| Instruments | Regulated bench supply, voltmeter; for time measurements a two-channel oscilloscope, an instrument that records voltage against time, with ordinary high-impedance probes |
The capacitor C1 provides local decoupling: a nearby charge reservoir that reduces short supply disturbances. Keep it directly between IN and GND; C2 provides additional local input storage. Keep R1 close to ILIM and GND. Additional capacitance is not permission to use long inductive leads or to ignore input overshoot. The output capacitance can supply an initial load transient itself, so load current immediately after switching need not equal current through U1.
FAULT is an open-drain output: its internal transistor can pull the pin toward ground but cannot actively drive it high. Active-low FAULT means a low level reports a fault. With R3 = 10 kΩ, the largest pull-up current is 5 V / 10 kΩ = 0.5 mA. This is below the recommended 10 mA continuous sink limit. Do not short FAULT to +5 V or treat it as a power output.
— reader ZIP; extract assets/tps2553-fixture.pngassets/tps2553-fixture.svg; full-size image — reader ZIP; extract assets/tps2553-fixture.png.| TPS2553 DBV pin | Exact connection |
|---|---|
| 1 IN | Regulated +5 V; C1 and C2 to pin-2 ground, locally |
| 2 GND | Supply negative, capacitor returns, R1/R2 returns, load return, and probe ground clips |
| 3 EN | SW1 to +5 V; R2 to ground; SW1 open disables, closed enables |
| 4 FAULT | R3 to +5 V and high-impedance probe tip TP_FAULT; no external logic drive |
| 5 ILIM | R1 only to ground; do not drive this pin with an external signal |
| 6 OUT | C3, chosen R_LOAD, and probe tip TP_OUT; load/capacitor other terminals to ground |
There are no unused U1 pins and no exposed thermal pad on this DBV package. Grounds on an ordinary bench oscilloscope may be connected internally and to protective earth: both probe ground clips belong on GND. A ground clip on OUT would short the output. The diagram’s labels identify the tip locations, not isolated probe grounds.
Calculate a range, not one exact current
The datasheet’s current-setting equations use R in kilohms and return current in milliamperes. With R = 226, nominal current is 23950 / R0.977 = about 120.04 mA. The manufacturer’s lower and upper curves describe part and temperature variation; R1’s tolerance must be added separately. For ±1%, the actual resistor can be 223.74–228.26 kΩ.
Imin = 25230 / (228.261.016) ≈ 101.3 mA
Inom = 23950 / (2260.977) ≈ 120.04 mA
Imax = 22980 / (223.740.94) ≈ 142.1 mA
These are calculated design curves with resistor corners, matching the rounded 226 kΩ row in datasheet table 9-2. They are not three measured specimens or a probability distribution. The lower and upper settings remain inside the recommended 15–232 kΩ resistor range.
With a stiff 5 V supply and an illustrative 0.085 Ω on-resistance, the unrestricted 100 Ω current is 5 / (100 + 0.085) = 49.96 mA. The unrestricted 33 Ω current is 151.1 mA, above even the calculated upper current limit. Thus the first load should be below the threshold and the second above it. A 33 Ω ±1% resistor still asks for about 149.4 mA at its high-resistance extreme, using the specified 0.135 Ω maximum on-resistance, so this choice retains separation at 5.00 V. The 85 milliohm (mΩ) value is typical at 25 °C; the DBV maximum is 95 mΩ there and 135 mΩ across the stated full junction-temperature range.
In current limit, the output voltage falls until Vout ≈ Ilimit × R_LOAD. At the nominal threshold the 33 Ω load gives about 3.96 V, 0.476 W in the resistor, and 0.125 W in U1. Across the calculated threshold corners, output is about 3.34–4.69 V and resistor dissipation about 0.339–0.666 W. The normal resistor dissipates about 0.250 W. The specified 1 W and 2 W resistor ratings leave useful margin; ratings still depend on actual ambient conditions and mounting.
Do not replace 33 Ω with a wire to ground for this lesson. At a near-zero output U1 could dissipate roughly 5 V × 0.142 A = 0.71 W and enter thermal shutdown. Even our smaller calculated dissipation does not establish a measured junction temperature: the datasheet’s thermal resistance depends on its reference board, and an adaptor changes heat flow. Stop if the supply sags, the package heats unexpectedly, or the output cycles.
Interpret the two different times
For an overload applied while enabled, U1’s current regulation responds on a much faster scale than its flag reporting. The datasheet gives a 2 microsecond typical short-circuit response at 5 V; a microsecond (µs) is one millionth of a second. There is no maximum for that parameter in the cited table, so 2 µs is not a guaranteed deadline and is not a promise for every 33 Ω load step. The output capacitor and the control loop also affect the observed waveform.
| Overcurrent reporting | Minimum | Typical | Maximum |
|---|---|---|---|
| FAULT assertion delay | 3 ms | 7.5 ms | 11 ms |
| FAULT de-assertion delay | 3 ms | 7.5 ms | 11 ms |
With other causes absent and the input remaining valid, a 2 ms overload can be limited without producing the delayed overcurrent flag. A continuously qualifying overload longer than 11 ms should produce that flag under the stated conditions. Between 3 and 11 ms, one unit’s behavior is not determined by the nominal number. The table applies to overcurrent; reverse voltage has a different delay and overtemperature asserts FAULT immediately. FAULT alone cannot identify which cause occurred.
The selected TPS2553 continues limiting after the flag asserts; the flag does not command a latch-off. A sufficiently severe or long overload can instead cause thermal cycling. Returning to a normal load restores current regulation before the flag’s overcurrent clearing delay completes. These statements assume no simultaneous reverse voltage, undervoltage or thermal event.

assets/tps2553-delayed-fault.svg; full-size image.Run the offline experiment
Python 3.9 or later is sufficient; the program uses only the standard library. CSV means Comma-Separated Values, a plain-text table. The command writes constructed rows into a separate directory. It never fills the blank observation sheet or reads an instrument.
python3 -m unittest discover -s code -p "test_*.py" -v
python3 code/tps2553_model.py --csv data/constructed/trace.csv
The full program follows. Its flag model assumes every limiting edge is supplied at its event time, one chosen assertion/clearing delay, separated pulses, and no other fault cause. Cancellation of an incomplete pending transition is an explicit teaching assumption, not a claim about undocumented closely spaced pulse accumulation. Sparse calls can observe a change later than the chosen threshold. The tests exercise short pulses, exact delay boundaries, interrupted assertion and release, disabled reset, all three timing corners, resistor tolerances and power balance.
"""Conditional TPS2553DBVR resistor-load and overcurrent-flag teaching model.
No transient, temperature, reverse-current, startup, noise, or hardware prediction.
"""
import argparse
import csv
import math
from pathlib import Path
def finite(value, name):
if not math.isfinite(value):
raise ValueError(name + ' must be finite')
return value
def limits_ma(r_kohm=226.0, tolerance=.01):
"""TI SLVS841G eqs 1-3; include external resistor extremes, not statistical errors."""
finite(r_kohm,'resistance');finite(tolerance,'tolerance')
if not 0 <= tolerance < 1:
raise ValueError('tolerance must be >=0 and <1')
low_r, high_r = r_kohm*(1-tolerance), r_kohm*(1+tolerance)
if low_r < 15 or high_r > 232:
raise ValueError('both actual resistor extremes must be in 15..232 kohm')
return (25230/high_r**1.016, 23950/r_kohm**.977,
22980/low_r**.94)
def operating_point(vin_v, load_ohm, limit_a, ron_ohm=.085):
"""Steady resistor load, stiff input, chosen threshold, no thermal shutdown."""
for name,value in [('vin',vin_v),('load',load_ohm),('limit',limit_a),('ron',ron_ohm)]:
finite(value,name)
if not 2.5 <= vin_v <= 6.5 or load_ohm <= 0 or limit_a <= 0 or ron_ohm < 0:
raise ValueError('input outside model domain')
demand=vin_v/(load_ohm+ron_ohm)
current=min(demand,limit_a)
output=current*load_ohm
return dict(current_a=current,vout_v=output,limiting=demand>limit_a,
load_w=current*current*load_ohm,switch_w=current*(vin_v-output))
class OvercurrentFlag:
"""One selected 3..11 ms delay, stable edge inputs, no other FAULT causes.
update() must include every limiting edge at its actual event time. Between
calls state is only observed on update; no asynchronous callback is implied.
Debounce-like cancellation is a conditional idealization for separated pulses,
not a transistor-level account of undocumented closely spaced pulse history.
"""
def __init__(self, delay_ms=7.5):
finite(delay_ms,'delay')
if not 3 <= delay_ms <= 11:
raise ValueError('choose overcurrent delay in 3..11 ms')
self.delay=delay_ms
self.asserted=False
self.pending_since=None
self.last_time=None
def update(self,time_ms,limiting,enabled=True):
finite(time_ms,'time')
if time_ms<0 or (self.last_time is not None and time_ms<self.last_time):
raise ValueError('nonnegative monotone time required')
self.last_time=time_ms
if not enabled:
self.asserted=False
self.pending_since=None
return False
if bool(limiting)==self.asserted:
self.pending_since=None
else:
if self.pending_since is None:
self.pending_since=time_ms
if time_ms-self.pending_since>=self.delay:
self.asserted=bool(limiting)
self.pending_since=None
return self.asserted
def constructed_trace():
"""Two ideal load changes: 2 ms, then 15 ms; all rows are constructed."""
flag=OvercurrentFlag(7.5)
threshold=limits_ma()[1]/1000
rows=[]
for half_ms in range(91):
t=half_ms/2
r=33.0 if 5<=t<7 or 15<=t<30 else 100.0
point=operating_point(5,r,threshold)
rows.append(dict(time_ms=t,load_ohm=r,current_ma=point['current_a']*1000,
vout_v=point['vout_v'],fault_low=int(flag.update(t,point['limiting'])),
provenance='constructed; no thermal/startup/transient model'))
return rows
def main():
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--csv',type=Path,help='write constructed trace; never measured data')
args=parser.parse_args()
print('CONSTRUCTED / conditional steady model; not bench evidence')
print('ILIM min/nom/max mA, 226 kohm +/-1%:',*(round(x,4) for x in limits_ma()))
for resistance in (100,33):
print(resistance,'ohm:',operating_point(5,resistance,limits_ma()[1]/1000))
if args.csv:
args.csv.parent.mkdir(parents=True,exist_ok=True)
rows=constructed_trace()
with args.csv.open('w',newline='') as stream:
writer=csv.DictWriter(stream,fieldnames=rows[0]);writer.writeheader();writer.writerows(rows)
print('Wrote',args.csv)
if __name__=='__main__':main()
Complete behavior tests
import math
import unittest
from tps2553_model import limits_ma, operating_point, OvercurrentFlag, constructed_trace
class SwitchTests(unittest.TestCase):
def test_nominal_table(self): self.assertAlmostEqual(limits_ma(226)[1],120.04,delta=.1)
def test_tolerance_bounds(self):
lo,nom,hi=limits_ma(226,.01)
self.assertAlmostEqual(lo,101.3,delta=.1); self.assertAlmostEqual(hi,142.1,delta=.1)
self.assertLess(lo,nom);self.assertLess(nom,hi)
def test_no_resistor_tolerance(self):self.assertGreater(limits_ma(226,0)[0],limits_ma(226,.01)[0])
def test_threshold_monotone(self):self.assertGreater(limits_ma(100)[1],limits_ma(200)[1])
def test_resistor_edge_rejected(self):
with self.assertRaises(ValueError):limits_ma(232,.01)
def test_invalid_resistor(self):
for r in (0,-1,float('nan'),float('inf'),14):
with self.assertRaises(ValueError):limits_ma(r)
def test_bad_tolerance(self):
for v in (-1,1,float('nan')):
with self.assertRaises(ValueError):limits_ma(100,v)
def test_normal_point(self):
p=operating_point(5,100,.12005)
self.assertFalse(p['limiting']); self.assertAlmostEqual(p['current_a'],5/100.085)
def test_overload_point(self):
p=operating_point(5,33,.12005)
self.assertTrue(p['limiting']);self.assertAlmostEqual(p['vout_v'],3.96165)
def test_power_balance(self):
p=operating_point(5,33,.12005)
self.assertAlmostEqual(5*p['current_a'],p['switch_w']+p['load_w'])
def test_overload_all_thresholds(self):
for i in limits_ma(226,.01):self.assertTrue(operating_point(5,33,i/1000)['limiting'])
def test_normal_all_thresholds(self):
for i in limits_ma(226,.01):self.assertFalse(operating_point(5,100,i/1000)['limiting'])
def test_invalid_point(self):
for args in ((7,100,.12),(5,0,.12),(5,33,0),(5,33,float('nan'))):
with self.assertRaises(ValueError):operating_point(*args)
def test_short_pulse_does_not_report(self):
f=OvercurrentFlag(7.5)
self.assertFalse(f.update(0,False)); self.assertFalse(f.update(5,True))
self.assertFalse(f.update(7,False));self.assertFalse(f.update(30,False))
def test_exact_assert_boundary(self):
f=OvercurrentFlag(7.5);f.update(15,True)
self.assertFalse(f.update(22.499,True));self.assertTrue(f.update(22.5,True))
def test_release_delayed(self):
f=OvercurrentFlag(7.5);f.update(0,True);f.update(8,True)
self.assertTrue(f.update(30,False));self.assertTrue(f.update(37.499,False))
self.assertFalse(f.update(37.5,False))
def test_interrupted_assert_resets(self):
f=OvercurrentFlag(7.5);f.update(0,True);f.update(6,False);f.update(7,True)
self.assertFalse(f.update(13,True));self.assertTrue(f.update(14.5,True))
def test_interrupted_release_resets(self):
f=OvercurrentFlag(3);f.update(0,True);f.update(3,True)
f.update(4,False);f.update(6,True);f.update(7,False)
self.assertTrue(f.update(9,False));self.assertFalse(f.update(10,False))
def test_disable_clears(self):
f=OvercurrentFlag(3);f.update(0,True);f.update(3,True)
self.assertFalse(f.update(4,True,False));self.assertFalse(f.update(5,True))
def test_backwards_rejected(self):
f=OvercurrentFlag(3);f.update(10,True)
with self.assertRaises(ValueError):f.update(9,True)
def test_delay_domain(self):
for d in (2,12,float('nan')):
with self.assertRaises(ValueError):OvercurrentFlag(d)
def test_all_corners(self):
for d in (3,7.5,11):
f=OvercurrentFlag(d);f.update(15,True)
self.assertFalse(f.update(15+d-.001,True));self.assertTrue(f.update(15+d,True))
def test_trace_transitions(self):
rows=constructed_trace()
transitions=[r['time_ms'] for p,r in zip(rows,rows[1:]) if r['fault_low']!=p['fault_low']]
self.assertEqual(transitions,[22.5,37.5])
self.assertTrue(all(not r['fault_low'] for r in rows if r['time_ms']<15))
if __name__=='__main__':unittest.main(verbosity=2)
Make your own observations without inventing timing
- With power removed, check the adaptor’s numbered connections against the pin table. Install 100 Ω, leave SW1 open, and check that the +5 V and ground nets are not shorted. Check C2 polarity. Attach both probe grounds to GND before powering.
- Apply 5.00 V with the 0.20 A supply ceiling. Close SW1. Record input voltage, output voltage and FAULT. Estimate settled load current as measured Vout divided by the independently checked load resistance. This avoids moving an ammeter lead into a voltage socket or accidentally bridging the supply with a current input.
- Open SW1, remove supply power, allow the output to discharge through its resistor, and replace the load with 33 Ω. Reapply power and close SW1. Record a brief capture and settled values; stop if they cycle or heat unexpectedly. Startup into an overload is a different transient from adding an overload to an already enabled output, so label this capture “startup overload.”
- To observe overload while enabled, keep a rated 33 Ω resistor in a separate disconnectable load lead. Start enabled with that lead open, then connect it with a rated switch. The initial open load changes only the baseline. Capture TP_OUT and TP_FAULT with a falling output-voltage trigger and retain the whole event. Contact bounce is visible input uncertainty, not a known 2 ms pulse generator. Do not infer exact delay from one noisy edge.
- Disconnect the load while still enabled to observe recovery, then disable and remove power. For a quantitative flag delay, identify when the output actually enters or leaves sustained limiting, retain the input-voltage evidence, and state the trigger/sample-time uncertainty. Use an appropriately configured controlled electronic load only if its own documentation and waveform verify the pulse; that additional instrument is outside this simple resistor build.
- Leave the 2 ms and 15 ms cases as constructed model observations unless a controlled load actually produces them. Repeat each physical case and retain the raw capture. Compare with the range, not only the 7.5 ms line.
The blank observation sheet — reader ZIP; extract data/blank-observations.csv includes instrument, resistance, input voltage, thermal/cycling notes and waveform paths. Blank fields mean no measurement was made. Constructed trace rows — reader ZIP; extract data/constructed/trace.csv are separate. A persistent low FAULT with unexpected output can be caused by heating or reverse voltage; verify those conditions before labelling it an overcurrent timing failure. With SW1 open, R2 holds EN at ground; a floating EN would make the test undefined.
Challenge: the flag is high after a 5 ms overload. Did protection fail?
No such conclusion follows. Five milliseconds is between the 3 and 11 ms overcurrent flag limits. Current could have been limited throughout while this particular unit’s delayed flag never asserted. Check current or output voltage with valid input and load evidence. A high flag is not a log of every prior overload, and thermal or reverse faults require separate interpretation.
Keep the calculations and editable originals
Portable Network Graphics (PNG) files provide full-size raster images; Scalable Vector Graphics (SVG) files retain the editable paths and labels. Hypertext Markup Language (HTML) is the page format used for the offline article and preview. The reader contents and reproduction instructions — reader ZIP; extract README.txt contains this article, both original figure pairs, the complete model and tests, the blank sheet and the constructed records. Open the source index — reader ZIP; extract source-index.html for exact relative paths and primary references.
For the underlying units, pull-up and capacitor concepts, use the existing Circuitpedia. For the manufacturer’s current documentation and suffix choices, use the TPS2553 product page. No firmware, parts endorsement, measured timing or physical protection rating follows from this host model.