The use of USB power to charge Lithium-Ion Polymer (LiPo) batteries in electronic systems and devices has become quite popular. To assist in the development of such circuitry in embedded system applications, this application report provides the details on the hardware and software requirements needed to not only implement a battery charging solution using the bq24230 battery charger and the MSP430™ USB device (in a switched context USB power configuration), but also to monitor the battery status using the bq27410 fuel gauge to read important battery statistics and status information.
The example cases discussed in this application report provide a basic understanding of what needs to be done at production, as well as on the application level, to achieve the aforementioned goals. The associated software provides library functions to interface and communicate with the bq27410 fuel gauge, applicable to any USB-equipped MSP430 device. The software also includes a demo application that integrates the USB stacks and the fuel gauge library functions to read the battery information from the fuel gauge and transmit it to the PC through USB Communications Device Class (CDC).
Source files and other collateral that are discussed in this application report can be downloaded from http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430_LIPO/latest/index_FDS.html.