AN155 - Using a Microcontroller to Adjust the MP2759's Charging Current

Get valuable resources straight to your inbox - sent out once per month

Subscribe

We value your privacy


ABSTRACT

To fine-tune their performance, many battery-powered devices must adjust the charging current in real time under different operating modes. For example, many battery manufacturers require specific charging current levels for different temperatures to guarantee battery safety. Although the MP2759 has JEITA to adjust the charging current, an microcontroller (MCU) provides enhanced user configuration.

The MP2759 can regulate its charging current with a resistor (RISET) connected between the ISET pin and AGND. This application note details how to adjust the MP2759’s charging current in real time with an MCU, based on the charging current regulation. This application note describes the MP2759, and addresses the relationship between RISET and the charging current. Next, this note recommends a design guide for charging current real-time adjustment, and lastly provides a design example.

INTRODUCTION

The MP2759 is a highly integrated switching charger designed for applications with 1-cell to 6-cell series Li-ion or Li-polymer battery packs. It supports several battery chemistries with different battery regulation voltages. The charging current can be regulated by connecting a corresponding resistor (RISET) between the ISET pin and AGND. The relationship between RISET and the charging current can be calculated with Equation (1):

$$ I_{\text{CHG}} = \frac{96\,(\text{k}\Omega)}{R_{\text{ISET}}\,(\text{k}\Omega)} $$

Although the charging current can be adjusted with RISET, this method is unreliable for real-time regulation. By using the PWM of an MCU, the charging current can be adjusted in real time with greater reliability. Figure 1 shows the standard schematic for the MP2759.

Figure 1: MP2759 Application Schematic

METHOD DETAILS

The MP2759 regulates the charging current with different resistor values read by the ISET pin. The ISET pin maintains a constant voltage of 1.2V, meaning the charging current can be adjusted by changing the equivalent resistor between the ISET pin and AGND. This change can be initiated by modifying the MCU’s PWM duty cycle.

Figure 2: Equivalent Circuit of the ISET Pin

Method Overview

Figure 3 shows how to build a design when the equivalent resistor is connected to the MP2759’s ISET pin.

Figure 3: Equivalent Resistor Design Circuit

The PWM signal has a controllable duty cycle. This signal is generated by an MCU. The RC filter (consisting of R2, R3, and CISET) filters the PWM signal to the DC signal. The equivalent resistance (REQ) between the ISET pin and AGND can be calculated with Equation (2):

$$ R_{\text{EQ}} = \frac{1.2 R_1 G_{123}}{1.2 G_{123} - \left( \frac{\text{DUTY} \cdot V_{M\_PWM}}{R_2} + \frac{1.2}{R_1} \right)} $$

Where DUTY is the PWM duty cycle, and VM_PWM is the PWM amplitude (the same as the MCU supply voltage, which is about 3.3V). G123 can be estimated with Equation (3):

$$ G_{123} = \frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3} $$

For Equations 1, 2, and 3, REQ must exceed 0Ω. When REQ falls below 0Ω, ICHG = 0A. Table 1 lists the charging current based on the PWM input.

Table 1: Charging Current vs. PWM Input

PWM Input PWM Duty Charging Current
GND 0% Max charging current
Logic high 100% 0A
PWM duty cycle 0% to MAX_DUTY(1) Linearly adjust charging current
Float N/A 96(kΩ)/R1+R3

Note:

1) MAX_DUTY is the maximum PWM duty when the charging current falls to 0A. It is recommended to be about 80%.

Parameters-Related Design Guide

Based on the analysis above, the parameters (R1, R2, R3, CISET) can be designed with the following guidelines:

  • The equivalent resistor that corresponds to the max charging current is RMAX_ICHG, which can be calculated with Equation (4):
  • $$ R_{\text{MAX_ICHG}} = R_1 + R_2 \parallel R_3 $$
  • Choose an appropriate R1, estimated with Equation (5):
  • $$ R_1 = 0.5 \cdot R_{\text{MAX_ICHG}} $$
  • Solve the equations, then calculate R2 and R3 with Equation (6):
  • $$ \left\{ \begin{array}{l} R_2 \parallel R_3 = R_{\text{MAX_ICHG}} - R_1 \\ \displaystyle \frac{\text{MAX_DUTY} \cdot V_{M\_PWM} - 1.2}{R_2} = \frac{1.2}{R_3} \end{array} \right. $$
  • Choose an appropriate CISET to filter the PWM signal to DC signal, estimated with Equation (7):
  • $$ \frac{1}{2\pi (R_2 \parallel R_3) C_{\text{ISET}}} \ll f_{\text{PWM}} $$

    Where fPWM is the PWM frequency.

    DESIGN EXAMPLE

    This section demonstrates how to successfully design the parameters to adjust the charging current in real time when MAX_ICHG =2.7A, MAX_DUTY =80%, VM_PWM=3.3V, and fPWM=2kHz.

    Design Process

    1. Calculate RMAX_ICHG using Equation (8):

    $$ R_{\text{MAX_ICHG}} = \frac{96\,\text{k}\Omega}{\text{MAX_ICHG}} = 35\,\text{k}\Omega $$

    2. Choose R1=20kΩ.


    3. Use Equation(6) to calculate R2=33kΩ, and R3=27kΩ.


    4. Set CISET=1µF to filter the PWM signal to the DC signal.

    Design Results

    Build a demo board with the parameters determined above to verify the effectiveness of the method proposed in this application note. Figure 4 shows the demo board schematic.

    Figure 4: MP2759 Charging Current Adjustment Application Demo Board Schematic

    According to the results obtained after testing the demo board (under the test conditions: VIN=16V, VBATT=12V, VM_PWM=3.3V, and fPWM=2kHz), there is a linear relationship between the charging current and the PWM duty cycle, and the duty cycle offers a wide range of 0% to 82%. (see Figure 5).

    Figure 5: Charging Current vs. PWM Duty Cycle

    The MP2759 does not experience overshoot or undershoot when the charging current changes (see Figure 6). In addition, the device demonstrates normal start-up and shutdown (see Figure 7).

    All the test results offer evidence supporting the effectiveness of the design method introduced in this application note.

    Figure 6: Charging Current Transition between 0.5A and 2.4A

    Figure 7: Waveforms of MP2759 On/Off Application (Duty = 50%)

    CONCLUSION

    Charging performance can be optimized with an adjustable charging current. The application note proposed a method to adjust the MP2759’s charging current in real time with an MCU. A design example was provided, as well as test results to prove the validity of this current-charging method.

    ADDITIONAL READING

    For more information about MPS battery management products, please visit this page.

    _______________________

    Did you find this interesting? Get valuable resources straight to your inbox - sent out once per month!

    获取技术支持