Detailed Description
In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art, that the present invention may be practiced without one or more of these specific details. In other instances, well-known features have not been described in order to avoid obscuring the invention.
It is to be understood that the present invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. In the drawings, the size and relative sizes of layers and regions may be exaggerated for clarity. Like reference numerals refer to like elements throughout.
It will be understood that when an element or layer is referred to as being "on," "adjacent to," "connected to," or "coupled to" other elements or layers, it can be directly on, adjacent to, connected or coupled to the other elements or layers or intervening elements or layers may be present. In contrast, when an element is referred to as being "directly on," "directly adjacent to," "directly connected to" or "directly coupled to" other elements or layers, there are no intervening elements or layers present. It will be understood that, although the terms first, second, third, etc. may be used to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another element, component, region, layer or section. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present invention.
Spatial relational terms such as "under," "below," "under," "above," "over," and the like may be used herein for convenience in describing the relationship of one element or feature to another element or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, then elements or features described as "below" or "beneath" other elements or features would then be oriented "above" the other elements or features. Thus, the exemplary terms "under" and "under" can encompass both an orientation of above and below. The device may be otherwise oriented (rotated 90 degrees or at other orientations) and the spatial descriptors used herein interpreted accordingly.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
In order to provide a thorough understanding of the present invention, a detailed structure will be set forth in the following description in order to explain the present invention. The following detailed description of the preferred embodiments of the invention, however, the invention is capable of other embodiments in addition to those detailed.
To achieve this, the present invention provides a protocol-based wide voltage input wide voltage output power supply, comprising: the system comprises an input interface, a microcontroller and an output interface; a first protocol IC is further arranged between the input interface and the microcontroller, and a second protocol IC is further arranged between the microcontroller and the output interface.
A protocol-based wide-voltage-input wide-voltage-output power supply of the present invention is described in detail with reference to fig. 1, wherein fig. 1 shows a schematic diagram of a power supply framework according to an embodiment of the present invention.
The MCU referred to in the present invention refers to a Micro Controller Unit, a microcontroller, a Micro control Unit, also called a Single Chip Microcomputer (CPU) or a Single Chip Microcomputer, which properly reduces the frequency and specification of a Central Processing Unit (CPU), and integrates peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D conversion, a UART, a PLC, a DMA, and even an LCD driving circuit on a Single Chip to form a Chip-level computer, which performs different combination control for different applications.
The DC-DC referred to herein is a power supply circuit having a voltage conversion function (an IC having a step-down, step-up, or step-up/step-down function).
The LDO referred to in the present invention is a low dropout regulator, which is compared with a conventional linear regulator. The traditional linear voltage stabilizer, such as 78XX series chips, requires that the input voltage is at least 2V-3V higher than the output voltage, otherwise, the traditional linear voltage stabilizer cannot work normally. However, in some cases, such conditions are obviously too harsh, e.g. 5V to 3.3V, and the voltage difference between the input and the output is only 1.7V, which obviously does not satisfy the operating conditions of the conventional linear regulator. An LDO is a linear regulator that uses a transistor or Field Effect Transistor (FET) operating in its linear region to subtract excess voltage from the applied input voltage, producing a regulated output voltage. By droop voltage is meant the minimum value of the difference between the input voltage and the output voltage required by the regulator to maintain the output voltage within 100mV above or below its nominal value. LDO (low dropout) regulators with a positive output voltage typically use a power transistor (also called pass device) as the PNP. This transistor allows saturation so the regulator can have a very low dropout voltage, typically around 200 mV; in contrast, the voltage drop of the conventional linear regulator using the NPN composite power transistor is about 2V. The negative output LDO uses an NPN as its pass device, which operates in a similar mode as the PNP device of the positive output LDO.
More recent developments have used MOS power transistors that provide the lowest drop-out voltage. With the power MOS, the only voltage drop across the voltage regulator is due to the ON resistance of the power supply device load current. This way only a few tens of millivolts will be generated in the voltage drop if the load is small. Low-dropout (LDO) linear regulators have the outstanding advantages of low cost, low noise, and low quiescent current. It also requires few external components and usually only requires one or two bypass capacitors. The output noise is 30 muV, the PSRR is 60dB, the quiescent current is 6 muA (TPS 78001 of TI reaches that Iq is 0.5uA), and the voltage drop is only 100mV (TI is produced by LDO with the number of 0.1 mV). The performance of the LDO linear regulator can reach this level mainly because the regulator is a P-channel MOSFET, while the conventional linear regulator uses a PNP transistor. The P channel MOSFET is driven by voltage and does not need current, so that the current consumed by the device is greatly reduced; on the other hand, in a circuit using a PNP transistor, in order to prevent the PNP transistor from entering a saturation state to lower the output capability, the voltage drop between the input and the output cannot be too low; and the voltage drop across the P-channel MOSFET is approximately equal to the product of the output current and the on-resistance. Since the on-resistance of the MOSFET is small, the voltage drop across it is very low.
If the input voltage and the output voltage are close, the LDO regulator is preferably selected to achieve high efficiency. Therefore, LDO regulators are often used in applications where the lithium ion battery voltage is converted to a 3V output voltage. Although the last ten percent of the energy of the battery is not used, the LDO voltage stabilizer can still ensure that the working time of the battery is longer and the noise is lower. The LDO is a new generation of integrated circuit voltage regulator, and is the biggest difference from the three-terminal voltage regulator in that the LDO is a low-consumption system on chip (SoC). The device can be used for controlling a current main channel, hardware circuits such as an MOSFET (metal oxide semiconductor field effect transistor) with an extremely low on-line on-resistance, a Schottky diode, a sampling resistor, a divider resistor and the like are integrated on a chip, and the device has the functions of overcurrent protection, over-temperature protection, a precision reference source, a differential amplifier, a delayer and the like. PG is a new generation LDO, has functions of self-checking each output state and delaying safe Power supply, and may also be called Power Good, i.e. "Good Power or stable Power". The LDO low dropout regulator mainly comprises a starting circuit, a constant current source bias unit, an enabling circuit, an adjusting element, a reference source, an error amplifier, a feedback resistance network, a protection circuit and the like. The basic working principle is that when the system is powered up, if the enable pin is at high level, the circuit starts, the constant current source circuit provides bias for the whole circuit, the reference source voltage is quickly established, the output continuously rises along with the input, when the output is about to reach the specified value, the output feedback voltage obtained by the feedback network is also close to the reference voltage value, at the moment, the error amplifier amplifies the small error signal between the output feedback voltage and the reference voltage, and then the small error signal is amplified to the output through the adjusting tube, so that negative feedback is formed, the output voltage is ensured to be stabilized on the specified value, and similarly, if the input voltage or the output current changes, the output voltage is kept unchanged by the closed loop. The actual low dropout regulator also has other functions such as load short circuit protection, overvoltage shutoff, overheat shutoff, reverse connection protection and the like.
The Protocol IC is a Protocol IC that can change voltage and current according to the requirement of a transmitting end after a receiving end receives a corresponding signal from the transmitting end based on a specific signal. The protocol of the patent refers in particular to the situation of regulating voltage and current based on the dynamic voltage signals on USBD + and D-to meet the requirement of quick charge.
The scheme shown in fig. 1 comprises an MCU, a DC-DC circuit, 2 protocol ICs, LDO circuits.
Illustratively, optimization is performed on the basis of conventional (voltage adaptive) edge charging and edge discharging for 5V. Transmitting D + and D-signals of an input end to an output end to ensure that the equipment is charged to meet a standard protocol of 5V, wherein the 5V protocol comprises BC1.2, Apple5V/2.4A/2.1A/1A/0.5A, DCP, D +/D-Short Mode per Telecommunication, industrityStandard YD/T1591-2009(Chinese) and the like; for other voltage protocols, their respective protocols may also be used, such as 2.7V charging and its respective protocol, 2.0V charging and its respective protocol.
Illustratively, the protocol BC1.2 defines detection, control and reporting mechanisms for charging of devices through USB ports, which are extensions of the USB2.0 specification, which are applicable to all host and peripheral devices compatible with USB 2.0.
For example, the 5V charger commonly used in APPLE uses USB-a type socket, and there are 4 contact springs in the socket, and the two side of the socket are V + V- (voltage positive and voltage negative) for power supply, and the two middle are D + D- (data positive and data negative) for data transmission. At the moment when the charger is plugged in the mobile phone or other terminals, the mobile phone or other terminals and the data line detect whether the D + D-has the apple identification protocol, if no identification protocol exists, the mobile phone operates in the charging state of 5V0.9A, and only when the apple protocol (apple 2.4A/2.1A/1A/0.5A) is detected, the mobile phone or other terminals are charged at full speed according to 5V2.4A, 5V2A, 5V1A and 5 V0.5A. Unlike the "USB-a" interface, there is another interface "USB-C" for fast charging. The novel double-sided blind-mate physical interface greatly improves the upper limit value of data transmission and power transmission, has a transmission rate of 10Gbps in terms of data, can simply transmit files to a mobile phone in use, can be connected with a display to serve as a signal transmission wire, can be connected with a solid state disk to run at full speed, and the like; the USB-C supports the power transmission requirement of 20V5A, namely 100W, in the aspect of power supply, and can meet the performance requirement of electronic products in the coming years. USB-A performs protocol identification through D + D-, but USB PD uses CC line to communicate, that is, it is necessary for the charger of USB-C to have the function of fast charging.
Illustratively, the DCP protocol, BC1.1, specifies that power supplies, such as wall adapter power supplies and car adapters, do not enumerate and do not require digital communication to initiate charging. DCP can provide up to 1.5A current, identified by short circuits D + and D-, enabling design of DCP "wall adapter power", using USB mini or micro jacks instead of round plugs or self-made connector fixed mounting wires. Such an adapter can be charged using any USB cable (equipped with the correct plug). The charging current ranges from 500mA to 1.5A.
Illustratively, D +/D-Short Mode per telecom, Industry Standard YD/T1591-2009(Chinese) is a charging protocol, ensures that the charging speed is faster, avoids information loss, completely complies with the protocol for charging, and avoids safety accidents.
The function of charging and discharging at the same time is realized when high-pressure input is realized. The high-voltage input is met, and the load is quickly charged at high voltage;
the specific implementation process comprises the following modules:
firstly, the LDO is a power supply circuit for the MCU to work and a data calculation reference circuit;
secondly, the MCU is a control and data processing circuit;
thirdly, the first protocol IC (protocol IC)5 is a receiving end protocol communication IC, and the MCU adjusts the voltage at the input end to a specification required by the design through the information transmitted by the receiving end protocol communication IC, and charges the portable power source itself or adjusts the voltage at the input end to a voltage required by the load according to the information transmitted by the output end, and charges the load while charging;
fourthly, a second protocol IC (protocol IC)6 is a transmitting end protocol communication IC, the MCU adjusts and designs the voltage of an input end into a required specification through the transmitted information, charges the load or adjusts the DC-DC voltage into the voltage required by the load according to the communication information between the MCU and the load, and charges the load;
fifthly, the DC-DC is a power supply circuit, charges the mobile power supply or converts the battery voltage into the voltage required by the equipment, and charges the load;
sixthly, the input interface 3 is an input end interface and is connected with a USB charging device;
seventh, the output interface 4 is an output terminal interface of the mobile power supply and is connected with a load.
The processing circuit MCU is interacted with the input interface 3 through the first protocol IC, is interacted with the DC-DC through three ports, is interacted with the output interface through the second protocol IC, and is respectively connected with the control ends of the first switch 1 and the second switch 2. Wherein, the first switch 1 and the second switch 2 may be transistors, such as: a field effect transistor or a triode. According to the above-mentioned connection relation,
specifically, the operating principle of the circuit module is as follows:
in the first state: when the input interface 3 is connected with the charging equipment but the output interface 4 is not connected with the load:
when the input interface 3 is connected to the charging device, a first protocol ic (protocol ic)5 identifies the D +, D-voltage or other modes of the input interface 3 for communication, and transmits corresponding information to the MCU. And the MCU decodes the information into information such as voltage, current, temperature and the like according to the protocol specification. And charging the user according to the decoding information;
in the second state: when the input interface 3 is not connected with the charging equipment but the output interface 4 is connected with the load state:
when the MCU detects that the input interface 3 has a load inserted, the second protocol ic (protocol ic)6 recognizes the charging requirement by communicating with the load, and then transmits the charging requirement to the MCU. And the MCU decodes the information into the information such as voltage, current and the like required by the equipment according to the protocol specification. And setting output voltage, current and the like of the DC-DC according to the decoding information to supply power to a load;
the third state: under the state that input interface 3 connects the battery charging outfit and output interface 4 connects the load:
when the input interface 3 is connected to the charging device, a first protocol ic (protocol ic)5 performs handshake communication with the charging device through the D +, D-of the input interface 3;
when the MCU detects that the output interface 4 is plugged, the second protocol ic (protocol ic)6 performs handshake communication with the load, and transmits information identifying the charging requirement of the load to the MCU. The MCU decodes the information into voltage, current and other information required by the equipment according to the protocol specification;
the MCU combines the decoded information of the input end with the decoded information of the supply voltage, the current and the like required by the decoded equipment, and the charging equipment adjusts the output voltage/current of the charging equipment by setting the information of a first protocol IC (protocol IC) after the first protocol IC is communicated with the charging equipment, so that the input interface 3 directly supplies power to the load. Further, the MCU controls the first switch 1 to be turned on and the second switch 2 to be turned off.
According to the above description, it can be seen that for the charging and discharging of the common 5V input, the protocol control of the input end and the equipment end is added, so that the charging is more intelligent, conforms to the protocol and is safer;
the functions of wide voltage input and wide voltage output during charging and discharging are increased, so that the charging speed is higher, and the experience is better;
the charging and discharging are carried out simultaneously based on the protocol, the power supply capacity of the power supply end is directly transmitted to the equipment, information loss is avoided, the charging completely complies with the protocol, and safety accidents are avoided;
protocol-based (e.g., QC) wide voltage input, side-charging-side-discharging function of wide voltage output.
The input interface 3 and the MCU have a first protocol ic (protocol ic)5 therebetween, and the first protocol is followed between the two, illustratively, the first protocol is BC1.2, and the MCU and the output interface have a second protocol ic (protocol ic)6 therebetween, illustratively, Apple5V/2.4A/2.1A/1A/0.5A, DCP or D +/D-Short Mode complete, Industry Standard YD/T1591-2009 (chipset).
In other embodiments, the first protocol is Apple5V/2.4A/2.1A/1A/0.5A and the second protocol is BC1.2, DCP or D +/D-Short Mode per Telecommunication, Industry Standard YD/T1591-2009 (Chinese).
Or the first protocol is DCP, and the second protocol is BC1.2, Apple5V/2.4A/2.1A/1A/0.5A or D +/D-Short Mode per Telecommunication, Industry Standard YD/T1591-2009 (Chinese).
Or the first protocol is D +/D-Short Mode per Telecommunication, industrialistry Standard YD/T1591-2009(Chinese), and the second protocol is BC1.2, Apple5V/2.4A/2.1A/1A/0.5A or DCP.
Protocol control of an input end and an equipment end is added, so that charging is more intelligent, the protocol is observed, and the charging is safer; the functions of wide voltage input and wide voltage output during charging and discharging are added, so that the charging speed is higher, and the experience is better; the charging and discharging are carried out simultaneously based on the protocol, the power supply capacity of the power supply end is directly transmitted to the equipment, information loss is avoided, the charging completely complies with the protocol, and safety accidents are avoided.
Thus, there is described a protocol-based wide voltage input wide voltage output power supply comprising: the system comprises an input interface, a microcontroller and an output interface; a first protocol IC is further arranged between the input interface and the microcontroller, and a second protocol IC is further arranged between the microcontroller and the output interface. As shown in fig. 1, wherein the first protocol IC and the second protocol IC include the same protocol, and of course, the first protocol IC and the second protocol IC may also include different protocols, and the protocol is at least one of BC1.2, Apple5V/2.4A/2.1A/1A/0.5A, DCP, D +/D-Short Mode technical communication, as shown in embodiments one to five, the power supply further includes a low dropout regulator, the low dropout regulator is connected to the microcontroller, as shown in LDO in fig. 1, the power supply further includes a power supply circuit, the power supply circuit is connected to a battery, as shown in DC-DC in fig. 1, and is connected to a battery 7, the power supply further includes a first switch and/or a second switch, as shown in first switch 1 and second switch 2 in fig. 1, the first switch 1 is connected with a voltage terminal VIN of an input interface 3 and connected with a voltage terminal VOUT of an output interface 4 as shown in fig. 1, the second switch 2 is electrically connected with a power supply circuit and connected with a voltage terminal of the output interface, the second switch 2 is connected with DC-DC as shown in fig. 1 and connected with the voltage terminal VOUT of the output interface 4, the first protocol IC is connected with the input interface through D + and D-interfaces, the second protocol IC is connected with the output interface through D + and D-interfaces, the first protocol IC5 is connected with the input interface 3 through D + and D-interfaces as shown in fig. 1, and the second protocol IC6 is connected with the output interface 4 through D + and D-interfaces. In particular, as shown in fig. 1, the first switch 1 is connected to the port EN1 of the microcontroller, the second switch is also connected to the port EN2 of the microcontroller, and the power supply circuit DC-DC sends a signal to the microcontroller through the INT and SCL ports and accepts the SDA signal of the microcontroller.
In other embodiments, there may be a case where the second protocol IC6 recognizes the charging requirement and adjusts the output voltage of the output interface 4 through the microcontroller to charge the load when the input interface 3 is not connected to the charging device and the output interface 4 is connected to the load. Preferably, the microcontroller controls the first switch to be turned off and the second switch to be turned on, and controls the DC-DC to adjust the output voltage of the output interface 4. In the embodiment, the protocol control is provided between the output end of the portable power supply and the equipment end, the portable power supply can adjust the output voltage according to the charging requirement of the load, so that the charging is more intelligent, the charging completely complies with the protocol, and the safety accident is avoided.
In other embodiments, when the input interface 3 is connected to the charging device and the output interface 4 is not connected to the load, the microcontroller determines the state and the charging requirement of the battery 7, and the first protocol IC5 handshakes with the charging device to send the charging requirement of the battery 7 to the charging device, so that the charging device adjusts the input voltage of the input interface 3 to charge the battery 7. Preferably, the microcontroller controls the first switch to be turned off and the second switch to be turned off. The input of portable power source and the protocol control that has of battery charging outfit end, portable power source can adjust the output of charger for charging of portable power source is more intelligent, and charges and obeys the agreement completely, avoids the incident to take place.
So far, the explanation and the explanation of the main components of the portable power supply of the present invention are completed, and the complete power supply may also include other components, which are not described in detail herein.
The present invention has been illustrated by the above embodiments, but it should be understood that the above embodiments are for illustrative and descriptive purposes only and are not intended to limit the invention to the scope of the described embodiments. Furthermore, it will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that many variations and modifications may be made in accordance with the teachings of the present invention, which variations and modifications are within the scope of the present invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.