CN107658916B - Prompting circuit and electronic equipment - Google Patents

Prompting circuit and electronic equipment Download PDF

Info

Publication number
CN107658916B
CN107658916B CN201710734703.0A CN201710734703A CN107658916B CN 107658916 B CN107658916 B CN 107658916B CN 201710734703 A CN201710734703 A CN 201710734703A CN 107658916 B CN107658916 B CN 107658916B
Authority
CN
China
Prior art keywords
control unit
output
charging
pin
unit
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
CN201710734703.0A
Other languages
Chinese (zh)
Other versions
CN107658916A (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.)
SHENZHEN KAIDEWANG TECHNOLOGY Co.,Ltd.
Original Assignee
Shenzhen Kaidewang Technology 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 Shenzhen Kaidewang Technology Co ltd filed Critical Shenzhen Kaidewang Technology Co ltd
Priority to CN202011420104.XA priority Critical patent/CN112398207A/en
Priority to CN201710734703.0A priority patent/CN107658916B/en
Publication of CN107658916A publication Critical patent/CN107658916A/en
Application granted granted Critical
Publication of CN107658916B publication Critical patent/CN107658916B/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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • H02J7/0049Detection of fully charged condition

Landscapes

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

Abstract

The invention relates to the technical field of electronics, and discloses a prompt circuit and electronic equipment. In the invention, a prompting circuit is applied to electronic equipment, the prompting circuit determines that a VBUS pin of a USB interface has charging voltage output when a power management chip determines that a first detection end of a control unit detects that an external charger and the USB interface successfully handshake based on a charging protocol, the control unit controls a first output end to output high level, and the prompting unit starts to work; when the second detection end of the control unit detects that the battery is fully charged, the control unit controls the second output end to output high level, and the prompting unit stops working. The prompt circuit and the electronic equipment provided by the embodiment of the invention can make accurate charging prompt according to the actual charging condition, effectively solve the problem of false charging or incapability of making charging prompt, and reduce the cost.

Description

Prompting circuit and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a notification circuit and an electronic device.
Background
With the development of electronic technology, various electronic devices, such as mobile phones, tablets, etc., have increasingly powerful functions and are occupying increasingly important positions in people's life and work. In present electronic equipment, the designer is in order to promote user's use experience, satisfies the user demand, can be equipped with the pilot lamp that charges for electronic equipment usually to control the bright of pilot lamp that charges and go out by driver chip, thereby there is the charger to insert electronic equipment after, the user can confirm the present charged state of electronic equipment according to the pilot lamp that charges.
However, the inventors found that at least the following problems exist in the prior art: use driver chip to control the bright cost of going out of charge indicator too high, economical and practical inadequately, when electronic equipment was in the precharge (battery voltage is low excessively, if be less than 2.8V, or when the electric quantity of battery was used up completely and can't start, the charger was the process that electronic equipment charges), because the inside electric quantity of battery can't satisfy system consumption and screen consumption, charge indicator can't work, consequently can cause the phenomenon that can't charge for the user, influence user's experience.
In addition, the inventors have also found that: because the charger is diversified in the current market, when a user charges by adopting the charger unmatched with the electronic equipment, the charger unmatched with the electronic equipment can not complete the charge protocol handshake with the electronic equipment, namely the charger can not supply power to the electronic equipment, but because the charge indicator is connected with a power supply VBUS pin of a USB (Universal Serial Bus) interface, the voltage provided by the charger can be directly acquired, so the charge indicator can be lightened, the false phenomenon of charging can be caused to the user, the user thinks that the charger supplies power to the electronic equipment, and the experience of the user is seriously influenced.
Disclosure of Invention
The embodiment of the invention aims to provide a prompting circuit and electronic equipment, which can make an accurate charging prompt according to the actual charging condition, effectively solve the problem of false charging or incapability of making the charging prompt and reduce the cost.
To solve the above technical problem, an embodiment of the present invention provides a notification circuit, which is applied to an electronic device, and includes: the device comprises a Universal Serial Bus (USB) interface, a charging chip, a battery, a power management chip, a switching unit, a control unit and a prompting unit; the charging chip and the power management chip are respectively connected with the USB interface and the battery; the switching unit is provided with a first input end, a second input end, a control end and an output end; the first input end is connected with a power supply VBUS pin of the USB interface, the second input end is connected with the output end of the prompt unit, the control end is connected with the second output end of the control unit, and the output end is grounded; the control unit is provided with an input end, a first detection end, a second detection end, a first communication end, a second communication end, a first output end and a second output end; the input end of the power management chip is connected with the output end of the power management chip, the first detection end is connected with a positive data D + terminal and a negative data D-terminal of the USB interface, the second detection end is connected with an access identification pin and a temperature pin of the battery, the first communication end is connected with the communication end of the charging chip, the second communication end is connected with the communication end of the power management chip, and the first output end is connected with the input end of the prompting unit; when the power management chip determines that the VBUS pin of the USB interface has charging voltage output and the first detection end of the control unit detects that the external charger and the USB interface successfully handshake based on the charging protocol, the control unit controls the first output end to output high level and prompts the unit to start working; when the second detection end of the control unit detects that the battery is fully charged, the control unit controls the second output end to output high level, and the prompting unit stops working.
In order to solve the above technical problem, an embodiment of the present invention further provides an electronic device, including the cue circuit provided in any embodiment of the present invention.
Compared with the prior art, the embodiment of the invention provides the prompt circuit capable of accurately monitoring the charging state of the electronic equipment, the voltage output is detected on the VBUS pin of the USB interface by the power management chip, when the charger is inserted, the control unit is informed through the communication line between the control unit and the charger, so that the control unit can timely detect whether the handshake between the charger and the electronic equipment is successful based on the charging protocol, and when the handshake is successful, the first output end of the control unit is pulled up, thereby enabling the first output end to output high level to the prompting unit and flow into the switching unit, and the switching unit is arranged to work when the first input end and the second input end both input high level, and the current flowing in enters the ground through the grounding end of the switching unit, so that the line where the prompting unit is located can form a complete loop and start to work. In addition, when full charge, through the second output that draws high the control unit for the tip unit stop work, thereby make the tip unit can make accurate suggestion according to the actual charging situation, effectively solved the problem of pseudo-charging or can't make the suggestion of charging, and owing to need not additionally to increase the drive chip of control tip unit in whole suggestion circuit, directly adopt the inside control unit originally of electronic equipment, therefore also reached the purpose that reduces the preparation cost.
In addition, the control unit is a processor; a detection end of a charging protocol module of the processor is used as a first detection end of the control unit, a detection end of an analog-to-digital conversion module of the processor is used as a second detection end of the control unit, a first general input/output (GPIO) pin of the processor is used as a first output end of the control unit, and a second GPIO pin of the processor is used as a second output end of the control unit; the D + terminal in the detection end of the charging protocol module is connected with the D + terminal of the USB interface, the D-terminal in the detection end of the charging protocol module is connected with the D-terminal of the USB interface, and the output end of the charging protocol module is connected with the first GPIO pin; an access identification pin in the detection end of the analog-to-digital conversion module is connected with an access identification pin of the battery, and a temperature pin in the detection end of the analog-to-digital conversion module is connected with a temperature pin of the battery; the first GPIO pin is connected with the input end of the prompting unit, and the second GPIO pin is connected with the control end of the switching unit. In the invention, the processor in the electronic equipment is directly selected as the control unit, the detection of the charging protocol and the current state of the battery is realized by each detection module of the processor, and then the control of the prompting unit is realized through different GPIO pins, so that the processing effect is ensured, and the integration cost is also saved.
In addition, the switching unit includes a first switch, a second switch, a first voltage dividing resistor and a second voltage dividing resistor; the first end of the first voltage-dividing resistor is used as the first input end of the switching unit and connected with a VBUS pin of the USB interface, and the second end of the first voltage-dividing resistor is connected with the first end of the second voltage-dividing resistor in series and then connected with the input end of the first switch and the control end of the second switch; the control end of the first switch is used as the control end of the switching unit and is connected with the second output end of the control unit, and the input end of the second switch is used as the second input end of the switching unit and is connected with the output end of the prompting unit; the second end of the second voltage-dividing resistor, the output end of the first switch and the output end of the second switch are connected and are used as the output end of the switching unit to be grounded. Through set up two independent switches in the switching unit and manage the operation of control suggestion unit alone to after the protocol that charges is shaken hands successfully, just control the work of suggestion unit when the first output of the control unit outputs the high level, after being full of the electricity, when the second output of the control unit outputs the high level, suggestion unit stop work, thereby can make accurate suggestion according to the actual charging condition, effectively solved the problem of pseudo-charging or can't make the suggestion of charging.
In addition, the first switch and the second switch are both PNP type transistors. Through selecting when base and penetrating electrode all input for the high level, just PNP type transistor of work to can realize through two PNP type transistors the accurate control to the suggestion unit like the charge indicator, make the suggestion unit can make accurate suggestion according to the actual charging condition, effectively solve the problem of false charging or can't make the suggestion of charging.
In addition, the first switch and the second switch are both NMOS tubes. By selecting the NMOS tube with better processing effect and performance, the prompting unit can prompt more accurately.
In addition, the first communication end of the control unit is communicated with the communication end of the charging chip through a bidirectional two-wire system synchronous serial bus. The communication connection between the charging chip and the control unit is realized by adopting a bidirectional two-wire system synchronous serial bus, so that the data synchronization and the clock synchronization in the communication process can be ensured, and the accuracy and the real-time performance are further ensured.
In addition, the second communication end of the control unit is communicated with the communication end of the power management chip through a serial peripheral bus. The communication connection between the control unit and the power management chip is realized by adopting the serial peripheral bus which has high data transmission speed, is synchronous and occupies fewer chip pins, so that the pins of the chip are greatly saved, the layout space of a flexible circuit board in the electronic equipment is greatly saved, and the prepared electronic equipment is lighter and thinner.
In addition, the prompting unit is a light emitting diode. The whole circuit is more energy-saving and environment-friendly by selecting the light-emitting diode as the prompt unit, and the light and thin electronic equipment can be ensured to be manufactured as far as possible due to the small size of the light-emitting diode.
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 schematic diagram of a hinting circuit in accordance with a first embodiment of the invention;
fig. 2 is a schematic diagram of a cue circuit according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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 present invention relates to a cue circuit, and the specific structure is as shown in fig. 1.
The alert circuit shown in fig. 1 is mainly applied to electronic devices, such as smart phones, tablet computers, personal digital assistants, wearable electronic devices, and the like. Specifically, the prompting circuit related to fig. 1 specifically includes a USB (Universal Serial Bus) interface 101, a charging IC (i.e., charging chip) 102, a battery 103, a PMIC (Power Management IC) 104, a switching unit 105, a control unit 106, and a prompting unit 107.
Specifically, the USB interface 101 mainly includes a VBUS pin, a D + terminal, a D-terminal, and a GND (ground) pin, the charging IC 102 mainly includes a charging terminal (VBUS pin in the charging IC 102 in fig. 1), a power supply terminal, a ground terminal (GND pin in the charging IC 102 in fig. 1), and a communication terminal, the battery 103 mainly includes a temperature pin, an access identification pin (ID pin in fig. 1), a positive tab (power supply pin VBAT in fig. 1), and a negative tab (usually, the negative tab is grounded, and therefore, is denoted by GND in fig. 1), and the PMIC104 mainly includes a detection terminal, an input terminal, an output terminal, and a communication terminal.
The switching unit 105 has a first input terminal, a second input terminal, a control terminal, and an output terminal, and the control unit 106 has an input terminal, a first detection terminal, a second detection terminal, a first communication terminal, a second communication terminal, a first output terminal, and a second output terminal.
The VBUS pin of the USB interface 101 is connected to the VBUS pin of the charging IC 102 and the detection terminal of the PMIC104, so that when a charger is plugged into the USB interface 101, the PMIC104 can timely know whether the VBUS pin of the USB interface 101 has voltage output, and the charging IC 102 can directly obtain the voltage provided by the charger through the VBUS pin and charge the battery 103 through the power supply terminal connected to the VBAT pin of the battery 103.
In addition, in order to enable the prompting unit 107 to make accurate prompts according to actual situations, the first input terminal of the switching unit 105 needs to be connected to the VBUS pin of the USB interface 101, the second input terminal of the switching unit 105 needs to be connected to the output terminal of the prompting unit 107, and the control terminal of the switching unit 105 needs to be connected to the second output terminal of the control unit 106, so that after a charger is plugged into the USB interface 101, the USB interface 101 can provide a high level for the switching unit 105 through the VBUS pin. Moreover, the output end of the switching unit 105 needs to be grounded, so that the prompting circuit can form a complete loop to work normally.
In order to ensure that the control unit 106 can control the whole prompting circuit, the input terminal of the control unit 106 needs to be connected to the output terminal of the PMIC104, so as to obtain the operating voltage from the PMIC 104.
In addition, a first detection terminal of the control unit 106 needs to be connected to the D + terminal and the D-terminal of the USB interface 101, a second detection terminal of the control unit 106 is connected to the ID pin and the temperature pin of the battery 103, a first communication terminal of the control unit 106 is connected to the communication terminal of the charging IC 102, a second communication terminal of the control unit 106 is connected to the communication terminal of the PMIC104, and a first output terminal of the control unit 106 is connected to the input terminal of the prompt unit 107.
It is easy to find out from the above description that, since the first detection end of the control unit 106 is connected to the D + terminal and the D-terminal of the USB interface 101, when a charger is inserted into the USB interface 101, it can be determined whether the handshake between the charger and the electronic device is successful based on the charging protocol, and in the whole charging process, the control unit 106 can read the information of the ID pin and the temperature pin of the battery 103 through the second detection end, thereby knowing the charging condition of the battery 103 in real time, and determining whether to control the second output end to output a high level according to the current charging condition of the battery 103.
It should be noted that, in practical application, the PMIC104 specifically detects a voltage on a VBUS pin of the USB interface 101 through an Analog-to-digital converter (ADC) pin or a module, and an output terminal of the PMIC104 connected to an input terminal of the control unit 106 is specifically an output terminal of a power supply module therein, and an input terminal of the power supply module is connected to a VBAT pin of the battery 103, so as to provide a working voltage for the control unit 106 to normally work for the control unit 106.
In addition, in order to ensure that the charging cable part can form a complete loop to really achieve the effect of charging the battery 103, the USB interface 101, the charging IC 102 and the GND pin of the battery 103 need to be grounded.
After the connection of the whole prompting circuit is completed, if a charger is inserted into the USB interface 101, the PMIC104 detects whether a charging voltage capable of charging the battery 103, such as a 5V voltage, is present on the VBUS pin of the USB interface 101 through the ADC pin, if it is determined that the VBUS pin of the USB interface 101 has the 5V voltage output, the PMIC informs the control unit 106 through the communication terminal, the control unit 106 detects whether the external charger and the electronic device have successfully handshake based on the charging protocol through the first detection terminal, if the handshake succeeds, it is indicated that the currently inserted charger is matched with the electronic device, and the battery 103 in the electronic device can be charged, at this time, the control unit 106 controls the first output terminal to output a high level to the prompting unit 107, the high level enters the second input terminal of the switching unit 105 through the prompting unit 107, and the switching unit 105, when the first input terminal and the second input terminal are both high voltage, and is conducted and grounded through the output end to form a complete loop, and the prompting unit 107 works and gives a prompt to inform a user that the electronic equipment is charging.
When the second detection terminal of the control unit 106 detects that the battery 103 is fully charged, the control unit 106 controls the second output terminal to output a high level, and at this time, the control terminal and the first input terminal of the switching unit 105 are at a high level, and the prompting unit 107 stops working.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, the prompt circuit that this embodiment provided, there is voltage output on the VBUS pin that power management chip detected the USB interface, when inserting the charger, inform the control unit through the communication line who is connected with the control unit, make the control unit can in time detect whether it is successful to handshake based on the charging protocol between charger and the electronic equipment, and when the handshake is successful, through the first output that draws high the control unit, thereby make the first output can output high level to the prompt unit, and flow into the switch unit, just work when first input and second input all input high level through setting up the switch unit, and the electric current that flows in goes into ground through the earthing terminal of switch unit, make the circuit at prompt unit place can form complete return circuit, thereby the prompt unit begins to work. In addition, when full charge, through the second output of drawing high the control unit for the tip unit stop work, thereby make the tip unit can make accurate suggestion according to the actual charging situation, effectively solved the problem of false charging or can't make the suggestion of charging.
A second embodiment of the present invention relates to a cue circuit. In the present embodiment, the control unit 106 is implemented by a processor (CPU), and the switching unit 105 is specifically composed of a first switch Q1, a second switch Q2, a first voltage-dividing resistor R1, and a second voltage-dividing resistor R2, and is specifically configured as shown in fig. 2.
Specifically, in this embodiment, the detection terminal of the charging protocol module of the processor 106 is used as the first detection terminal of the control unit 106, the detection terminal of the ADC module of the processor 106 is used as the second detection terminal of the control unit 106, the pin GPIO1 of the processor 106 is used as the first output terminal of the control unit 106, and the pin GPIO2 of the processor 106 is used as the second output terminal of the control unit 106. The first terminal of the R1 is connected to the VBUS pin of the USB interface 101 as the first input terminal of the switching unit 105, and the second terminal of the R1 is connected in series with the first terminal of the R2 and then connected to the input terminal of the Q1 and the control terminal of the Q2, respectively.
The D + terminal in the detection end of the charging protocol module is connected with the D + terminal of the USB interface 101, the D-terminal in the detection end of the charging protocol module is connected with the D-terminal of the USB interface 101, and the output end of the charging protocol module is connected with the GPIO1 pin. An ID pin in a detection end of the ADC module is connected with an ID pin of the battery 103, and a temperature pin in the detection end of the ADC module is connected with a temperature pin of the battery 103. The pin of GPIO1 is connected to the input terminal of the prompt unit 107, and the pin of GPIO2 is connected to the control terminal of the switch unit 105.
The control terminal of the Q1 is connected to the GPIO2 pin of the processor as the control terminal of the switching unit 105, and the input terminal of the Q2 is connected to the output terminal of the prompt unit 107 as the second input terminal of the switching unit 105. The second terminal of R2, the output terminal of Q1, and the output terminal of Q2 are connected to ground as the output terminal of the switching unit 105.
It should be noted that, since the switching unit 105 needs to cooperate with the processor 106 to control the operation of the prompting unit 107, and in order to enable the prompting unit 107 to operate only during the charging process and stop operating after the battery is fully charged, the Q1 and the Q2 in the switching unit 105 need to select an element, specifically, a PNP transistor or an NMOS transistor, which operates when the first input terminal and the second input terminal are both at a high level, for understanding, in this embodiment, taking the first switch Q1 and the second switch Q2 as NMOS transistors as an example, specific description is made:
as shown in fig. 2, the drain of Q2 is connected to the output terminal of the prompting unit 107, the gate of Q2 is connected to the second end of R1, the drain of Q1 and the first end of R2, the source of Q2 is grounded, after the high level provided by the VBUS pin of the USB interface 101 is divided by R1 and R2, the divided high level is respectively input to the gate of Q2 and the drain of Q1, at this time, if the output of the GPIO1 pin is high level, Q2 is turned on to operate under the condition that both the gate and the drain are high voltage, and the current provided by the GPIO1 pin is finally grounded through the drains of the prompting units 107 and Q2 and then through the source of Q2, so as to form a complete loop, and thus the prompting unit 107 operates to remind the user that the electronic device is being charged.
The gate of the Q1 is connected to the GPIO2 pin of the processor 106, when the processor 106 detects that the battery 103 is fully charged through the ADC module, the GPIO2 pin is pulled high, so that the GPIO2 pin outputs a high level, the Q1 is turned on to operate when both the gate and the drain are at a high level, and the current flowing through the pin goes to ground through the source of the Q1. Since the drain of Q1 and the gate of Q2 are connected together, after Q1 is turned on, the gate of Q2 is pulled low, i.e., the gate input of Q2 is at low level, and Q2 stops working, in this case, the circuit where the prompting unit 107 is located cannot form a complete loop, and therefore, the prompting unit 107 stops working.
It should be noted that, in order to ensure that data synchronization and clock synchronization can be achieved in the communication between the processor 106 and the charging IC 102, so as to perform better communication, a bidirectional two-wire system synchronous serial bus (I2C bus for short) is selected to communicate the first communication end of the processor 106 with the communication end of the charging IC 102 in this embodiment.
In addition, in order to save the layout space of the flexible circuit board in the electronic device, and thus make the prepared electronic device lighter and thinner, in this embodiment, a serial peripheral bus (SPI bus for short) that has high data transmission efficiency and can ensure data synchronization is used to communicate the second communication terminal of the processor 106 with the communication terminal of the PMIC 104.
In addition, since the prompting circuit in this embodiment is mainly used for the electronic device to make an accurate prompt to the user according to the actual charging condition, in order to reduce the power consumption and achieve the purpose of prompting the user, the light emitting diode is selected as the prompting unit 107 in this embodiment, but in practical application, the prompting unit 107 is not limited to the light emitting diode, and a developer may select other suitable elements as the prompting unit according to the actual application scenario of the electronic device and the user requirement, which is not limited herein.
Compared with the prior art, the prompt circuit that provides among this embodiment, through set up two independent switches in the switching unit, like PNP type transistor or NMOS pipe, by two independent switches management and control prompt unit alone, specifically be emitting diode, only export the work of high level control charge pilot lamp after shaking hands successfully based on the protocol of charging between charger and electronic equipment to can make accurate suggestion according to the actual charging situation, effectively solve the problem of pseudo-charging or can't make the suggestion of charging.
A third embodiment of the present invention relates to an electronic device including the presentation circuit provided in any of the embodiments of the present invention. The electronic device may be a smartphone, tablet, personal digital assistant, wearable electronic device, or the like.
For convenience of understanding, taking the prompting circuit in the second embodiment as an example, after the electronic device is plugged into the charger, the power management chip detects whether a voltage is present on the VBUS pin of the USB interface through the ADC module, and if the voltage is detected, the power management chip communicates with the processor through the SPI to notify the processor that a charging device is currently plugged into the processor. After obtaining the signal transmitted by the power management chip, the processor performs charging handshake through a D + terminal and a D-terminal in the charging protocol module, and outputs high level through a GPIO1 pin after the handshake succeeds. Therefore, current output by the pin GPIO1 can flow into the drain electrode of the second NMOS tube Q2 through the charging indicator lamp, meanwhile, high level output on the VBUS pin of the USB interface is input into the grid electrode of the Q2 after passing through the two voltage division resistors, so that the Q2 enters a working state, the current flows through the charging indicator lamp and the drain electrode of the Q2 from the pin GPIO1, and finally, the source electrode of the Q2 is grounded to form a complete loop, the charging indicator lamp is lightened, and the electronic device of a user is reminded of charging.
When the electronic device is fully charged, the gate of the first NMOS transistor Q1 is pulled high by the pin GPIO2 of the processor, and since the drain of Q1 obtains the high level provided by the VBUS pin of the USB interface through two voltage dividing resistors, the Q1 enters a working state, and since the source of Q1 is connected to the ground after being connected to the voltage dividing resistor R2, the voltage of the drain is pulled low, and the gate of Q2 is connected to the drain of Q1, the gate of Q2 is pulled low, at this time, the Q2 cannot work, and the line where the charging indicator lamp is located cannot form a loop, so that the charging indicator lamp stops working, and goes out, thereby achieving the purpose of reminding the user that the electronic device is fully charged.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing 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 (9)

1. A cue circuit applied to an electronic device comprises: the device comprises a Universal Serial Bus (USB) interface, a charging chip, a battery and a power management chip; the charging chip and the power management chip are respectively connected with the USB interface and the battery; characterized in that, the cue circuit further comprises: the device comprises a switching unit, a control unit and a prompting unit;
the switching unit is provided with a first input end, a second input end, a control end and an output end; the first input end is connected with a power supply VBUS pin of the USB interface, the second input end is connected with the output end of the prompt unit, the control end is connected with the second output end of the control unit, and the output end of the switching unit is grounded;
the control unit is provided with an input end, a first detection end, a second detection end, a first communication end, a second communication end, a first output end and a second output end; the input end is connected with the output end of the power management chip, the first detection end is connected with a positive data D + terminal and a negative data D-terminal of the USB interface, the second detection end is connected with an access identification pin and a temperature pin of the battery, the first communication end is connected with the communication end of the charging chip, the second communication end is connected with the communication end of the power management chip, and the first output end is connected with the input end of the prompting unit;
when the power management chip determines that a charging voltage output exists at a VBUS pin of the USB interface and a first detection end of the control unit detects that a handshake between an external charger and the USB interface based on a charging protocol is successful, the control unit controls the first output end to output a high level, and the prompt unit starts to work;
when the second detection end of the control unit detects that the battery is fully charged, the control unit controls the second output end to output high level, and the prompt unit stops working.
2. The hint circuit of claim 1, wherein the control unit is a processor;
a detection end of a charging protocol module of the processor is used as a first detection end of the control unit, a detection end of an analog-to-digital conversion module of the processor is used as a second detection end of the control unit, a first general purpose input/output (GPIO) pin of the processor is used as a first output end of the control unit, and a second GPIO pin of the processor is used as a second output end of the control unit;
a D + terminal in a detection end of the charging protocol module is connected with a D + terminal of the USB interface, a D-terminal in the detection end of the charging protocol module is connected with a D-terminal of the USB interface, and an output end of the charging protocol module is connected with the first general purpose input/output (GPIO) pin;
an access identification pin in a detection end of the analog-to-digital conversion module is connected with an access identification pin of the battery, and a temperature pin in the detection end of the analog-to-digital conversion module is connected with a temperature pin of the battery;
the first general purpose input/output GPIO pin is connected with the input end of the prompting unit, and the second GPIO pin is connected with the control end of the switching unit.
3. The alert circuit according to claim 1 or 2, wherein the switching unit includes a first switch, a second switch, a first voltage dividing resistor, and a second voltage dividing resistor;
a first end of the first voltage-dividing resistor is connected to a VBUS pin of the USB interface as a first input end of the switching unit, and a second end of the first voltage-dividing resistor is connected to a control end of the second switch after being connected in series with the first end of the second voltage-dividing resistor;
the control end of the first switch is used as the control end of the switching unit and is connected with the second output end of the control unit, and the input end of the second switch is used as the second input end of the switching unit and is connected with the output end of the prompting unit;
the second end of the second voltage-dividing resistor, the output end of the first switch and the output end of the second switch are connected and used as the output end of the switching unit to be grounded.
4. The cue circuit of claim 3 wherein the first switch and the second switch are both PNP type transistors.
5. The cue circuit of claim 3 wherein said first switch and said second switch are both NMOS transistors.
6. The prompt circuit of claim 4 or 5, wherein the first communication terminal of the control unit is in communication with the communication terminal of the charging chip via a bidirectional two-wire synchronous serial bus.
7. The prompt circuit of claim 4 or 5, wherein the second communication terminal of the control unit is in communication with the communication terminal of the power management chip via a serial peripheral bus.
8. A prompting circuit according to claim 4 or 5, characterized in that the prompting unit is a light emitting diode.
9. An electronic device comprising the alert circuit of any of claims 1 to 8.
CN201710734703.0A 2017-08-24 2017-08-24 Prompting circuit and electronic equipment Active CN107658916B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011420104.XA CN112398207A (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment
CN201710734703.0A CN107658916B (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710734703.0A CN107658916B (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202011420104.XA Division CN112398207A (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN107658916A CN107658916A (en) 2018-02-02
CN107658916B true CN107658916B (en) 2021-02-09

Family

ID=61128649

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011420104.XA Withdrawn CN112398207A (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment
CN201710734703.0A Active CN107658916B (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011420104.XA Withdrawn CN112398207A (en) 2017-08-24 2017-08-24 Prompting circuit and electronic equipment

Country Status (1)

Country Link
CN (2) CN112398207A (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165173B (en) * 2018-07-26 2020-07-07 维沃移动通信有限公司 Handshake processing method and mobile terminal
CN110881698B (en) * 2018-08-21 2022-07-12 湖南中烟工业有限责任公司 Split type low-temperature smoking set charging detection control method
CN108964215B (en) * 2018-09-25 2024-04-12 宁波公牛数码科技有限公司 Charger
CN110867068B (en) * 2019-11-21 2021-05-07 重庆川宏电子有限公司 Contact charging control method for wearable equipment
CN111478411B (en) * 2020-06-01 2021-11-12 上海闻泰电子科技有限公司 Charging voltage prompting method and electronic equipment
CN112769191B (en) * 2021-01-21 2023-03-21 维沃移动通信有限公司 Voltage conversion device
CN114498804B (en) * 2021-07-26 2023-03-14 荣耀终端有限公司 Electronic equipment and control circuit for starting up or waking up system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137356B (en) * 2015-08-20 2019-10-11 小米科技有限责任公司 Detect the method and device of charged state
CN106300501B (en) * 2016-07-26 2019-02-12 Oppo广东移动通信有限公司 A kind of adapter recognition methods and intelligent mobile terminal

Also Published As

Publication number Publication date
CN107658916A (en) 2018-02-02
CN112398207A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN107658916B (en) Prompting circuit and electronic equipment
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
CN110829523B (en) Electronic equipment and reverse charging method
CN102055223B (en) USB special charger recognition circuit
CN106571657B (en) Terminal, converter, and connection conversion system and method
US20100052620A1 (en) Battery charger ic including built-in usb detection
US20160006287A1 (en) Mobile power source with a single interface, a bluetooth keyboard and a protective sleeve
US9110651B2 (en) Electronic device for detecting consumption of power
US20120331312A1 (en) Usb charging circuit for a computer
JP2012205366A (en) Input/output circuit
JP2012205007A (en) Input/output circuit
US8970175B2 (en) Charging circuit employing a southbridge microchip to control charging when the electronic apparatus is shut down
CN109413532A (en) A kind of charging bluetooth earphone circuit and bluetooth headset
WO2016056819A1 (en) Electronic device and method for charging and discharging in electronic device
CN116028391B (en) Electronic device, peripheral device, and single-wire communication system
CN108808788B (en) Miniaturized B-ultrasonic single-chip microcomputer control device and system thereof
CN108631377B (en) Power-on control circuit and mobile power supply device using same
CN107086634B (en) Vehicle-mounted charging mode control method and device
CN211266569U (en) Main and auxiliary battery switching circuit for intelligent module and terminal comprising same
CN101414209B (en) Memory card power supply device and memory card access apparatus
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank
CN114720855A (en) Portable intelligent FPC winding displacement tester
CN215734036U (en) Circuit and terminal equipment of automatic start of electricity
CN209881460U (en) Charging indicating circuit and mobile terminal
CN104009521A (en) Battery electric quantity detecting and displaying device

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
TA01 Transfer of patent application right

Effective date of registration: 20200515

Address after: 750021 No.2 Shuangyong street, Xixia District, Yinchuan City, Ningxia Hui Autonomous Region

Applicant after: Zhao Chengzhi

Address before: 201506, Shanghai, Jinshan District Ting Wei Road No. 4, building 1309, room 6558

Applicant before: SHANGHAI WIND TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210120

Address after: No. 201, No. 1, Shankeng 1st Road, Shanxia community, Pinghu street, Shenzhen, Guangdong 518000

Applicant after: SHENZHEN KAIDEWANG TECHNOLOGY Co.,Ltd.

Address before: 750021 No.2 Shuangyong street, Xixia District, Yinchuan City, Ningxia Hui Autonomous Region

Applicant before: Zhao Chengzhi

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant