Академический Документы
Профессиональный Документы
Культура Документы
D/N:AN0312E
Introduction
With the rapid development of the global economy and the improvement of people’s living
standards, there has been a huge increased usage of portable electronic products such
as laptop computers, mobile phones, digital cameras, camcorders, portable DVDs, PDAs,
Music Players, GPS devices, health care devices, etc., all of which need a battery power
supply. But because of the battery’s limited capacity, the amount of usage time provided
is often far from ideal. Batteries can run out of energy at a critical moment when they are
required for business etc or when travelling, where they are used frequently. This problem
can apply to portable devices such as mobile phones, digital cameras, PSPs, PDAs etc. It
is just impractical to have a separate power bank supply for every portable device,
however a common backup supply based on the HT45F4M can resolve this problem
The HOLTEK HT45F4M is a MCU especially designed for power bank supply
applications, providing the convenience required by multiple portable devices.
1
Power Bank Application - Using the HT45F4M
2
Power Bank Application - Using the HT45F4M
USB I/P
5V
USB O/P
Flash ROM
OVP
2K x 16
RAM VDD
PTM OCP
128 x 8
Fig. 1
3
Power Bank Application - Using the HT45F4M
14.PMOS switch
8.Resistor network
Circuit Description
External Power Connected to Wake-up the MCU
If the USB_IN interface is plugged into an external power supply, then the PA6 level will
change from low to high and generate an interrupt to wake-up the MCU for a charge
operation.
4
Power Bank Application - Using the HT45F4M
happens, the OVP function will force the PWM into an off state using hardware and
generate an interrupt.
Mobile phones will start charging when they have detected that the power bank output
voltage is greater than 5V. The output voltage can be fixed to 5.15V to avoid a start
charge failure due to line loss.
Fig. 3
When charging, the longer the NMOS transistor is on, the higher the charging power is.
When discharging, the longer the PMOS transistor is on, the higher the discharging
power is.
Figure 4 shows the complementary PWM block diagram with dead time.
Fig. 4
5
Power Bank Application - Using the HT45F4M
Inductor L1
L1 is used to provide a freewheeling function during charging and a boost voltage
function during discharging.
Resistor Network
The resistor net consists of R15, R16, R17 and R18, specially designed for different
mobile phones. Different manufacturers have different configurations. Holtek has the
following information:
If the I-phone series require fast battery charging, D+ should be supplied with 2.2V, and
D- should be supplied with 2.8V.
If the HTC series mobile phones require fast battery charging, D+ and D- should be
shorted.
Holtek has presently obtained information by experiment and has found that I-phone
3GS, I-phone 4 and I-phone 4S can take a charging operation when D+ and D- are
shorted.
6
Power Bank Application - Using the HT45F4M
Precision Voltage
The precision reference voltage is to provide a reference voltage for the internal ADC and
DAC.
Key
This is to initiate discharging and displaying the battery power.
Set the PA7 port to be an input with a pull high resistor. When connected to an external
device, a small current will pull low the PA7 port and wakeup the MCU. Due to not being
able to guarantee that every external device will be detected, in addition to displaying the
power when the key is pressed, the power bank will also enter the discharge mode. If the
automatic detection fails, it also can be discharged by pressing the key.
PMOS Switch
This PMOS switch can directly switch the battery off using the PMOS body diode which
outputs a voltage to the external device.
7
Power Bank Application - Using the HT45F4M
Fig. 5
8
Power Bank Application - Using the HT45F4M
Start
Clr f_halt_mode
SetF_LED_CHANGE
Set F_GET_TEMP
Get battery voltage
Get input voltage
Get battery current
Charging CHANGE[Initial]
N
initialization? SET F_CHANGE3V_MODE
N
SET F_500mA_MODE
N
Battery voltage
1A charging mode ? Y Y 1A charging
< 4.2V
N
N
SET
F_CHANGE42V_MODE
4.2V charging
Charging
Y SET F_CHANGE_FULL
current < 80mA
CALL UP_DUTY
RET
Fig. 6
9
Power Bank Application - Using the HT45F4M
Start
Clr f_halt_mode
Set F_LED_CHANGE
Set F_GET_TEMP
Set f_halt_mode
Battery power
Y Clr F_LED_CHANGE
< 3V ?
Clr F_GET_TEMP
DIS_DIS_BATTERY
Initialization ? Y
[Initial]
Output voltage
Dec DUTYL_BUFF Y
> 5.1V
Output voltage
Inc DUTYL_BUFF Y
< 5V
CLR f_DIS_BATTER
Output current SET f_halt_mode
Y
< 50mA Clr
F_LED_DISCHANGE
CALL UP_DUTY
RET
Fig. 7
10
Power Bank Application - Using the HT45F4M
Main Program
When an external power supply is plugged in, it implements charging. When an external
load is plugged in, it implements discharging. When the key is pressed, it displays the
power. If the key is continuously pressed for 3 seconds, the flashlight function is enabled.
It starts processing when the power bank is in an abnormal condition. The temperature
detect and LED scanning output are always executed during the complete charge
operation. If no events are to be executed then the program will enter the halt mode.
Charging Procedure
When a battery voltage of less than 3V is detected, a 100mA small constant charging
current will be supplied. If the battery voltage is charged between 3V and 4.2V, then the
battery will be charged with a constant current. If the battery voltage is charged to 4.2V,
then the battery will be charged with a constant voltage and charging is completed when
the charging current is less than 80mA. Here the full charge flag will be set.
Discharging Procedure
Discharging includes two functions, one is for discharge voltage control, another is for
discharge current control.
11
Power Bank Application - Using the HT45F4M
Top Layer
Fig. 8
Bottom Layer
Fig. 9
12
Power Bank Application - Using the HT45F4M
13
Power Bank Application - Using the HT45F4M
Fig. 10
14
Power Bank Application - Using the HT45F4M
Note: The 0.1A conversion efficiency is lower because the MCU and LED both consume power.
Conclusion
A power bank product using the HT45F4M has the advantages of high efficiency
synchronous rectification function, low standby current, high noise immunity, competitive
pricing and so on. Compared with other power bank supplies using charge ICs with
general MCUs, this kind of power bank can change its charge and discharge parameters
using software. This not only offers the advantages of lower cost but also supports
products with different requirements, thus offering a better solution over traditional
methods.
15