Skip to main content
Application NoteNxp

Smart Battery Charger by LPC845 with SMBus Interface

A guide for building a smart battery charger using the NXP LPC845 MCU, featuring SMBus communication, PWM-based charging control, and real-time status monitoring on an LCD.

View application note

Overview

This application note details a smart battery charging solution using the NXP LPC845 microcontroller. The system is designed to charge 8.4V Li-ion battery packs through four stages: pre-charging, constant current, constant voltage, and full charge. It employs the SMBus v1.1 protocol to interface with a bq40z50 battery manager for real-time monitoring of voltage, current, and temperature. Hardware components include a buck converter circuit regulated by 70 kHz PWM, a 2.8-inch SPI-driven TFT LCD for data visualization, and an integrated ADC for temperature sampling via a PTC thermistor. The document covers hardware connections, software flowcharts, and the use of FreeMASTER for real-time debugging.

Use Cases

  • Smart battery charging for portable electronics
  • SMBus v1.1 communication implementation
  • MCU-based buck converter voltage regulation
  • Real-time battery status monitoring and LCD integration

Topics

LPC845
SMBus
Li-ion battery charger
bq40z50
PWM
NXP Semiconductors
Cortex-M0+
Power Management
LPC4370

Referenced Parts

LPC845

NXP Semiconductors

A smart charging solution implemented with LPC845 is recommended.

bq40z50

Texas Instruments

The battery package contains a Li-Ion battery pack manager chip named bq40z50.

LPC4370

NXP Semiconductors

It can also be used as an evaluation board in its own right for the NXP LPC4370 triple core MCU.

LPC4370

NXP

be used as an evaluation board in its own right for the NXP LPC4370 triple core MCU.

LPC845

NXP

Figure 2 shows the system diagram, including NXP LPC845 battery charger board, +12 Adapter, smart batter, LCD, and emulator.

Smart Battery Charger by LPC845 with SMBus Interface | Design Resources