The TP4056 is a popular, complete constant-current/constant-voltage (CC/CV) linear charger IC designed for single-cell lithium-ion or lithium-polymer batteries.
Download TP4056 IC Spice Model
1. Overview of the SPICE Model and Testing Circuit
While official SPICE models directly from manufacturers can sometimes be scarce for specific consumer-grade linear ICs like the TP4056, engineers often simulate its behavior using behavioral subcircuits (built with operational amplifiers, switches, and pass transistors) or third-party community models in simulators like LTspice, Multisim, or Proteus.
TP4056 IC test circuit
As seen in the provided simulation schematics:
Testing Circuit Architecture: The setup integrates the TP4056 (U1) core charger, a protection subcircuit consisting of a DW01A (U2) battery protection IC paired with dual N-Channel MOSFETs (FS8205A, Q1), status indicator LEDs (D1, D2), and input/output decoupling capacitors.
Programming Current: Resistor R3 ($1.2\text{ k}\Omega$) connected to the
PROGpin sets the maximum constant charge current to approximately $1000\text{ mA}$ ($1\text{A}$).Protection & Load: The circuit features a connection to a single-cell Li-ion battery (B1) alongside discharge protection to guard against overcharge, over-discharge, and short-circuit conditions.
2. Interactive Analysis Graph Interpretation
The transient simulation graph displays the Battery Voltage ($\text{VB+}$) and Charging Current ($\text{IB+}$) curves through various operational states:
Discharge Phase: Early in the timeline, the battery discharges into a connected load, causing the terminal voltage to drop gradually until protection thresholds are met.
Pre-charge / Trickle Mode: When a deeply discharged battery is detected, the TP4056 applies a reduced current to safely bring the cell voltage above the safety threshold (~2.9V).
Constant Current (CC) Mode: Once safe, the IC switches to fast charging, supplying the full programmed current (~1A) while the battery voltage rises linearly.
Constant Voltage (CV) Mode: As the battery voltage reaches the preset float voltage ($4.2\text{V}$), the IC holds the voltage steady while the charging current tapers down exponentially.
Charge Termination: When the current drops to $1/10\text{th}$ of the programmed value ($~100\text{ mA}$), charging automatically stops, and the status switches to standby.
Test Results
TP4056 IC Charging and Discharging profile shows battery voltage and current during charging and discharging.
Other related spice models:

