CN204376473U - Portable power source - Google Patents
Portable power source Download PDFInfo
- Publication number
- CN204376473U CN204376473U CN201520046401.0U CN201520046401U CN204376473U CN 204376473 U CN204376473 U CN 204376473U CN 201520046401 U CN201520046401 U CN 201520046401U CN 204376473 U CN204376473 U CN 204376473U
- Authority
- CN
- China
- Prior art keywords
- couple
- portable power
- master controller
- power source
- circuit
- 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.)
- Expired - Lifetime
Links
- 238000001514 detection method Methods 0.000 claims description 127
- 238000007599 discharging Methods 0.000 claims description 42
- 238000003780 insertion Methods 0.000 claims description 42
- 230000037431 insertion Effects 0.000 claims description 42
- 239000003990 capacitor Substances 0.000 claims description 30
- 238000005070 sampling Methods 0.000 claims description 18
- 238000012360 testing method Methods 0.000 claims description 9
- 230000005669 field effect Effects 0.000 claims description 7
- 230000001012 protector Effects 0.000 claims 1
- 230000004044 response Effects 0.000 description 56
- 230000002093 peripheral effect Effects 0.000 description 11
- 238000000034 method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000009977 dual effect Effects 0.000 description 7
- 101000941170 Homo sapiens U6 snRNA phosphodiesterase 1 Proteins 0.000 description 6
- 102100031314 U6 snRNA phosphodiesterase 1 Human genes 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 5
- 229910052744 lithium Inorganic materials 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000005855 radiation Effects 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Secondary Cells (AREA)
Abstract
Description
技术领域 technical field
本实用新型涉及电源领域,尤其涉及一种移动电源。 The utility model relates to the field of power supplies, in particular to a mobile power supply.
背景技术 Background technique
移动电源是一种集供电和充电功能于一体的便携式充电器,可以给手机、平板电脑等设备随时随地地充电或待机供电。 A mobile power supply is a portable charger that integrates power supply and charging functions. It can charge mobile phones, tablet computers and other devices anytime, anywhere or standby power.
现有的移动电源主要由充电输入电路、DC-DC(直流-直流变换)升压开关电路及其外围电路、中央控制电路、USB输出电路等组成。充电输入电路的输出端与DC-DC升压开关电路的输入端连接,DC-DC升压开关电路的输出端与USB输出电路的输入端连接,中央控制电路与DC-DC升压开关电路以及USB输出电路连接,对DC-DC升压开关电路以及USB输出电路进行控制,电芯保护电路与DC-DC升压开关电路连接,对DC-DC升压开关电路进行保护。 The existing mobile power supply is mainly composed of a charging input circuit, a DC-DC (direct current-direct current conversion) boost switch circuit and its peripheral circuits, a central control circuit, and a USB output circuit. The output end of the charging input circuit is connected to the input end of the DC-DC boost switch circuit, the output end of the DC-DC boost switch circuit is connected to the input end of the USB output circuit, the central control circuit is connected to the DC-DC boost switch circuit and The USB output circuit is connected to control the DC-DC boost switch circuit and the USB output circuit, and the cell protection circuit is connected to the DC-DC boost switch circuit to protect the DC-DC boost switch circuit.
现有的移动电源中,DC-DC升压开关电路通常是由专用的升压芯片实现,且在升压芯片的外围需要设置对应的外围元件,总体成本较高,且电路面积较大。 In the existing mobile power supply, the DC-DC boost switching circuit is usually implemented by a dedicated boost chip, and corresponding peripheral components need to be provided around the boost chip, which leads to high overall cost and large circuit area.
实用新型内容 Utility model content
本实用新型实施例解决的问题是如何节省移动电源成本,减少移动电源的电路面积。 The problem solved by the embodiment of the utility model is how to save the cost of the mobile power supply and reduce the circuit area of the mobile power supply.
为解决上述问题,本实用新型实施例提供一种移动电源,包括:主控制器、蓄电池以及升压充放电电路,其中: In order to solve the above problems, the embodiment of the utility model provides a mobile power supply, including: a main controller, a storage battery, and a boost charging and discharging circuit, wherein:
所述主控制器,适于在检测到所述移动电源的充电端口存在电压输入时,向所述升压充放电电路发送第一控制信号,使得所述蓄电池经过所述升压充放电电路进行充电;以及,在检测到所述移动电源的输出端口存在负载时,向所述升压充放电电路发送第二控制信号,使得所述蓄电池经过所述升压充放电电路输出预设电压值; The main controller is adapted to send a first control signal to the boost charging and discharging circuit when detecting that there is a voltage input at the charging port of the mobile power supply, so that the storage battery is charged and discharged through the boost charging and discharging circuit. Charging; and, when it is detected that there is a load at the output port of the mobile power supply, sending a second control signal to the boost charging and discharging circuit, so that the battery outputs a preset voltage value through the boost charging and discharging circuit;
升压充放电电路,与所述主控制器耦接,包括: The boost charging and discharging circuit, coupled with the main controller, includes:
PMOS管,栅极与所述主控制器的第一控制端耦接,源极与所述移动电源的输出通路耦接,漏极与所述蓄电池正极耦接,适于在接收到所述主控制器发送的第一控制信号时导通,使得所述蓄电池充电; PMOS transistor, the grid is coupled to the first control terminal of the main controller, the source is coupled to the output channel of the mobile power supply, and the drain is coupled to the positive pole of the battery, suitable for receiving the main controller The first control signal sent by the controller is turned on, so that the storage battery is charged;
NMOS管,栅极与所述主控制器的第二控制端耦接,源极与地耦接,漏极与所述蓄电池正极耦接,适于在接收到所述主控制器发送的第二控制信号时导通,使得所述蓄电池以预设的电压值放电。 NMOS transistor, the gate is coupled to the second control terminal of the main controller, the source is coupled to the ground, and the drain is coupled to the positive pole of the storage battery, which is suitable for receiving the second control terminal sent by the main controller. When the control signal is turned on, the storage battery is discharged at a preset voltage value.
可选的,所述升压充放电电路还包括:第一开关电阻,串联在所述主控制器的第一控制端与所述PMOS管的栅极之间;第二开关电阻,串联在所述主控制器的第二控制端与所述NMOS管的栅极之间。 Optionally, the boost charging and discharging circuit further includes: a first switch resistor connected in series between the first control terminal of the main controller and the gate of the PMOS transistor; a second switch resistor connected in series between the second control terminal of the main controller and the gate of the NMOS transistor.
可选的,所述升压充放电电路还包括:第一电感,串联在所述PMOS管的漏极与所述蓄电池的正极之间;第一滤波电容,第一端与所述第一电感耦接,第二端与地耦接。 Optionally, the boost charging and discharging circuit further includes: a first inductor connected in series between the drain of the PMOS transistor and the positive electrode of the storage battery; a first filter capacitor whose first terminal is connected to the first inductor coupled, and the second terminal is coupled to ground.
可选的,所述升压充放电电路还包括:第一放电电阻,第一端与所述PMOS管的栅极耦接,第二端与所述移动电源的输出通路耦接;第二放电电阻,第一端与所述NMOS管的栅极耦接,第二端与所述NMOS管的源极耦接。 Optionally, the boost charge and discharge circuit further includes: a first discharge resistor, a first terminal coupled to the gate of the PMOS transistor, and a second terminal coupled to the output channel of the mobile power supply; a second discharge resistor The first end of the resistor is coupled to the gate of the NMOS transistor, and the second end is coupled to the source of the NMOS transistor.
可选的,所述移动电源还包括:充电插入检测电路,设置在所述移动电源的充电端口处,与所述主控制器的充电插入检测端耦接,适于在检测到所述移动电源的充电端口存在电压输入时,向所述主控制器的充电插入检测端发送高电平信号,使得所述主控制器向所述升压充放电电路发送第一控制信号。 Optionally, the mobile power supply further includes: a charging insertion detection circuit, arranged at the charging port of the mobile power supply, coupled with the charging insertion detection terminal of the main controller, adapted to detect that the mobile power supply When there is a voltage input to the charging port of the charging port, a high level signal is sent to the charging insertion detection terminal of the main controller, so that the main controller sends a first control signal to the boost charging and discharging circuit.
可选的,所述充电插入检测电路包括:第一分压电阻,第一端与所述充电端口的VBUS端耦接,第二端与所述主控制器的充电插入检测端耦接;第二分压电阻,第一端与所述充电端口的GND端耦接,第二端与所述主控制器的充电检测端耦接。 Optionally, the charging insertion detection circuit includes: a first voltage dividing resistor, the first end of which is coupled to the VBUS end of the charging port, and the second end is coupled to the charging insertion detection end of the main controller; Two voltage-dividing resistors, the first end of which is coupled to the GND end of the charging port, and the second end is coupled to the charging detection end of the main controller.
可选的,所述移动电源还包括:升压反馈电路,与所述充电插入检测电路耦接,以及与所述主控制器的充放电电压检测端耦接,适于实时获取所述充电端口输入的电压,并发送至所述主控制器。 Optionally, the mobile power supply further includes: a boost feedback circuit, coupled to the charging insertion detection circuit, and coupled to the charging and discharging voltage detection terminal of the main controller, adapted to obtain the charging port voltage in real time. input voltage and sent to the main controller.
可选的,所述升压反馈电路包括:第三分压电阻,第一端与所述充电端 口的VBUS端耦接,第二端与所述电压检测端耦接;第四分压电阻,第一端与所述电压检测端耦接,第二端与所述主控制器的控制地端耦接。 Optionally, the boost feedback circuit includes: a third voltage dividing resistor, a first terminal coupled to the VBUS terminal of the charging port, a second terminal coupled to the voltage detection terminal; a fourth voltage dividing resistor , the first terminal is coupled to the voltage detection terminal, and the second terminal is coupled to the control ground terminal of the main controller.
可选的,所述移动电源还包括:电池电压检测电路,与所述蓄电池正极耦接,以及与所述主控制器的电池电压检测端耦接,适于实时获取所述蓄电池的当前电压值,并将所述蓄电池的当前电压值发送至所述主控制器。 Optionally, the mobile power supply further includes: a battery voltage detection circuit, coupled to the positive pole of the storage battery, and coupled to the battery voltage detection terminal of the main controller, adapted to obtain the current voltage value of the storage battery in real time , and send the current voltage value of the storage battery to the main controller.
可选的,所述电池电压检测电路包括:第五分压电阻、第六分压电阻、第一滤波电阻以及第二滤波电容,所述第五分压电阻的第一端与所述蓄电池的正极耦接,第二端与所述第一滤波电阻的第一端以及所述第六分压电阻的第一端耦接,所述第一滤波电阻的第一端与所述第二滤波电容的第一端以及所述电池电压检测端耦接,所述第二滤波电容的第二端与所述第六分压电阻的第二端均与所述主控制器的控制地端耦接。 Optionally, the battery voltage detection circuit includes: a fifth voltage dividing resistor, a sixth voltage dividing resistor, a first filter resistor and a second filter capacitor, the first terminal of the fifth voltage dividing resistor is connected to the Positively coupled, the second end is coupled to the first end of the first filter resistor and the first end of the sixth voltage dividing resistor, the first end of the first filter resistor is connected to the second filter capacitor The first terminal of the second filter capacitor and the second terminal of the sixth voltage dividing resistor are both coupled to the control ground terminal of the main controller.
可选的,所述移动电源还包括:负载接入检测电路,与所述移动电源的输出端口的GND端耦接,以及与所述主控制器的负载接入检测端耦接,适于在检测到所述输出端口存在负载时,向所述主控制器发送低电平信号,使得所述主控制器向所述升压充放电电路发送第二控制信号。 Optionally, the mobile power supply further includes: a load access detection circuit, coupled to the GND terminal of the output port of the mobile power supply, and coupled to the load access detection terminal of the main controller, suitable for When it is detected that there is a load on the output port, a low level signal is sent to the main controller, so that the main controller sends a second control signal to the boost charging and discharging circuit.
可选的,所述负载接入检测电路包括:第一驱动电阻、第二驱动电阻以及第一NPN晶体管,所述第一驱动电阻的第一端与所述移动电源的输出端口的GND端耦接,第二端与所述第一NPN晶体管的基极耦接;所述第二驱动电阻的第一端与所述第一NPN晶体管的基极耦接,第二端与地耦接;所述第一NPN晶体管的集电极与所述负载接入检测端耦接,发射极与地耦接。 Optionally, the load access detection circuit includes: a first drive resistor, a second drive resistor and a first NPN transistor, the first end of the first drive resistor is coupled to the GND end of the output port of the mobile power supply connected, the second end is coupled to the base of the first NPN transistor; the first end of the second drive resistor is coupled to the base of the first NPN transistor, and the second end is coupled to ground; The collector of the first NPN transistor is coupled to the load access detection terminal, and the emitter is coupled to the ground.
可选的,所述移动电源还包括:放电使能电路,与所述移动电源的输出端口的GND端耦接,以及与所述主控制器的使能端耦接,适于在接收到所述控制器发送的使能信号时导通,使得所述蓄电池为所述负载供电。 Optionally, the mobile power supply further includes: a discharge enable circuit, coupled to the GND terminal of the output port of the mobile power supply, and coupled to the enable terminal of the main controller, suitable for receiving the The enable signal sent by the controller is turned on, so that the storage battery supplies power to the load.
可选的,所述放电使能电路包括:场效应管,漏极与所述输出端口的GND端耦接,源极与地耦接,栅极与第三放电电阻的第一端耦接;第三放电电阻,第二端与地耦接。 Optionally, the discharge enabling circuit includes: a field effect transistor, the drain is coupled to the GND end of the output port, the source is coupled to the ground, and the gate is coupled to the first end of the third discharge resistor; The second end of the third discharge resistor is coupled to the ground.
可选的,所述移动电源还包括:负载电流检测电路,与所述放电使能电路耦接,以及与所述主控制器的负载电流检测端耦接,适于获取所述移动电 源当前的放电电流。 Optionally, the mobile power supply further includes: a load current detection circuit, coupled to the discharge enabling circuit, and coupled to the load current detection terminal of the main controller, adapted to obtain the current current of the mobile power supply discharge current.
可选的,所述负载电流检测电路包括:采样电阻、第二滤波电阻以及第三滤波电容,所述采样电阻的第一端与所述第二滤波电阻的第一端以及所述场效应管的源极耦接,第二端与地耦接;所述第二滤波电阻的第二端与所述负载电流检测端耦接;所述第三滤波电容的第一端与所述负载电流检测端耦接,第二端与地耦接。 Optionally, the load current detection circuit includes: a sampling resistor, a second filter resistor and a third filter capacitor, the first end of the sampling resistor and the first end of the second filter resistor and the field effect transistor The source of the third filter capacitor is coupled to the ground, and the second end is coupled to the ground; the second end of the second filter resistor is coupled to the load current detection end; the first end of the third filter capacitor is connected to the load current detection end terminal, and the second terminal is coupled to ground.
可选的,所述移动电源还包括:充电保护电路,与所述主控制器的充电电流检测端耦接,适于对所述移动电源提供充电保护。 Optionally, the mobile power supply further includes: a charging protection circuit, coupled to the charging current detection terminal of the main controller, adapted to provide charging protection for the mobile power supply.
可选的,所述移动电源还包括:电池电量显示电路,与所述主控制器中预设的LED控制端耦接,适于根据所述蓄电池的当前电压值,显示对应的电池电量值。 Optionally, the mobile power supply further includes: a battery power display circuit, coupled to the preset LED control terminal in the main controller, adapted to display the corresponding battery power value according to the current voltage value of the storage battery.
可选的,所述电池电量显示电路包括:至少两个LED,所述LED分别与对应的主控制器中预设的LED控制端耦接。 Optionally, the battery power display circuit includes: at least two LEDs, and the LEDs are respectively coupled to preset LED control terminals in the corresponding main controller.
可选的,所述移动电源还包括:照明电路,第一端与所述主控制器预设的照明控制端耦接,第二端与所述蓄电池的正极耦接。 Optionally, the mobile power supply further includes: a lighting circuit, a first terminal coupled to a preset lighting control terminal of the main controller, and a second terminal coupled to the positive pole of the battery.
可选的,所述照明电路包括:第一基极电阻,第一端与所述照明控制端耦接,第二端与第二NPN晶体管的基极耦接; Optionally, the lighting circuit includes: a first base resistor, a first terminal coupled to the lighting control terminal, and a second terminal coupled to the base of the second NPN transistor;
第二NPN晶体管,发射极与地耦接,集电极与第一限流电阻的第一端耦接; the second NPN transistor, the emitter is coupled to the ground, and the collector is coupled to the first end of the first current limiting resistor;
LED灯,第一端与电池正极耦接,第二端与所述第一限流电阻第二端耦接。 For the LED lamp, the first terminal is coupled to the positive pole of the battery, and the second terminal is coupled to the second terminal of the first current limiting resistor.
与现有技术相比,本实用新型实施例的技术方案具有以下优点: Compared with the prior art, the technical solution of the utility model embodiment has the following advantages:
通过PMOS管和NMOS管组成升压充放电电路,通过控制器控制升压充放电电路来控制蓄电池的充电和放电,而不需要采用专用的升压充电芯片,在节省成本的同时,节省了升压充电芯片外围的连接元件,减少了电路的面积,并且,采用NMOS管和PMOS管可以支持大电流充放电,提高应用的灵活性。 The boost charging and discharging circuit is composed of PMOS tube and NMOS tube, and the charging and discharging of the battery is controlled by controlling the boost charging and discharging circuit through the controller, without using a dedicated boost charging chip, which saves both the cost and the boost charge. The connection components around the voltage charging chip reduce the area of the circuit, and the use of NMOS tubes and PMOS tubes can support high-current charging and discharging, improving application flexibility.
进一步,将充电插入检测电路与主控制器的充电插入检测端耦接,将升压反馈电路与主控制器的电压检测端耦接,将电池电压检测电路与主控制器的电池电压检测端耦接,将负载接入检测电路与主控制器的负载接入检测端耦接,将放电使能电路与主控制器的使能端耦接,将负载电流检测电路与主控制器的负载电流检测端耦接,将充电保护电路与主控制器的充电电流检测端耦接,将移动电源的各个功能电路与主控制器耦接,充分利用主控制器的各个输入输出端口,相比于现有的移动电源,能够实现主控制器利用率的最大化。 Further, the charging insertion detection circuit is coupled to the charging insertion detection terminal of the main controller, the boost feedback circuit is coupled to the voltage detection terminal of the main controller, and the battery voltage detection circuit is coupled to the battery voltage detection terminal of the main controller. Connect the load access detection circuit to the load access detection terminal of the main controller, couple the discharge enable circuit to the enable terminal of the main controller, and connect the load current detection circuit to the load current detection terminal of the main controller. Terminal coupling, the charging protection circuit is coupled with the charging current detection terminal of the main controller, and the various functional circuits of the mobile power supply are coupled with the main controller, making full use of each input and output port of the main controller. Compared with the existing The mobile power supply can maximize the utilization of the main controller.
附图说明 Description of drawings
图1是本实用新型实施例中的一种升压充放电电路的电路图; Fig. 1 is the circuit diagram of a kind of boost charging and discharging circuit in the utility model embodiment;
图2是本实用新型实施例中的一种充电插入检测电路、升压反馈电路以及电池电压检测电路的电路图; Fig. 2 is a circuit diagram of a charging insertion detection circuit, a boost feedback circuit and a battery voltage detection circuit in an embodiment of the present invention;
图3是本实用新型实施例中的一种主控制器的引脚分布图; Fig. 3 is a pin distribution diagram of a main controller in the embodiment of the present invention;
图4是本实用新型实施例中的一种放电使能电路、负载电流检测电路、负载接入检测电路的电路图; Fig. 4 is a circuit diagram of a discharge enabling circuit, a load current detection circuit, and a load access detection circuit in an embodiment of the utility model;
图5是本实用新型实施例中的一种放电保护电路的电路图; Fig. 5 is a circuit diagram of a discharge protection circuit in an embodiment of the utility model;
图6是本实用新型实施例中的一种电池电量显示、快充控制以及手电筒电路的电路图; Fig. 6 is a circuit diagram of a battery power display, fast charge control and flashlight circuit in an embodiment of the present invention;
图7是本实用新型实施例中的一种移动电源系统控制方法流程图。 Fig. 7 is a flow chart of a mobile power system control method in an embodiment of the present invention.
具体实施方式 Detailed ways
现有的移动电源中,DC-DC升压开关电路通常是由专用的升压芯片实现,且在升压芯片的外围需要设置对应的外围元件,总体成本较高,且电路面积较大。 In the existing mobile power supply, the DC-DC boost switching circuit is usually implemented by a dedicated boost chip, and corresponding peripheral components need to be provided around the boost chip, which leads to high overall cost and large circuit area.
在本实用新型实施例中,通过PMOS管和NMOS管组成升压充放电电路,通过主控制器控制升压充放电电路,来控制蓄电池的充电和放电,而不需要采用专用的升压充电芯片,在节省成本的同时,节省了升压充电芯片外围的连接元件,减少了电路的面积。 In the embodiment of the utility model, the boost charge and discharge circuit is composed of PMOS tube and NMOS tube, and the boost charge and discharge circuit is controlled by the main controller to control the charge and discharge of the storage battery without using a dedicated boost charge chip , while saving the cost, it also saves the peripheral connecting elements of the boost charging chip and reduces the area of the circuit.
为使本实用新型实施例的上述目的、特征和优点能够更为明显易懂,下面结合附图对本实用新型的具体实施例做详细的说明。 In order to make the above objects, features and advantages of the embodiments of the present invention more obvious and understandable, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
本实用新型实施例提供了一种移动电源,包括:主控制器、蓄电池以及升压充放电电路,其中: The embodiment of the utility model provides a mobile power supply, including: a main controller, a storage battery, and a boost charging and discharging circuit, wherein:
主控制器,可以包括至少两个控制端,在检测到移动电源的充电端口存在电压输入时,即存在外设的电源为移动电源进行充电时,主控制器生成第一控制信号,并通过第一控制端向升压充放电电路发送第一控制信号。升压充放电电路接收第一控制信号,执行相应的操作,从而使得与升压充放电电路耦接的蓄电池进入充电模式,外设的电源开始对移动电源的蓄电池进行充电。 The main controller may include at least two control terminals. When it is detected that there is a voltage input at the charging port of the mobile power supply, that is, when there is a power supply of the peripheral device to charge the mobile power supply, the main controller generates a first control signal and passes the second control signal. A control terminal sends a first control signal to the boost charging and discharging circuit. The boost charging and discharging circuit receives the first control signal and performs corresponding operations, so that the storage battery coupled with the boost charging and discharging circuit enters the charging mode, and the external power supply starts to charge the storage battery of the mobile power supply.
在本实用新型一实施例中,可以在移动电源的充电端口处设置充电插入检测电路。当检测到充电端口有外部电压输入,且输入的外部电压大于一定值的时长大于时长预设值时,即可判定有外部电源接入到移动电源的充电端口,移动电源可以进入充电工作模式。充电插入检测电路向主控制器的充电插入检测端发送反馈信号,例如,向主控制器的充电插入检测端发送高电平信号,使得主控制器获知当前有外设电源接入到移动电源,并向升压充放电电路发送第一控制信号,从而使得蓄电池充电。 In an embodiment of the present invention, a charging insertion detection circuit may be provided at the charging port of the mobile power supply. When it is detected that the charging port has an external voltage input, and the input external voltage is greater than a certain value for a period longer than the preset value, it can be determined that an external power supply is connected to the charging port of the mobile power supply, and the mobile power supply can enter the charging mode. The charging insertion detection circuit sends a feedback signal to the charging insertion detection terminal of the main controller, for example, sends a high-level signal to the charging insertion detection terminal of the main controller, so that the main controller knows that there is currently a peripheral power supply connected to the mobile power supply, And send the first control signal to the boost charging and discharging circuit, so as to charge the storage battery.
例如,在本实用新型一实施例中,移动电源的充电端口为USB充电端口。在USB充电端口处设置有充电插入检测电路。当充电插入检测电路检测到USB充电端口的电压为5V的时长大于1s时,即可判定当前有外设的电源与移动电源耦接。充电插入检测电路向主控制器的充电插入检测端发送高电平信号。主控制接收到充电插入检测电路发送的高电平信号后,向升压充放电电路发送第一控制信号,使得与升压充放电电路耦接的蓄电池充电。 For example, in an embodiment of the present invention, the charging port of the mobile power supply is a USB charging port. A charging insertion detection circuit is provided at the USB charging port. When the charging insertion detection circuit detects that the voltage of the USB charging port is 5V for longer than 1s, it can be determined that there is currently a power supply of the peripheral device coupled to the mobile power supply. The charging insertion detection circuit sends a high level signal to the charging insertion detection terminal of the main controller. After receiving the high-level signal sent by the charging insertion detection circuit, the main controller sends a first control signal to the boost charging and discharging circuit, so as to charge the storage battery coupled with the boost charging and discharging circuit.
在检测到移动电源的输出端口存在负载时,即当前时刻存在负载电路接入到移动电源的输出端口时,主控制器生成第二控制信号,并通过第二控制端向升压充放电电路发送第二控制信号。升压充放电电路根据第二控制信号,执行相应的操作,使得蓄电池输出预设电压值的电压。 When it is detected that there is a load on the output port of the mobile power supply, that is, when there is a load circuit connected to the output port of the mobile power supply at the current moment, the main controller generates a second control signal and sends it to the boost charging and discharging circuit through the second control terminal Second control signal. The boost charging and discharging circuit performs corresponding operations according to the second control signal, so that the storage battery outputs a voltage of a preset voltage value.
在本实用新型实施例中,可以在移动电源的输出端口处设置负载接入检 测电路。当检测到输出端口有负载电路接入时,可以向主控制器的负载接入检测端发送反馈信号,例如,向主控制器的负载接入检测端发送低电平信号,使得主控制器获知当前有负载电路接入到移动电源。主控制器向升压充放电电路发送第二控制信号,使得蓄电池输出预设电压值的电压。 In the embodiment of the utility model, a load access detection circuit can be set at the output port of the mobile power supply. When it is detected that a load circuit is connected to the output port, a feedback signal can be sent to the load access detection terminal of the main controller, for example, a low-level signal is sent to the load access detection terminal of the main controller, so that the main controller knows There is currently a load circuit connected to the mobile power supply. The main controller sends a second control signal to the boost charging and discharging circuit, so that the storage battery outputs a voltage of a preset voltage value.
在本实用新型实施例中,升压充放电电路可以包括两个MOS管,其中一个为NOMS管,另一个为PMOS管。两个MOS管可以集成在一个芯片上,例如,集成在一个双场效应管的芯片上,也可以是两个独立的MOS管。 In the embodiment of the present invention, the boost charging and discharging circuit may include two MOS transistors, one of which is a NOMS transistor and the other is a PMOS transistor. The two MOS transistors can be integrated on one chip, for example, on a chip with dual field effect transistors, or they can be two independent MOS transistors.
PMOS管的栅极与主控制器的第一控制端耦接,接收主控制器通过第一控制端输出的第一控制信号;源极与移动电源的输出通路耦接;漏极与蓄电池的正极耦接。PMOS管在接收到主控制器发送的第一控制信号时导通。 The gate of the PMOS transistor is coupled to the first control terminal of the main controller, and receives the first control signal output by the main controller through the first control terminal; the source is coupled to the output path of the mobile power supply; the drain is connected to the positive pole of the battery coupling. The PMOS transistor is turned on when receiving the first control signal sent by the main controller.
NMOS管的栅极与主控制器的第二控制端耦接,接收主控制器通过第二控制端输出的第二控制信号;源极与地耦接;漏极与蓄电池的正极耦接。NMOS管接收到主控制器发送的第二控制信号时导通。 The gate of the NMOS transistor is coupled to the second control terminal of the main controller to receive the second control signal output by the main controller through the second control terminal; the source is coupled to the ground; the drain is coupled to the positive pole of the storage battery. The NMOS transistor is turned on when receiving the second control signal sent by the main controller.
在本实用新型一实施例中,参照图1,给出了本实用新型实施例中的一种升压充放电电路,参照图2,给出了本实用新型一实施例中的一种主控制器的引脚分布图。结合图1与图2,下面对本实用新型实施例中的升压充放电电路进行说明。 In an embodiment of the utility model, referring to Fig. 1, a boost charging and discharging circuit in the embodiment of the utility model is given, and referring to Fig. 2, a main control circuit in an embodiment of the utility model is given The pinout diagram of the device. With reference to FIG. 1 and FIG. 2 , the boost charging and discharging circuit in the embodiment of the utility model will be described below.
图1中,PMOS管与NMOS管集成在一个双MOS管芯片Q1上,其中,Q1的引脚1为NMOS管的源极,引脚2为NOMS管的栅极,引脚3为PMOS管的源极,引脚4为PMOS管的栅极,引脚5和引脚6为PMOS管的漏极,引脚7和引脚8为NMOS管的漏极。 In Figure 1, the PMOS transistor and the NMOS transistor are integrated on a dual MOS transistor chip Q1, where pin 1 of Q1 is the source of the NMOS transistor, pin 2 is the gate of the NOMS transistor, and pin 3 is the gate of the PMOS transistor. Source, pin 4 is the gate of the PMOS tube, pins 5 and 6 are the drains of the PMOS tube, and pins 7 and 8 are the drains of the NMOS tube.
PMOS管的栅极与主控制器的第一控制端(PWMP,参照图2中的引脚8)耦接,NMOS管的栅极与主控制器的第二控制端(PWMN,参照图2中的引脚9)耦接。主控制器生成的第一控制信号为第一PWM波,第二控制信号为第二PWM波,且第一PWM波与第二PWM波互补对称。 The gate of the PMOS transistor is coupled to the first control terminal (PWMP, refer to pin 8 in Figure 2) of the main controller, and the gate of the NMOS transistor is coupled to the second control terminal (PWMN, refer to Figure 2 Pin 9) is coupled. The first control signal generated by the main controller is a first PWM wave, the second control signal is a second PWM wave, and the first PWM wave and the second PWM wave are complementary and symmetrical. the
在检测到移动电源的充电端口存在电压输入时,即有外设的电源向移动电源充电时,主控制器被唤醒,生成第一PWM波,并通过第一控制端PWMP向PMOS管发送。PMOS管的栅极接收到第一PWM波后导通。由于PMOS 管的漏极与蓄电池的正极耦接,因此PMOS管与蓄电池之间形成回路,蓄电池开始充电。 When it is detected that there is a voltage input from the charging port of the mobile power supply, that is, when there is a power supply of the peripheral device charging the mobile power supply, the main controller is woken up, generates the first PWM wave, and sends it to the PMOS tube through the first control terminal PWMP. The gate of the PMOS transistor is turned on after receiving the first PWM wave. Since the drain of the PMOS tube is coupled to the positive pole of the battery, a loop is formed between the PMOS tube and the battery, and the battery starts to charge.
在检测到移动电源的输出端口存在负载电路接入时,即有外设的负载电路接入到移动电源时,主控制器被唤醒,生成第二PWM波,并通过第二控制端PWMN向NMOS管发送。NMOS管的栅极接收到第二PWM波后导通。由于NMOS管的漏极与蓄电池的正极耦接,因此NMOS管与蓄电池之间形成回路,蓄电池以预设的电压值放电。 When it is detected that there is a load circuit connected to the output port of the mobile power supply, that is, when the load circuit of the peripheral device is connected to the mobile power supply, the main controller is woken up, generates a second PWM wave, and sends a signal to the NMOS through the second control terminal PWMN tube sent. The gate of the NMOS transistor is turned on after receiving the second PWM wave. Since the drain of the NMOS tube is coupled to the positive pole of the battery, a loop is formed between the NMOS tube and the battery, and the battery is discharged at a preset voltage.
在本实用新型一实施例中,在蓄电池与PMOS管的漏极之间,设置有第一电感L1和第一滤波电容C01,第一电感L1的第一端与蓄电池的正极B+耦接,第二端与PMOS管的漏极耦接。第一滤波电容C01的第一端与蓄电池的正极耦接,第二端与地耦接。第一电感L1的电感值可以为4.7μH,第一滤波电容C01的电容值可以为22μF。在实际应用中,第一电感L1的电感值与主控制器输出的PWM波的频率以及主控制器的主频相关,针对不同的主控制器,第一电感L1的电感值可以不同。 In an embodiment of the present invention, a first inductor L1 and a first filter capacitor C01 are arranged between the battery and the drain of the PMOS tube, the first end of the first inductor L1 is coupled to the positive pole B+ of the battery, and the first terminal of the first inductor L1 is coupled to the positive pole B+ of the battery. The two terminals are coupled to the drain of the PMOS transistor. A first end of the first filter capacitor C01 is coupled to the positive pole of the battery, and a second end is coupled to the ground. The inductance value of the first inductor L1 may be 4.7 μH, and the capacitance value of the first filter capacitor C01 may be 22 μF. In practical applications, the inductance value of the first inductor L1 is related to the frequency of the PWM wave output by the main controller and the main frequency of the main controller. For different main controllers, the inductance value of the first inductor L1 may be different.
在主控制器通过第一控制端向PMOS管发送第一PWM波控制PMOS管导通时,或通过第二控制端向NOMS管发送第二PWM波控制NMOS管导通时,MOS管的迅速开关可能导致PWM波的噪声沿较陡,存在较大辐射。 When the main controller sends the first PWM wave to the PMOS tube to control the conduction of the PMOS tube through the first control terminal, or sends the second PWM wave to the NOMS tube to control the conduction of the NMOS tube through the second control terminal, the rapid switching of the MOS tube It may cause the noise edge of the PWM wave to be steeper and cause greater radiation.
因此,在本实用新型一实施例中,升压充放电电路还可以包括第一开关电阻R11和第二开关电阻R12,第一开关电阻R11和第二开关电阻R12所起的作用都是延缓MOS管的开关速度,其中:第一开关电阻R11所起的作用为延缓PMOS管的开关速度,第二开关电阻R12所起的作用为延缓NMOS管的开关速度。通过延缓NMOS管和PMOS管的开关速度,可以避免NMOS管和PMOS管开关速度过快导致的辐射增强。 Therefore, in an embodiment of the present invention, the boost charging and discharging circuit may further include a first switch resistor R11 and a second switch resistor R12, both of which function to delay the MOS The switching speed of the tube, wherein: the function of the first switching resistor R11 is to delay the switching speed of the PMOS tube, and the role of the second switching resistor R12 is to delay the switching speed of the NMOS tube. By slowing down the switching speed of the NMOS transistor and the PMOS transistor, the radiation enhancement caused by the excessively fast switching speed of the NMOS transistor and the PMOS transistor can be avoided.
第一开关电阻R11的第一端与PMOS管的栅极耦接,第二端与主控制器的第一控制端PWMP(参见图2中的引脚8)耦接,即第一开关电阻R11串联在PMOS管与主控制器的第一控制端PWMP之间。第二开关电阻R12的第一端与NMOS管的栅极耦接,第二端与主控制器的第二控制端PWMN(参见图2中的引脚9)耦接,即第二开关电阻R12串联在NMOS管与主控制的第 二控制端PWMN之间。 The first end of the first switch resistor R11 is coupled to the gate of the PMOS transistor, and the second end is coupled to the first control terminal PWMP (see pin 8 in FIG. 2 ) of the main controller, that is, the first switch resistor R11 It is connected in series between the PMOS transistor and the first control terminal PWMP of the main controller. The first end of the second switch resistor R12 is coupled to the gate of the NMOS transistor, and the second end is coupled to the second control terminal PWMN (see pin 9 in FIG. 2 ) of the main controller, that is, the second switch resistor R12 It is connected in series between the NMOS transistor and the second control terminal PWMN of the main control.
在本实用新型一实施例中,第一开关电阻R11和第二开关电阻R12均为贴片电阻,且第一开关电阻R11与第二开关电阻R12的阻值相等,均为4.7欧姆。在本实用新型其他实施例中,第一开关电阻R11和第二开关电阻R12也可以为其他类型的电阻,阻值也可以为其他值,此处并不做限定,可以根据实际需要选择对应类型的开关电阻以及对应的阻值。 In an embodiment of the present invention, both the first switch resistor R11 and the second switch resistor R12 are chip resistors, and the resistance values of the first switch resistor R11 and the second switch resistor R12 are equal to 4.7 ohms. In other embodiments of the present invention, the first switch resistor R11 and the second switch resistor R12 can also be other types of resistors, and the resistance values can also be other values, which are not limited here, and the corresponding types can be selected according to actual needs The switch resistance and the corresponding resistance value.
在本实用新型一实施例中,在PMOS管的栅极与移动电源的输出通路(5VOut)之间设置有第一放电电阻R21,通过第一放电电阻R21,使得PMOS管与蓄电池之间组成回路,以保证PMOS管可靠的断开。在NMOS管的栅极与源极之间设置有第二放电电阻R22,通过第二放电电阻R22,使得NMOS管与蓄电池之间组成回路,以保证NMOS管可靠的断开。在本实用新型一实施例中,第一放电电阻R21的阻值可以为10k欧姆,第二放电电阻R22的阻值可以为10k欧姆。 In one embodiment of the present invention, a first discharge resistor R21 is provided between the gate of the PMOS tube and the output path (5VOut) of the mobile power supply, through the first discharge resistor R21, a loop is formed between the PMOS tube and the battery , to ensure reliable disconnection of the PMOS tube. A second discharge resistor R22 is arranged between the gate and the source of the NMOS tube, through the second discharge resistor R22, a loop is formed between the NMOS tube and the storage battery to ensure reliable disconnection of the NMOS tube. In an embodiment of the present invention, the resistance of the first discharge resistor R21 may be 10k ohms, and the resistance of the second discharge resistor R22 may be 10k ohms.
在本实用新型一实施例中,还可以在移动电源的输出通路上设置分流二极管D1,分流二极管D1的阳极与蓄电池的正极B+耦接,阴极与移动电源的输出通路(5VOut)耦接。 In an embodiment of the present invention, a shunt diode D1 can also be provided on the output path of the mobile power supply. The anode of the shunt diode D1 is coupled to the positive pole B+ of the battery, and the cathode is coupled to the output path (5VOut) of the mobile power supply.
在本实用新型一实施例中,参照图3,给出了本实用新型实施例中的一种充电插入检测电路。USB1为移动电源的微型USB充电端口,包括VBUS端、D+端、D-端、ID端以及GND端,GND端与地耦接,ID端为空路。充电插入检测电路设置在移动电源的USB1处,在充电插入检测电路检测到VBUS端有电压接入,且电压值大于一定值的时长大于预设值时,判定有外设的电源接入到移动电源的充电端口。 In an embodiment of the present invention, referring to FIG. 3 , a charging insertion detection circuit in the embodiment of the present invention is shown. USB1 is the micro-USB charging port of the mobile power supply, including VBUS, D+, D-, ID and GND. The GND is connected to the ground, and the ID is empty. The charging insertion detection circuit is set at the USB1 of the mobile power supply. When the charging insertion detection circuit detects that there is a voltage connection at the VBUS terminal, and the duration of the voltage value is greater than a certain value is longer than the preset value, it is determined that there is a peripheral power supply connected to the mobile power supply. Power charging port.
参照图2及图3,充电插入检测电路包括第一分压电阻R31、第二分压电阻R32。第一分压电阻R31的第一端与USB1的VBUS端耦接,第二端与主控制器的充电插入检测端(Charge Vin,参见图2中引脚14)耦接。第二分压电阻R32的第一端与充电插入检测端Charge Vin耦接,第二端与地耦接。第一分压电阻R31的阻值可以为2k欧姆,第二分压电阻R32的阻值为可以10k欧姆。 Referring to FIG. 2 and FIG. 3 , the charging insertion detection circuit includes a first voltage dividing resistor R31 and a second voltage dividing resistor R32 . The first terminal of the first voltage dividing resistor R31 is coupled to the VBUS terminal of USB1, and the second terminal is coupled to the charge insertion detection terminal (Charge Vin, see pin 14 in FIG. 2 ) of the main controller. The first terminal of the second voltage dividing resistor R32 is coupled to the charging insertion detection terminal Charge Vin, and the second terminal is coupled to the ground. The resistance value of the first voltage dividing resistor R31 may be 2k ohms, and the resistance value of the second voltage dividing resistor R32 may be 10k ohms.
例如,在检测到VBUS端上有5V的电压接入时,判定当前有外设电源接入到移动电源的充电端口。此时,第一分压电阻R31的第一端与第二端之间存在压降,使得主控制器的充电插入检测端(Charge Vin)的电平由低电平变为高电平,从而唤醒主控制器。主控制器配置移动电源处于充电模式,通过第一控制端PWMP(参见图2引脚8)向升压充放电电路中的PMOS管发送第一PWM波,控制PMOS管导通,从而使得移动电源中的蓄电池充电。 For example, when it is detected that a voltage of 5V is connected to the VBUS terminal, it is determined that a peripheral power supply is currently connected to the charging port of the mobile power supply. At this time, there is a voltage drop between the first terminal and the second terminal of the first voltage dividing resistor R31, so that the level of the charging insertion detection terminal (Charge Vin) of the main controller changes from a low level to a high level, thereby Wake up the main controller. The main controller configures the mobile power supply to be in charging mode, and sends the first PWM wave to the PMOS tube in the boost charging and discharging circuit through the first control terminal PWMP (see pin 8 in Figure 2), and controls the PMOS tube to conduct, so that the mobile power supply The battery in the battery is charged.
在本实用新型一实施例中,充电插入检测电路可以与升压反馈电路耦接,通过升压反馈电路向主控制器反馈输入到移动电源的充电电压。在充电插入检测电路与升压反馈电路之间,可以设置有分压二极管D2。 In an embodiment of the present invention, the charging insertion detection circuit may be coupled with the boost feedback circuit, and feed back the charging voltage input to the mobile power supply to the main controller through the boost feedback circuit. A voltage dividing diode D2 may be provided between the charge insertion detection circuit and the boost feedback circuit.
在本实用新型一实施例中,升压反馈电路包括第三分压电阻R33以及第四分压电阻R34,第三分压电阻R33的第一端与USB1的VBUS端耦接,第二端与主控制器的充放电电压检测端(Vol5V,参见图2中的引脚13)耦接。第四分压电阻R34的第一端与主控制器的充放电电压检测端(Vol5V)耦接,第二端与地耦接,主控制器的充放电电压检测端(Vol5V)检测实时获取第四分压电阻R34上的电压。第三分压电阻R33的阻值可以为180k欧姆,第四分压电阻R34上的阻值可以为100k欧姆。 In an embodiment of the present invention, the boost feedback circuit includes a third voltage dividing resistor R33 and a fourth voltage dividing resistor R34, the first end of the third voltage dividing resistor R33 is coupled to the VBUS end of USB1, and the second end is coupled to the VBUS end of USB1. The charging and discharging voltage detection terminal (Vol5V, refer to pin 13 in FIG. 2 ) of the main controller is coupled. The first terminal of the fourth voltage dividing resistor R34 is coupled to the charge and discharge voltage detection terminal (Vol5V) of the main controller, and the second terminal is coupled to the ground. The charge and discharge voltage detection terminal (Vol5V) of the main controller detects and obtains the first The voltage on the four-divider resistor R34. The resistance value of the third voltage dividing resistor R33 may be 180k ohms, and the resistance value of the fourth voltage dividing resistor R34 may be 100k ohms.
在本实用新型一实施例中,第四分压电阻R34的第二端也可以与主控制器的控制地端(CtlGND,参见图2中的引脚11)耦接,可以降低功耗。 In an embodiment of the present invention, the second terminal of the fourth voltage dividing resistor R34 can also be coupled to the control ground terminal (CtlGND, see pin 11 in FIG. 2 ) of the main controller, which can reduce power consumption.
在本实用新型实施例中,升压反馈电路还可以与移动电源的输出通路(5VOut)耦接,适于在蓄电池放电时,主控制器通过充放电电压检测端(Vol5V)对蓄电池的放电电压进行实时检测。 In the embodiment of the utility model, the boost feedback circuit can also be coupled with the output path (5VOut) of the mobile power supply, which is suitable for the main controller to monitor the discharge voltage of the battery through the charge and discharge voltage detection terminal (Vol5V) when the battery is discharging. Perform real-time detection.
在本实用新型实施例中,移动电源还可以包括电池电压检测电路,电池电压检测电路与主控制器的电池电压检测端(BTV,参见图2中的引脚12)耦接,适于实时获取蓄电池的当前电压值,并将蓄电池的当前电压值发送至主控制器的电池电压检测端(BTV),使得主控制器获知蓄电池的当前电压值。 In the embodiment of the present invention, the mobile power supply can also include a battery voltage detection circuit, which is coupled to the battery voltage detection terminal (BTV, see pin 12 in FIG. 2 ) of the main controller, and is suitable for real-time acquisition The current voltage value of the storage battery, and send the current voltage value of the storage battery to the battery voltage detection terminal (BTV) of the main controller, so that the main controller can know the current voltage value of the storage battery.
在本实用新型实施例中,参照图2及图3,电池电压检测电路可以包括:第五分压电阻R35,第五分压电阻R35的第一端与蓄电池的正极B+耦接;第六分压电阻R36,第一端与第五分压电阻R35的第二端耦接,第二端与地耦 接;第一滤波电阻R41的第一端与第五分压电阻R35的第二端耦接,第二端与主控制器的电池电压检测端(BTV)耦接;第二滤波电容C02的第一端与第一滤波电阻R41的第二端耦接,第二端与地耦接。第一滤波电阻R41与第二滤波电容C02组成RC滤波电路,对蓄电池的当前电压信号进行滤波后,发送至主控制器的电池电压检测端(BTV)。 In the embodiment of the present invention, referring to Fig. 2 and Fig. 3, the battery voltage detection circuit may include: a fifth voltage dividing resistor R35, the first end of the fifth voltage dividing resistor R35 is coupled to the positive pole B+ of the storage battery; Piezoresistor R36, the first end is coupled to the second end of the fifth voltage dividing resistor R35, and the second end is coupled to the ground; the first end of the first filter resistor R41 is coupled to the second end of the fifth voltage dividing resistor R35 The second terminal is coupled to the battery voltage detection terminal (BTV) of the main controller; the first terminal of the second filter capacitor C02 is coupled to the second terminal of the first filter resistor R41, and the second terminal is coupled to the ground. The first filter resistor R41 and the second filter capacitor C02 form an RC filter circuit, which filters the current voltage signal of the battery and sends it to the battery voltage detection terminal (BTV) of the main controller.
第五分压电阻R35的阻值为180k欧姆,第六分压电阻R36的阻值为100k欧姆,第一滤波电阻R41的阻值为1k欧姆,第二滤波电容C02的电容值为104μF。 The fifth voltage dividing resistor R35 has a resistance of 180k ohms, the sixth voltage dividing resistor R36 has a resistance of 100k ohms, the first filter resistor R41 has a resistance of 1k ohms, and the second filter capacitor C02 has a capacitance of 104 μF.
在本实用新型一实施例中,第二滤波电容C02的第二端以及第六分压电阻R36的第二端可以与主控制器的控制地端(CtlGND)耦接。 In an embodiment of the present invention, the second end of the second filter capacitor C02 and the second end of the sixth voltage dividing resistor R36 may be coupled to the control ground (CtlGND) of the main controller.
在本实用新型实施例中,第五分压电阻R35、第六分压电阻R36、第三分压电阻R33以及第四分压电阻R34均可以为精密电阻,精度小于1%。 In the embodiment of the present invention, the fifth voltage dividing resistor R35 , the sixth voltage dividing resistor R36 , the third voltage dividing resistor R33 and the fourth voltage dividing resistor R34 can all be precision resistors with an accuracy of less than 1%.
在本实用新型一实施例中,在移动电源的输出端口处可以设置负载接入检测电路,适于检测是否有负载接入到移动电源。在有负载接入到移动电源中时,移动电源通过输出端口为负载电路充电。 In an embodiment of the present invention, a load access detection circuit may be provided at the output port of the mobile power supply, which is suitable for detecting whether a load is connected to the mobile power supply. When a load is connected to the mobile power supply, the mobile power supply charges the load circuit through the output port.
在本实用新型实施例中,移动电源的输出端口为USB输出端口。负载接入检测电路的第一端与USB输出端口的GND端耦接,第二端与主控制器的负载接入检测端(PinHalt,参见图2中的引脚14)耦接。当有负载接入时,负载接入检测电路向主控制器发送反馈信号,例如,发送低电平信号,使得主控制器获知当前有负载接入。主控制器产生第二PWM波,并通过第二控制端PWMN向升压充放电电路中的NMOS管发送第二PWM波,使得NMOS管导通,由于NMOS管的漏极与蓄电池的正极耦接,因此可以使得蓄电池放电,输出预设电压值的电压。 In the embodiment of the utility model, the output port of the mobile power supply is a USB output port. The first end of the load access detection circuit is coupled to the GND end of the USB output port, and the second end is coupled to the load access detection end (PinHalt, refer to pin 14 in FIG. 2 ) of the main controller. When a load is connected, the load connection detection circuit sends a feedback signal to the main controller, for example, sends a low level signal, so that the main controller knows that there is currently a load connected. The main controller generates the second PWM wave, and sends the second PWM wave to the NMOS tube in the boost charging and discharging circuit through the second control terminal PWMN, so that the NMOS tube is turned on, because the drain of the NMOS tube is coupled to the positive pole of the battery , so the battery can be discharged to output a preset voltage value.
参照图4,在本实用新型一实施例中,移动电源的输出端口包括USB2和USB3,USB2和USB3均包括VBUS端、D+端、D-端以及GND端,VBUS端均与移动电源的输出通路(5VOut)耦接。可以理解的是,在本实用新型其他实施例中,移动电源的输出端口也可以只包括USB2,还可以包括更多个USB接口。 With reference to Fig. 4, in one embodiment of the present utility model, the output port of mobile power supply includes USB2 and USB3, and USB2 and USB3 all comprise VBUS end, D+ end, D- end and GND end, and VBUS end is connected with the output path of mobile power supply (5VOut) coupling. It can be understood that, in other embodiments of the present invention, the output port of the mobile power supply may only include USB2, or may include more USB interfaces.
负载接入检测电路包括第一驱动电阻R51、第二驱动电阻R52以及第一NPN晶体管Q3。其中,第一NPN晶体管Q3的集电极与主控制器的负载接入检测端(PinHalt)耦接,发射极与地耦接;第一驱动电阻R51的第一端与输出接口的GND端耦接,第二端与第一NPN晶体管Q3的基极耦接;第二驱动电阻R52的第一端与第一NPN晶体管Q3的基极耦接,第二端与第一NPN晶体管Q3的发射极耦接。第一驱动电阻R51的阻值可以为4.7k欧姆,第二驱动电阻R52的阻值可以为10k欧姆。 The load access detection circuit includes a first driving resistor R51, a second driving resistor R52 and a first NPN transistor Q3. Wherein, the collector of the first NPN transistor Q3 is coupled to the load access detection terminal (PinHalt) of the main controller, and the emitter is coupled to the ground; the first terminal of the first driving resistor R51 is coupled to the GND terminal of the output interface , the second end is coupled to the base of the first NPN transistor Q3; the first end of the second drive resistor R52 is coupled to the base of the first NPN transistor Q3, and the second end is coupled to the emitter of the first NPN transistor Q3 catch. The resistance value of the first driving resistor R51 may be 4.7k ohms, and the resistance value of the second driving resistor R52 may be 10k ohms.
在本实用新型实施例中,负载接入检测电路的工作原理可以描述如下:输出接口USB2或USB3中接入负载时,蓄电池通过电池内阻使得第一NPN晶体管Q3导通,主控制器上的负载接入检测端(PinHalt)的电平由高电平变为低电平,从而使得主控制器获知当前存在负载接入到输出接口。主控制器产生第二控制信号,即第二PWM波,通过PWMN引脚将第二PWM波发送至升压充放电电路的NMOS管,使得NMOS管导通,从而实现蓄电池的放电。 In this utility model embodiment, the working principle of the load access detection circuit can be described as follows: when the output interface USB2 or USB3 is connected to the load, the battery makes the first NPN transistor Q3 conduct through the internal resistance of the battery, and the first NPN transistor Q3 on the main controller The level of the load access detection terminal (PinHalt) changes from high level to low level, so that the main controller knows that there is currently a load connected to the output interface. The main controller generates a second control signal, that is, a second PWM wave, and sends the second PWM wave to the NMOS transistor of the boost charging and discharging circuit through the PWMN pin, so that the NMOS transistor is turned on, thereby realizing the discharge of the storage battery.
在本实用新型实施例中,移动电源中还可以设置放电使能电路,在主控制器向升压充放电电路的NMOS管发送第二控制信号时,通过主控制器的使能端(BoostEN,参照图2中的引脚3)发送使能信号,使得放电使能电路导通,从而产生放电回路。放电使能电路的第一端与输出端口的GND端耦接,第二端与主控制器的使能端耦接。当主控制器检测到负载接入检测端的电平由高电平变为低电平时,通过使能端发送使能开关信号,使得放电使能电路导通,产生放电回路。 In the embodiment of the present invention, a discharge enable circuit can also be set in the mobile power supply, and when the main controller sends the second control signal to the NMOS tube of the boost charge and discharge circuit, the enable terminal (BoostEN, Referring to pin 3) in FIG. 2, an enable signal is sent to turn on the discharge enable circuit, thereby generating a discharge loop. The first end of the discharge enable circuit is coupled to the GND end of the output port, and the second end is coupled to the enable end of the main controller. When the main controller detects that the level of the load access detection terminal has changed from high level to low level, it sends an enable switch signal through the enable terminal, so that the discharge enable circuit is turned on, and a discharge circuit is generated.
参照图4,在本实用新型一实施例中,放电使能电路由场效应管Q2及第三放电电阻R23组成,场效应管为双MOS管芯片Q2。双MOS管芯片Q2的漏极与移动电源的输出端口的GND端耦接,栅极与主控制器的使能端(BoostEN)耦接,在接收到主控制器发送的使能开关信号时导通。第三放电电阻R23的第一端与双MOS管芯片Q2的栅极耦接,第二端与地耦接。 Referring to FIG. 4 , in an embodiment of the present invention, the discharge enabling circuit is composed of a field effect transistor Q2 and a third discharge resistor R23 , and the field effect transistor is a dual MOS transistor chip Q2 . The drain of the dual MOS tube chip Q2 is coupled to the GND terminal of the output port of the mobile power supply, and the gate is coupled to the enable terminal (BoostEN) of the main controller. Pass. The first end of the third discharge resistor R23 is coupled to the gate of the dual MOS transistor chip Q2, and the second end is coupled to the ground.
在本实用新型实施例中,还可以设置负载电流检测电路,与放电使能电路耦接,适于获取移动电源输入到负载中的电流,也即移动电源当前的放电电流。 In the embodiment of the present utility model, a load current detection circuit may also be provided, coupled with the discharge enable circuit, suitable for obtaining the current input to the load by the mobile power supply, that is, the current discharge current of the mobile power supply.
在本实用新型一实施例中,参照图4,负载电流检测电路包括:采样电阻R60、第二滤波电阻R42以及第三滤波电容C03。其中:采样电阻R60的第一端与第二滤波电阻R42的第一端以及双MOS管芯片Q2的源极耦接,第二端与地耦接。第二滤波电阻R42的第一端与双MOS管芯片Q2的源极耦接,第二端与主控制器的负载电流检测端(Load Current,参照图2中的引脚15)耦接。第三滤波电容C03的第一端与负载电流检测端(Load Current)耦接,第二端与地耦接。 In an embodiment of the present invention, referring to FIG. 4 , the load current detection circuit includes: a sampling resistor R60 , a second filter resistor R42 and a third filter capacitor C03 . Wherein: the first end of the sampling resistor R60 is coupled to the first end of the second filter resistor R42 and the source of the dual MOS transistor chip Q2, and the second end is coupled to the ground. The first end of the second filter resistor R42 is coupled to the source of the dual MOS tube chip Q2, and the second end is coupled to the load current detection end (Load Current, refer to pin 15 in FIG. 2 ) of the main controller. The first terminal of the third filter capacitor C03 is coupled to the load current detection terminal (Load Current), and the second terminal is coupled to the ground.
采样电阻R60的阻值可以为0.05欧姆,第二滤波电阻R42的阻值可以为1k欧姆,第三滤波电容C03的电容值可以为104μF。 The resistance value of the sampling resistor R60 may be 0.05 ohm, the resistance value of the second filter resistor R42 may be 1k ohm, and the capacitance value of the third filter capacitor C03 may be 104 μF.
结合图1~4,下面对本实用新型上述实施例中提供的移动电源的工作流程进行详细说明。 With reference to FIGS. 1-4 , the working process of the mobile power supply provided in the above-mentioned embodiments of the present invention will be described in detail below.
在移动电源进行充电时,充电插入检测电路检测到USB1上有5V电压输入时,主控制器的充电插入检测端(Charge Vin)由低电平转变为高电平。主控制器检测到充电插入检测端(Charge Vin)的电压变化,产生第一PWM波,通过第一控制端(PWMP)发送至升压充放电电路的PMOS管的栅极。PMOS管接收到第一PWM波后导通,与蓄电池之间形成回路,使得蓄电池充电。 When the mobile power supply is charging, when the charging insertion detection circuit detects that there is a 5V voltage input on USB1, the charging insertion detection terminal (Charge Vin) of the main controller changes from low level to high level. The main controller detects the voltage change of the charging insertion detection terminal (Charge Vin), generates the first PWM wave, and sends it to the gate of the PMOS transistor of the boost charging and discharging circuit through the first control terminal (PWMP). The PMOS tube is turned on after receiving the first PWM wave, and forms a loop with the battery to charge the battery.
在移动电源进行放电时,USB2或USB3上接入负载时,蓄电池的内阻发生变化,使得负载接入检测电路的第一NPN晶体管导通,主控制器的负载接入检测端(PinHalt)从高电平转变为低电平。主控制器在检测到负载接入检测电路(PinHalt)的电平改变时,生成第二PWM波,并通过第二控制端(PWMN)向升压充放电电路的NMOS管发送。NMOS管接收到第二PWM波时导通,与蓄电池形成回路,使得蓄电池放电。 When the mobile power supply is discharging, when the load is connected to USB2 or USB3, the internal resistance of the battery changes, so that the first NPN transistor of the load access detection circuit is turned on, and the load access detection terminal (PinHalt) of the main controller is changed from High level transitions to low level. When the main controller detects the level change of the load access detection circuit (PinHalt), it generates a second PWM wave and sends it to the NMOS transistor of the boost charging and discharging circuit through the second control terminal (PWMN). The NMOS tube is turned on when receiving the second PWM wave, and forms a loop with the storage battery, so that the storage battery is discharged.
具体地,主控制器检测到负载接入检测端(PinHalt)的电平改变时,生成使能开关信号,并通过使能端(BoostEN)向放电使能电路发送。放电使能电路接收到使能开关信号后导通,从而形成放电回路。 Specifically, when the main controller detects that the level of the load access detection terminal (PinHalt) has changed, it generates an enabling switch signal and sends it to the discharge enabling circuit through the enabling terminal (BoostEN). The discharge enable circuit is turned on after receiving the enable switch signal, thereby forming a discharge loop.
在放电过程中,主控制器通过负载电流检测端(Load Current)实时检测输出端口处的输出电流,通过电池电压检测端(BTV)实时检测电池的当前电压,通过充放电电压检测端(Vol5V)对蓄电池的放电电压进行实时检测。 During the discharge process, the main controller detects the output current at the output port in real time through the load current detection terminal (Load Current), detects the current voltage of the battery in real time through the battery voltage detection terminal (BTV), and detects the current voltage of the battery through the charge and discharge voltage detection terminal (Vol5V) Real-time detection of battery discharge voltage.
在本实用新型实施例中,移动电源还可以包括电池保护电路。参照图5,在本实用新型一实施例中,电池保护电路与主控制器的充电电流检测端(Charge Current,参照图2中的引脚10)耦接,包括:第三滤波电阻R43以及第四滤波电容C04;第四滤波电阻R44以及第五滤波电容C05;锂电保护芯片U2以及两个双通道MOS管U3和U4。 In the embodiment of the present utility model, the mobile power supply may further include a battery protection circuit. Referring to Fig. 5, in one embodiment of the present invention, the battery protection circuit is coupled to the charge current detection terminal (Charge Current, refer to pin 10 in Fig. 2) of the main controller, including: a third filter resistor R43 and a first Four filter capacitors C04; fourth filter resistor R44 and fifth filter capacitor C05; lithium battery protection chip U2 and two dual-channel MOS transistors U3 and U4.
其中,第四滤波电容C04的第一端与充电电流检测端(Charge Current)耦接,第二端与地耦接。第三滤波电阻R43的第一端与充电电流检测端(ChargeCurrent)耦接,第二端与蓄电池的负极B-耦接,第四滤波电容C04与第三滤波电阻R43构成低通滤波器,对充电检测端输入的信号进行滤波处理。第三滤波电阻R43的阻值为1k欧姆,第四滤波电容C04的电容值为104μF。 Wherein, the first terminal of the fourth filter capacitor C04 is coupled to the charging current detection terminal (Charge Current), and the second terminal is coupled to the ground. The first terminal of the third filter resistor R43 is coupled to the charging current detection terminal (ChargeCurrent), the second terminal is coupled to the negative pole B- of the storage battery, and the fourth filter capacitor C04 and the third filter resistor R43 form a low-pass filter, which is The signal input by the charging detection terminal is filtered. The resistance value of the third filter resistor R43 is 1k ohms, and the capacitance value of the fourth filter capacitor C04 is 104 μF.
第四滤波电阻R44的第一端与蓄电池的正极B+耦接,第二端与锂电保护芯片U2的引脚5耦接。第五滤波电容C05的第一端与第四滤波电阻R44的第二端耦接,第二端与蓄电池的负极B-耦接,锂电保护芯片U2的引脚5为VCC端。第四滤波电阻R44的阻值为100欧姆,第五滤波电容C05的电容值为104μF。 The first end of the fourth filter resistor R44 is coupled to the positive pole B+ of the battery, and the second end is coupled to the pin 5 of the lithium battery protection chip U2. The first end of the fifth filter capacitor C05 is coupled to the second end of the fourth filter resistor R44, the second end is coupled to the negative pole B- of the storage battery, and the pin 5 of the lithium battery protection chip U2 is the VCC end. The resistance value of the fourth filter resistor R44 is 100 ohms, and the capacitance value of the fifth filter capacitor C05 is 104 μF.
本实用新型一实施例中采用的锂电保护芯片U2的型号为DW01,具有6个引脚,其中,引脚1为放电过放控制引脚,引脚2为充电检测引脚,引脚3为过充控制引脚,引脚4为测试引脚,引脚5为VCC,引脚6为GND,引脚2通过电阻R21与地耦接,引脚6与蓄电池的负极B-耦接。双通道MOS管U3的引脚1、3为MOS管的源极,引脚2、5为MOS管的漏极,引脚4、6为MOS管的栅极,双通道MOS管U4的引脚分布可以参照双通道MOS管U3,此处不做赘述。 The model of the lithium battery protection chip U2 adopted in an embodiment of the present invention is DW01, which has 6 pins, wherein, pin 1 is a discharge and over-discharge control pin, pin 2 is a charging detection pin, and pin 3 is a Overcharge control pin, pin 4 is the test pin, pin 5 is VCC, pin 6 is GND, pin 2 is coupled to the ground through the resistor R21, and pin 6 is coupled to the negative pole B- of the battery. The pins 1 and 3 of the dual-channel MOS transistor U3 are the sources of the MOS transistors, the pins 2 and 5 are the drains of the MOS transistors, the pins 4 and 6 are the gates of the MOS transistors, and the pins of the dual-channel MOS transistor U4 are The distribution can refer to the dual-channel MOS transistor U3, which will not be described here.
锂电保护芯片U2的引脚1均与双通道MOS管U3、U4的引脚6耦接,引脚3均与双通道MOS管U3、U4的引脚4耦接。双通道MOS管U3、U4的引脚3均与地耦接,引脚1均与蓄电池的负极B-耦接,引脚2均与对应的引脚5耦接。 Pin 1 of the lithium battery protection chip U2 is coupled to pin 6 of the dual-channel MOS transistors U3 and U4, and pin 3 is coupled to pin 4 of the dual-channel MOS transistors U3 and U4. Both the pin 3 of the dual-channel MOS transistors U3 and U4 are coupled to the ground, the pin 1 is coupled to the negative pole B- of the battery, and the pin 2 is coupled to the corresponding pin 5 .
在本实用新型一实施例中,移动电源还可以包括适于显示电池电量的电量显示电路,包括至少两个LED。参照图3及图6,本实用新型一实施例提 供了一种电量显示电路601,包括四个LED灯:L1、L2、L3以及L4。L1与L2并联且与主控制器的LED1引脚(参见图2中的引脚2)耦接,L3与L4并联且与主控制器的LED2引脚(参见图2中的引脚6)耦接,主控制器通过引脚2、6、7分别输出控制信号来控制L1、L2、L3以及L4的点亮或熄灭。主控制器的引脚2、6、7均为PWM波输出端,通过输出PWM波控制LED的点亮或熄灭。 In an embodiment of the present invention, the mobile power supply may further include a power display circuit suitable for displaying battery power, including at least two LEDs. 3 and 6, an embodiment of the present invention provides a power display circuit 601, including four LED lights: L1, L2, L3 and L4. L1 is in parallel with L2 and is coupled to the LED1 pin of the main controller (see pin 2 in Figure 2), L3 is in parallel with L4 and is coupled to the LED2 pin of the main controller (see pin 6 in Figure 2) Then, the main controller outputs control signals through pins 2, 6, and 7 to control the lighting or extinguishing of L1, L2, L3, and L4. The pins 2, 6, and 7 of the main controller are all PWM wave output terminals, and the LEDs are controlled to be on or off by outputting PWM waves.
在电池电量显示电路可以与移动电源开关电路复用,参照图6,S1为电量查询的开关按键。S1的第一端与下拉电阻R70的第一端耦接,第二端与限流电阻R80的第二端耦接。下拉电阻R70的第二端与地耦接,限流电阻R80的第一端与L4并联。限流电阻R80的阻值为100欧姆,下拉电阻R70的阻值为1k欧姆。 The battery power display circuit can be multiplexed with the mobile power switch circuit. Referring to FIG. 6, S1 is the switch button for power inquiry. The first terminal of S1 is coupled to the first terminal of the pull-down resistor R70, and the second terminal is coupled to the second terminal of the current limiting resistor R80. The second terminal of the pull-down resistor R70 is coupled to the ground, and the first terminal of the current limiting resistor R80 is connected in parallel with L4. The resistance value of the current limiting resistor R80 is 100 ohms, and the resistance value of the pull-down resistor R70 is 1k ohms.
在本实用新型实施例中,移动电源还可以包括手电筒电路603,手电筒电路603与主控制器的Light引脚(参照图2中的引脚5)耦接,主控制器通过Light引脚向手电筒电路603发送控制信号。手电筒电路603可以包括第一基极电阻R91、第二NPN晶体管Q4、第一限流电阻R81以及L5。其中,第一基极电阻R91的第一端与主控制器的Light引脚耦接,第二端与NPN晶体管Q4的基极耦接。NPN晶体管Q4的发射极与地耦接,集电极与第一限流电阻R81的第一端耦接。第一限流电阻R81的第二端与L5的第一端耦接,L5的第二端与蓄电池的正极B+耦接。第一限流电阻R81的阻值为100欧姆。第一基极电阻R91的电阻为4.7k欧姆。 In this utility model embodiment, the mobile power supply can also include a flashlight circuit 603, and the flashlight circuit 603 is coupled with the Light pin (refer to pin 5 in FIG. Circuit 603 sends a control signal. The flashlight circuit 603 may include a first base resistor R91, a second NPN transistor Q4, a first current limiting resistor R81 and L5. Wherein, the first terminal of the first base resistor R91 is coupled to the Light pin of the main controller, and the second terminal is coupled to the base of the NPN transistor Q4. The emitter of the NPN transistor Q4 is coupled to the ground, and the collector is coupled to the first terminal of the first current limiting resistor R81. The second terminal of the first current limiting resistor R81 is coupled to the first terminal of L5, and the second terminal of L5 is coupled to the positive pole B+ of the storage battery. The resistance value of the first current limiting resistor R81 is 100 ohms. The resistance of the first base resistor R91 is 4.7k ohms.
参照图6,在本实用新型一实施例中,移动电源还包括快充控制电路602,快充控制电路602与主控制器的使能端(BoostEN)耦接。快充充电电路602包括:第一端与主控制器使能端耦接的第二基极电阻R92,第二基极电阻R92的第二端与NPN晶体管Q5的基极耦接。NPN晶体管Q5的发射极与地耦接,集电极与电阻网络耦接。 Referring to FIG. 6 , in an embodiment of the present invention, the mobile power supply further includes a fast charge control circuit 602 , and the fast charge control circuit 602 is coupled to the enable terminal (BoostEN) of the main controller. The fast charging circuit 602 includes: a second base resistor R92 with a first terminal coupled to the enable terminal of the main controller, and a second terminal of the second base resistor R92 coupled to the base of the NPN transistor Q5. The emitter of the NPN transistor Q5 is coupled to the ground, and the collector is coupled to the resistor network.
电阻网络由电阻R101、R102、R103、R104组成,其中,电阻R101的第一端与移动电源的输出端口耦接,第二端与移动电源的输出端口的D-端耦接;电阻R103的第一端与移动电源的输出端口的D-端耦接,第二端与NPN晶体管Q5的集电极耦接;电阻R102的第一端与移动电源的输出端口耦接,第二 端与移动电源的输出端口的D+端耦接;电阻R104的第一端与移动电源的输出端口的D+端耦接,第二端与NPN晶体管Q5的集电极耦接。 The resistor network is composed of resistors R101, R102, R103, and R104, wherein the first end of the resistor R101 is coupled to the output port of the mobile power supply, and the second end is coupled to the D-terminal of the output port of the mobile power supply; the first end of the resistor R103 One end is coupled to the D- terminal of the output port of the mobile power supply, and the second end is coupled to the collector of the NPN transistor Q5; the first end of the resistor R102 is coupled to the output port of the mobile power supply, and the second end is coupled to the output port of the mobile power supply. The D+ end of the output port is coupled; the first end of the resistor R104 is coupled to the D+ end of the output port of the mobile power supply, and the second end is coupled to the collector of the NPN transistor Q5.
电阻R92的阻值为4.7k欧姆,电阻R101的阻值为29.4k欧姆,电阻R102的阻值为75k欧姆,电阻R103的阻值为34.8k欧姆,电阻R104的阻值为49.9k欧姆。 The resistance value of the resistor R92 is 4.7k ohms, the resistance value of the resistor R101 is 29.4k ohms, the resistance value of the resistor R102 is 75k ohms, the resistance value of the resistor R103 is 34.8k ohms, and the resistance value of the resistor R104 is 49.9k ohms.
由此可见,将充电插入检测电路与主控制器的充电插入检测端耦接,将升压反馈电路与主控制器的电压检测端耦接,将电池电压检测电路与主控制器的电池电压检测端耦接,将负载接入检测电路与主控制器的负载接入检测端耦接,将放电使能电路与主控制器的使能端耦接,将负载电流检测电路与主控制器的负载电流检测端耦接,将充电保护电路与主控制器的充电电流检测端耦接,将移动电源的各个功能电路与主控制器耦接,充分利用主控制器的各个输入输出端口,相比于现有的移动电源,能够实现主控制器利用率的最大化。 It can be seen that the charging insertion detection circuit is coupled with the charging insertion detection terminal of the main controller, the boost feedback circuit is coupled with the voltage detection terminal of the main controller, and the battery voltage detection circuit is connected with the battery voltage detection terminal of the main controller. Connect the load access detection circuit to the load access detection end of the main controller, couple the discharge enable circuit to the enable end of the main controller, and connect the load current detection circuit to the load of the main controller The current detection terminal is coupled, the charging protection circuit is coupled with the charging current detection terminal of the main controller, the various functional circuits of the mobile power supply are coupled with the main controller, and the input and output ports of the main controller are fully utilized. The existing mobile power supply can maximize the utilization of the main controller.
针对本实用新型上述实施例提供的移动电源,本实用新型实施例还提供了一种移动电源系统的控制方法。 Regarding the mobile power supply provided by the above-mentioned embodiments of the present utility model, the embodiment of the present utility model also provides a control method of the mobile power supply system.
预先根据移动电源软件控制系统中的各程序对响应时间的需求,将主系统中的程序划分成第一响应程序、第二响应程序、第三响应程序以及第四响应程序。其中,第一响应程序对响应时间的要求最高,第二响应程序对响应时间的要求次之,第四响应程序对响应时间的要求最低。 According to the response time requirements of each program in the mobile power software control system, the programs in the main system are divided into a first response program, a second response program, a third response program and a fourth response program. Among them, the first response program has the highest requirement on response time, the second response program has the second requirement on response time, and the fourth response program has the lowest requirement on response time.
其中,第一响应程序实时进行检测,第二响应程序对应的响应时间为250μs,第三响应程序对应的响应时间为5ms,第四响应程序对应的响应时间为125ms。第一响应程序、第二响应程序、第三响应程序以及第四响应程序的响应时间还可以为其他值,此处不做赘述。 Among them, the first response program performs detection in real time, the response time corresponding to the second response program is 250 μs, the response time corresponding to the third response program is 5 ms, and the response time corresponding to the fourth response program is 125 ms. The response time of the first response program, the second response program, the third response program and the fourth response program may also be other values, which will not be repeated here.
在本实用新型实施例中,第一响应程序可以包括电压过充处理程序,电压过充处理程序用于防止移动电源的负载较大时,负载的突然拔出导致的电压过充,需要实时进行检测,以避免移动电源受到损坏。 In the embodiment of the present invention, the first response program may include a voltage overcharge processing program, which is used to prevent the voltage overcharge caused by the sudden pull-out of the load when the load of the mobile power supply is large, and it needs to be carried out in real time. detection to avoid damage to the mobile power supply.
第二响应程序可以包括:显示驱动子程序、电压采样子程序、电流采样子程序以及负载插入子程序,其中,每一个程序对应的响应时间均为250μs。 The second response program may include: a display driver subroutine, a voltage sampling subroutine, a current sampling subroutine, and a load insertion subroutine, wherein the corresponding response time of each program is 250 μs.
显示驱动子程序主要用于动态扫描移动电源的LED以及按键,扫描的间隔时间一般设置较短,因为扫描的间隔时间较长会导致LED闪烁现象较为严重,一般扫描的间隔时间可以为1ms。 The display driver subroutine is mainly used to dynamically scan the LEDs and buttons of the mobile power supply. The scanning interval is generally set to be short, because a long scanning interval will cause serious LED flickering. Generally, the scanning interval can be 1ms.
电压采样子程序主要用于采样蓄电池的电压值以及蓄电池的输出电压值,采样周期也可以设置为1ms,在连续采样16次后,取平均值作为蓄电池的电压值以及蓄电池的输出电压值。 The voltage sampling subroutine is mainly used to sample the voltage value of the battery and the output voltage value of the battery. The sampling period can also be set to 1ms. After 16 consecutive samples, the average value is taken as the voltage value of the battery and the output voltage value of the battery.
电流采样子程序主要用于采用蓄电池的充电电流值以及负载放电电流值,采样周期也可以设置为1ms,在连续采样16次后,取平均值作为蓄电池的充电电流值以及负载放电电流值。 The current sampling subroutine is mainly used to use the charging current value of the battery and the discharge current value of the load. The sampling period can also be set to 1ms. After 16 consecutive samples, the average value is taken as the charging current value of the battery and the discharge current value of the load.
负载插入检测子程序主要用于自动检测移动电源负载的插入,在检测到负载插入时,唤醒主控制器,然后通过主控制器控制升压充电电流导通,以实现为负载电路充电,检测的周期也可以设置为1ms。 The load insertion detection subroutine is mainly used to automatically detect the insertion of the mobile power load. When the load is detected, the main controller is woken up, and then the main controller controls the conduction of the boost charging current to realize the charging of the load circuit. The period can also be set to 1ms.
在本实用新型实施例中,第三响应程序可以包括:状态检测子程序、充电管理子程序、负载检测子程序以及升压控制子程序,其中,每一个程序对应的响应时间均为5ms。 In the embodiment of the present utility model, the third response program may include: a state detection subroutine, a charge management subroutine, a load detection subroutine, and a boost control subroutine, wherein the corresponding response time of each program is 5ms.
状态检测子程序主要用于检测充电器插入,当检测到充电器插入时,控制主控制器对移动电源进行充电。 The state detection subroutine is mainly used to detect the insertion of the charger, and when the insertion of the charger is detected, the main controller is controlled to charge the mobile power supply.
充电管理子程序,主要用于根据蓄电池电压的大小控制充电电流的大小,在蓄电池的电压值小于第一预设值时,对蓄电池涓流充电;在蓄电池的电压值处于第一预设值与第二预设值之间时,对蓄电池恒流充电;在蓄电池的电压值大于第二预设值时,对蓄电池恒压充电,第一预设值小于第二预设值。 The charging management subroutine is mainly used to control the magnitude of the charging current according to the voltage of the battery, and trickle charge the battery when the voltage value of the battery is less than the first preset value; when the voltage value of the battery is between the first preset value and When the value is between the second preset values, the battery is charged with a constant current; when the voltage value of the battery is greater than the second preset value, the battery is charged with a constant voltage, and the first preset value is smaller than the second preset value.
例如,第一预设值为3V,第二预设值为4.1V。则在蓄电池的电压值小于3V时,对蓄电池涓流充电;在蓄电池的电压值处于3V~4.1V之间时,对蓄电池恒流充电;在蓄电池的电压值大于4.1V时,对蓄电池恒压充电。 For example, the first preset value is 3V, and the second preset value is 4.1V. Then, when the voltage value of the battery is less than 3V, the battery is trickle charged; when the voltage value of the battery is between 3V and 4.1V, the battery is charged with a constant current; when the voltage value of the battery is greater than 4.1V, the battery is charged with a constant voltage Charge.
负载检测子程序,主要用于根据负载电流的大小来判断是否存在轻负载或过流的现象,并采取相应的保护操作。升压控制子程序主要用于根据移动电源输出端口的输出电压或输出电流来调整第一PWM波或第二PWM波的占空比,以保持移动电源输出端口的输出电压为5V。 The load detection subroutine is mainly used to judge whether there is a light load or overcurrent phenomenon according to the magnitude of the load current, and take corresponding protection operations. The boost control subroutine is mainly used to adjust the duty cycle of the first PWM wave or the second PWM wave according to the output voltage or output current of the output port of the mobile power supply, so as to keep the output voltage of the output port of the mobile power supply at 5V.
在本实用新型实施例中,第四响应程序可以包括:充电保护子程序、状态处理子程序、显示数据处理子程序以及休眠电量平衡处理子程序,其中,每一个程序对应的响应时间均为125ms。其中: In the embodiment of the present utility model, the fourth response program may include: a charging protection subroutine, a state processing subroutine, a display data processing subroutine, and a sleep power balance processing subroutine, wherein the corresponding response time of each program is 125ms . in:
充电保护子程序主要用于保护移动电源中的蓄电池不会出现过充现象;状态处理主程序主要用于判断蓄电池当前的电量状态;显示处理子程序主要用户根据不同的工作状态更改显示的数据;休眠电量平衡处理子程序主要用于实现产品低功耗及电量平衡。 The charging protection subroutine is mainly used to protect the battery in the mobile power supply from overcharging; the state processing main program is mainly used to judge the current power state of the battery; the display processing subroutine is mainly used to change the displayed data according to different working states; The subroutine for dormant power balance processing is mainly used to realize low power consumption and power balance of the product.
参照图7,给出了本实用新型实施例中的一种移动电源系统控制方法流程图。 Referring to Fig. 7, a flow chart of a mobile power system control method in the embodiment of the present invention is given.
步骤S701,系统初始化。 Step S701, system initialization.
步骤S702,判断当前移动电源的放电标志位是否为1。 Step S702, judging whether the discharge flag of the current mobile power supply is 1.
在本实用新型一实施例中,移动电源的放电标志位为1表示为当前移动电源处于放电状态。在当前移动电源处于放电状态时,执行步骤S703,;在当前移动电源的放电标志位为0时,执行步骤S705。 In an embodiment of the present invention, the discharge flag bit of the mobile power supply is 1, indicating that the mobile power supply is currently in a discharging state. When the current mobile power supply is in the discharging state, execute step S703; when the current discharge flag of the mobile power supply is 0, execute step S705.
步骤S703,判断移动电源是否存在电压过充。 Step S703, judging whether there is voltage overcharging of the mobile power supply.
在本实用新型一实施例中,在移动电源存在电压过充时,执行步骤S704;在不存在电压过充时,执行步骤S705。 In an embodiment of the present invention, when there is voltage overcharging in the mobile power supply, step S704 is executed; when there is no voltage overcharging, step S705 is executed.
步骤S704,通过电压过充处理程序对电压过充进行处理。 Step S704, process the voltage overcharge through the voltage overcharge processing program.
步骤S705,判断移动电源的响应时间是否达到250μs。 Step S705, judging whether the response time of the mobile power source reaches 250 μs.
在本实用新型一实施例中,在移动电源的响应时间达到250μs时,执行步骤S706;在移动电源的响应时间未达到250μs时,重新执行步骤S702。 In an embodiment of the present invention, when the response time of the mobile power source reaches 250 μs, step S706 is executed; when the response time of the mobile power source does not reach 250 μs, step S702 is re-executed.
步骤S706,执行第二响应程序。 Step S706, execute the second response program.
在本实用新型一实施例中,在第二响应程序执行完成后,执行步骤S707。 In an embodiment of the present invention, step S707 is executed after the execution of the second response program is completed.
步骤S707,判断移动电源的响应时间是否达到5ms。 Step S707, judging whether the response time of the mobile power source reaches 5ms.
在本实用新型一实施例中,在移动电源的响应时间达到5ms时,执行步骤S708;在移动电源的响应时间小于5ms时,重新执行步骤S702。 In an embodiment of the present invention, when the response time of the mobile power source reaches 5 ms, step S708 is executed; when the response time of the mobile power source is less than 5 ms, step S702 is re-executed.
步骤S708,执行第三响应程序。 Step S708, execute the third response program.
在本实用新型一实施例中,在第三响应程序执行完成后,执行步骤S709。 In an embodiment of the present invention, after the execution of the third response program is completed, step S709 is executed.
步骤S709,判断移动电源的响应时间是否达到125ms。 Step S709, judging whether the response time of the mobile power source reaches 125ms.
在本实用新型一实施例中,在移动电源的响应时间达到125ms时,执行步骤S710;在移动电源的响应时间小于125ms时,重新执行步骤S702。 In an embodiment of the present invention, when the response time of the mobile power source reaches 125 ms, step S710 is executed; when the response time of the mobile power source is less than 125 ms, step S702 is re-executed.
步骤S710,执行第四响应程序。 Step S710, execute the fourth response procedure.
在本实用新型一实施例中,在第四响应程序执行完成后,重新执行步骤S702,从而可以实现循环操作。 In an embodiment of the present utility model, after the execution of the fourth response program is completed, step S702 is re-executed, so that a loop operation can be realized.
在本实用新型实施例中,对应于第二响应程序、第三响应程序以及第四响应程序,以执行第二响应程序时为例进行说明。 In the embodiment of the present invention, corresponding to the second response program, the third response program and the fourth response program, the execution of the second response program is taken as an example for description.
在步骤S706中,执行第二响应程序。第二响应程序包括:显示驱动子程序、电压采样子程序、电流采样子程序以及负载插入子程序。在执行第二响应程序时,可以将显示驱动子程序、电压采样子程序、电流采样子程序、负载插入子程序的顺序依次进行执行。 In step S706, execute the second response procedure. The second response program includes: a display driver subroutine, a voltage sampling subroutine, a current sampling subroutine and a load insertion subroutine. When executing the second response program, the display driving subroutine, the voltage sampling subroutine, the current sampling subroutine, and the load insertion subroutine may be executed sequentially.
在本实用新型实施例中,在显示驱动子程序执行完成后,可以直接执行步骤S707,判断移动电源的响应时间是否达到5ms也可以继续执行电压采样子程序。也就是说,在执行第二响应程序时,每执行完成其中的一个子程序时,都可以直接执行步骤S707,并在移动电源的响应时间达到5ms时,直接执行步骤S708,而不用再继续执行第二响应程序中的其余子程序,从而可以减少程序执行所占用的时间。 In the embodiment of the present invention, after the execution of the display driving subroutine is completed, step S707 can be executed directly to determine whether the response time of the mobile power supply reaches 5 ms or the voltage sampling subroutine can be continued. That is to say, when executing the second response program, every time one of the subroutines is executed, step S707 can be directly executed, and when the response time of the mobile power source reaches 5 ms, step S708 can be directly executed without continuing to execute The second responds to the rest of the subroutines in the program, thereby reducing the time taken for program execution.
可以理解的是,在本实用新型实施例中,在执行第三响应程序时,可以参照上述执行第二程序时的操作,此处不做赘述。 It can be understood that, in the embodiment of the present invention, when executing the third response program, reference may be made to the above-mentioned operation when executing the second program, which will not be repeated here.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指示相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。 Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM, disk or CD, etc.
虽然本实用新型披露如上,但本实用新型并非限定于此。任何本领域技术人员,在不脱离本实用新型的精神和范围内,均可作各种更动与修改,因 此本实用新型的保护范围应当以权利要求所限定的范围为准。 Although the utility model is disclosed as above, the utility model is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present utility model, so the protection scope of the present utility model should be based on the scope defined by the claims.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520046401.0U CN204376473U (en) | 2015-01-22 | 2015-01-22 | Portable power source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520046401.0U CN204376473U (en) | 2015-01-22 | 2015-01-22 | Portable power source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN204376473U true CN204376473U (en) | 2015-06-03 |
Family
ID=53332653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520046401.0U Expired - Lifetime CN204376473U (en) | 2015-01-22 | 2015-01-22 | Portable power source |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN204376473U (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105098930A (en) * | 2015-09-18 | 2015-11-25 | 深圳市欣维信科技有限公司 | Display screen type mobile power supply capable of accurately displaying battery capacity and current |
CN105490333A (en) * | 2015-12-18 | 2016-04-13 | 深圳市芯沃微电子有限公司 | Rapid charging control circuit for battery, adapter and mobile equipment |
CN110391680A (en) * | 2018-04-23 | 2019-10-29 | 深圳市星磁科技有限公司 | Charging unit and charge control method |
-
2015
- 2015-01-22 CN CN201520046401.0U patent/CN204376473U/en not_active Expired - Lifetime
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105098930A (en) * | 2015-09-18 | 2015-11-25 | 深圳市欣维信科技有限公司 | Display screen type mobile power supply capable of accurately displaying battery capacity and current |
CN105490333A (en) * | 2015-12-18 | 2016-04-13 | 深圳市芯沃微电子有限公司 | Rapid charging control circuit for battery, adapter and mobile equipment |
CN110391680A (en) * | 2018-04-23 | 2019-10-29 | 深圳市星磁科技有限公司 | Charging unit and charge control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203933124U (en) | A kind of single interface portable power source, bluetooth keyboard and protective sleeve | |
CN109066940B (en) | Charging control method, circuit, charger and electric tool | |
CN201813422U (en) | Charging chip and mobile terminal capable of automatically adjusting charging mode | |
CN103812197B (en) | Mobile power supply | |
CN103618353A (en) | Battery monitoring circuit | |
CN104348192A (en) | USB charger of electronic cigarette | |
CN107359663B (en) | MCU control voltage regulating device and voltage regulating method based on quick charge protocol | |
CN202798027U (en) | Bidirectional power supply circuit of single USB interface | |
WO2016173202A1 (en) | Tablet pc | |
CN107086631A (en) | A multi-channel current adaptive charging device with optional priority | |
CN201039411Y (en) | A mobile phone with self-adapted charging device | |
CN204376473U (en) | Portable power source | |
US20180145525A1 (en) | Charging managment method and system thereof | |
CN103427821B (en) | Power management device realizing zero standby current | |
WO2020063390A1 (en) | Quick charge circuit and electronic cigarette | |
CN205248853U (en) | Power supply circuit | |
CN203788013U (en) | Multifunctional mobile power supply | |
CN202798035U (en) | Charging mode detection circuit and mobile terminal | |
CN104767243B (en) | A kind of charging method and device and charging circuit and the charging system with the circuit | |
CN204538754U (en) | High integrated multifunction portable power source | |
CN203504233U (en) | Power supply management circuit of bar code scanning gun | |
CN211655760U (en) | Lithium battery dynamic charging and discharging management circuit based on hardware control | |
CN104167793B (en) | The charging system and charging method of a kind of handheld terminal | |
CN205029395U (en) | Embedded intelligent charging ware | |
CN204615437U (en) | A charging device, a charging circuit, and a charging system having the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP03 | Change of name, title or address |
Address after: 200235 Shanghai city Xuhui District Longcao road Tianhua Information Technology Park Building No. 299 2A 5 Patentee after: SHANGHAI EASTSOFT MICROELECTRONICS Co.,Ltd. Address before: Longcao road 200235 Shanghai city Shanghai city Xuhui District Tianhua Information Technology Park Building No. 299 2A 5 Patentee before: SHANGHAI HAIER INTEGRATED CIRCUIT Co.,Ltd. |
|
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20150603 |