Skip to content

Add TPS63802 datasheet simulations - #87

Draft
ShiboSoftwareDev wants to merge 5 commits into
mainfrom
agent/add-tps63802-analysis-simulations
Draft

Add TPS63802 datasheet simulations#87
ShiboSoftwareDev wants to merge 5 commits into
mainfrom
agent/add-tps63802-analysis-simulations

Conversation

@ShiboSoftwareDev

@ShiboSoftwareDev ShiboSoftwareDev commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add figure-named TPS63802 circuits for datasheet Figures 10-2 through 10-31
  • share one datasheet application circuit and focused helpers for sweeps, measurements, switching waveforms, load/line transients, and startup
  • preserve TI's TPS63802 PSpice model without fitted coefficients or figure-specific model changes
  • commit real vendor-model simulation SVGs for every waveform in Figures 10-15 through 10-31
  • validate the snapshots with the locally packaged ngspice runtime from Package the eecircuit runtime with the ngspice engine ngspice-spice-engine#28

Why

The datasheet curves require input/load sweeps, PWL line and load steps, and measurements derived from transient results. Keeping those operations in the general simulation pipeline lets the examples describe the published test conditions instead of embedding expected graph values.

Accuracy boundaries

  • TI's model states that it does not model quiescent current or temperature effects, so low-current efficiency and temperature-dependent curves cannot match bench data quantitatively.
  • Figure 10-2 records the settled regulation surface because the datasheet does not state the criterion used to select its maximum-current boundary.
  • Figures 10-30 and 10-31 conflict between Table 10-7 and their annotations; the examples use the figure's 4.2 V input and the table's physically coherent 10 mA load.
  • The committed waveform SVGs contain simulator output, not digitized traces. Figures 10-27 and 10-28 retain the largest quantitative difference around the wide automatic boost/buck mode transition.

Validation

  • bun test — 30 passed, 17 opt-in vendor-model tests skipped, 0 failed
  • RUN_TPS63802_DATASHEET_SIMULATIONS=1 CACHE_TPS63802_DATASHEET_SIMULATIONS=1 bun test tests/TPS63802-datasheet-waveform-snapshots.test.tsx — 17 passed
  • bun run typecheck
  • bun run format:check
  • ran every Figure 10-15 through Figure 10-31 snapshot against the unchanged vendor model
  • visually compared the generated waveform SVGs with datasheet Figures 10-15 through 10-31

Dependencies

This remains a draft until the corresponding Circuit JSON, props, core, SPICE conversion, graph-rendering, and ngspice-engine changes are released and this repository can pin those published versions.

The branch intentionally stays on the currently published ngspice dependency instead of naming an unreleased version. After tscircuit/ngspice-spice-engine#28 releases, this PR will update the package and browser import to that real version.

Related: tscircuit/core#2764

@ShiboSoftwareDev ShiboSoftwareDev changed the title Add TPS63802 analysis simulations Add TPS63802 datasheet waveform simulations Jul 25, 2026
@ShiboSoftwareDev ShiboSoftwareDev changed the title Add TPS63802 datasheet waveform simulations Add TPS63802 datasheet simulations Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant