Giter Site home page Giter Site logo

cykibb / mcp73871-driver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

Library for general support for Microchip single cell battery charge management controller

Home Page: https://www.microchip.com/en-us/product/mcp73871

License: MIT License

CMake 3.33% C 96.67%

mcp73871-driver's Introduction

Microchip MCP73871 Battery Charge Management Controller

Library containing application specific code for battery management charge controller

Battery Charge Controller States

  TEMPERATURE_TIMER_FAULT, // 000: L L L
  CHARGING_INPUT_PRESENT,  // 001: L L Hi-Z
  CHARGING_IN_PROGRESS,    // 010: L Hi-Z L (Precond Constant Current, Voltage)
  LOW_BATTERY_OUTPUT,      // 011: Hi-Z L L
  CHARGE_COMPLETE_STANDBY, // 100: Hi-Z L L
  UNKNOWN_STATE,           // 101: Not specified
  NO_BATTERY_PRESENT,      // 110: Hi-Z Hi-Z L
  NO_INPUT_POWER_PRESENT_SHUTDOWN, // 111: Hi-Z Hi-Z Hi-Z
  MCP_ERROR_STATE

MCP73871 Charge Controller

The MCP73871 device is a fully integrated linear solution for system load sharing and Li-Ion/Li-Polymer battery charge management with AC-DC wall adapter and USB port power sources selection. It is also capable of autonomous power source selection between input and battery. Along with its small physical size, the low number of required external components makes the device ideally suited for portable applications.

The MCP73871 device employs a constant current/constant voltage (CC/CV) charge algorithm with selectable charge termination point. To accommodate new and emerging battery charging requirements, the constant voltage regulation is fixed with four available options: 4.10V, 4.20V, 4.35V or 4.40V. The MCP73871 device also limits the charge current based on the die temperature during high power or high ambient conditions. This thermal regulation optimizes the charge cycle time while maintaining device reliability.

The MCP73871 device includes a low battery indicator, a power good indicator and two charge status indicators that allow for outputs with LEDs or communication with host microcontrollers. The MCP73871 device is fully specified over the ambient temperature range of -40°C to +85°C.

Below is a table representation of the MCP73871 state map based on the STAT1, STAT2, and PG pin states. This table includes the binary encoding of the pin states and the corresponding charge cycle state.

STAT1 STAT2 PG Binary Encoding Charge Cycle State
L L L 000 Temperature Fault*
L Hi-Z Hi-Z 001 Low Battery Output
L Hi-Z L 010 Preconditioning**
Hi-Z L L 011 Charge Complete - Standby
- - - 100 UNKNOWN_STATE
- - - 101 UNKNOWN_STATE
Hi-Z Hi-Z L 110 Shutdown (VDD = IN)***
Hi-Z Hi-Z Hi-Z 111 Shutdown (VDD = VBAT)****
* Also represents Timer Fault due to identical pin states.
** Also represents Constant Current and Constant Voltage due to identical pin states.
*** Also interpreted as Shutdown (CE = L) and No Battery Present due to identical pin states.
**** Also interpreted as No Input Power Present due to identical pin states.

This table summarizes how the MCP73871's charge cycle state can be determined by reading the levels of the STAT1, STAT2, and PG pins, encoded in binary for ease of interpretation. The states marked as UNKNOWN_STATE represent binary combinations not explicitly defined in the provided state table, and Hi-Z (High Impedance) is treated as a logical high (H or 1) in this context for simplicity.

Please note, the asterisks (*) indicate footnotes explaining nuances like overlapping states due to identical pin states, which are critical for understanding the limitations of this direct mapping approach.

mcp73871-driver's People

Contributors

cykibb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.