CN106026257B - A kind of mobile terminal - Google Patents
A kind of mobile terminal Download PDFInfo
- Publication number
- CN106026257B CN106026257B CN201610467634.7A CN201610467634A CN106026257B CN 106026257 B CN106026257 B CN 106026257B CN 201610467634 A CN201610467634 A CN 201610467634A CN 106026257 B CN106026257 B CN 106026257B
- Authority
- CN
- China
- Prior art keywords
- battery
- charging
- voltage
- pin
- charger
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H02J7/685—
-
- H02J7/61—
-
- H02J7/62—
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B40/00—Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本发明公开了一种移动终端,通过在电池的充电线路中同时设置负载开关和充电芯片,使得移动终端在硬件上可以支持直充和充电芯片充电两种方式。针对两种充电方式的选择切换,本发明采用根据电池的电芯电压变化自动控制负载开关和充电芯片交替使能运行的方式进行切换,并基于输出电压动态可调的充电器,自动在充电芯片和处理器之间进行充电电压调控权的选择切换。由此设计的充电策略可以在保证移动终端充电安全的同时,加快电池的充电速度,提高充电效率,降低充电温升,在很大程度上减少了因移动终端需要频繁、长时间充电给用户日常使用造成的困扰,改善了用户的使用体验。
The invention discloses a mobile terminal. By simultaneously setting a load switch and a charging chip in a charging line of a battery, the mobile terminal can support two modes of direct charging and charging with a charging chip on hardware. For the selection and switching of the two charging methods, the present invention adopts the method of automatically controlling the load switch and the charging chip to alternately enable the operation according to the battery cell voltage change, and based on the dynamically adjustable output voltage of the charger, the charging chip is automatically switched on. The selection switching of the charging voltage control right is performed between the processor and the processor. The charging strategy thus designed can speed up the charging speed of the battery, improve the charging efficiency, and reduce the temperature rise of the charging while ensuring the safety of charging the mobile terminal. The trouble caused by use improves the user experience.
Description
技术领域technical field
本发明属于移动终端技术领域,具体地说,是涉及一种支持直充和充电芯片充电两种充电方式的移动终端产品。The invention belongs to the technical field of mobile terminals, and in particular relates to a mobile terminal product supporting two charging modes of direct charging and charging chip charging.
背景技术Background technique
随着电子信息技术的快速发展,便携式移动终端产品(例如手机、PAD、笔记本电脑等)已经深入到人们生活的方方面面,成为引领半导体产业前进的主导力量。目前的移动终端产品大多采用可充电电池为产品内部的系统电路供电。随着移动终端产品所支持的功能日渐增多,其系统电路的耗电量也随之增大,在电池容量有限的情况下,产品充电后的续航时间逐渐缩短,导致充电操作变得越来越频繁。With the rapid development of electronic information technology, portable mobile terminal products (such as mobile phones, PADs, notebook computers, etc.) have penetrated into all aspects of people's lives and become the leading force leading the progress of the semiconductor industry. Most of the current mobile terminal products use rechargeable batteries to power the internal system circuits of the products. With the increasing number of functions supported by mobile terminal products, the power consumption of its system circuits also increases. In the case of limited battery capacity, the battery life after charging is gradually shortened, resulting in the charging operation becoming more and more difficult. frequently.
目前,广泛采用的电池充电方式主要有两种:一种是SDP充电方式,即利用主机(例如计算机等)为电池充电,这种充电方式由于通过主机输出的充电电压恒定,且充电电流较小,因此需要较长的充电时间。另一种是DCP充电方式,即利用电源适配器(充电器)为电池充电。现有的充电器,其类型多种多样,有输出电压为直流5V的普通5V充电器、输出电压多档可选的QC2.0、USB PD、MTK PE+充电器以及输出电压可自由调节的QC3.0充电器等。其中,QC3.0充电器是2015年高通公司发布的一款智能化程度比较高的电源适配器,其输出电压可以在3.6V~12V范围内以0.2V为步长进行调整,并采用电压协商机制,实现了最佳功率传输。At present, there are two main battery charging methods widely used: one is the SDP charging method, which uses the host (such as a computer) to charge the battery. This charging method is due to the constant charging voltage output by the host and the small charging current , so a longer charging time is required. The other is the DCP charging method, which uses a power adapter (charger) to charge the battery. There are various types of existing chargers, including ordinary 5V chargers with an output voltage of DC 5V, QC2.0, USB PD, MTK PE+ chargers with optional output voltages, and QC3 with freely adjustable output voltages. .0 charger etc. Among them, the QC3.0 charger is a relatively intelligent power adapter released by Qualcomm in 2015. Its output voltage can be adjusted in steps of 0.2V within the range of 3.6V~12V, and a voltage negotiation mechanism is adopted. , achieving optimal power transfer.
在利用QC3.0充电器对手机等移动终端产品的内置电池进行充电时,可以采用降低手机内部的充电芯片的输入电压的方式来提高充电芯片的效率。但是,手机内置充电芯片的效率会受到芯片制作工艺的限制,使得充电芯片的最大效率一般限制在80%~90%左右。对于大电流充电来说,即使10%的效率损失也会转化为很高的手机温升,继而影响用户的使用体验,这也成为充电电流继续增大的瓶颈,阻碍了电池充电速度的进一步提升。When using the QC3.0 charger to charge the built-in battery of mobile terminal products such as mobile phones, the efficiency of the charging chip can be improved by reducing the input voltage of the charging chip inside the mobile phone. However, the efficiency of the mobile phone's built-in charging chip will be limited by the chip manufacturing process, so that the maximum efficiency of the charging chip is generally limited to about 80% to 90%. For high-current charging, even a 10% efficiency loss will translate into a high temperature rise of the mobile phone, which will affect the user's experience. This will also become a bottleneck for the continuous increase of the charging current and hinder the further improvement of the battery charging speed. .
发明内容Contents of the invention
本发明的目的在于提供一种支持直充和充电芯片充电两种充电方式的移动终端,可以在加快电池充电速度的同时,降低充电温升,提高充电效率。The purpose of the present invention is to provide a mobile terminal that supports two charging methods, direct charging and charging chip charging, which can reduce charging temperature rise and improve charging efficiency while speeding up battery charging.
为了解决上述技术问题,本发明采用以下技术方案予以实现:In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions to achieve:
一种移动终端,设置有电池、充电接口、充电芯片、负载开关和处理器;所述电池用于储存电能;所述充电接口用于外接充电器,其上设置有电源引脚、D+引脚、D-引脚;所述充电芯片连接在所述充电接口与电池之间,用于接收充电器输出的充电电源,并为所述电池充电;在所述充电芯片上设置有与所述D+引脚相连的第一驱动引脚、与所述D-引脚相连的第二驱动引脚,在所述电池的电芯电压处于预设的直充阈值的范围以外时,所述充电芯片通过所述第一驱动引脚和所述第二驱动引脚对所述充电器的输出电压进行调节;所述负载开关连接在所述电源引脚与电池之间,用于连通或切断电池的直充通路;所述处理器设置有与所述D+引脚相连的第三驱动引脚、与所述D-引脚相连的第四驱动引脚;所述处理器在电池的电芯电压处于预设的直充阈值的范围以外时,控制所述负载开关断开,并启动所述充电芯片为电池充电;在电池的电芯电压处于预设的直充阈值的范围以内时,关闭所述充电芯片,并控制所述负载开关连通所述电池和所述电源引脚,且通过所述第三驱动引脚和所述第四驱动引脚对所述充电器的输出电压进行调节。A mobile terminal is provided with a battery, a charging interface, a charging chip, a load switch and a processor; the battery is used to store electric energy; the charging interface is used for an external charger, and a power pin and a D+ pin are arranged on it , D-pin; the charging chip is connected between the charging interface and the battery, used to receive the charging power output by the charger, and charge the battery; the charging chip is provided with the D+ The first drive pin connected to the pin and the second drive pin connected to the D- pin, when the cell voltage of the battery is outside the preset direct charging threshold range, the charging chip passes The first drive pin and the second drive pin regulate the output voltage of the charger; the load switch is connected between the power supply pin and the battery, and is used to connect or cut off the direct current of the battery. charging path; the processor is provided with a third drive pin connected to the D+ pin and a fourth drive pin connected to the D- pin; When it is outside the range of the preset direct charging threshold, the load switch is controlled to be disconnected, and the charging chip is started to charge the battery; when the cell voltage of the battery is within the preset direct charging threshold range, the charging is turned off. chip, and control the load switch to communicate with the battery and the power supply pin, and adjust the output voltage of the charger through the third drive pin and the fourth drive pin.
与现有技术相比,本发明的优点和积极效果是:本发明通过在电池的充电线路中同时设置负载开关和充电芯片,使得移动终端在硬件上可以支持直充和充电芯片充电两种方式。针对两种充电方式的选择切换,本发明采用根据电池的电芯电压变化自动控制负载开关和充电芯片交替使能运行的方式进行切换,并基于输出电压动态可调的充电器,自动在充电芯片和处理器之间进行充电电压调控权的选择切换。由此设计的充电策略可以在保证移动终端充电安全的同时,加快电池的充电速度,提高充电效率,降低充电温升,在很大程度上减少了因移动终端需要频繁、长时间充电给用户日常使用造成的困扰,改善了用户的使用体验。Compared with the prior art, the advantages and positive effects of the present invention are: the present invention sets a load switch and a charging chip in the charging line of the battery at the same time, so that the mobile terminal can support two modes of direct charging and charging chip charging on the hardware. . For the selection and switching of the two charging methods, the present invention adopts the method of automatically controlling the load switch and the charging chip to alternately enable the operation according to the battery cell voltage change, and based on the dynamically adjustable output voltage of the charger, the charging chip is automatically switched on. The selection switching of the charging voltage control right is performed between the processor and the processor. The charging strategy thus designed can speed up the charging speed of the battery, improve the charging efficiency, and reduce the temperature rise of the charging while ensuring the safety of charging the mobile terminal. The trouble caused by use improves the user experience.
结合附图阅读本发明实施方式的详细描述后,本发明的其他特点和优点将变得更加清楚。Other features and advantages of the present invention will become more apparent after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明所提出的移动终端与输出电压可调的充电器连接的一种实施例的电路原理框图;Fig. 1 is the circuit block diagram of a kind of embodiment that the mobile terminal proposed in the present invention is connected with the charger with adjustable output voltage;
图2为本发明所提出的移动终端与输出电压可调的充电器连接的另外一种实施例的电路原理框图;Fig. 2 is a schematic circuit diagram of another embodiment in which the mobile terminal proposed by the present invention is connected to a charger with adjustable output voltage;
图3为基于图1或图2所示的移动终端提出的充电方法的一种实施例的处理流程图;Fig. 3 is a processing flowchart of an embodiment based on the charging method proposed by the mobile terminal shown in Fig. 1 or Fig. 2;
图4为电池直充过程的一种实施例的处理流程图;Fig. 4 is the processing flowchart of an embodiment of the battery direct charging process;
图5为电池直充过程中充电器插拔检测方法的一种实施例的处理流程图;Fig. 5 is a processing flowchart of an embodiment of a charger plug-in detection method in the battery direct charging process;
图6为电池直充过程中充电器插拔检测方法的另外一种实施例的处理流程图。Fig. 6 is a processing flow chart of another embodiment of the charger plug-in/unplug detection method during the battery direct charging process.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式作进一步详细地说明。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.
本实施例为了充分利用QC3.0充电器输出电压动态可调的特性,来实现充电速度的明显提升,一方面对内置有可充电电池的移动终端进行硬件改造,使移动终端既可支持常规充电,即,通过移动终端内部的充电芯片对电池进行充电;又可支持直充,即,将充电器的输出电压直接输送至电池,对电池进行大电流直充;另一方面,根据电池在充电过程中其电芯电压的实时变化,对QC3.0充电器输出的充电电压进行动态调节,并控制移动终端进入不同的充电方式,继而实现了充电电源的合理化利用,缩短了电池的充电时间。In this embodiment, in order to make full use of the dynamically adjustable output voltage of the QC3.0 charger to significantly increase the charging speed, on the one hand, the hardware of the mobile terminal with a built-in rechargeable battery is modified so that the mobile terminal can support conventional charging. , that is, the battery is charged through the charging chip inside the mobile terminal; it can also support direct charging, that is, the output voltage of the charger is directly transmitted to the battery, and the battery is directly charged with a large current; on the other hand, according to the charging of the battery The real-time change of the cell voltage during the process dynamically adjusts the charging voltage output by the QC3.0 charger, and controls the mobile terminal to enter different charging modes, thereby realizing the rational use of charging power and shortening the charging time of the battery.
当然,所述QC3.0充电器也可以采用其他输出电压动态可调的充电器进行替换,同样可以达到相同的技术效果,本实施例对输出电压可调的充电器的具体类型并不仅限于以上举例。Of course, the QC3.0 charger can also be replaced by other chargers with dynamically adjustable output voltage, which can also achieve the same technical effect. The specific types of chargers with adjustable output voltage in this embodiment are not limited to the above example.
下面结合图1、图2,首先对本实施例的移动终端的硬件配置情况进行具体阐述。In the following, with reference to FIG. 1 and FIG. 2 , firstly, the hardware configuration of the mobile terminal in this embodiment will be described in detail.
如图1所示,为了保留移动终端既有的传统充电功能,保证移动终端能够与现有的主机和常规充电器正常插接、充电,本实施例保持移动终端现有的充电接口不变,即兼用于充电和传输数据的复用接口,例如目前广泛采用的USB接口J1,以满足其与目前市面上绝大多数厂家生产的常规电源适配器和计算机主机的插接充电要求。在本实施例中,所述USB接口J1可以是USB Type-C接口,也可以是Micro USB接口等。由于USB Type-C接口可以支持高达5A的电流,因此,本实施例优选采用USB Type-C接口作为所述移动终端的充电接口,以用于外接充电器,对移动终端内部的电池U4充电。As shown in Figure 1, in order to retain the existing traditional charging function of the mobile terminal and ensure that the mobile terminal can be plugged and charged normally with the existing host and conventional chargers, this embodiment keeps the existing charging interface of the mobile terminal unchanged. That is, a multiplexed interface that is also used for charging and data transmission, such as the widely used USB interface J1, to meet the plugging and charging requirements of most conventional power adapters and computer hosts produced by most manufacturers on the market. In this embodiment, the USB interface J1 may be a USB Type-C interface, or may be a Micro USB interface or the like. Since the USB Type-C interface can support a current of up to 5A, in this embodiment, the USB Type-C interface is preferably used as the charging interface of the mobile terminal for an external charger to charge the battery U4 inside the mobile terminal.
在移动终端的内部设置负载开关U1和充电芯片U2,以支持直充和充电芯片充电两种方式。在本实施例中,所述负载开关U1可以采用一颗集成芯片对所述电池U4的直充通路进行通断控制,如图1所示;也可以采用分立元件组建所述的负载开关U1,例如采用一颗MOS对管Q2配合一升压电路U7搭建而成,如图2所示,同样可以实现对电池U4直充通路的通断控制。A load switch U1 and a charging chip U2 are arranged inside the mobile terminal to support direct charging and charging with a charging chip. In this embodiment, the load switch U1 can use an integrated chip to perform on-off control of the direct charging path of the battery U4, as shown in FIG. 1 ; the load switch U1 can also be constructed using discrete components, For example, a MOS transistor Q2 is used to cooperate with a booster circuit U7, as shown in Figure 2, which can also realize the on-off control of the direct charging path of the battery U4.
本实施例首先结合图1对采用集成芯片作为负载开关U1的充电电路的具体线路设计及其工作原理进行详细阐述。In this embodiment, firstly, the specific circuit design and working principle of the charging circuit using an integrated chip as the load switch U1 are described in detail with reference to FIG. 1 .
当所述负载开关U1为一颗可控的开关芯片时,可以将负载开关U1的输入引脚VIN连接至USB接口J1的电源引脚VBUS,输出引脚VOUT连接至电池U4的正极。在直充过程中,负载开关U1通过将其输入引脚VIN与其输出引脚VOUT接通,以连通电池U4的直充通路。When the load switch U1 is a controllable switch chip, the input pin VIN of the load switch U1 can be connected to the power pin VBUS of the USB interface J1, and the output pin VOUT can be connected to the positive pole of the battery U4. During the direct charging process, the load switch U1 connects its input pin VIN and its output pin VOUT to connect the direct charging path of the battery U4.
为了实现对所述负载开关U1的通断控制,本实施例在所述移动终端中还设置有处理器U3,利用处理器U3向负载开关U1的使能引脚EN输出有效或者无效的使能信号,继而控制负载开关U1使能或者挂起(非使能),以实现两种充电方式的准确切换。In order to realize the on-off control of the load switch U1, a processor U3 is also provided in the mobile terminal in this embodiment, and the processor U3 is used to output a valid or invalid enable to the enable pin EN of the load switch U1. signal, and then control the load switch U1 to enable or suspend (non-enable), so as to realize accurate switching between the two charging modes.
在本实施例中,为了确保电池U4充电的安全性,本实施例在所述移动终端中还进一步设置有电池电压监控单元U5和逻辑与门U6,如图1所示。其中,电池电压监控单元U5用于检测电池U4的端子电压,具体可以采用在电池U4的正极与电池电压监控单元U5的输入端之间连接分压电路(例如由电阻R10、R11组成的分压电路)的方式,利用分压电路对电池U4的端子电压进行分压后,传输至所述电池电压监控单元U5的输入端,通过换算以实现电池电压监控单元U5对电池U4的端子电压的有效监控。如果电池U4的端子电压没有超过预设阈值(对于最大电芯电压为4.4V的电池来说,可以设置端子电压的阈值为4.6V),则电池电压监控单元U5通过其输出端输出高电平信号,传输至逻辑与门U6的其中一个输入管脚。将逻辑与门U6的另外一个输入管脚连接至处理器U3的第一路GPIO口,例如GPIO1口,接收处理器U3输出的用于控制负载开关U1使能的使能信号。当需要对电池U4进行直充时,处理器U3通过其GPIO1口输出高电平有效的使能信号。此时,若电池U4的端子电压没有超出预设阈值,则逻辑与门U6的两个输入管脚均为高电平。逻辑与门U6对接收到的两路高电平信号进行与运算,输出高电平信号传输至负载开关U1的使能引脚EN,控制负载开关U1使能,接通其输入引脚VIN和输出引脚VOUT,使电池U4的直充通路连通,利用充电器的输出电压对电池U4进行直充。在直充过程中,处理器U3通过其GPIO1口始终输出高电平有效的使能信号,当电池电压监控单元U5检测到电池U4的端子电压超过预设阈值时,置其输出端为低电平,使逻辑与门U6的输出信号由高电平变为低电平,继而将负载开关U1挂起(即控制负载开关U1进入非使能的不工作状态),使负载开关U1的输入引脚VIN和输出引脚VOUT断开,切断电池U4的直充通路,避免电池U4过充损坏。In this embodiment, in order to ensure the safety of charging the battery U4, the mobile terminal is further provided with a battery voltage monitoring unit U5 and a logical AND gate U6, as shown in FIG. 1 . Wherein, the battery voltage monitoring unit U5 is used to detect the terminal voltage of the battery U4. Specifically, a voltage dividing circuit (such as a voltage dividing circuit composed of resistors R10 and R11) can be connected between the positive pole of the battery U4 and the input terminal of the battery voltage monitoring unit U5. Circuit) method, the terminal voltage of the battery U4 is divided by the voltage dividing circuit, and then transmitted to the input terminal of the battery voltage monitoring unit U5, and the battery voltage monitoring unit U5 is effective for the terminal voltage of the battery U4 through conversion. monitor. If the terminal voltage of the battery U4 does not exceed the preset threshold (for a battery with a maximum cell voltage of 4.4V, the threshold of the terminal voltage can be set to 4.6V), the battery voltage monitoring unit U5 outputs a high level through its output terminal The signal is transmitted to one of the input pins of the logic AND gate U6. Connect the other input pin of the logical AND gate U6 to the first GPIO port of the processor U3, for example, the GPIO1 port, and receive the enable signal output by the processor U3 for controlling the enable of the load switch U1. When the battery U4 needs to be directly charged, the processor U3 outputs a high-level active enable signal through its GPIO1 port. At this time, if the terminal voltage of the battery U4 does not exceed the preset threshold, the two input pins of the logical AND gate U6 are both at high level. The logic AND gate U6 performs an AND operation on the two received high-level signals, outputs a high-level signal and transmits it to the enable pin EN of the load switch U1, controls the load switch U1 to enable, and connects its input pins VIN and The output pin VOUT connects the direct charging path of the battery U4, and uses the output voltage of the charger to directly charge the battery U4. During the direct charging process, the processor U3 always outputs a high-level active enable signal through its GPIO1 port. When the battery voltage monitoring unit U5 detects that the terminal voltage of the battery U4 exceeds the preset threshold, it sets its output terminal to low power. level, so that the output signal of logic AND gate U6 changes from high level to low level, and then the load switch U1 is suspended (that is, the load switch U1 is controlled to enter a non-enabled non-working state), so that the input lead of the load switch U1 The pin VIN and the output pin VOUT are disconnected, cutting off the direct charging path of the battery U4, and preventing the battery U4 from being overcharged and damaged.
将电池电压监控单元U5的输出信号同时发送给处理器U3的另外一路GPIO口,例如GPIO2口,可以实现处理器U3对电池U4的端子电压的实时监控。The output signal of the battery voltage monitoring unit U5 is simultaneously sent to another GPIO port of the processor U3, such as the GPIO2 port, so that the processor U3 can monitor the terminal voltage of the battery U4 in real time.
本实施例在移动终端中设置电池电压监控单元U5和逻辑与门U6,即使移动终端在充电过程中出现死机等情况,也可以利用电池电压监控单元U5输出的低电平信号控制逻辑与门U6置负载开关U1的使能引脚为低电平,进而进入非使能状态,切断电池U4的直充通路,实现硬件过压保护功能。In this embodiment, a battery voltage monitoring unit U5 and a logic AND gate U6 are set in the mobile terminal. Even if the mobile terminal crashes during the charging process, the low-level signal output by the battery voltage monitoring unit U5 can be used to control the logic AND gate U6. Set the enable pin of the load switch U1 to a low level, and then enter a non-enabled state, cut off the direct charging path of the battery U4, and realize the hardware overvoltage protection function.
为了防止因逻辑与门U6出现异常而导致无法对负载开关U6进行关断控制,本实施例利用处理器U3的第二路GPIO口,例如GPIO3口,直接连接负载开关U1的使能引脚EN。所述处理器U3在默认状态下置其GPIO3口为输入状态,一旦发现逻辑与门U6出现故障不能按照要求控制负载开关U1切断直充通路时,可以采用将其GPIO3口置为低电平的方式,控制负载开关U1进入非使能状态,继而切断电池U4的直充通路,执行硬件异常的保护机制。In order to prevent the load switch U6 from being unable to be turned off due to an abnormal logic AND gate U6, this embodiment utilizes the second GPIO port of the processor U3, such as the GPIO3 port, to directly connect the enable pin EN of the load switch U1. . The processor U3 sets its GPIO3 port as an input state by default. Once it is found that the logic AND gate U6 fails and cannot control the load switch U1 to cut off the direct charging path as required, the GPIO3 port can be set to a low level. In this way, the load switch U1 is controlled to enter the non-enabled state, and then the direct charging path of the battery U4 is cut off, and the protection mechanism for hardware abnormality is implemented.
本实施例的负载开关U1还具有过压保护和限流功能,其上设置有过压保护引脚OVP和限流引脚ILIM,如图1所示。将所述负载开关U1的过压保护引脚OVP通过电阻分压网络连接至USB接口J1的电源引脚VBUS,以监测充电器的输出电压。在本实施例中,所述电阻分压网路可以由两个分压电阻R4、R5串联而成,连接在USB接口J1的电源引脚VBUS与系统地之间,将分压电阻R4、R5的中间节点连接至负载开关U1的过压保护引脚OVP,通过配置分压电阻R4、R5的阻值,使通过电源引脚VBUS接入的充电电压(即充电器的输出电压)在超过预设的直充电压安全阈值Vsafe时,触发负载开关U1执行过压保护动作,切断电池U4的直充通路,避免电池U4遭受过压冲击。The load switch U1 of this embodiment also has overvoltage protection and current limiting functions, and an overvoltage protection pin OVP and a current limiting pin ILIM are provided on it, as shown in FIG. 1 . The overvoltage protection pin OVP of the load switch U1 is connected to the power pin VBUS of the USB interface J1 through a resistor divider network to monitor the output voltage of the charger. In this embodiment, the resistor divider network can be composed of two divider resistors R4, R5 connected in series between the power supply pin VBUS of the USB interface J1 and the system ground, and the divider resistors R4, R5 The middle node of the load switch U1 is connected to the overvoltage protection pin OVP. By configuring the resistance values of the voltage dividing resistors R4 and R5, the charging voltage connected through the power supply pin VBUS (that is, the output voltage of the charger) exceeds the preset voltage. When the direct charging voltage safety threshold V safe is set, the load switch U1 is triggered to perform an overvoltage protection action, cutting off the direct charging path of the battery U4, and preventing the battery U4 from being subjected to an overvoltage impact.
在本实施例中,所述直充电压安全阈值Vsafe可以考虑电池U4的电芯电压Vbat_real、电池U4所支持的最大充电电流值Imax_bat、电池U4的内阻以及系统在直充通路中的线路电阻等因素具体确定。具体来讲,可以设置Vsafe= Vbat_real+Imax_bat*R+△V;其中,R为电池U4的内阻和系统在直充通路中的线路电阻之和,△V为电压偏差阈值,且△V≥1V。本实施例优选设置△V=1V,在对电池U4起到过压保护作用的同时,提高过压保护动作响应的及时性。In this embodiment, the direct charging voltage safety threshold V safe may consider the cell voltage V bat_real of the battery U4, the maximum charging current value I max_bat supported by the battery U4, the internal resistance of the battery U4, and the system in the direct charging path The line resistance and other factors are determined in detail. Specifically, V safe = V bat_real + I max_bat *R+△V can be set; where, R is the sum of the internal resistance of the battery U4 and the line resistance of the system in the direct charging path, △V is the voltage deviation threshold, and △ V≥1V. In this embodiment, it is preferable to set ΔV=1V to improve the timeliness of the overvoltage protection action response while protecting the battery U4 from overvoltage.
对于负载开关U1的限流引脚ILIM,本实施例优选将其一路通过电阻R8接地,另一路通过电阻R6和一开关管Q1的开关通路接地,将开关管Q1的控制端连接至处理器U3,例如处理器U3的GPIO5口上,通过控制开关管Q1通断以控制电阻R6的选择性接入。具体来讲,所述开关管Q1可以选用晶体管、功率管、可控硅等多种开关元件,本实施例以NPN型三极管为例进行说明。将NPN型三极管Q1的基极连接至处理器U3的GPIO5口,发射极接地,集电极通过与其串联的电阻R6连接至负载开关U1的限流引脚ILIM。配置电阻R8的阻值,使负载开关U1在默认状态下限流500mA。当需要进入直充过程时,处理器U3首先通过其GPIO1口输出高电平,控制负载开关U1导通,连通电池U4的直充通路;然后通过其GPIO5口输出高电平,控制NPN型三极管Q1饱和导通,此时连接到负载开关U1的限流引脚ILIM上的等效电阻的阻值R(ILIM)为电阻R6和电阻R8的并联阻值,配置电阻R6的阻值,使负载开关的限流值。其中,所述Isafe为预设的直充电流安全阈值Isafe,所述Isafe可以考虑电池U4所支持的最大充电电流值Imax_bat等因素确定。作为本实施例的一种优选设计方案,可以设置Isafe=Imax_bat+△I,其中,△I为电流偏差阈值,且△I≥500mA。本实施例优选设置△I=500mA,在对电池U4起到过流保护作用的同时,提高限流响应动作的及时性。For the current-limiting pin ILIM of the load switch U1, in this embodiment, it is preferable to ground one of the pins through the resistor R8, and ground the other through the resistor R6 and a switch path of the switch tube Q1, and connect the control terminal of the switch tube Q1 to the processor U3 , for example, on the GPIO5 port of the processor U3, the selective access of the resistor R6 is controlled by controlling the on-off of the switch tube Q1. Specifically, the switch tube Q1 can be selected from various switch elements such as transistors, power tubes, silicon controlled rectifiers, etc. This embodiment uses an NPN triode as an example for illustration. The base of the NPN transistor Q1 is connected to the GPIO5 port of the processor U3, the emitter is grounded, and the collector is connected to the current limiting pin ILIM of the load switch U1 through the resistor R6 in series with it. Configure the resistance value of the resistor R8 so that the load switch U1 limits the current to 500mA in the default state. When it is necessary to enter the direct charging process, the processor U3 first outputs a high level through its GPIO1 port, controls the load switch U1 to conduct, and connects the direct charging path of the battery U4; then outputs a high level through its GPIO5 port to control the NPN type triode Q1 is saturated and turned on. At this time, the resistance value R (ILIM) of the equivalent resistance connected to the current limiting pin ILIM of the load switch U1 is the parallel resistance value of the resistance R6 and the resistance R8. The resistance value of the resistance R6 is configured so that the load Switch current limit. Wherein, the I safe is a preset direct charging current safety threshold I safe , and the I safe may be determined by considering factors such as the maximum charging current value I max_bat supported by the battery U4. As a preferred design solution of this embodiment, I safe = I max_bat + ΔI may be set, wherein ΔI is the current deviation threshold, and ΔI≥500mA. In this embodiment, △I=500mA is preferably set, which not only protects the battery U4 from overcurrent, but also improves the timeliness of the current limiting response action.
将USB接口J1的电源引脚VBUS同时连接至移动终端内部的充电芯片U2的电源输入端VBUS,在需要采用充电芯片U2对电池U4进行充电时,处理器U3首先通过其GPIO1口输出低电平无效的使能信号,控制负载开关U1断开;然后通过其控制端口,例如其GPIO4口,输出高电平信号至充电芯片U2的EN引脚,控制充电芯片U2使能运行,将充电方式切换至充电芯片U2充电,利用充电芯片U2接收充电器的输出电压,并将充电器的输出电压调控权切换至充电芯片U2,利用充电芯片U2对充电器的输出电压进行动态调节。具体来讲,充电芯片U2可以根据电池U4的电芯电压变化,调节充电器的输出电压,并将充电芯片U2的输出端ChgOut连通电池U4的正极,利用充电芯片U2输出的电源为电池U4充电。Connect the power pin VBUS of the USB interface J1 to the power input terminal VBUS of the charging chip U2 inside the mobile terminal at the same time. When the charging chip U2 needs to be used to charge the battery U4, the processor U3 first outputs a low level through its GPIO1 port Invalid enable signal, control the load switch U1 to disconnect; then through its control port, such as its GPIO4 port, output a high-level signal to the EN pin of the charging chip U2, control the charging chip U2 to enable operation, and switch the charging mode Charge to the charging chip U2, use the charging chip U2 to receive the output voltage of the charger, and switch the control power of the output voltage of the charger to the charging chip U2, and use the charging chip U2 to dynamically adjust the output voltage of the charger. Specifically, the charging chip U2 can adjust the output voltage of the charger according to the change of the cell voltage of the battery U4, connect the output terminal ChgOut of the charging chip U2 to the positive pole of the battery U4, and use the power output by the charging chip U2 to charge the battery U4 .
为了对电池U4的电芯电压、充电电流等参数进行检测,本实施例优选在所述电池U4中内置计量芯片,利用计量芯片检测电池U4的电芯电压、充电电流、电池温升等参数,并通过总线通信方式(例如通过I2C总线)传输至所述的处理器U3。所述处理器U3可以将接收到的电芯电压、充电电流等参数发送给充电芯片U2,例如通过SPMI总线传送给充电芯片U2,充电芯片U2根据电池U4的电芯电压大小确定执行何种充电方式(例如涓流充电或者恒压充电等)。此外,可以将充电芯片U2的B+、B-引脚对应连接至电池U4的正极和负极,用于检测电池U4的端子电压。在充电芯片U2的输出端ChgOut与电池U4的正极之间串联采样电阻R9,例如10毫欧的大功率精密电阻,并将充电芯片U2的C+、C-引脚对应连接至所述采样电阻R9的两端,通过检测采样电阻R9两端的压降,结合采样电阻R9的阻值,便可计算出充电芯片U2的输出电流的大小。In order to detect the battery cell voltage, charging current and other parameters of the battery U4, in this embodiment, a metering chip is preferably built in the battery U4, and the metering chip is used to detect parameters such as the battery cell voltage, charging current, and battery temperature rise of the battery U4, And transmit to the processor U3 through bus communication (for example, through I 2 C bus). The processor U3 can send the received cell voltage, charging current and other parameters to the charging chip U2, for example, through the SPMI bus to the charging chip U2, and the charging chip U2 determines what kind of charging to perform according to the cell voltage of the battery U4. mode (such as trickle charging or constant voltage charging, etc.). In addition, the B+ and B- pins of the charging chip U2 can be correspondingly connected to the positive pole and the negative pole of the battery U4 for detecting the terminal voltage of the battery U4. Connect the sampling resistor R9 in series between the output terminal ChgOut of the charging chip U2 and the positive pole of the battery U4, such as a high-power precision resistor of 10 milliohms, and connect the C+ and C- pins of the charging chip U2 to the sampling resistor R9 correspondingly The output current of the charging chip U2 can be calculated by detecting the voltage drop across the sampling resistor R9 and combining the resistance value of the sampling resistor R9.
在所述负载开关U1上还设置有电流监测引脚IMON,所述电流监测引脚IMON根据充电器的输出电流生成等比例缩小的监测电流输出。所述充电芯片U2可以利用其一路ADC接口连接至负载开关U1的所述电流监测引脚IMON,并通过电阻R3接地,如图1所示。利用电阻R3将电流监测引脚IMON输出的监测电流转换成电压,并经由ADC接口进行模数转换后,计算出充电器的输出电流,实现充电芯片U2对充电器的输出电流的实时监测。当然,所述充电芯片U2也可以将检测到的充电器的输出电流值通过SPMI总线传输至处理器U3,以实现处理器U3对系统充电安全的全面监控。The load switch U1 is also provided with a current monitoring pin IMON, and the current monitoring pin IMON generates a proportionally reduced monitoring current output according to the output current of the charger. The charging chip U2 can be connected to the current monitoring pin IMON of the load switch U1 through an ADC interface, and grounded through a resistor R3, as shown in FIG. 1 . Use the resistor R3 to convert the monitoring current output by the current monitoring pin IMON into a voltage, and perform analog-to-digital conversion through the ADC interface to calculate the output current of the charger, and realize the real-time monitoring of the output current of the charger by the charging chip U2. Of course, the charging chip U2 can also transmit the detected output current value of the charger to the processor U3 through the SPMI bus, so as to realize the comprehensive monitoring of the charging safety of the system by the processor U3.
为了对外接USB接口J1的QC3.0充电器的输出电压进行动态调节,本实施例将处理器U3的第三驱动引脚(例如差分引脚D+)和第四驱动引脚(例如差分引脚D-)分别连接至USB接口J1的差分引脚,即D+引脚和D-引脚,并将充电芯片U2的第一驱动引脚(例如差分引脚D+)和第二驱动引脚(例如差分引脚D-)分别通过隔离电阻R1、R2连接至USB接口J1的D+引脚和D-引脚,通过电阻R1、R2实现差分信号线上的信号在充电芯片U2与处理器U3之间的隔离。具体来讲,当处理器U3或者充电芯片U2检测到插入到USB接口J1上的充电器为QC3.0充电器时,可以采用通过其差分引脚D+或差分引脚D-向QC3.0充电器发送脉冲信号的方式来调节QC3.0充电器的输出电压。In order to dynamically adjust the output voltage of the QC3.0 charger connected to the USB interface J1, this embodiment connects the third drive pin (such as the differential pin D+) and the fourth drive pin (such as the differential pin D+) of the processor U3 D-) respectively connected to the differential pins of the USB interface J1, that is, the D+ pin and the D- pin, and the first drive pin (such as the differential pin D+) and the second drive pin (such as the differential pin D+) of the charging chip U2 (such as The differential pin D-) is connected to the D+ pin and D- pin of the USB interface J1 through the isolation resistors R1 and R2 respectively, and the signal on the differential signal line is realized between the charging chip U2 and the processor U3 through the resistors R1 and R2 isolation. Specifically, when the processor U3 or the charging chip U2 detects that the charger inserted into the USB interface J1 is a QC3.0 charger, it can charge the QC3.0 through its differential pin D+ or differential pin D- The device sends a pulse signal to adjust the output voltage of the QC3.0 charger.
QC3.0充电器利用其接口芯片接收通过其差分引脚D+、差分引脚D-传送过来的信号,每当其差分引脚D+接收到一个脉冲信号,接口芯片就控制充电器内部的AC-DC单元将其输出电压上调0.2V;每当其差分引脚D-接收到一个脉冲信号,接口芯片就控制AC-DC单元将其输出电压下调0.2V,由此便可实现对QC3.0充电器的输出电压的动态调节。The QC3.0 charger uses its interface chip to receive signals transmitted through its differential pin D+ and differential pin D-. Whenever its differential pin D+ receives a pulse signal, the interface chip controls the AC- The DC unit raises its output voltage by 0.2V; whenever its differential pin D- receives a pulse signal, the interface chip controls the AC-DC unit to lower its output voltage by 0.2V, thus charging the QC3.0 The dynamic adjustment of the output voltage of the tor.
为了对外接的充电器是否为标配QC3.0充电器进行准确识别,可以在移动终端的USB接口J1上以及标配QC3.0充电器的USB接口J0上分别设置检测引脚ID,利用处理器U3检测所述ID引脚的电平变化,以实现对标配QC3.0充电器的识别。作为本实施例的一种优选设计方案,可以采用在标配QC3.0充电器的内部设置上拉电路或者接地电路的方式来改变所述检测引脚ID在标配QC3.0充电器插拔时的电平状态。例如,在移动终端的USB接口J1上未插入标配QC3.0充电器时,配置移动终端内部的接口电路,使USB接口J1的检测引脚ID的电位呈第二电平状态(例如低电平);当有标配的QC3.0充电器插入到所述USB接口J1上时,利用标配QC3.0充电器的内部电路(例如上拉电路)将所述检测引脚ID的电位变换成第一电平状态(例如高电平),处理器U3在检测到所述ID引脚的电位由第二电平状态跳变为第一电平状态时,判定有标配QC3.0充电器插入,进入充电管理流程。In order to accurately identify whether the external charger is a standard QC3.0 charger, you can set the detection pin ID on the USB interface J1 of the mobile terminal and the USB interface J0 of the standard QC3.0 charger, and use the processing The device U3 detects the level change of the ID pin to realize the identification of the standard QC3.0 charger. As a preferred design scheme of this embodiment, it is possible to change the detection pin ID by setting a pull-up circuit or a grounding circuit inside the standard QC3.0 charger. time level status. For example, when the standard QC3.0 charger is not plugged into the USB interface J1 of the mobile terminal, configure the interface circuit inside the mobile terminal so that the potential of the detection pin ID of the USB interface J1 is in the second level state (such as low power level); when a standard QC3.0 charger is inserted into the USB interface J1, use the internal circuit (such as a pull-up circuit) of the standard QC3.0 charger to change the potential of the detection pin ID When the processor U3 detects that the potential of the ID pin has jumped from the second level state to the first level state, it determines that there is a standard QC3.0 charging Plug in the charger and enter the charging management process.
对于USB接口J1中的接地引脚GND,应其与移动终端的系统地良好接通,在移动终端与外部设备插接时,保证移动终端与外部设备共地。For the ground pin GND in the USB interface J1, it should be well connected with the system ground of the mobile terminal, and when the mobile terminal is plugged into the external device, ensure that the mobile terminal and the external device share the same ground.
下面结合图2对采用分立元件搭建的负载开关U1及由所述负载开关U1组建的充电电路的具体线路设计及其工作原理进行详细阐述。The specific circuit design and working principle of the load switch U1 built with discrete components and the charging circuit formed by the load switch U1 will be described in detail below in conjunction with FIG. 2 .
如图2所示,本实施实例的负载开关U1可以采用一颗MOS对管Q2配合一升压电路U7搭建而成。具体来讲,可以将MOS对管Q2的开关通路串联在USB接口J1的电源引脚VBUS与电池U4的正极之间,将MOS对管Q2的栅极连接至升压电路U7的输出端,通过升压电路U7输出的驱动电压来控制所述MOS对管Q2通断,进而对电池U4的直充通路进行通断控制。As shown in FIG. 2 , the load switch U1 of this implementation example can be constructed by using a MOS pair transistor Q2 and a boost circuit U7 . Specifically, the switch path of the MOS transistor Q2 can be connected in series between the power supply pin VBUS of the USB interface J1 and the positive pole of the battery U4, and the gate of the MOS transistor Q2 can be connected to the output terminal of the boost circuit U7, through The drive voltage output by the booster circuit U7 is used to control the on-off of the MOS transistor Q2, and further on-off control of the direct charging path of the battery U4.
为了在电池直充过程中实现过压保护和过流保护,对于采用分立元件搭建的负载开关U1可以进一步设置电流监控芯片U9和控制器U8,如图2所示。所述控制器U8可以采用单片机实现,将单片机的一路ADC接口AD2通过由电阻R26、R27组成的分压电路连接至电池U4的正极,用于对电池U4的端子电压进行检测。将控制器U8的另外一路ADC接口AD3通过由电阻R28、R29组成的分压电路连接至电池U4的直充通路,以用于对充电器的输出电压进行检测。在电池U4的直充通路中串联采样电阻R23(优选采用大功率精密电阻作为所述的采样电阻R23),并将所述电流监控芯片U9的正负输入端+NI、-NI对应连接至所述采样电阻R23的两端,通过采集所述采样电阻R23两端的压降,以计算出充电器的输出电流大小,进而通过电流监控芯片U9的输出端OUT输出可以反映所述输出电流大小的监测电压,经由分压电阻R24、R25分压后,分别传输至所述控制器U8的ADC接口AD1和充电芯片U2的ADC接口,以实现控制器U8和充电芯片U2对充电器输出电流大小的准确监测。In order to realize overvoltage protection and overcurrent protection during direct battery charging, the load switch U1 built with discrete components can be further provided with a current monitoring chip U9 and a controller U8, as shown in FIG. 2 . The controller U8 can be realized by a single-chip microcomputer, and an ADC interface AD2 of the single-chip microcomputer is connected to the positive pole of the battery U4 through a voltage divider circuit composed of resistors R26 and R27, so as to detect the terminal voltage of the battery U4. The other ADC interface AD3 of the controller U8 is connected to the direct charging path of the battery U4 through a voltage divider circuit composed of resistors R28 and R29 to detect the output voltage of the charger. In the direct charge path of the battery U4, the sampling resistor R23 is connected in series (preferably using a high-power precision resistor as the sampling resistor R23), and the positive and negative input terminals +NI and -NI of the current monitoring chip U9 are correspondingly connected to the The two ends of the sampling resistor R23 are used to calculate the output current of the charger by collecting the voltage drop across the sampling resistor R23, and then the output of the output terminal OUT of the current monitoring chip U9 can reflect the monitoring of the output current. After the voltage is divided by the voltage dividing resistors R24 and R25, it is transmitted to the ADC interface AD1 of the controller U8 and the ADC interface of the charging chip U2 respectively, so as to realize the accuracy of the output current of the charger by the controller U8 and the charging chip U2 monitor.
在控制器U8中可以预设过压保护阈值(例如直充电压安全阈值Vsafe)、过流保护阈值(例如直充电流安全阈值Isafe)和端子电压最大值,在电池直充过程中,控制器U8根据检测到的充电器的输出电压、输出电流以及电池U4的端子电压,判断各参数是否超出了其预设阈值,进而通过其控制引脚CTL输出相应的控制信号,以实现对升压电路U7的使能控制。In the controller U8, the overvoltage protection threshold (such as the direct charging voltage safety threshold V safe ), the overcurrent protection threshold (such as the direct charging current safety threshold I safe ) and the maximum terminal voltage can be preset. During the battery direct charging process, The controller U8 judges whether each parameter exceeds its preset threshold according to the detected output voltage and current of the charger and the terminal voltage of the battery U4, and then outputs a corresponding control signal through its control pin CTL to realize the control of the booster. Enable control of voltage circuit U7.
具体来讲,可以设置控制器U8的控制引脚CTL默认输出高电平,将所述控制器U8的控制引脚CTL与逻辑与门U6的其中一个输入管脚连接,将逻辑与门U6的另外一个输入管脚与处理器U3的GPIO1口连接,接收处理器U3通过其GPIO1口输出的使能信号。当需要切换至直充方式时,处理器U3通过其GPIO1口输出高电平有效的使能信号,由于控制器U8的控制引脚CTL默认输出高电平,因此通过逻辑与门U6的输出端输出高电平信号,控制升压电路U7使能运行,输出驱动信号控制MOS对管Q2导通,连通电池U4的直充通路。在电池U4的直充过程中,控制器U8实时检测充电器的输出电压、输出电流以及电池U4的端子电压,只要其中一个参数超出预设阈值,则立即将其控制引脚CTL置为低电平,使升压电路U7停止运行,控制MOS对管Q2关断,以切断电池U4的直充通路,确保电池U4的充电安全。同时,控制器U8可以将检测到充电器的输出电压、输出电流以及电池U4的端子电压等参数通过总线(例如UART总线)传输至处理器U3,以实现处理器U3对系统电路的全局控制。Specifically, the control pin CTL of the controller U8 can be set to output a high level by default, the control pin CTL of the controller U8 can be connected to one of the input pins of the logical AND gate U6, and the input pin of the logical AND gate U6 The other input pin is connected to the GPIO1 port of the processor U3, and receives the enable signal output by the processor U3 through its GPIO1 port. When it is necessary to switch to the direct charging mode, the processor U3 outputs a high-level active enable signal through its GPIO1 port. Since the control pin CTL of the controller U8 outputs a high level by default, the output terminal of the logical AND gate U6 Output a high-level signal to control the boost circuit U7 to enable operation, output a driving signal to control the conduction of the MOS transistor Q2, and connect the direct charging path of the battery U4. During the direct charging process of the battery U4, the controller U8 detects the output voltage, output current and the terminal voltage of the battery U4 in real time, as long as one of the parameters exceeds the preset threshold, it immediately sets its control pin CTL to low power. level, so that the boost circuit U7 stops running, and the MOS transistor Q2 is controlled to turn off, so as to cut off the direct charging path of the battery U4 and ensure the charging safety of the battery U4. At the same time, the controller U8 can transmit the detected parameters such as the output voltage and current of the charger and the terminal voltage of the battery U4 to the processor U3 through a bus (such as a UART bus), so as to realize the overall control of the system circuit by the processor U3.
在需要将电池U4的充电方式由直充切换到充电芯片充电时,可以通过处理器U3将其GPIO1口置为低电平,继而控制逻辑与门U6输出低电平信号,控制升压电路U7停止运行,切断电池U4的直充通路,然后处理器U3通过其控制端口(例如其GPIO4口)输出高电平信号至充电芯片U2的EN引脚,控制充电芯片U2使能运行,以启动充电芯片U2为电池U4充电。When it is necessary to switch the charging method of the battery U4 from direct charging to charging chip charging, the processor U3 can set its GPIO1 port to low level, and then control the logic AND gate U6 to output a low level signal to control the boost circuit U7 Stop the operation, cut off the direct charging path of the battery U4, and then the processor U3 outputs a high-level signal to the EN pin of the charging chip U2 through its control port (such as its GPIO4 port), and controls the charging chip U2 to enable operation to start charging Chip U2 charges battery U4.
在图2中,对于充电芯片U2、处理器U3与电池U4之间的线路连接关系以及与充电接口J1的连接关系可以仿照图1所示的电路设计,本实施例在此不再展开说明。In FIG. 2 , the connection relationship between the charging chip U2 , the processor U3 and the battery U4 and the connection relationship with the charging interface J1 can follow the circuit design shown in FIG. 1 , and this embodiment will not be further described here.
对移动终端进行上述硬件改造后,下面结合图3、图4对移动终端所执行的充电管理流程进行详细阐述。After the above-mentioned hardware transformation is performed on the mobile terminal, the charging management process performed by the mobile terminal will be described in detail below with reference to FIG. 3 and FIG. 4 .
如图3所示,本实施例的充电管理流程主要涉及以下步骤:As shown in Figure 3, the charging management process of this embodiment mainly involves the following steps:
S301、检测充电器的插入状态;S301. Detecting the plug-in state of the charger;
在本实施例中,移动终端可以利用其充电芯片U2或者处理器U3对其USB接口J1上是否有充电器插入进行检测,若未检测到充电器,则重复执行本步骤的检测过程;若检测到有充电器插入,则执行后续步骤。In this embodiment, the mobile terminal can use its charging chip U2 or processor U3 to detect whether there is a charger inserted on its USB interface J1, if no charger is detected, then repeat the detection process of this step; When there is a charger plugged in, go to the next step.
S302、识别充电器的类型;S302. Identify the type of the charger;
移动终端可以按照传统的充电器类型识别方法对插入到其USB接口J1上的充电器进行识别,并在识别过程中保持电池U4的直充通路断开(即,控制图1中的负载开关U1非使能;或者控制图2中升压电路U7非使能,使MOS对管Q2保持关断状态),默认采用充电芯片充电。The mobile terminal can identify the charger plugged into its USB interface J1 according to the traditional charger type identification method, and keep the direct charging path of the battery U4 disconnected during the identification process (that is, control the load switch U1 in Figure 1 Disable; or control the boost circuit U7 in Figure 2 to disable, so that the MOS transistor Q2 remains off), and the charging chip is used for charging by default.
当移动终端检测到插入的充电器是输出电压固定的充电器,例如普通5V充电器、QC2.0充电器、USB PD充电器或MTK PE+充电器等,则在整个充电过程中,保持充电芯片充电,即,始终利用充电芯片U2为电池U4充电。若插入的是输出电压动态可调的充电器(本实施例以QC3.0充电器为例进行说明),则执行后续步骤。When the mobile terminal detects that the charger plugged in is a charger with a fixed output voltage, such as a normal 5V charger, QC2.0 charger, USB PD charger or MTK PE+ charger, etc., it will keep the charging chip Charging, that is, always using the charging chip U2 to charge the battery U4. If a charger with a dynamically adjustable output voltage is plugged in (this embodiment uses a QC3.0 charger as an example for illustration), then perform the next steps.
在本实施例中,当检测到插入的是QC3.0充电器时,还可以根据设计需要对所述QC3.0充电器是否为标配充电器作进一步识别,具体可以利用处理器U3根据USB接口J1上的检测引脚ID的电平状态来判断插入的QC3.0充电器是否为标配充电器,若是,则执行后续步骤;否则,即使插入的是QC3.0充电器,为确保移动终端的充电安全,也采用充电芯片为电池U4充电。也就是说,移动终端只有在检测到插入其USB接口J1的充电器是标配的QC3.0充电器时,才选择性地进入直充方式,否则,一律采用充电芯片U2为电池U4充电。In this embodiment, when it is detected that the QC3.0 charger is plugged in, it is also possible to further identify whether the QC3.0 charger is a standard charger according to the design requirements. The level status of the detection pin ID on the interface J1 is used to determine whether the inserted QC3.0 charger is a standard charger, and if so, perform the next steps; otherwise, even if the inserted QC3.0 charger is The charging of the terminal is safe, and the charging chip is also used to charge the battery U4. That is to say, the mobile terminal selectively enters the direct charging mode only when it detects that the charger plugged into its USB interface J1 is a standard QC3.0 charger, otherwise, the charging chip U2 is used to charge the battery U4.
在本实施例中,可以设置标配QC3.0充电器在默认情况下输出5V电压,该电压与主机、常规电源适配器输出的充电电压相同,以满足移动终端中的充电芯片U2对输入电源的要求。In this embodiment, the standard QC3.0 charger can be set to output a 5V voltage by default, which is the same as the charging voltage output by the host and a conventional power adapter, so as to meet the requirements of the charging chip U2 in the mobile terminal for the input power supply. Require.
S303、检测电池的电芯电压,根据电池的电芯电压选择进入不同的充电方式;S303. Detect the cell voltage of the battery, and select and enter different charging modes according to the cell voltage of the battery;
在本实施例中,处理器U3可以通过与内置于电池U4中的计量芯片进行通信,来获取电池U4的电芯电压Vbat_real;若电池的电芯电压Vbat_real在预设的直充阈值的范围[S1,S2]以内,则执行后续步骤;否则,跳转至步骤S305执行。In this embodiment, the processor U3 can obtain the cell voltage V bat_real of the battery U4 by communicating with the metering chip built in the battery U4 ; If it is within the range [S1, S2], execute the subsequent steps; otherwise, jump to step S305 for execution.
在本实施例中,所述直充阈值(低压阈值S1、高压阈值S2)可以根据电池的实际情况具体确定,优选与标准DCP充电方式(即采用常规充电器对电池进行的传统充电)下的恒流充电阶段所对应的电池电压范围一致。例如,对于一块4.4V电池(即电芯电压最大值为4.4V的可充电电池),可以设定其低压阈值S1=3.2V、高压阈值S2=4.2V。In this embodiment, the direct charge threshold (low voltage threshold S1, high voltage threshold S2) can be specifically determined according to the actual situation of the battery, and is preferably the same as that under the standard DCP charging method (that is, the traditional charging of the battery by a conventional charger). The battery voltage range corresponding to the constant current charging phase is the same. For example, for a 4.4V battery (that is, a rechargeable battery with a maximum cell voltage of 4.4V), you can set its low-voltage threshold S1=3.2V and high-voltage threshold S2=4.2V.
S304、进入电池直充过程;S304, entering the battery direct charging process;
当处理器U3检测到电池U4的电芯电压Vbat_real处于预设的直充阈值的范围[3.2,4.2]以内时,首先控制充电芯片U2挂起,即进入非使能的不工作状态,将充电方式由充电芯片充电切换到直充,并将充电器的输出电压调控权由充电芯片执行切换至由处理器U3执行。然后,查找预设的初始关系对照表,根据电池的电芯电压Vbat_real所处的区间段获取该区间段所对应的输出电压目标值Vtarg和充电电流目标值Itarg。When the processor U3 detects that the cell voltage V bat_real of the battery U4 is within the preset direct charging threshold range [3.2, 4.2], it first controls the charging chip U2 to suspend, that is, enters a non-enabled non-working state, and will The charging mode is switched from charging with the charging chip to direct charging, and the control of the output voltage of the charger is switched from being performed by the charging chip to being performed by the processor U3. Then, look up the preset initial relationship comparison table, and obtain the output voltage target value V targ and the charging current target value I targ corresponding to the interval segment of the cell voltage V bat_real of the battery.
具体说明,可以根据设定的直充阈值范围[S1,S2],针对电池的电芯电压划分出若干个区间段,例如以100mV为跨度,划分出N个区间段,N=(S2-S1)/100mV。针对每一个区间段事先确定出每一个区间段的电芯电压所对应的输出电压目标值Vtarg和充电电流目标值Itarg,以形成所述的初始关系对照表,保存在处理器U3中,或者保存在移动终端中与处理器U3连接的存储器中,供处理器U3调用。Specifically, according to the set direct charging threshold range [S1, S2], several intervals can be divided for the cell voltage of the battery, for example, with a span of 100mV, N intervals can be divided, N=(S2-S1 )/100mV. The output voltage target value V targ and the charging current target value I targ corresponding to the cell voltage of each interval segment are determined in advance for each interval segment to form the initial relationship comparison table, which is stored in the processor U3, Or stored in a memory connected to the processor U3 in the mobile terminal for calling by the processor U3.
在本实施例中,优选在所述直充阈值的范围[3.2,4.2]内划分出两个区间段:In this embodiment, it is preferable to divide two interval segments within the range [3.2,4.2] of the direct charging threshold:
第一区间段对应的电芯电压Vbat_real在3.2V~4V之间,充电器的输出电压目标值Vtarg=Vmax-1,充电电流目标值Itarg=Imax_bat。即,可以根据电池U4所支持的最大充电电流值Imax_bat来确定第一区间段所对应的充电电流目标值Itarg,例如可以设置Itarg=4.5A。所述Vmax-1可以根据电池U4的电芯电压Vbat_real、所述Imax_bat以及电池U4的内阻和系统在直充通路中的线路电阻确定,例如可以设置Vmax-1=Imax_bat*R+Vbat_real,所述R为电池U4的内阻与系统在直充通路中的线路电阻之和;The battery cell voltage V bat_real corresponding to the first section is between 3.2V~4V, the charger output voltage target value V targ =V max-1 , and the charging current target value I targ =I max_bat . That is, the charging current target value I targ corresponding to the first interval can be determined according to the maximum charging current value I max_bat supported by the battery U4 , for example, I targ =4.5A can be set. The V max-1 can be determined according to the cell voltage V bat_real of the battery U4, the I max_bat , the internal resistance of the battery U4, and the line resistance of the system in the direct charging path, for example, V max-1 = I max_bat * can be set R+V bat_real , the R is the sum of the internal resistance of the battery U4 and the line resistance of the system in the direct charging path;
第二区间段对应的电芯电压在4V~4.2V之间,充电器的输出电压目标值Vtarg=Vmax-2,充电电流目标值Itarg=Imax_IC。即,可以根据充电芯片U2所支持的最大输出电流值Imax_IC来确定第二区间段所对应的充电电流目标值Itarg,例如可以设置Itarg=3A,以在充电方式由直充过度到充电芯片充电时,能够保持充电电流平稳。所述Vmax-2可以根据电池U4的电芯电压Vbat_real、所述Imax_IC以及电池U4的内阻和系统在直充通路中的线路电阻确定,例如可以设置Vmax-2=Imax_IC*R+Vbat_real。The cell voltage corresponding to the second interval is between 4V~4.2V, the output voltage target value V targ =V max-2 of the charger, and the charging current target value I targ =I max_IC . That is, the charging current target value I targ corresponding to the second interval can be determined according to the maximum output current value I max_IC supported by the charging chip U2, for example, I targ = 3A can be set, so that when the charging mode changes from direct charging to charging When the chip is charging, it can keep the charging current stable. The V max-2 can be determined according to the cell voltage V bat_real of the battery U4, the I max_IC , the internal resistance of the battery U4, and the line resistance of the system in the direct charging path, for example, V max-2 =I max_IC * can be set R+V bat_real .
下面结合图4,对直充过程进行详细阐述。The direct charging process will be described in detail below with reference to FIG. 4 .
S401、处理器U3根据检测到的电池U4的电芯电压Vbat_real查找其在初始关系对照表中所处的区间段,根据该区间段所对应的输出电压目标值Vtarg调节QC3.0充电器的输出电压Vout,直到Vout=Vtarg;S401, the processor U3 looks up the interval segment in the initial relationship comparison table according to the detected cell voltage V bat_real of the battery U4, and adjusts the QC3.0 charger according to the output voltage target value V targ corresponding to the interval segment The output voltage V out until V out =V targ ;
具体来讲,处理器U3可以将输出电压目标值Vtarg与QC3.0充电器默认输出的5V电压进行比较,计算出需要通过其差分引脚D+或D-输出的脉冲个数,然后向QC3.0充电器的差分引脚D+或D-输出相应数量的脉冲,将QC3.0充电器的输出电压Vout调整到Vtarg。Specifically, the processor U3 can compare the output voltage target value V targ with the 5V voltage output by the QC3.0 charger by default, calculate the number of pulses that need to be output through its differential pin D+ or D-, and then send the The differential pin D+ or D- of the .0 charger outputs a corresponding number of pulses to adjust the output voltage V out of the QC3.0 charger to V targ .
S402、连通电池U4的直充通路,利用充电器的输出电压直接为电池U4充电;S402, connecting the direct charging path of the battery U4, using the output voltage of the charger to directly charge the battery U4;
具体来讲,对于采用负载开关U1设计的直充通路(如图1所示),可以利用处理器U3控制负载开关U1使能运行,以连通电池U4的直充通路;对于采用MOS对管Q1设计的直充通路(如图2所示),可以利用处理器U3控制升压电路U7使能运行,继而驱动MOS对管Q2导通,连通电池U4的直充通路,以实现对电池U4的直充。Specifically, for the direct charging path designed with the load switch U1 (as shown in Figure 1), the processor U3 can be used to control the load switch U1 to enable operation to connect the direct charging path of the battery U4; The designed direct charging path (as shown in Figure 2) can use the processor U3 to control the boost circuit U7 to enable operation, and then drive the MOS transistor Q2 to conduct, and connect the direct charging path of the battery U4 to realize the charging of the battery U4. Direct charge.
S403、实时检测电池U4的充电电流I,通过将充电电流I与该区间段的充电电流目标值Itarg进行对比,以确定上调还是下调充电器的输出电压Vout,以使电池U4的充电电流I达到或者接近所述的充电电流目标值Itarg;S403. Real-time detection of the charging current I of the battery U4, and by comparing the charging current I with the charging current target value I targ of the interval, to determine whether to increase or decrease the output voltage V out of the charger, so that the charging current of the battery U4 I reaches or approaches the charging current target value I targ ;
具体来讲,在对电池U4进行直充的过程中,实时检测电池U4的充电电流I,若I<Itarg,则逐步上调充电器的输出电压Vout,直到充电电流I=Itarg;若I>Itarg,则逐步下调充电器的输出电压Vout,直到充电电流I=Itarg。此后,继续检测电池U4的充电电流I,只要充电电流I接近Itarg,例如充电电流I在[Itarg-△I,Itarg]的区间内,就保持充电器当前的输出电压Vout不变,对电池U4进行大电流类恒流直充。所述△I为电流偏差阈值,其取值最好不小于500mA。在本实施例中,优选设置△I=500mA,以避免出现充电器的输出电压Vout反复调整的情况。Specifically, during the process of directly charging the battery U4, the charging current I of the battery U4 is detected in real time, and if I<I targ , the output voltage V out of the charger is gradually increased until the charging current I=I targ ; if If I>I targ , the output voltage V out of the charger is gradually lowered until the charging current I=I targ . After that, continue to detect the charging current I of the battery U4, as long as the charging current I is close to I targ , for example, the charging current I is within the interval of [I targ -△I, I targ ], keep the current output voltage V out of the charger unchanged , Carry out high-current constant-current direct charging to the battery U4. The ΔI is the current deviation threshold, and its value is preferably not less than 500mA. In this embodiment, it is preferable to set ΔI=500mA to avoid repeated adjustment of the output voltage V out of the charger.
S404、在电池U4的电芯电压Vbat_real从电压低一级的区间段进入到电压高一级的区间段时,查找所述初始关系对照表,获取该区间段的充电电流目标值Itarg,并调整充电器的输出电压Vout,使电池U4的充电电流I达到或者接近该区间段的充电电流目标值Itarg;S404. When the battery cell voltage V bat_real of the battery U4 enters from an interval segment with a lower voltage level to an interval segment with a higher voltage level, search the initial relationship comparison table to obtain the charging current target value I targ of the interval segment, And adjust the output voltage V out of the charger, so that the charging current I of the battery U4 reaches or approaches the charging current target value I targ of the interval;
具体来讲,在对电池U4进行直充的过程中,电池U4的电芯电压Vbat_real不断上升,当电芯电压Vbat_real从电压低一级的区间段进入到电压高一级的区间段时,处理器U3通过查找所述的初始关系对照表获取所述高一级的区间段所对应的充电电流目标值Itarg;然后,通过处理器U3动态降低所述充电器的输出电压Vout,直到所述电池U4的充电电流I等于该区间段的充电电流目标值Itarg。Specifically, during the process of direct charging the battery U4, the cell voltage V bat_real of the battery U4 keeps rising . The processor U3 obtains the charging current target value I targ corresponding to the higher-level interval segment by looking up the initial relationship comparison table; then, the processor U3 dynamically reduces the output voltage V out of the charger, Until the charging current I of the battery U4 is equal to the charging current target value I targ of the interval.
例如,当电池U4的电芯电压Vbat_real从所述第一区间段上升到所述第二区间段时,仅读取第二区间段所对应的充电电流目标值Itarg=Imax_IC=3A即可,根据第二区间段的充电电流目标值Itarg调整充电器的输出电压Vout,无需根据第二区间段所对应的输出电压目标值Vtarg来调整充电器的输出电压Vout,以保证充电电流平稳变化。在本实施例中,第二区间段所对应的输出电压目标值Vtarg仅在移动终端插入标配充电器时,电池U4的电芯电压Vbat_real刚好处于所述的第二区间段时读取,以作为充电器输出电压初始调整的基础。For example, when the cell voltage V bat_real of the battery U4 rises from the first interval to the second interval, only the charging current target value corresponding to the second interval is read I targ =I max_IC =3A, that is Yes, the output voltage V out of the charger is adjusted according to the charging current target value I targ of the second interval, and it is not necessary to adjust the output voltage V out of the charger according to the output voltage target value V targ corresponding to the second interval, so as to ensure The charging current changes smoothly. In this embodiment, the output voltage target value V targ corresponding to the second interval is only read when the cell voltage V bat_real of the battery U4 is just in the second interval when the mobile terminal is plugged into a standard charger. , as the basis for the initial adjustment of the charger output voltage.
在所述电池U4的电芯电压Vbat_real从电压低一级的区间段进入到电压高一级的区间段,且接近两个区间段的临界点时(例如,对于设置两个区间段的情况,当电池U4的电芯电压Vbat_real刚刚超过4V时),由于电压高一级的区间段所对应的充电电流目标值低于电压低一级的区间段所对应的充电电流目标值,因此需要将充电器的输出电压Vout下调。在动态降低所述充电器的输出电压Vout时,可能会出现电池U4的电芯电压Vbat_real从所述电压高一级的区间段下降到所述电压低一级的区间段的情况(例如,电芯电压Vbat_real变得小于4V),这是由于电芯内阻的存在,充电电流I降低后,导致电芯电压Vbat_real瞬间降低一些,重回到了上一区间段。在这种情况下,为了保证直充过程的平稳性,只要检测到电池U4的充电电流I不为零,就不返回到上一区间段,而是继续动态降低所述充电器的输出电压Vout,直到所述电池的充电电流I达到所述高一级的区间段所对应的充电电流目标值Itarg(例如,针对本实施例设计的两个区间段的情况,继续下调充电器的输出电压Vout,直到I=3A)。此后,为了避免输出电压Vout反复调整,只要处理器U3检测到充电电流I接近Itarg,例如,I在2.5A~3A之间,就保持充电器当前的输出电压Vout不变,对电池U4进行大电流类恒流直充。本实施例在这里优选将电流偏差阈值设计成500mA,当然,也可以根据移动终端的实际设计需要选择设置成其它数值,本实施例对此不进行具体限制。When the battery cell voltage V bat_real of the battery U4 enters from an interval segment with a lower voltage level to an interval segment with a higher voltage level, and is close to the critical point of the two interval segments (for example, for the case where two interval segments are set , when the battery cell voltage V bat_real of the battery U4 just exceeds 4V), since the charging current target value corresponding to the interval section with one level higher voltage is lower than the target charging current value corresponding to the interval section with one level lower voltage, it is necessary The output voltage V out of the charger is adjusted down. When the output voltage V out of the charger is dynamically reduced, the battery cell voltage V bat_real of the battery U4 may drop from the interval segment with one level higher voltage to the interval segment with one level lower voltage (for example , the cell voltage V bat_real becomes less than 4V), this is due to the existence of the internal resistance of the cell, after the charging current I decreases, the cell voltage V bat_real drops instantly and returns to the previous interval. In this case, in order to ensure the stability of the direct charging process, as long as it is detected that the charging current I of the battery U4 is not zero, it will not return to the previous interval, but continue to dynamically reduce the output voltage V of the charger. out , until the charging current I of the battery reaches the charging current target value I targ corresponding to the interval segment of the higher level (for example, for the case of two interval segments designed in this embodiment, continue to lower the output of the charger voltage V out until I=3A). Afterwards, in order to avoid repeated adjustments of the output voltage V out , as long as the processor U3 detects that the charging current I is close to I targ , for example, I is between 2.5A and 3A, the current output voltage V out of the charger remains unchanged, which is beneficial to the battery. U4 performs high-current constant-current direct charging. In this embodiment, the current deviation threshold is preferably designed to be 500mA. Of course, it can also be set to other values according to the actual design requirements of the mobile terminal, which is not specifically limited in this embodiment.
S405、当电池U4的电芯电压Vbat_real升高超过预设的直充阈值范围[S1,S2]时,将充电方式由直充切换到充电芯片充电;S405. When the cell voltage V bat_real of the battery U4 rises beyond the preset direct charging threshold range [S1, S2], switch the charging mode from direct charging to charging with a charging chip;
具体来讲,当检测到电池U4的电芯电压Vbat_real随直充过程不断升高,超过高压阈值S2时,则切断电池U4的直充通路。对于采用负载开关U1设计的直充通路(如图1所示),可以利用处理器U3控制负载开关U1挂起,即控制负载开关U1非使能,进入不运行状态,以切断电池U4的直充通路;对于采用MOS对管Q1设计的直充通路(如图2所示),可以利用处理器U3控制升压电路U7非使能,继而控制MOS对管Q2关断,以切断电池U4的直充通路。在电池U4的直充通路切断后,通过处理器U3控制充电芯片U2使能,切换至充电芯片充电,利用充电芯片U2接收充电器的输出电压Vout,为电池U4充电,并跳转至步骤S306执行。Specifically, when it is detected that the battery cell voltage V bat_real of the battery U4 increases continuously with the direct charging process and exceeds the high voltage threshold S2, the direct charging path of the battery U4 is cut off. For the direct charging path designed with load switch U1 (as shown in Figure 1), the processor U3 can be used to control the load switch U1 to suspend, that is, to control the load switch U1 to be disabled and enter the non-operating state to cut off the direct charging of the battery U4. charging path; for the direct charging path designed with MOS pair tube Q1 (as shown in Figure 2), the processor U3 can be used to control the boost circuit U7 to disable, and then control the MOS tube Q2 to turn off, so as to cut off the power of the battery U4 Direct charge path. After the direct charging path of the battery U4 is cut off, the processor U3 controls the charging chip U2 to enable, switches to the charging chip for charging, uses the charging chip U2 to receive the output voltage V out of the charger, charges the battery U4, and jumps to the step S306 is executed.
S305、判断电池的电芯电压Vbat_real是否小于低压阈值S1,若是,则通过充电芯片U2对电池U4进行涓流充电,直到电池的电芯电压Vbat_real=S1,返回步骤S304,进入电池直充过程;若电池的电芯电压Vbat_real大于高压阈值S2,则执行步骤S306;S305. Determine whether the cell voltage V bat_real of the battery is lower than the low-voltage threshold S1, and if so, trickle charge the battery U4 through the charging chip U2 until the cell voltage V bat_real of the battery = S1, return to step S304, and enter the battery direct charge Process; if the cell voltage V bat_real of the battery is greater than the high voltage threshold S2, step S306 is executed;
在本实施例中,所述处理器U3在检测到电池U4的电芯电压Vbat_real在预设的直充阈值范围[S1,S2]以外时,首先控制负载开关U1断开,切断电池U4的直充通路,将充电方式切换到充电芯片充电,利用充电芯片U2为电池U4充电,并将充电器的输出电压调控权切换至充电芯片U2,利用充电芯片U2调节充电器的输出电压。In this embodiment, when the processor U3 detects that the cell voltage V bat_real of the battery U4 is outside the preset direct charging threshold range [S1, S2], it first controls the load switch U1 to turn off, and cuts off the battery U4. In the direct charging channel, the charging mode is switched to the charging chip charging, and the charging chip U2 is used to charge the battery U4, and the output voltage control right of the charger is switched to the charging chip U2, and the charging chip U2 is used to adjust the output voltage of the charger.
充电芯片U2可以通过与处理器U3通信,获取电池U4的电芯电压Vbat_real。当充电芯片U2检测到电池U4的电芯电压Vbat_real低于S1时,调整QC3.0充电器的输出电压Vout=5V,为充电芯片U2供电。此时,充电芯片U2可以输出200mA的小电流,对所述电池U4进行涓流充电,直到电池U4的电芯电压Vbat_real=S1。The charging chip U2 can obtain the cell voltage V bat_real of the battery U4 by communicating with the processor U3. When the charging chip U2 detects that the cell voltage V bat_real of the battery U4 is lower than S1, it adjusts the output voltage V out of the QC3.0 charger to 5V to supply power to the charging chip U2. At this time, the charging chip U2 can output a small current of 200mA to trickle charge the battery U4 until the cell voltage V bat_real of the battery U4 = S1 .
S306、检测电池U4的电芯电压Vbat_real是否高于S2且低于电池U4所对应的最大电芯电压S3,若是,则执行步骤S307;否则,执行步骤S308;S306. Detect whether the cell voltage V bat_real of the battery U4 is higher than S2 and lower than the maximum cell voltage S3 corresponding to the battery U4, if yes, execute step S307; otherwise, execute step S308;
在本实施例中,对于选用4.4V电池的情况,所述S3即为4.4V。In this embodiment, for the case of using a 4.4V battery, the S3 is 4.4V.
S307、动态调节充电器的输出电压Vout,找出充电芯片U2的输出电流在满足其预期输出电流Ith的情况下充电器的最小输出电压,利用所述最小输出电压为充电芯片U2供电,直到电池U4的电芯电压Vbat_real达到其最大电芯电压;S307. Dynamically adjust the output voltage V out of the charger, find out the minimum output voltage of the charger when the output current of the charging chip U2 satisfies its expected output current Ith , and use the minimum output voltage to supply power to the charging chip U2, until the cell voltage V bat_real of the battery U4 reaches its maximum cell voltage;
在本实施例中,考虑到在相同的充电电流情况下,充电芯片的输入电压(也就是充电器的输出电压)越高,充电芯片的效率越低,热损耗也就越大,所以在利用充电芯片U2为电池U4充电时,充电器的输出电压Vout调整的基本原则就是在满足充电功率的情况下,尽量减小充电器的输出电压Vout,提高输入电流Iin,以保持充电芯片U2的输入功率与输出功率守恒。In this embodiment, considering that in the case of the same charging current, the higher the input voltage of the charging chip (that is, the output voltage of the charger), the lower the efficiency of the charging chip and the greater the heat loss, so when using When the charging chip U2 is charging the battery U4, the basic principle of adjusting the output voltage V out of the charger is to reduce the output voltage V out of the charger as much as possible and increase the input current I in under the condition of satisfying the charging power, so as to keep the charging chip The input power and output power of U2 are conserved.
具体来讲,当S2<Vbat_real≤S3时,充电芯片U2调整其输出电流(即,电池U4的充电电流I)到达其预期输出电流Ith。在本实施例中,优选设置所述预期输出电流Ith等于所述充电芯片U2所支持的最大输出电流,例如设置Ith=3A,以进一步缩短充电时间。Specifically, when S2<V bat_real ≤ S3 , the charging chip U2 adjusts its output current (ie, the charging current I of the battery U4 ) to reach its expected output current I th . In this embodiment, it is preferable to set the expected output current I th equal to the maximum output current supported by the charging chip U2 , for example, set I th =3A, so as to further shorten the charging time.
在充电芯片U2为电池U4充电的过程中,可以通过处理器U3控制充电芯片U2逐步调整充电器的输出电压Vout,同时检测充电芯片U2的输出电流,找出在满足预期输出电流Ith情况下的最小输入电压(即,在满足充电芯片U2预期输出电流Ith情况下充电器的最小输出电压),此时的输入电压就是当前电池电压情况下的最佳效率。此后,随着电池U4的电芯电压Vbat_real逐渐升高,同步调整充电器的输出电压Vout,以维持电池U4的充电电流I满足所述的Ith,直到电池U4的电芯电压Vbat_real到达恒压充电的转折点,即Vbat_real=S3,进入后续的恒压充电阶段。In the process of charging the battery U4 by the charging chip U2, the processor U3 can control the charging chip U2 to gradually adjust the output voltage V out of the charger, and at the same time detect the output current of the charging chip U2 to find out when the expected output current I th is met. The minimum input voltage (that is, the minimum output voltage of the charger when the expected output current I th of the charging chip U2 is met), the input voltage at this time is the best efficiency under the current battery voltage. Thereafter, as the cell voltage V bat_real of the battery U4 gradually increases, the output voltage V out of the charger is synchronously adjusted to maintain the charging current I of the battery U4 to meet the above-mentioned I th until the cell voltage V bat_real of the battery U4 When the turning point of constant voltage charging is reached, that is, V bat_real = S3, the subsequent constant voltage charging stage is entered.
S308、保持充电芯片U2的输出电压等于电池U4的最大电芯电压S3不变,对电池U4进行恒压充电,并在充电电流I每降低500mA时,调整充电器的输出电压Vout下调200mV且最低调整到5V就不再向下调整,直到充电完成;S308. Keep the output voltage of the charging chip U2 equal to the maximum cell voltage S3 of the battery U4, charge the battery U4 at a constant voltage, and adjust the output voltage V out of the charger by 200mV when the charging current I decreases by 500mA and When the minimum adjustment is 5V, it will not be adjusted downward until the charging is completed;
在本实施例中,当充电过程进入到恒压充电阶段,电池U4的充电电流I将逐步降低,为了在恒压充电过程中依然维持较高的充电效率,本实施例在恒压充电阶段设计充电电流I每降低500毫安,控制充电器的输出电压Vout下调200毫伏(此值可以根据移动终端的具体情况测算),直到充电完成时,将充电器的输出电压Vout调整到默认的5V。In this embodiment, when the charging process enters the constant voltage charging stage, the charging current I of the battery U4 will gradually decrease. In order to maintain a high charging efficiency during the constant voltage charging process, this embodiment designs Every time the charging current I is reduced by 500 mA, the output voltage V out of the charger is controlled to decrease by 200 mV (this value can be calculated according to the specific conditions of the mobile terminal), until the charging is completed, the output voltage V out of the charger is adjusted to the default value 5V.
由此,完成了整个充电过程。Thus, the entire charging process is completed.
为了保证移动终端充电的安全性,本实施例还提出以下充电异常处理机制:In order to ensure the safety of charging the mobile terminal, this embodiment also proposes the following abnormal charging mechanism:
(一)针对采用集成芯片作为负载开关U1设计的移动终端,如图1所示,本实施例优选采用以下安全保护机制:(1) For a mobile terminal designed using an integrated chip as the load switch U1, as shown in Figure 1, this embodiment preferably adopts the following security protection mechanism:
①利用负载开关U1的限流功能,系统在上电时默认以500mA限流(通过配置电阻R8的阻值实现),保证异常情况下的充电电流不会损坏移动终端;①Using the current limiting function of the load switch U1, the system defaults to 500mA current limiting when powered on (realized by configuring the resistance value of resistor R8), so as to ensure that the charging current under abnormal conditions will not damage the mobile terminal;
②利用负载开关U1的电流监测引脚IMON实时监测直充过程中进入移动终端的总输入电流Iin(即充电器的输出电流),若所述总输入电流Iin超过预设的直充电流安全阈值Isafe(通过配置电阻R6和电阻R8的并联阻值实现,优选设置Isafe=5A),则降低所述充电器的输出电压Vout,从而降低其输出电流(即总输入电流Iin),直到Iin<Isafe;② Use the current monitoring pin IMON of the load switch U1 to monitor in real time the total input current I in entering the mobile terminal during the direct charging process (that is, the output current of the charger), if the total input current I in exceeds the preset direct charging current The safety threshold I safe (realized by configuring the parallel resistance of resistor R6 and resistor R8, preferably setting I safe =5A), reduces the output voltage V out of the charger, thereby reducing its output current (that is, the total input current I in ), until I in < I safe ;
③利用负载开关U1的过压保护功能,使直充过程中进入移动终端的总输入电压不超过设定阈值。即,实时检测充电器的输出电压Vout,若所述充电器的输出电压Vout超过预设的直充电压安全阈值Vsafe,则切断电池U4的直充通路,避免电池U4收到过压冲击。在本实施例中,对于4.4V电池,优选设置Vsafe=6V;③ Use the overvoltage protection function of the load switch U1 to keep the total input voltage into the mobile terminal during the direct charging process from exceeding the set threshold. That is, the output voltage V out of the charger is detected in real time, and if the output voltage V out of the charger exceeds the preset direct charging voltage safety threshold V safe , the direct charging path of the battery U4 is cut off to prevent the battery U4 from receiving overvoltage shock. In this embodiment, for a 4.4V battery, it is preferable to set V safe =6V;
④利用电池U4中内置的计量芯片,实时检测电池U4的电芯电压Vbat_real和充电电流I,若其中之一超过电池规格书中所规定的最大阈值(即电池规格书中所规定的最大充电电压值和最大充电电流值),则降低所述充电器的输出电压Vout,并切断电池U4的直充通路;④ Use the built-in metering chip in the battery U4 to detect the cell voltage V bat_real and the charging current I of the battery U4 in real time. If one of them exceeds the maximum threshold specified in the battery specification (that is, the maximum charge specified in the battery specification voltage value and maximum charging current value), then reduce the output voltage V out of the charger, and cut off the direct charging path of the battery U4;
⑤监控电池U4的端子电压,一旦超过最大阈值(可根据电池规格书中所规定的最大端子电压确定,本实施例针对4.4V电池U4优选设置所述最大阈值为4.6V),则降低所述充电器的输出电压Vout,并切断电池U4的直充通路;⑤ Monitor the terminal voltage of the battery U4, and once it exceeds the maximum threshold (it can be determined according to the maximum terminal voltage specified in the battery specification, this embodiment preferably sets the maximum threshold to 4.6V for the 4.4V battery U4), then reduce the output voltage V out of the charger, and cut off the direct charging path of the battery U4;
⑥硬件保护机制:当图1中的逻辑与门U6出现异常导致不能控制负载开关U1正常断开时,置处理器U3的GPIO3口为低电平,控制负载开关U1断开,切断电池U4的直充通路,避免对电池造成损坏。⑥Hardware protection mechanism: When the logical AND gate U6 in Figure 1 is abnormal and cannot control the normal disconnection of the load switch U1, set the GPIO3 port of the processor U3 to a low level, control the load switch U1 to disconnect, and cut off the power supply of the battery U4. Direct charging path to avoid damage to the battery.
(二)针对采用MOS对管Q2配合升压电路U7设计的负载开关U1,如图2所示,本实施例优选采用以下安全保护机制:(2) For the load switch U1 designed with the MOS pair transistor Q2 and the booster circuit U7, as shown in Figure 2, this embodiment preferably adopts the following safety protection mechanism:
①通过电流监控芯片U9检测进入移动终端的总输入电流Iin(即,充电器的输出电流),并将检测到的总输入电流Iin同时传送至充电芯片U2和控制器U8,处理器U3通过充电芯片U2获取直充过程中进入移动终端的总输入电流Iin,当处理器U3或控制器U8检测到Iin超过预设阈值(例如直充电流安全阈值Isafe,优选设置Isafe=5A)时,向逻辑与门U6输出低电平信号,切断直充通路,起到双重保护的作用;①Detect the total input current I in entering the mobile terminal (that is, the output current of the charger) through the current monitoring chip U9, and transmit the detected total input current I in to the charging chip U2 and the controller U8 at the same time, and the processor U3 The total input current I in entering the mobile terminal during the direct charging process is obtained by the charging chip U2. When the processor U3 or the controller U8 detects that I in exceeds a preset threshold (for example, the direct charging current safety threshold I safe , it is preferable to set I safe = 5A), output a low-level signal to the logic AND gate U6, cut off the direct charging path, and play the role of double protection;
②利用电池U4中内置的计量芯片,实时检测电池U4的电芯电压Vbat_real和充电电流I,若其中之一超过电池规格书中所规定的最大阈值(即电池规格书中所规定的最大充电电压值和最大充电电流值),则降低所述充电器的输出电压Vout,并切断电池U4的直充通路;② Use the built-in metering chip in the battery U4 to detect the cell voltage V bat_real and the charging current I of the battery U4 in real time. If one of them exceeds the maximum threshold specified in the battery specification (that is, the maximum charge specified in the battery specification voltage value and maximum charging current value), then reduce the output voltage V out of the charger, and cut off the direct charging path of the battery U4;
③监控电池U4的端子电压,一旦超过最大阈值(可根据电池规格书中所规定的最大端子电压确定,本实施例针对4.4V电池U4优选设置所述最大阈值为4.6V),则降低所述充电器的输出电压Vout,并切断电池U4的直充通路;③ Monitor the terminal voltage of the battery U4, and once it exceeds the maximum threshold (it can be determined according to the maximum terminal voltage specified in the battery specification, this embodiment preferably sets the maximum threshold to 4.6V for the 4.4V battery U4), then reduce the output voltage V out of the charger, and cut off the direct charging path of the battery U4;
④控制器U8通过其ADC接口AD2同时检测电池U4的端子电压,一旦超过最大阈值,则通过其UART接口通知处理器U3,以降低所述充电器的输出电压Vout,甚至切断电池U4的直充通路;④ The controller U8 simultaneously detects the terminal voltage of the battery U4 through its ADC interface AD2, and once it exceeds the maximum threshold, it notifies the processor U3 through its UART interface to reduce the output voltage V out of the charger, or even cut off the direct current of the battery U4. filling channel;
⑤在直充过程中,控制器U8与处理器U3采用定时握手机制,一旦发现一方没有定时进行信号握手,则切断电池U4的直充通路;⑤ During the direct charging process, the controller U8 and the processor U3 adopt a timing handshake mechanism. Once it is found that one party does not perform signal handshaking regularly, the direct charging path of the battery U4 is cut off;
⑥在直充过程中,控制器U8通过其ADC接口AD3实时检测进入移动终端的总输入电压Vin,即充电器的输出电压Vout,一旦Vin超过设定阈值,例如超过预设的直充电压安全阈值Vsafe(对于4.4V电池优选设置Vsafe=6V),则通知处理器U3降低充电器的输出电压Vout,甚至切断电池U4的直充通路。⑥During the direct charging process, the controller U8 detects in real time the total input voltage V in entering the mobile terminal through its ADC interface AD3, that is, the output voltage V out of the charger. Once V in exceeds the set threshold, such as exceeding the preset direct The charging voltage safety threshold V safe (for a 4.4V battery is preferably set to V safe = 6V), the processor U3 is notified to reduce the output voltage V out of the charger, and even cut off the direct charging path of the battery U4.
通过采用处理器U3和控制器U8双重保护机制,可以进一步保证移动终端充电的安全性。By adopting the dual protection mechanism of the processor U3 and the controller U8, the safety of charging the mobile terminal can be further ensured.
采用本实施例所提出的上述设计方案,在直充过程中若充电器被拔下或者断电,由于负载开关U1的输入引脚VIN和输出引脚VOUT处于通路状态(对于采用MOS对管Q2设计的直充通路,则由于MOS对管Q1的源极和漏极连通),则电池U4电压会通过直充通路作用于USB接口J1的电源引脚VBUS,导致USB接口J1的电源引脚VBUS的电压维持在高电位,使得系统检测不出充电器已拔出,用户界面上的充电器图标还会保留。With the above-mentioned design scheme proposed in this embodiment, if the charger is unplugged or powered off during the direct charging process, since the input pin VIN and output pin VOUT of the load switch U1 are in the open state (for the MOS pair tube Q2 The designed direct charging path, because the source and drain of the MOS transistor Q1 are connected), the voltage of the battery U4 will act on the power pin VBUS of the USB interface J1 through the direct charging path, resulting in the power pin VBUS of the USB interface J1 The voltage of the battery is maintained at a high level, so that the system cannot detect that the charger has been unplugged, and the charger icon on the user interface will remain.
为了保证在直充过程中系统能够准确地检测出充电器的拔出状态,以控制直充通路准确切断,本实施例优选提出以下两种设计方案:In order to ensure that the system can accurately detect the unplugged state of the charger during the direct charging process, so as to control the accurate cut-off of the direct charging path, this embodiment preferably proposes the following two design schemes:
一种方案,将充电接口J1的某一固定引脚用于充电器拔出的检测。本实施例以充电接口J1的检测引脚ID为例进行说明。将充电接口J1的检测引脚ID连接至处理器U3的充电器检测端口,例如某一具有中断功能的中断接口ID1,如图1、图2所示。通过插拔充电器来触发该ID1接口上的电平变化,从而触发中断,执行以下辨别流程,结合图5所示:One solution is to use a fixed pin of the charging interface J1 for the detection of the charger being pulled out. In this embodiment, the detection pin ID of the charging interface J1 is taken as an example for illustration. Connect the detection pin ID of the charging interface J1 to the charger detection port of the processor U3, for example, an interrupt interface ID1 with an interrupt function, as shown in FIG. 1 and FIG. 2 . The level change on the ID1 interface is triggered by plugging and unplugging the charger, thereby triggering an interrupt, and the following identification process is performed, as shown in Figure 5:
S501、处理器U3在检测到其ID1接口上的电平发生变化时,触发中断;S501. When the processor U3 detects that the level on its ID1 interface changes, an interrupt is triggered;
本实施例可以采用在标配充电器的一侧设置接地电路或者上拉电路的方式来改变所述检测引脚ID在插拔充电器时的电平状态。例如,在充电接口J1连接标配充电器时,通过标配充电器(例如上拉电路)配置所述检测引脚ID为第一电平状态(例如高电平);在充电接口J1未连接标配充电器时,检测引脚ID由移动终端侧的接口电路(例如下拉电路)配置为第二电平状态(例如低电平)。In this embodiment, a grounding circuit or a pull-up circuit may be provided on one side of the standard charger to change the level state of the detection pin ID when the charger is plugged in or out. For example, when the charging interface J1 is connected to a standard charger, configure the detection pin ID to be in the first level state (such as a high level) through the standard charger (such as a pull-up circuit); when the charging interface J1 is not connected When a standard charger is configured, the detection pin ID is configured to be in a second level state (eg low level) by an interface circuit (eg pull-down circuit) on the mobile terminal side.
S502、处理器U3在中断进程中若检测到其ID1接口上的电位由第一电平状态跳变为第二电平状态,则初步判定充电器可能被拔出;S502. During the interruption process, if the processor U3 detects that the potential on the ID1 interface jumps from the first level state to the second level state, it preliminarily determines that the charger may be pulled out;
S503、切断电池U4的直充通路;S503, cutting off the direct charging path of the battery U4;
具体来讲,当处理器U3检测到其ID1接口上的电平由第一电平状态跳变为第二电平状态时,首先通过其GPIO1口输出低电平,进而控制逻辑与门U6的输出电平由高电平变为低电平,继而控制负载开关U1(如图1)或者升压电路U7(如图2)非使能,由此实现直充通路的切断。由于直充通路被切断,因此电池U4电压不会对充电接口J1的电源引脚VBUS上的电位产生影响;Specifically, when the processor U3 detects that the level on its ID1 interface jumps from the first level state to the second level state, it first outputs a low level through its GPIO1 port, and then controls the logical AND gate U6. The output level changes from high level to low level, and then controls the load switch U1 (as shown in Figure 1) or the boost circuit U7 (as shown in Figure 2) to disable, thereby realizing the cut-off of the direct charging path. Since the direct charging path is cut off, the voltage of the battery U4 will not affect the potential on the power pin VBUS of the charging interface J1;
S504、利用常规的充电器插拔状态检测机制检测充电器的插拔状态;S504. Using a conventional charger plug-in state detection mechanism to detect the plug-in state of the charger;
由于直充通路已切断,若充电器拔出,则充电接口J1的电源引脚VBUS上的电压将降为零,可以通过处理器U3检测电源引脚VBUS上的电位,若为零,则判定充电器已拔出,结束充电过程,并通过处理器U3控制用户界面上消除充电器图标;若不为零,则判定充电器未拔出。Since the direct charging path has been cut off, if the charger is pulled out, the voltage on the power pin VBUS of the charging interface J1 will drop to zero, and the potential on the power pin VBUS can be detected by the processor U3, and if it is zero, then judge The charger has been unplugged, the charging process is ended, and the processor U3 is used to control the elimination of the charger icon on the user interface; if it is not zero, it is determined that the charger is not unplugged.
另一种方案,检测通过充电接口J1输入的总电流(即总输入电流Iin)以及进出电池U4的电流Ibat,根据Iin和Ibat的变化判断充电器是否在直充过程中被拔出。Another solution is to detect the total current input through the charging interface J1 (that is, the total input current I in ) and the current I bat entering and leaving the battery U4, and judge whether the charger is unplugged during the direct charging process according to the changes of I in and I bat out.
结合图6,具体流程包括:Combined with Figure 6, the specific process includes:
S601、检测通过充电接口J1输入的总电流,即总输入电流Iin;S601. Detect the total current input through the charging interface J1, that is, the total input current I in ;
在本实施例中,对于采用集成芯片设计的负载开关U1,如图1所示,可以通过检测负载开关U1的电流监测引脚IMON输出的监测电流计算出总输入电流Iin。对于采用MOS对管Q2配合升压电路U7设计的负载开关,如图2所示,可以通过电流监控芯片U9检测总输入电流Iin,并根据总输入电流Iin的大小输出与之对应的电压,经由分压电阻R24、R25分压后,由控制器U8采集,以计算出总输入电流Iin的大小,并通知所述的处理器U3。In this embodiment, for the load switch U1 designed with an integrated chip, as shown in FIG. 1 , the total input current I in can be calculated by detecting the monitoring current output by the current monitoring pin IMON of the load switch U1 . For the load switch designed with MOS pair transistor Q2 and boost circuit U7, as shown in Figure 2, the total input current I in can be detected by the current monitoring chip U9, and the corresponding voltage can be output according to the size of the total input current I in , after the voltage is divided by the voltage dividing resistors R24 and R25, it is collected by the controller U8 to calculate the size of the total input current I in and notify the processor U3.
S602、若Iin小于预设值,则执行后续步骤;否则,认为充电器未拔出,保持当前的直充过程;S602. If I in is smaller than the preset value, then perform subsequent steps; otherwise, consider that the charger is not pulled out, and maintain the current direct charging process;
在本实施例中,优选设置所述预设值为100mA。In this embodiment, preferably, the preset value is set to 100mA.
S603、检测电池U4的电流Ibat(即充电电流I)的流向,若从电池U4流出,则表示电池U4放电,初步判定充电器可能被拔出,执行后续步骤;否则,认为充电器未拔出,保持当前的直充过程;S603. Detect the flow direction of the current I bat of the battery U4 (that is, the charging current I). If it flows out from the battery U4, it means that the battery U4 is discharged. It is preliminarily determined that the charger may be pulled out, and the subsequent steps are performed; otherwise, it is considered that the charger is not pulled out. out, keep the current direct charging process;
在本实施例中,可以利用电池U4内置的计量芯片检测电池U4的电流Ibat,若电流Ibat为正值,则表示电池U4放电,执行后续步骤对充电器的插拔状态作进一步判断;若电流Ibat为负值,则表示电池U4充电,认为充电器未拔出,保持当前的直充过程。In this embodiment, the built-in metering chip of the battery U4 can be used to detect the current Ibat of the battery U4. If the current Ibat is a positive value, it means that the battery U4 is discharged, and subsequent steps are performed to further judge the plugging and unplugging state of the charger; If the current I bat is a negative value, it means that the battery U4 is being charged, and it is considered that the charger is not pulled out, and the current direct charging process is maintained.
S604、切断电池U4的直充通路;S604, cutting off the direct charging path of the battery U4;
具体来讲,当处理器U3判定充电器在直充过程中可能被拔出时,通过其GPIO1口输出低电平,控制逻辑与门U6的输出电平由高电平变为低电平,继而控制负载开关U1(如图1)或者升压电路U7(如图2)非使能,由此实现直充通路的切断。由于直充通路被切断,因此电池电压不会对充电接口J1的电源引脚VBUS上的电位产生影响。Specifically, when the processor U3 determines that the charger may be pulled out during the direct charging process, it outputs a low level through its GPIO1 port, and the output level of the control logic AND gate U6 changes from high level to low level, Then control the load switch U1 (as shown in Figure 1) or the boost circuit U7 (as shown in Figure 2) to disable, thereby realizing the cut-off of the direct charging path. Since the direct charging path is cut off, the battery voltage will not affect the potential on the power supply pin VBUS of the charging interface J1.
S605、利用常规的充电器插拔状态检测机制检测充电器的插拔状态;S605. Using a conventional charger plug-in state detection mechanism to detect the plug-in state of the charger;
由于直充通路已切断,若充电器拔出,则充电接口J1的电源引脚VBUS上的电压将降为零,可以通过处理器U3检测电源引脚VBUS上的电位,若为零,则判定充电器已拔出,结束充电过程,并通过处理器U3控制用户界面上消除充电器图标;若不为零,则判定充电器未拔出。Since the direct charging path has been cut off, if the charger is pulled out, the voltage on the power pin VBUS of the charging interface J1 will drop to zero, and the potential on the power pin VBUS can be detected by the processor U3, and if it is zero, then judge The charger has been unplugged, the charging process is ended, and the processor U3 is used to control the elimination of the charger icon on the user interface; if it is not zero, it is determined that the charger is not unplugged.
本发明所提出的充电方法可以广泛应用在手机、平板电脑、笔记本电脑、移动电源等移动终端中,以满足用户不同的充电需求。The charging method proposed by the present invention can be widely used in mobile terminals such as mobile phones, tablet computers, notebook computers, mobile power supplies, etc., so as to meet different charging needs of users.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610467634.7A CN106026257B (en) | 2016-06-24 | 2016-06-24 | A kind of mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610467634.7A CN106026257B (en) | 2016-06-24 | 2016-06-24 | A kind of mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106026257A CN106026257A (en) | 2016-10-12 |
| CN106026257B true CN106026257B (en) | 2018-09-04 |
Family
ID=57086842
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610467634.7A Active CN106026257B (en) | 2016-06-24 | 2016-06-24 | A kind of mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106026257B (en) |
Families Citing this family (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107947252B (en) | 2016-10-12 | 2020-09-22 | Oppo广东移动通信有限公司 | Terminal and equipment |
| CN106655343B (en) * | 2016-11-18 | 2019-07-05 | 青岛海信移动通信技术股份有限公司 | A kind of charging method and device of mobile terminal |
| CN106655344B (en) * | 2016-11-18 | 2020-04-10 | 青岛海信移动通信技术股份有限公司 | Charging method and device for mobile terminal |
| CN106816926A (en) * | 2017-01-24 | 2017-06-09 | 广州市极越电子有限公司 | A kind of battery charging and discharging management system and method based on computation chip |
| CN108347068B (en) * | 2017-01-25 | 2019-10-15 | 维沃移动通信有限公司 | A charging method and mobile terminal |
| CN108347069B (en) * | 2017-01-25 | 2019-11-05 | 维沃移动通信有限公司 | A kind of method and mobile terminal, charging equipment of charging |
| CN106655413B (en) * | 2017-02-28 | 2019-05-07 | 北京小米移动软件有限公司 | Electronic equipment and charging method |
| CN106899061B (en) * | 2017-03-17 | 2020-05-15 | 华勤通讯技术有限公司 | Mobile terminal, charging device and charging method |
| BR112019018588B1 (en) | 2017-04-07 | 2023-12-26 | Guangdong Oppo Mobile Telecommunications Corp., Ltd | DEVICE TO BE CHARGED, WIRELESS CHARGING SYSTEM AND WIRELESS CHARGING METHOD |
| DK3462565T3 (en) * | 2017-04-13 | 2021-04-26 | Guangdong Oppo Mobile Telecommunications Corp Ltd | DEVICE TO BE CHARGED AND CHARGING PROCEDURE |
| CN107919717A (en) * | 2017-11-21 | 2018-04-17 | 华勤通讯技术有限公司 | Terminal, charging unit and charging system |
| CN109193834B (en) * | 2018-09-13 | 2021-11-30 | 深圳市沃特沃德信息有限公司 | Overvoltage protection device, method and system |
| CN109193888B (en) * | 2018-10-23 | 2024-04-02 | 珠海一微半导体股份有限公司 | Wireless charging power supply system with Type-c interface and charging method |
| CN110417100B (en) * | 2019-07-31 | 2024-09-06 | 苏州博沃创新能源科技有限公司 | Control circuit and control method for functional safety architecture of vehicle-mounted charger |
| CN112540644A (en) * | 2019-09-23 | 2021-03-23 | 苏明晨 | Portable interface that charges suitable for notebook computer |
| CN110912229B (en) * | 2019-11-28 | 2022-04-19 | 歌尔股份有限公司 | Trickle charging circuit, charger and electronic equipment |
| CN112383125B (en) * | 2021-01-15 | 2021-04-27 | 珠海智融科技有限公司 | An active anti-overcharge device and method |
| CN112948198B (en) * | 2021-04-09 | 2024-01-12 | 深圳市精泰达科技有限公司 | Automatic test method, equipment, system and storage medium for USB port |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5477128A (en) * | 1993-07-30 | 1995-12-19 | Technical Associates Co., Ltd. | Automatic charging apparatus |
| CN104993565A (en) * | 2015-08-05 | 2015-10-21 | 青岛海信移动通信技术股份有限公司 | Power supply adapter capable of charging directly |
-
2016
- 2016-06-24 CN CN201610467634.7A patent/CN106026257B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5477128A (en) * | 1993-07-30 | 1995-12-19 | Technical Associates Co., Ltd. | Automatic charging apparatus |
| CN104993565A (en) * | 2015-08-05 | 2015-10-21 | 青岛海信移动通信技术股份有限公司 | Power supply adapter capable of charging directly |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106026257A (en) | 2016-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106026257B (en) | A kind of mobile terminal | |
| CN105978093B (en) | A kind of mobile terminal | |
| CN106026258A (en) | Mobile terminal | |
| CN104993182B (en) | A kind of mobile terminal, can directly charge source adapter and charging method | |
| EP4145669A1 (en) | Charging/discharging circuit and electronic device | |
| CN104993562B (en) | Can directly be charged source adapter | |
| CN103777730B (en) | Power management circuit and method thereof | |
| CN104967199B (en) | Fast charge method and mobile terminal | |
| CN104993565B (en) | Can directly be charged source adapter | |
| CN102820682B (en) | A kind of communicated by USB interface and be external equipment charging device and method | |
| US9509160B2 (en) | Fast charging terminal | |
| CN107894567B (en) | Battery pack and battery pack interface state detection system and detection method | |
| CN201813422U (en) | Charging chip and mobile terminal capable of automatically adjusting charging mode | |
| CN104796011A (en) | Charging method, AC adapter, charging managing device and terminal | |
| CN104967201A (en) | Fast-charging method, mobile terminal and power adapter capable of being charged directly | |
| CN104967200A (en) | Quick-charging method and mobile terminal | |
| CN208174340U (en) | The power supply circuit and electronic product of portable electronic product with OTG function | |
| CN106571663A (en) | Charging method, terminal and charging adapter | |
| CN106100025A (en) | A kind of charge protector, charge protection method and mobile terminal | |
| CN108347089A (en) | Power transfer controller, power transfer system and power transfer method | |
| CN101546918A (en) | Device and method for charging USB | |
| WO2014187415A1 (en) | Charging cable and charging system | |
| CN107394833A (en) | Adapter, supply unit and the guard method put excessively | |
| US8344702B2 (en) | Battery having universal serial bus port | |
| CN202153645U (en) | An electronic device charged based on OTG interface |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |