TP4056 Application Guide


I’ll research the TP4056 manufacturer documentation and sourcing options, then write the application guide with cited wiring, layout, and replacement guidance.
I found differences between the project’s older TP4056 datasheet and current manufacturer documentation, so I’m keeping revision-dependent claims separate. I also verified a purchasing source and am checking two functional alternatives without assuming they are drop-in replacements.
Created a project doc

TP4056 Application and Usage Guide

View Document

TP4056 Application and Usage Guide
The TP4056 from NanJing Top Power ASIC Corp. is a single-cell lithium-ion constant-current/constant-voltage (CC/CV) linear battery charger with a fixed 4.2 V charge voltage and resistor-programmable charge current up to 1 A. Its common use is charging a compatible 1S Li-ion or Li-polymer battery from a regulated 5 V adapter or USB supply in portable electronics.
Scope and verification: This guide targets the SOP-8/exposed-pad TP4056 represented by this project. Electrical claims below are verified against the manufacturer-authored datasheet attached to the project; its revision/date could not be established. The newer manufacturer-hosted English PDF was located, but its evidence extraction remained pending a...
Created and checked the TP4056 Application and Usage Guide in project files, covering all seven requested sections with citations, practical calculations, and two verified functional alternatives.
Package dimensions, newer-revision specifications, and purchasing MOQ remain explicitly marked unverified; neither alternative is presented as a drop-in replacement.

TP4056 Application and Usage Guide
The TP4056 from NanJing Top Power ASIC Corp. is a single-cell lithium-ion constant-current/constant-voltage (CC/CV) linear battery charger with a fixed 4.2 V charge voltage and resistor-programmable charge current up to 1 A. Its common use is charging a compatible 1S Li-ion or Li-polymer battery from a regulated 5 V adapter or USB supply in portable electronics.
Scope and verification: This guide targets the SOP-8/exposed-pad TP4056 represented by this project. Electrical claims below are verified against the manufacturer-authored datasheet attached to the project; its revision/date could not be established. The newer manufacturer-hosted English PDF was located, but its evidence extraction remained pending after two attempts; newer revision ratings, TEMP thresholds, precise package dimensions, and lead pitch remain unverified here. Do not merge specifications from different TP4056 manufacturers or revisions. Recommendations and illustrative calculations are identified separately from guaranteed ratings.
1. Quick Specifications

Table


ParameterRecommended use / published electrical characteristicAbsolute maximum / caution
Input supply, VCCPublished electrical table: 4.0 V minimum, 5 V typical, 8.0 V maximum. Recommended design target: regulated 5 V, with sufficient headroom above BAT. −0.3 V to 8 V. Because 8 V is also the absolute maximum, do not design a nominal 8 V supply with no transient margin.
Battery chemistry / voltageOne cell requiring 4.2 V CC/CV charging; not a series-cell charger. Do not use for LiFePO4 or a different termination voltage without chemistry-specific redesign.
Regulated battery voltage4.2 V typical; 4.137–4.263 V at 0°C ≤ TA ≤ 85°C, IBAT = 40 mA in the attached older datasheet. These are regulation limits, not BAT absolute maximum voltage ratings. Newer advertised accuracy must not replace this table without checking the purchased revision.
Charge currentRPROG = 1.2 kΩ: 1000 mA typical, 950–1050 mA at VBAT = 4.0 V; RPROG = 2.4 kΩ: 500 mA typical, 450–550 mA. Actual current can fall under thermal regulation. BAT pin current 1200 mA; this is a stress limit, not a 1.2 A charging setting.
Charge terminationC/10 after reaching final float voltage. Do not confuse termination with pack discharge protection.
Ambient temperature−40°C to +85°C, listed under the attached datasheet's absolute-maximum section. This is the IC ambient range, not an allowable battery charging-temperature range. Follow the cell specification.
Junction temperatureThermal regulation TLIM: 145°C typical. Maximum junction temperature: 145°C in the attached datasheet. Do not use thermal limiting as the normal thermal-design target.
TEMP / CE voltageKeep within the intended control/sense network's supply rails.−0.3 V to 10 V in the attached datasheet.
PROG currentUse only for current programming/monitoring.1200 µA.
Package / pitchAttached document identifies SOP-8. Distributor identifies TP4056-42-ESOP8 as ESOP-8. Lead pitch, body dimensions, exposed-pad dimensions: unverified. Obtain the exact supplier package drawing before footprint sign-off.
Absolute maximum ratings are stress boundaries, not permission to operate continuously at those values. The IC's ambient range and die thermal feedback do not establish cell safety.
2. Pinout & Connections

Table


Pin NumberPin NameDescriptionBest Practice
1TEMPBattery temperature-sense input. Connect a cell-mounted NTC network designed for the exact revision and cell temperature limits. Grounding TEMP disables temperature sensing; do this only when independent temperature protection is provided or deliberately omitted with its risk understood. Do not leave floating.
2PROGCharge-current programming and monitor input. Fit RPROG from PROG to GND; 1.2 kΩ for nominal 1 A or 2.4 kΩ for nominal 500 mA in this revision. Use a 1% resistor as an engineering recommendation.
3GNDGround. Connect to input return, battery return, and a low-impedance ground plane.
4VCCPositive supply input. Supply regulated 5 V; place local input bypass directly between VCC and GND. Avoid hot-plug overshoot approaching the absolute maximum.
5BATBattery-positive connection; supplies charging current and regulates battery voltage. Connect to the protected pack's positive charge terminal. Place the shown 10 µF BAT-to-GND capacitor close to the IC.
6STDBYOpen-drain output, low at charge termination and otherwise high impedance. Optional LED branch from supply through resistor and LED to this pin. For MCU reading, use a pull-up, e.g. 10 kΩ to the MCU rail, subject to pin voltage and power-off checks.
7CHRGOpen-drain output, low while charging and otherwise high impedance. Use an LED series resistor or a logic pull-up; it is not a push-pull logic output. Do not pull an MCU input to 5 V unless that input is explicitly 5 V tolerant.
8CEHigh enables normal operation; low disables. Tie to VCC for always-enabled operation or drive from a defined control signal. Do not leave floating; check startup/reset behavior if MCU-controlled.
Exposed thermal pad; often library pad 9Thermal pad / radiatorThe older document permits GND or uses the ambiguous word “impending,” apparently meaning floating. Prefer soldering to a GND heat-spreading land. Confirm the physical pad mapping in the purchased package and library footprint; “9” is not an additional numbered signal lead in the eight-lead pinout.
Unverified: Exact TEMP voltage thresholds, status-output sink guarantees and absolute maximum voltages for this purchasing revision. Do not borrow those limits from a look-alike device.
3. Standard Application Circuit
Regulated 5 V single-cell Li-ion charger
Use the following connection plan. Capacitor dielectric, voltage margin, and placement recommendations are engineering choices, not additional guaranteed IC ratings.
  1. Connect regulated 5 V to VCC (pin 4), input return to GND (pin 3), and CE (pin 8) to VCC if charging is always enabled.
  2. Use 10 µF ceramic input bypass, preferably X7R/X5R with a voltage rating above the worst-case supply and adequate effective capacitance under DC bias. Locate it at VCC/GND. This is the recommended starting value; the current manufacturer reference circuit could not be independently verified during this lookup.
  3. Connect BAT (pin 5) to the compatible protected cell/pack's positive charge terminal and its negative charge terminal to GND. The attached typical circuit shows 10 µF from BAT to GND; locate it at BAT.
  4. Connect RPROG between PROG (pin 2) and GND. The extracted equation is:
IBAT=VPROGRPROG×1200(VPROG=1 V)I_{BAT}=\frac{V_{PROG}}{R_{PROG}}\times1200\quad(V_{PROG}=1\,V)
Calculated values: 1.2 kΩ → nominal 1 A; 2.4 kΩ → nominal 500 mA. Select current from the cell's allowed charge rate, source capacity, and thermal capability—not simply the IC headline rating. The attached older text has inconsistent PROG/ISET wording; use the verified equation and electrical table for this revision, not a copied formula from another vendor.
  1. Connect TEMP to a properly designed NTC sense network. Grounding TEMP disables cell-temperature sensing; it does not disable the IC's die thermal regulation.
  2. Optional indicators: supply → resistor → LED anode, LED cathode → CHRG or STDBY. Open-drain status behavior is given in Section 2. A logic pull-up and an LED branch serve different purposes; neither is mandatory when the output is unused.
No external charge-current sense resistor or reverse-discharge blocking diode is required for the basic charger function. This does not establish reverse-battery insertion protection or complete pack over-discharge/short-circuit protection.
LED series-resistor calculation for 3.3 V and 5 V rails
These are illustrative calculations, not TP4056 output guarantees. Assume a red LED with VF = 2.0 V, target 2 mA, and an assumed status-pin low voltage of 0.2 V; verify the selected LED and status-output limits before final selection.
RLED=Vrail−VF−VOLILEDR_{LED}=\frac{V_{rail}-V_F-V_{OL}}{I_{LED}}

Table


LED supply railCalculated resistancePractical initial selection
3.3 V550 Ω560 Ω
5 V1400 Ω1.5 kΩ
Use one resistor per LED and verify current at maximum supply and minimum LED VF. A different LED color requires recalculation. These rails power the LED branches; a 3.3 V indicator rail does not mean 3.3 V is an appropriate charger input.
If the 5 V source is a USB-C receptacle
USB-C configuration belongs to the connector/interface circuit, not the TP4056. For a basic sink receptacle, connect CC1 and CC2 each through its own 5.1 kΩ Rd resistor to GND; do not short CC1 and CC2 together. This sink arrangement is discussed in TI's USB-C charger integration support guidance.
Rd establishes attachment; it does not authorize an arbitrary 1 A load. Add source-current detection/control when required, and ensure total input current—including the system load and LEDs—fits the available USB current. Do not enable higher-voltage USB-PD contracts into TP4056. Power-only D+/D− can remain unused; the TP4056 performs neither enumeration nor charger-port detection.
Shield recommendation: Connect connector shell tabs to a short, low-inductance chassis/shield path at entry. If the product has no separate chassis, a local GND connection is a reasonable prototype starting point; validate ESD/EMC and change the bonding network if needed. Do not use the shield as the battery/input power return. This is an engineering recommendation, not a TP4056 datasheet requirement.
4. PCB Layout & Routing Guidelines
  • Heat spreading and thermal relief: Solder the exposed pad to a broad GND land with thermal vias into ground copper. Avoid narrow thermal-relief spokes under the IC that unnecessarily isolate the heat spreader. Design the stencil/vias with the assembler to avoid solder loss into open vias. The older datasheet identifies the radiator as GND-compatible.
  • Check power dissipation: Use the approximate linear-loss model below. At 5 V input, 3 V BAT, and an assumed 1 A charge current, loss is about 2 W; this is a thermal sizing scenario, not a guaranteed operating point near the precharge threshold. The IC reduces charge current to limit die temperature.
PIC≈(VCC−VBAT)IBATP_{IC}\approx(V_{CC}-V_{BAT})I_{BAT}
  • High-current routing: Use short, broad VCC, BAT, and return paths; a 1 mm external-layer trace in nominal 35 µm copper is a useful starting geometry for a compact 1 A prototype, not a universal ampacity rule. A calculated 25 mm straight trace at 1 A has about 12.3 mV drop using assumed copper resistivity 1.724×10⁻⁸ Ω·m. Recheck temperature rise, neckdowns, vias, actual copper thickness, and voltage drop for the final board.
  • Decoupling and sensitive nodes: Put input/BAT capacitors beside their pins with short ground returns; put RPROG close to PROG and return it to quiet local ground rather than through battery-current routing. Keep TEMP away from heat sources and sense the cell, not the charger's PCB temperature.
  • Differential pairs: None are required by the TP4056. If a separate USB data interface is present, route its D+/D− pair according to that interface's impedance and matching requirements; a power-only charger does not need decorative differential routing.
5. Common Pitfalls / Things to Watch Out For
  1. Treating “1 A” as guaranteed and safe for every cell. Poor exposed-pad soldering, too little copper, or excessive input voltage increases dissipation and reduces charge current through thermal feedback. Program current from the cell specification and source capability, and test at worst-case ambient. Grounding TEMP removes battery-temperature supervision; die thermal limiting is not a substitute.
  2. Mistaking the charger for a power-path manager or complete battery-protection circuit. The TP4056 terminates at one-tenth of programmed current after final float voltage. A system load connected to BAT adds to the measured output current and can prevent termination; use a separate load-sharing/power-path design when the product operates while charging. Provide cell/pack protection against over-discharge, overcurrent, short circuit, and reverse insertion as needed; verify connector polarity.
No cross-manufacturer drop-in replacement was verified. The following are verified functional alternatives available in the Flux library. Both require schematic and PCB redesign; neither is pin-compatible nor footprint-compatible with SOP-8/ESOP-8 TP4056.

Table


Component / manufacturerVerified capabilityCompatibility and redesign implications
MCP73831T-2ATI/OT, Microchip4.20 V regulation, 5-lead SOT-23, tape and reel; 15–500 mA programmable charge current, thermal regulation, tri-state charge-status output. Functionally similar only. Lower maximum current, different pins/package/current-programming equation and status interface. Not a substitute for a 1 A requirement.
BQ24040DSQR, Texas Instruments10-pin WSON; fast-charge programming range 10–1000 mA under the stated 5 V electrical-table conditions; 4.2 V typical battery regulation. Functionally similar only. Different package/pinout and programming network; verify temperature-control behavior and termination/precharge configuration.
Do not qualify a replacement from a “4056” family name alone. Match charge voltage, current-programming coefficient, TEMP behavior, status polarity, supply limits, package drawing, and exposed-pad connection using the exact vendor datasheet, then validate hardware.
7. Sourcing & Purchasing Guide

Table


AttributeDetails
Primary DistributorsVerified listing: LCSC C16581 — TOP POWER ASIC TP4056-42-ESOP8. DigiKey/Mouser/Arrow listings for this exact original-manufacturer bare IC were not verified; development-board listings are not proof of bare-IC distribution.
Packaging OptionsVerified physical package: ESOP-8 for C16581. Tape-and-reel/cut-tape service and reel size were not verified in the retrieved listing; confirm with the supplier. TP4056-42-EMSOP8, C21417 is a separately listed MSOP-8-EP variant, not the same footprint.
Standard MOQUnverified. No purchasing minimum or full-reel quantity was exposed in the retrieved page. Do not assume 1-piece MOQ or a 3000-piece reel. Check the live cart or request a quotation.
AvailabilityThe retrieved LCSC page reported 60,330 units in stock on October 7, 2026. This is a page-retrieval snapshot, not reserved stock or a delivery commitment. Recheck at order time.
Sourcing AdviceBuy traceable manufacturer-specific stock from established suppliers; confirm authorized/franchised status with the manufacturer for production sourcing. LCSC's listing was verified, but its franchise status was not. Avoid untraceable marketplace “TP4056” stock and boards whose chip vendor is unspecified. Require exact MPN, lot traceability, charge-voltage suffix, and package drawing. Confirm packing service separately; the attached older document's SOP8-PP naming and current ESOP8 naming should not be assumed mechanically identical without drawings.
Sources
  • Manufacturer-authored TP4056 datasheet attached to this project: “TP4056 1A Standalone Linear Li-Ion Battery Charger with Thermal Regulation in SOP-8,” NanJing Top Power ASIC Corp.; revision/date and original attached source URL unresolved. Inline citations above resolve to the inspected evidence. A public copy of this older document is available through SparkFun's datasheet hosting; byte-for-byte identity with the attachment was not checked.
  • Manufacturer product page: Top Power ASIC TP4056, accessed October 7, 2026.
  • Current manufacturer-hosted English datasheet: TP4056 PDF. Located but full evidence extraction remained pending; revision/date, new ratings, TEMP thresholds, and dimensions are not verified in this guide. The URL path is not proof of the document's revision date.
  • Microchip: MCP73831/MCP73832 datasheet, DS20001984H (revision H); precise calendar publication date not independently checked.
  • Texas Instruments: BQ24040 datasheet; revision/date not independently checked in this lookup.
  • Texas Instruments primary support guidance: USB-C CC wiring and source-current detection for a single-cell charger.
  • Distributor purchasing records, not primary electrical-rating evidence: LCSC TP4056-42-ESOP8, C16581 and TP4056-42-EMSOP8, C21417, accessed October 7, 2026.
  • 1. Quick Specifications

  • 2. Pinout & Connections

  • 3. Standard Application Circuit

  • Regulated 5 V single-cell Li-ion charger

  • LED series-resistor calculation for 3.3 V and 5 V rails

  • If the 5 V source is a USB-C receptacle

  • 4. PCB Layout & Routing Guidelines

  • 5. Common Pitfalls / Things to Watch Out For

  • 6. Popular Alternatives & Equivalents

  • 7. Sourcing & Purchasing Guide

  • Sources