CN109586363B - Charging circuit - Google Patents

Charging circuit Download PDF

Info

Publication number
CN109586363B
CN109586363B CN201811358364.1A CN201811358364A CN109586363B CN 109586363 B CN109586363 B CN 109586363B CN 201811358364 A CN201811358364 A CN 201811358364A CN 109586363 B CN109586363 B CN 109586363B
Authority
CN
China
Prior art keywords
charging
voltage
power supply
module
management chip
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
Application number
CN201811358364.1A
Other languages
Chinese (zh)
Other versions
CN109586363A (en
Inventor
马金来
安勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN201811358364.1A priority Critical patent/CN109586363B/en
Publication of CN109586363A publication Critical patent/CN109586363A/en
Application granted granted Critical
Publication of CN109586363B publication Critical patent/CN109586363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule
    • H02J7/0077
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention relates to the technical field of electronics and discloses a charging circuit. The charging circuit comprises a baseband management chip, a charging control circuit, a microcontroller, a rechargeable battery, an external power supply and a printer; the voltage input end of the baseband management chip is electrically connected with an external power supply, the power supply input end of the baseband management chip is electrically connected with the power supply output end of the charging control circuit, the charging output end of the baseband management chip is electrically connected with the detection end of the charging control circuit, and the control end of the baseband management chip is electrically connected with the first control input end of the microcontroller; the power supply input end of the charging control circuit is electrically connected with the rechargeable battery, the voltage output end of the charging control circuit is electrically connected with the voltage input end of the printer, the control end of the charging control circuit is electrically connected with the control output end of the microcontroller, and the second control input end of the microcontroller is electrically connected with the control end of the printer. The method is used for ensuring that the printer and the baseband management chip work normally at the same time and the POS machine is not automatically shut down.

Description

Charging circuit
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a charging circuit.
Background
The POS machine is a multifunctional terminal reader with bar code technology, and is installed in special commercial tenant and accepting network to connect with computer to realize automatic electronic fund transfer. At present, a traditional POS machine is developed based on a 2G mobile phone platform, and the existing implementation modes of a charging system thereof include the following three types: the external charging power supply; adding an additional charging management chip; the charging unit of the original baseband management chip in the 2G mobile phone platform is directly used.
The inventor finds that at least the following problems exist in the prior art: no matter the external charging power supply is used, or an additional charging management chip is added, the cost is increased, and unnecessary waste is caused. If the charging unit of the original baseband management chip in the 2G mobile phone platform is directly used for realizing the charging function, the power supply foot of the baseband management chip needs to be directly connected with the anode of the power supply battery. However, the POS developed based on the 2G mobile phone platform further includes a printing circuit, and the printing circuit consumes a large amount of power of a power supply battery of the POS during operation. Therefore, if the power of the power supply battery is slightly low, the POS machine may be automatically turned off and may not be normally used. For example, when the power supply battery has 80% of its electric quantity, its output voltage will drop rapidly, and at this moment, the voltage of the power pin of the baseband management chip is lower than the threshold value of the hardware shutdown voltage, so as to cause the main control unit of the POS machine to automatically shut down, and the POS machine cannot be used normally.
Disclosure of Invention
The embodiment of the invention aims to provide a charging circuit, which can automatically charge a POS machine developed based on a 2G mobile phone platform, and can still ensure that a main control unit of the POS machine can normally work when a printer normally works, so that the use of the POS machine is not influenced.
To solve the above technical problem, an embodiment of the present invention provides a charging circuit, which specifically includes: the system comprises a baseband management chip, a charging control circuit, a microcontroller, a rechargeable battery, an external power supply and a printer; the baseband management chip comprises a voltage input end, a control end, a power supply input end and a charging output end, and the charging control circuit comprises a power supply output end, a voltage output end, a control end, a detection end and a power supply input end; the voltage input end of the baseband management chip is electrically connected with an external power supply, the power supply input end of the baseband management chip is electrically connected with the power supply output end of the charging control circuit, the charging output end of the baseband management chip is electrically connected with the detection end of the charging control circuit, and the control end of the baseband management chip is electrically connected with the first control input end of the microcontroller; the power supply input end of the charging control circuit is electrically connected with the rechargeable battery, the voltage output end of the charging control circuit is electrically connected with the voltage input end of the printer, the control end of the charging control circuit is electrically connected with the control output end of the microcontroller, and the second control input end of the microcontroller is electrically connected with the control end of the printer;
the baseband management chip is used for judging whether the rechargeable battery needs to be charged according to the voltage of the charging output end and generating a charging control signal according to the judgment result, wherein the charging control signal is used for controlling the charging control circuit to be switched to a charging state;
the microcontroller is used for generating a power supply control signal when the printer is detected to be in a working state, and controlling the charging control circuit to be switched to a charging state according to the charging control signal or controlling the charging control circuit to be switched to the power supply state according to the power supply control signal;
and the rechargeable battery is used for supplying power to the printer through the voltage output end of the charging control circuit and supplying power to the baseband management chip through the power supply output end of the charging control circuit.
Compared with the prior art, the embodiment of the invention provides a charging circuit, which judges whether a rechargeable battery needs to be charged or not by utilizing the voltage of the charging output end of a baseband management chip in the charging circuit, and supplies power to the baseband management chip and a printer through the rechargeable battery in a power supply state; under the charged state, charge for rechargeable battery through the baseband management chip, avoid leading to POS machine auto-shutdown because of printer power consumption is great to make under the condition that does not increase extra charge management chip, still can charge for rechargeable battery, saved the cost, avoided unnecessary extravagant, and guaranteed that POS machine can not auto-shutdown.
In addition, the charge control circuit includes: the charging switching control module and the power supply voltage stabilizing module; the charging switching control module comprises a first end, a control signal input end, a control signal output end and a second end, and the power supply voltage stabilizing module comprises a first voltage output end, a second voltage output end, a control signal input end and a voltage input end; the charging battery is connected in series between the charging switching control module and the power supply voltage stabilizing module; the first end of the charging switching control module is electrically connected with the rechargeable battery, the control signal input end of the charging switching control module is electrically connected with the control output end of the microcontroller, and the second end of the charging switching control module is electrically connected with the charging output end of the baseband management chip; a first voltage output end of the power supply voltage stabilizing module is electrically connected with a voltage input end of the printer, a second voltage output end of the power supply voltage stabilizing module is electrically connected with a power supply input end of the baseband management chip, a control signal input end of the power supply voltage stabilizing module is electrically connected with a control signal output end of the charging switching control module, and a voltage input end of the power supply voltage stabilizing module is electrically connected with the rechargeable battery;
the charging switching control module is used for switching to a charging state when the microcontroller inputs a charging control signal and switching to a power supply state when the microcontroller inputs a power supply control signal; the power supply voltage stabilizing module is used for stabilizing the voltage input by the rechargeable battery to obtain a first stabilized output voltage and outputting the first stabilized output voltage to supply power to the printer in a power supply state; and in the power supply state, the first voltage-stabilizing output voltage is subjected to voltage stabilization to obtain a second voltage-stabilizing output voltage, and the second voltage-stabilizing output voltage is output to supply power to the baseband management chip.
In the mode, the circuit is switched to a charging state or a power supply state through the charging switching control module, the power supply voltage stabilizing module supplies power to the power supply input end of the baseband management chip in the power supply state, and the rechargeable battery is charged through the baseband management chip in the charging state. Through the switching of different circuit states, the baseband management chip can also work normally when the printer works normally, and the problem that the baseband management chip is automatically shut down when the voltage of a charging output end of the baseband management chip drops rapidly due to the large power consumption of the printer so that the baseband management chip reaches a hardware shutdown voltage threshold is solved.
In addition, the baseband management chip includes: the charging detection module and the power supply input module are electrically connected in sequence; and the charging detection module is used for judging whether the rechargeable battery needs to be charged or not according to the voltage of the charging output end, and if the voltage of the charging output end is lower than a first preset threshold value, generating a charging control signal and outputting the charging control signal to the microcontroller.
In addition, the charging switching control module is used for: and in the charging state, controlling the baseband management chip to charge the rechargeable battery, and in the power supply state, controlling the rechargeable battery to supply power to the printer and the baseband management chip.
In addition, the power supply voltage stabilizing module comprises a first power supply voltage stabilizing module and a second power supply voltage stabilizing module which are electrically connected in sequence; the first power supply voltage stabilizing module is used for stabilizing the voltage input by the rechargeable battery to obtain a first stabilized output voltage, outputting the first stabilized output voltage to supply power to the printer in a power supply state, and outputting the first stabilized output voltage to the second power supply voltage stabilizing module; and the second power supply voltage stabilizing module is used for stabilizing the first voltage-stabilized output voltage input by the first power supply voltage stabilizing module to obtain a second voltage-stabilized output voltage, and outputting the second voltage-stabilized output voltage to supply power for the baseband management chip in a power supply state.
In the mode, the voltage input is processed through voltage stabilization, and the voltage output to the printer and the baseband management chip can meet the high voltage requirement of the printer and the low voltage requirement of the baseband management chip respectively.
In addition, the first regulated output voltage is higher than the voltage of the input of the rechargeable battery.
In addition, the charging switching control module is used for: and if the power supply control signal is determined to be input, determining the voltage of the second end of the charging switching control module according to the voltage of the control signal output end and a second preset threshold value.
In the mode, whether the baseband management chip needs to be controlled to charge the rechargeable battery or not is determined through the power supply control signal, and the situation that the voltage of the baseband management chip drops suddenly and the automatic shutdown is carried out due to the fact that the power consumption of the printer is large is avoided.
In addition, the charging detection module is used for: and if the voltage of the charging output end of the baseband management chip is lower than a third preset threshold value, controlling the baseband management chip to shut down.
In addition, the baseband management chip further comprises an independent power input processing module, wherein the independent power input processing module is used for being connected with an external power supply, converting voltage provided by the external power supply into current and charging the rechargeable battery in a charging state.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a block diagram of a charging circuit according to a first embodiment of the present invention;
fig. 2 is a block diagram of a charge control circuit according to a first embodiment of the present invention;
fig. 3 is a block diagram showing the configuration of a power supply voltage stabilizing module according to a first embodiment of the present invention;
fig. 4 is a block diagram showing the construction of a baseband management chip according to a second embodiment of the present invention;
fig. 5 is a practical circuit diagram of a charging circuit in a third embodiment according to the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a charging circuit which is used for automatically charging a POS machine developed based on a 2G mobile phone platform and ensuring that the POS machine is not automatically powered off when a printer works normally. The implementation details of the charging circuit in the present embodiment are described in detail below, and the following is only for the convenience of understanding the implementation details of the present embodiment and is not essential to the implementation of the present embodiment.
Fig. 1 is a structural diagram of a charging circuit in the present embodiment, which specifically includes: a baseband management chip 101, a charging control circuit 102, a microcontroller 106, a rechargeable battery 103, an external power supply 105 and a printer 104;
the baseband management chip 101 comprises a voltage input end, a control end, a power supply input end and a charging output end, and the charging control circuit 102 comprises a power supply output end, a voltage output end, a control end, a detection end and a power supply input end; the voltage input end of the baseband management chip 101 is electrically connected with the external power supply 105, the power supply input end of the baseband management chip 101 is electrically connected with the power supply output end of the charging control circuit 102, the charging output end of the baseband management chip 101 is electrically connected with the detection end of the charging control circuit 102, and the control end of the baseband management chip 101 is electrically connected with the first control input end of the microcontroller 106; the power supply input end of the charging control circuit 102 is electrically connected with the rechargeable battery 103, the voltage output end of the charging control circuit 102 is electrically connected with the voltage input end of the printer 104, the control end of the charging control circuit 102 is electrically connected with the control output end of the microcontroller 106, and the second control input end of the microcontroller 106 is electrically connected with the control end of the printer 104.
The baseband management chip 101 is configured to determine whether the rechargeable battery 103 needs to be charged according to the voltage at the charging output terminal, and generate a charging control signal according to the determination result, where the charging control signal is used to control the charging control circuit 102 to switch to a charging state.
The microcontroller 106 is configured to generate a power supply control signal when detecting that the printer 104 is in the operating state, and control the charging control circuit 102 to switch to the charging state according to the charging control signal, or control the charging control circuit 102 to switch to the power supply state according to the power supply control signal.
The rechargeable battery 103 is used to supply power to the printer 104 through the voltage output terminal of the charge control circuit 102 and to supply power to the baseband management chip 101 through the power supply output terminal of the charge control circuit 102.
When the rechargeable battery 103 needs to be charged, the external power supply 105 outputs a voltage to the charge control circuit 102 through the charge output terminal of the baseband management chip 101, and outputs the voltage to the rechargeable battery 103 through the charge control circuit 102 for charging. The voltage at the voltage input terminal of the baseband management chip 101 is the voltage input by the external power supply 105.
In one specific implementation, a specific structure of the charge control circuit 102 is shown in fig. 2, where the charge control circuit 102 includes: a charging switching control module 202 and a power supply voltage stabilizing module 201; the charging switching control module 202 comprises a first end, a control signal input end, a control signal output end and a second end, and the power supply voltage stabilizing module 201 comprises a first voltage output end, a second voltage output end, a control signal input end and a voltage input end; the rechargeable battery 103 is connected in series between the charging switching control module 202 and the power supply voltage stabilizing module 201; a first end of the charging switching control module 202 is electrically connected with the rechargeable battery 103, a control signal input end of the charging switching control module 202 is electrically connected with a control output end of the microcontroller 106, and a second end of the charging switching control module 202 is electrically connected with a charging output end of the baseband management chip 101; a first voltage output end of the power supply voltage stabilization module 201 is electrically connected with a voltage input end of the printer 104, a second voltage output end of the power supply voltage stabilization module 201 is electrically connected with a power supply input end of the baseband management chip 101, a control signal input end of the power supply voltage stabilization module 201 is electrically connected with a control signal output end of the charging switching control module 202, and a voltage input end of the power supply voltage stabilization module 201 is electrically connected with the rechargeable battery 103;
the charging switching control module 202 is configured to switch to a charging state when the microcontroller 106 inputs a charging control signal, and switch to a power supply state when the microcontroller 106 inputs a power supply control signal;
the power supply voltage stabilizing module 201 is configured to stabilize a voltage input by the rechargeable battery 103 to obtain a first stabilized output voltage, and output the first stabilized output voltage to power the printer 104 in a power supply state; and in the power supply state, the first regulated output voltage is regulated to obtain a second regulated output voltage, and the second regulated output voltage is output to supply power to the baseband management chip 101.
It should be noted that the power supply voltage stabilizing module 201 may be implemented by any other electronic component that can implement a voltage stabilizing function, and is not limited to the specific implementation in this embodiment. The charging control circuit 102 in this embodiment is not limited to the specific representation of the power supply voltage stabilizing module 201 and the charging switching control module 202, and may include the above two modules to specifically implement the function of the charging control circuit 102, may only implement the function of the charging control circuit 102 by the charging switching control module 202, or may implement the function of the charging control circuit 102 by any other electronic component capable of detecting whether the rechargeable battery 103 needs to be charged.
The specific structure of the power supply voltage stabilizing module 201 is shown in fig. 3, and includes: a first power supply voltage stabilizing module 301 and a second power supply voltage stabilizing module 302 which are electrically connected in sequence; the first power supply voltage stabilizing module 301 is configured to stabilize a voltage input by the rechargeable battery 103 to obtain a first stabilized output voltage, and in a power supply state, output the first stabilized output voltage to power the printer 104, and output the first stabilized output voltage to the second power supply voltage stabilizing module; the second power supply voltage stabilizing module 302 is configured to stabilize the first voltage-stabilized output voltage input by the first power supply voltage stabilizing module 301 to obtain a second voltage-stabilized output voltage, and output the second voltage-stabilized output voltage to power the baseband management chip 101 in the power supply state.
Wherein, the first regulated output voltage is higher than the voltage input by the rechargeable battery 103.
Note that the first regulated output voltage is higher than the voltage input to the rechargeable battery 103. In one specific implementation, the first power supply voltage stabilizing module 301 may be implemented by a switching dc boost circuit, which implements boosting of the voltage input by the rechargeable battery for supplying power to the printer 104. The second power supply voltage stabilizing module 302 may be implemented by a low dropout linear regulator, which implements conversion of different dc power supply values and ensures that the voltage value input to the baseband management chip 101 is subjected to voltage stabilization, thereby preventing the performance of the baseband management chip 101 from being affected by the fluctuation of the input voltage.
Wherein the charging switching control module 202 is configured to: in the charging state, the baseband management chip 101 is controlled to charge the rechargeable battery 103, and in the power supply state, the rechargeable battery 103 is controlled to supply power to the printer 104 and the baseband management chip 101.
Wherein the charging switching control module 202 is configured to: if the input is determined to be the power supply control signal, the voltage of the second end of the charging switching control module 202 is determined according to the voltage of the control signal output end and a second preset threshold value.
In one specific implementation, the second preset threshold may be set to a voltage drop value between the anode and the cathode of a diode, and the voltage drop of the diode needs to be below 0.3 v. If it is determined that the power supply control signal is input, the voltage at the second terminal of the charging switching control module 202 is equal to the voltage at the control signal output terminal of the charging switching control module 202 minus 0.3 v. At this time, the voltage at the second end of the charging switching control module 202 is different from the calculation method when the charging control signal is input, so as to ensure that the baseband management chip 101 can still normally operate without shutdown when the printer 104 operates.
In this embodiment, in the power supply state, the rechargeable battery 103 supplies power to the printer 104 through the voltage output terminal of the charge control circuit 102, and supplies power to the baseband management chip 101 through the power supply input terminal of the charge control circuit 102. In the charging state, the charging control circuit 102 controls the baseband management chip 101 to charge the rechargeable battery 103 according to a charging control signal input by the microcontroller. The POS machine developed based on the 2G mobile phone platform can be automatically charged, and when the printer works normally, the base band management chip of the POS machine can still work normally, and the use of the POS machine is not influenced.
A second embodiment of the present invention relates to a charging circuit, and is substantially the same as the first embodiment, and is mainly different in that: the baseband management chip 101 includes a charge detection module 502, a power supply input module 501, and an independent power supply input processing module 503.
The specific structure of the baseband management chip 101 is shown in fig. 4, and includes: a charging detection module 502 and a power supply input module 501 which are electrically connected in sequence; the charging detection module 502 is configured to determine whether the rechargeable battery 103 needs to be charged according to the voltage at the charging output end, and generate a charging control signal if it is determined that the voltage at the charging output end is lower than a first preset threshold, and output the charging control signal to the microcontroller 106.
In a specific implementation, the baseband management chip 101 may adopt a baseband chip developed based on a 2G mobile phone platform, where the power supply input module 501 may be a power supply pin of the baseband chip developed based on the 2G mobile phone platform, the charging detection module 502 may be a detection pin of the baseband chip developed based on the 2G mobile phone platform, and the detection pin is also a charging output terminal at the same time, and is used for charging the rechargeable battery 103 in a charging state.
Wherein the charging detection module 502 is configured to: and if the voltage of the charging output end of the baseband management chip 101 is lower than the third preset threshold value, controlling the baseband management chip 101 to shut down.
In one embodiment, the third predetermined threshold may be defined as a hardware shutdown voltage threshold, for example, in practical implementation, the hardware shutdown voltage threshold may be set to 3.2 v. And if the voltage of the detection pin of the baseband chip developed based on the 2G mobile phone platform is lower than the hardware shutdown voltage threshold value, automatically shutting down the baseband chip developed based on the 2G mobile phone platform.
In one specific implementation, the baseband management chip 101 further includes an independent power input processing module 503, where the independent power input processing module 503 is configured to connect to the external power source 105, and convert a voltage provided by the external power source 105 into a current for charging the rechargeable battery 103 in a charging state.
It should be noted that the external power supply 105 is not limited to a specific implementation form, and may be implemented by an external USB interface power supply, or may be implemented by any other electronic device capable of providing power, which is not listed here.
A third embodiment of the present invention relates to a charging circuit, and the embodiment is implemented based on the specific circuit of the first or second embodiment, and the specific circuit diagram is as shown in fig. 5:
the 2G platform baseband chip in the circuit represents the baseband management chip 101 in the first embodiment, the rechargeable battery in the circuit represents the rechargeable battery 103 in the first embodiment, and the printer in the circuit represents the printer 104 in the first embodiment, and a low dropout regulator (LDO), a switching dc Boost circuit (Boost), a switch S1 and a diode D1 in the circuit constitute the charge control circuit 102 in the first embodiment. Wherein, the LDO and the Boost in the circuit constitute the supply voltage stabilization module 201 in the first embodiment, the switching dc Boost circuit (Boost) in the circuit represents the first supply voltage stabilization module 301 in the first embodiment, the LDO in the circuit represents the second supply voltage stabilization module 302 in the first embodiment, and the switch S1 and the diode D1 in the circuit constitute the charging switching control module 202 in the first embodiment. A power supply pin (V-Battery, VBAT) of a 2G platform baseband chip in the circuit represents the power supply input module 501 in the second embodiment, a detection pin (BATSNS) of the 2G platform baseband chip in the circuit represents the charging detection module 502 in the second embodiment, an external power supply input pin (VCHG) of the 2G platform baseband chip in the circuit represents the independent power supply input processing module 503 in the second embodiment, and a USB interface charging in the circuit represents the external power supply 105 in the second embodiment.
It should be noted that the VBAT pin in the 2G platform baseband chip is a power supply pin of the 2G platform baseband chip. The BATSNS pin in the 2G platform baseband chip is a detection pin of the 2G platform baseband chip, the BATSNS pin can be used for detecting the voltage of a rechargeable battery, can also be used as a voltage output pin when the 2G platform baseband chip charges the rechargeable battery, and is also used for detecting whether the 2G platform baseband chip needs to be automatically shut down, if the BATSNS pin voltage of the 2G platform baseband chip is lower than a hardware shutdown voltage threshold value, the 2G platform baseband chip is immediately shut down; the hardware shutdown voltage threshold value represents a third preset threshold value in the second embodiment. The VCHG pin in the 2G platform baseband chip is the external power supply input end of the 2G platform baseband chip and is used for charging the rechargeable battery through the USB interface power supply; and the current of the external power supply is output to the rechargeable battery through the detection pin of the 2G platform baseband chip. The circuit diagram is not shown to include a microcontroller, but in practice, the microcontroller is configured to process a power supply control signal input by the printer and a charge control signal input by the 2G platform baseband chip, and output the power supply control signal or the charge control signal to the switch S1, so as to control the switch S1 to be opened or closed.
In the circuit diagram, the overall working state of the circuit is divided into the following three states according to whether the 2G platform baseband chip is needed to charge the rechargeable battery or not: a general standby state, a charging state, and a printing state.
In a normal standby state, the POS is normally turned on, and the microcontroller controls the switch S1 to be in a closed state, and if the switch S1 is implemented by a MOS transistor, the MOS transistor is in a conductive state, and is in a normal standby operating state. Since the switch S1 is in the closed state, the voltage value of the node 2 marked in the charging circuit is equal to the voltage value of the node 1, i.e., the voltage value of the positive electrode of the rechargeable battery.
When the voltage value of the BATSNS pin of the 2G platform baseband chip is lower than the voltage value of the node 3, namely the output voltage value of the LDO, the 2G platform baseband chip needs to give an alarm to the microcontroller. For example, in actual use, the output voltage value of the LDO is set to 3.5 volts, if the voltage value of the BATSNS pin of the 2G platform baseband chip is lower than 3.5 volts, the 2G platform baseband chip needs to alarm the microcontroller or turn off the output of the LDO, otherwise the diode D1 is turned on, resulting in the complete discharge of the rechargeable battery. The charging circuit is in a charging state at this time.
In a charging state, the microcontroller controls the switch S1 to be in a closed state, the 2G platform baseband chip obtains the voltage of the external USB power supply through the VCHG pin, the 2G platform baseband chip converts the voltage provided by the external power supply into a current, and the converted current is output to the rechargeable battery through the BATSNS pin for charging.
If the user uses the POS machine to collect money, the printer is required to print the certificate. The circuit is now in the print state.
In the printing state, the microcontroller controls the switch S1 to be in the off state, and the voltage of the positive electrode of the rechargeable battery does not need to be detected, but the voltage value of the VBAT pin of the 2G platform baseband chip needs to be detected. Because the diode D1 exists between the BATSNS pin and the VBAT pin, and the switch S1 is in an off state, the voltage value of the BATSNS pin can be detected, and the voltage value of the VBAT pin can be obtained. The voltage value of the BATSNS pin is not lower than the threshold value of the hardware shutdown voltage through the conduction of the diode D1, for example, the threshold value of the hardware shutdown voltage is set to be 3.2V in actual use, the voltage value of the BATSNS pin is larger than 3.2V through the conduction of the D1 diode, and the baseband chip is ensured not to be automatically shut down.
In the printing state, the rechargeable battery supplies power to the printer after boosting the voltage of the rechargeable battery through the Boost, and meanwhile, the rechargeable battery also supplies power to the 2G platform baseband chip after boosting the voltage of the rechargeable battery through the Boost and then performing LDO voltage stabilization.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (8)

1. A charging circuit, comprising: the system comprises a baseband management chip, a charging control circuit, a microcontroller, a rechargeable battery, an external power supply and a printer;
the baseband management chip comprises a voltage input end, a control end, a power supply input end and a charging output end, and the charging control circuit comprises a power supply output end, a voltage output end, a control end, a detection end and a power supply input end;
the voltage input end of the baseband management chip is electrically connected with the external power supply, the power supply input end of the baseband management chip is electrically connected with the power supply output end of the charging control circuit, the charging output end of the baseband management chip is electrically connected with the detection end of the charging control circuit, and the control end of the baseband management chip is electrically connected with the first control input end of the microcontroller;
the power supply input end of the charging control circuit is electrically connected with the rechargeable battery, the voltage output end of the charging control circuit is electrically connected with the voltage input end of the printer, the control end of the charging control circuit is electrically connected with the control output end of the microcontroller, and the second control input end of the microcontroller is electrically connected with the control end of the printer;
the baseband management chip is used for judging whether the rechargeable battery needs to be charged according to the voltage of the charging output end, and generating a charging control signal according to a judgment result, wherein the charging control signal is used for controlling the charging control circuit to be switched to a charging state;
the microcontroller is used for generating a power supply control signal when the printer is detected to be in a working state, and controlling the charging control circuit to be switched to a charging state according to the charging control signal, or controlling the charging control circuit to be switched to a power supply state according to the power supply control signal;
the rechargeable battery is used for supplying power to the printer through the voltage output end of the charging control circuit and supplying power to the baseband management chip through the power supply output end of the charging control circuit;
the charge control circuit includes: the charging switching control module and the power supply voltage stabilizing module;
the charging switching control module comprises a first end, a control signal input end, a control signal output end and a second end, and the power supply voltage stabilizing module comprises a first voltage output end, a second voltage output end, a control signal input end and a voltage input end;
the charging battery is connected in series between the charging switching control module and the power supply voltage stabilizing module;
the first end of the charging switching control module is electrically connected with the rechargeable battery, the control signal input end of the charging switching control module is electrically connected with the control output end of the microcontroller, and the second end of the charging switching control module is electrically connected with the charging output end of the baseband management chip;
a first voltage output end of the power supply voltage stabilizing module is electrically connected with a voltage input end of the printer, a second voltage output end of the power supply voltage stabilizing module is electrically connected with a power supply input end of the baseband management chip, a control signal input end of the power supply voltage stabilizing module is electrically connected with a control signal output end of the charging switching control module, and a voltage input end of the power supply voltage stabilizing module is electrically connected with the rechargeable battery;
the charging switching control module is used for switching to the charging state when the microcontroller inputs the charging control signal and switching to the power supply state when the microcontroller inputs the power supply control signal;
the power supply voltage stabilizing module is used for stabilizing the voltage input by the rechargeable battery to obtain a first voltage stabilizing output voltage, and outputting the first voltage stabilizing output voltage to supply power to the printer in the power supply state; and in the power supply state, performing voltage stabilization on the first voltage-stabilized output voltage to obtain a second voltage-stabilized output voltage, and outputting the second voltage-stabilized output voltage to supply power to the baseband management chip.
2. The charging circuit of claim 1, wherein the baseband management chip comprises: the charging detection module and the power supply input module are electrically connected in sequence;
the charging detection module is used for judging whether the rechargeable battery needs to be charged or not according to the voltage of the charging output end, and if the voltage of the charging output end is lower than a first preset threshold value, the charging detection module generates the charging control signal and outputs the charging control signal to the microcontroller.
3. The charging circuit of claim 1, wherein the charging switching control module is configured to:
and in the charging state, controlling the baseband management chip to charge the rechargeable battery, and in the power supply state, controlling the rechargeable battery to supply power to the printer and the baseband management chip.
4. The charging circuit according to claim 1, wherein the power supply voltage stabilization module comprises a first power supply voltage stabilization module and a second power supply voltage stabilization module which are electrically connected in sequence;
the first power supply voltage stabilizing module is used for stabilizing the voltage input by the rechargeable battery to obtain a first stabilized output voltage, outputting the first stabilized output voltage to supply power to the printer in the power supply state, and outputting the first stabilized output voltage to the second power supply voltage stabilizing module;
and the second power supply voltage stabilizing module is used for stabilizing the first voltage-stabilized output voltage input by the first power supply voltage stabilizing module to obtain a second voltage-stabilized output voltage, and outputting the second voltage-stabilized output voltage to the baseband management chip for power supply in the power supply state.
5. The charging circuit of claim 4, wherein the first regulated output voltage is higher than the voltage of the charging battery input.
6. The charging circuit of claim 1, wherein the charging switching control module is configured to:
and if the power supply control signal is determined to be input, determining the voltage of the second end of the charging switching control module according to the voltage of the control signal output end and a second preset threshold value.
7. The charging circuit of claim 2, wherein the charge detection module is configured to:
and if the voltage of the charging output end of the baseband management chip is lower than a third preset threshold value, controlling the baseband management chip to shut down.
8. The charging circuit of claim 2, wherein the baseband management chip further comprises: the independent power supply is input into the processing module,
and the independent power input processing module is used for connecting an external power supply, converting voltage provided by the external power supply into current and charging the rechargeable battery in a charging state.
CN201811358364.1A 2018-11-15 2018-11-15 Charging circuit Active CN109586363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811358364.1A CN109586363B (en) 2018-11-15 2018-11-15 Charging circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811358364.1A CN109586363B (en) 2018-11-15 2018-11-15 Charging circuit

Publications (2)

Publication Number Publication Date
CN109586363A CN109586363A (en) 2019-04-05
CN109586363B true CN109586363B (en) 2022-06-07

Family

ID=65922698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811358364.1A Active CN109586363B (en) 2018-11-15 2018-11-15 Charging circuit

Country Status (1)

Country Link
CN (1) CN109586363B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114312038B (en) * 2021-04-13 2023-07-07 上海商米科技集团股份有限公司 Power supply control system and method, printing equipment and power supply control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222942A (en) * 2010-04-16 2011-10-19 联芯科技有限公司 Power supply circuit and charging method for electronic equipment
CN202616820U (en) * 2012-05-04 2012-12-19 无锡中星微电子有限公司 Charging management circuit
JP2013020516A (en) * 2011-07-13 2013-01-31 Toshiba Tec Corp Electronic apparatus
CN204145000U (en) * 2014-09-18 2015-02-04 青岛海信智能商用系统有限公司 The adjustable charging circuit of charging current and there is the electronic product of this charging circuit
CN107910909A (en) * 2017-11-01 2018-04-13 福建新大陆支付技术有限公司 A kind of POS electric power systems and its electric quantity managing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5640029B2 (en) * 2012-03-05 2014-12-10 東芝テック株式会社 POS terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222942A (en) * 2010-04-16 2011-10-19 联芯科技有限公司 Power supply circuit and charging method for electronic equipment
JP2013020516A (en) * 2011-07-13 2013-01-31 Toshiba Tec Corp Electronic apparatus
CN202616820U (en) * 2012-05-04 2012-12-19 无锡中星微电子有限公司 Charging management circuit
CN204145000U (en) * 2014-09-18 2015-02-04 青岛海信智能商用系统有限公司 The adjustable charging circuit of charging current and there is the electronic product of this charging circuit
CN107910909A (en) * 2017-11-01 2018-04-13 福建新大陆支付技术有限公司 A kind of POS electric power systems and its electric quantity managing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动POS电源管理设计;余涛;《通讯世界》;20170430;第240-242页 *

Also Published As

Publication number Publication date
CN109586363A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
US9327321B2 (en) Method and apparatus for performing system power management
TWI600245B (en) Power supplying circuit, power supplying system and power supplying method
US9985454B2 (en) Power source device having standby power-cutoff function, and method for controlling same
CN1909314B (en) Electronic trip device with a power supply circuit means, and circuit breaker comprising such device
US20060055386A1 (en) Power factor improving circuit and control circuit for power factor improving circuit
US20140184154A1 (en) Electronic component, power receiving device, and power feeding system
CN110649694A (en) NCSI network card power supply system
KR20080011088A (en) Constant voltage supply circuit
CN109840006B (en) Main control chip power supply device
CN108899991B (en) Automatic power supply switching circuit
CN107436614B (en) Voltage control system
US20050189819A1 (en) Power supply system for supplying power to an electronic apparatus
CN109586363B (en) Charging circuit
CN101187828A (en) Current control in rechargeable electronic devices
CN108683217B (en) Power supply voltage monitoring circuit capable of being turned off
US20230318327A1 (en) Stylus
US11349335B2 (en) Power supplying device
CN102346529A (en) Power supply control circuit
CN214412262U (en) Protection circuit, circuit board and protection system
CN111399617B (en) Power supply control device and electronic apparatus
CN210517858U (en) Terminal power supply circuit and terminal
CN212183174U (en) Charging circuit, auxiliary power supply and operation equipment
CN112018863B (en) Power supply adjusting circuit and power supply device
CN112703653B (en) Charging system and method
CN111600365A (en) Charging circuit, auxiliary power supply and operation equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant