USB port control circuit and electronic equipment
By designing a USB port control circuit and using the processor CPU or controller EC to control the USB power switch, the problem of uncontrollable USB interface power supply in the prior art is solved, and the flexibility of selecting the USB interface power supply without turning on is realized, improving user selectivity and cost-effectiveness.
Patent Information
- Application Number
- CN202510061933.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-27
AI Technical Summary
After unplugging the adapter, the power supply solution of the existing USB interface cannot control whether the USB interface is powered on for the first time, and cannot meet the needs of customers to use the laptop USB interface to charge without turning on the power.
A USB port control circuit is designed, including a processor CPU, controller EC, USB power supply and USB power switch. The USB power switch is controlled by the processor CPU or controller EC output high level to realize the on-off control of USB power supply.
It realizes that after plugging the adapter on the laptop, it can flexibly choose whether to power the USB interface, which meets the needs of customers to use the USB interface to charge without turning on the computer, and improves user selectivity and cost-effectiveness.
Smart Images

Figure CN120045045A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and particularly relates to a USB port control circuit and an electronic device. Background Art
[0002] The power supply scheme of the USB interface on the market is generally controlled by the BIOS through the south bridge alone. After unplugging the adapter, the power supply of the USB interface cannot be controlled during the first power-on.
[0003] In order to enable the customer to decide whether to supply power to the USB interface after connecting the adapter according to their own needs. If the customer needs power supply, it can meet other USB power supply requirements such as the customer being able to charge the laptop's USB interface without turning on the machine. Therefore, there is an urgent need for a circuit that can enable the laptop to select whether to supply power to the USB interface after plugging in the adapter. Summary of the Invention
[0004] In view of the above technical problems, the present invention provides a USB port control circuit and an electronic device, which can enable the laptop to select whether to supply power to the USB interface after plugging in the adapter.
[0005] The first embodiment of the present invention provides a USB port control circuit, which includes a processor CPU, a controller EC, a USB power supply, and a USB power switch. The processor CPU and the controller EC are respectively electrically connected to the USB power switch. The USB power switch is connected to the USB power supply. The processor CPU or the controller EC outputs a high level to control the USB power switch, thereby controlling the on / off of the USB power supply.
[0006] Optionally, the USB power switch is an RT9742CGJ5 chip.
[0007] Optionally, the circuit further includes a logic gate circuit. The processor CPU and the controller EC are respectively connected to one end of the logic gate circuit. The other end of the logic gate circuit is connected to the USB power switch. The processor CPU or the controller EC outputs a high level to the logic gate circuit, and after being inverted by the logic gate circuit, a low level is output to control the USB power switch.
[0008] Optionally, the logic gate circuit includes MOS transistor Q4456, MOS transistor Q4455, and MOS transistor Q4457. The controller EC is connected to the G pole of MOS transistor Q4456. The D pole of MOS transistor Q4456 is connected to the G pole of MOS transistor Q4455. The D pole of MOS transistor Q4455 is connected to the fourth pin of the USB power switch. The D pole of MOS transistor Q4456 is also connected to the D pole of MOS transistor Q4457. The G pole of MOS transistor Q4457 is respectively connected to the IO ports of the processor CPU and the controller EC.
[0009] Optionally, the circuit further includes a 3.3V power supply, resistor R11487, resistor R11490, resistor R11491, and resistor R11524. The controller EC is connected to the G pole of MOS transistor Q4456 through resistor R11490. The D pole of MOS transistor Q4456 is respectively connected to one end of resistor R11487 and the G pole of MOS transistor Q4455. The other end of resistor R11487 is connected to the 3.3V power supply. The D pole of MOS transistor Q4455 is connected to one end of resistor R11491 through resistor R11491. The other end of resistor R11524 is connected to 3.3V.
[0010] Optionally, the circuit further includes resistor 11492. The D pole of MOS transistor Q4456 is connected to the D pole of MOS transistor Q4457 through resistor 11492. The S pole of MOS transistor Q4456 is grounded.
[0011] Optionally, the circuit further includes resistor R11488, resistor R11493, and capacitor C13223. The G pole of MOS transistor Q4457 is respectively connected to one end of capacitor C13223 and one end of resistor 11493. The other end of capacitor C13223 is grounded. The other end of resistor 11493 is respectively connected to resistor R11488 and the IO port of the processor CPU.
[0012] Optionally, the circuit further includes resistor 11495 and resistor R11494. The IO port of the controller EC is respectively connected to one end of resistor R11494 and one end of resistor R11495. The other end of resistor R11494 is connected to the 3.3V power supply. The other end of resistor R11495 is connected to the G pole of MOS transistor Q4457.
[0013] Optionally, the circuit further includes capacitor C18, capacitor C15, capacitor C19, and capacitor C20. The first pin of the RT9742CGJ5 chip is respectively connected to the positive electrodes of capacitor C18, capacitor C15, capacitor C19, capacitor C20, and the USB power supply. The negative electrodes of capacitor C18, capacitor C15, capacitor C19, and capacitor C20 are grounded.
[0014] The second embodiment of the present invention provides an electronic device, and the electronic device includes the USB port control circuit described in any one of the above.
[0015] In the technical solution provided by the embodiment of the present invention, the circuit includes a processor CPU, a controller EC, a USB power supply, and a USB power switch. The processor CPU and the controller EC are respectively electrically connected to the USB power switch. The USB power switch is connected to the USB power supply. The processor CPU or the controller EC outputs a high level to control the USB power switch and thus control the on / off of the USB power supply. Compared with the prior art, the present invention determines whether to supply power to the USB when the electronic device, such as a computer, first plugs in the adapter and has not been powered on yet, which is flexible, convenient, cost-effective, and has strong user selectivity, with obvious advantages. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a circuit schematic diagram of a USB port control circuit of the present invention.
[0017] Figure 2 It is a circuit schematic diagram of a specific embodiment of a USB port control circuit of the present invention.
[0018] Figure 3 It is a circuit schematic diagram of the RT9742CGJ5 chip of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.
[0020] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended as a limitation on the present invention and its application or use.
[0021] Techniques and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques and devices should be considered as part of the specification.
[0022] In all the examples shown and discussed here, any specific value should be construed as merely exemplary, not as a limitation. Therefore, other examples of the exemplary embodiments may have different values.
[0023] As described above, the following technical problems exist in the prior art, that is, the power supply scheme of the USB interface in the market is generally controlled by the BIOS through the south bridge alone. After unplugging the adapter, the first power-on cannot control whether the USB interface is powered. To enable the USB interface to be powered according to the customer's needs after connecting the adapter, that is, if the customer needs power supply, it can meet other USB power supply needs such as the customer being able to charge the laptop's USB interface without turning on the computer, the present invention provides a USB port control circuit and an electronic device.
[0024] Please refer to Figure 1 As shown, the present invention provides a USB port control circuit, which includes a processor CPU, a controller EC, a USB power supply, and a USB power switch. The processor CPU and the controller EC are respectively electrically connected to the USB power switch, the USB power switch is connected to the USB power supply, and the processor CPU or the controller EC outputs a high level to control the USB power switch and thus control the on / off of the USB power supply.
[0025] The present invention determines whether the USB is powered when the electronic device, such as a computer, is first plugged in the adapter and not yet powered on. It is flexible, convenient, cost-effective, and the user has strong selectivity, with obvious advantages.
[0026] In one embodiment of the present invention, the circuit further includes a logic gate circuit. The processor CPU and the controller EC are respectively connected to one end of the logic gate circuit, and the other end of the logic gate circuit is connected to the USB power switch. The processor CPU or the controller EC outputs a high level to the logic gate circuit, and after being inverted by the logic gate circuit, a low level is output to control the USB power switch.
[0027] First, the GPIO outputs of the processor CPU and the controller EC need to be set as OD outputs to avoid short circuits of the two GPIO outputs. In addition, when the GPIO of the processor CP and the GPIO of the controller EC are connected together, it is equivalent to an OR gate. As long as one of the GPIO outputs of the processor CP or the controller EC is high, after being inverted by two NMOSs, the same logic level can be used to control the on or off of the USB power chip. The user can configure in the BIOS to select whether the USB is powered when the laptop is first plugged in the adapter and not yet powered on.
[0028] In one embodiment of the present invention, please refer to Figure 2As shown, the logic gate circuit includes MOS transistor Q4456, MOS transistor Q4455, and MOS transistor Q4457. The controller EC is connected to the G pole of MOS transistor Q4456. The D pole of MOS transistor Q4456 is connected to the G pole of MOS transistor Q4455. The D pole of MOS transistor Q4455 is connected to the fourth pin of the USB power switch. The D pole of MOS transistor Q4456 is also connected to the D pole of MOS transistor Q4457. The G pole of MOS transistor Q4457 is respectively connected to the IO ports of the processor CPU and the controller EC.
[0029] Specifically, please refer to Figure 2 As shown, the controller EC is connected to the G pole of MOS transistor Q4456 through resistor R11490. The S pole of MOS transistor Q4456 is grounded. The D pole of MOS transistor Q4456 is respectively connected to one end of resistor R11487, one end of resistor R11492, and the G pole of MOS transistor Q4455. The other end of resistor R11487 is connected to the 3.3V power supply. The S pole of MOS transistor Q4455 is grounded. The D pole of MOS transistor Q4455 is respectively connected to one end of resistor R11524 and the fourth pin of the USB power switch through resistor R11491. The other end of resistor R11524 is connected to the 3.3V power supply. The other end of resistor R11492 is connected to the D pole of MOS transistor Q4457. The S pole of MOS transistor Q4457 is grounded. The G pole of MOS transistor Q4457 is respectively connected to one end of capacitor C13223, one end of resistor 11493, and one end of resistor 11495. The other end of capacitor C13223 is grounded. The other end of resistor 11493 is respectively connected to one end of resistor R11488 and the IO port of the processor CPU. The other end of resistor R11488 is connected to VDD. The other end of resistor 11495 is respectively connected to one end of resistor R11494 and the IO port of the controller EC. The other end of resistor R11494 is connected to the 3.3V power supply.
[0030] In one embodiment of the present invention, please refer to Figure 3 As shown, the USB power switch is the RT9742CGJ5 chip. The circuit further includes capacitor C18, capacitor C15, capacitor C19, and capacitor C20. The first pin of the RT9742CGJ5 chip is respectively connected to the positive electrodes of capacitor C18, capacitor C15, capacitor C19, capacitor C20, and the USB power supply. The negative electrodes of capacitor C18, capacitor C15, capacitor C19, and capacitor C20 are grounded.
[0031] The second pin of the RT9742CGJ5 chip is grounded. The fourth pin of the RT9742CGJ5 chip is grounded through resistor R21. The fourth pin is also connected to the fifth pin and the 5V power supply through resistor R11138. The fifth pin of the RT9742CGJ5 chip is connected to one end of capacitor C13, one end of capacitor C14, and the 5V power supply. The other end of capacitor C13 is grounded, and the other end of capacitor C14 is grounded.
[0032] By adding a control signal of an additional EC and an NMOS device, the present invention enables the provision of USB 5V power supply even after the notebook is shut down and the adapter is plugged in. Whether to turn on this function can be decided according to requirements, which is more flexible and provides more options.
[0033] The present invention also provides an electronic device, which can be, for example, a notebook computer or the like, and is configured with an external interface such as a Type-C universal serial bus (USB) interface. Through this external interface, the electronic device can be connected to an external device to charge the external device.
[0034] The external device can be a charging terminal such as a mobile phone or a tablet. The external device can also be a USB2.0 device such as a USB flash drive or a mobile hard disk. Among them, the USB2.0 device is a storage device or an electronic device that supports the USB2.0 protocol. The electronic device can quickly charge a charging terminal such as a mobile phone or a tablet through the external interface, and can also communicate or interact with data with a USB2.0 device such as a USB flash drive or a mobile hard disk, an electronic device used as a hard disk, or other types of USB2.0 devices to achieve functions such as communication, data reading, or storage.
[0035] The electronic device of the present invention includes the USB port control circuit described in any of the above embodiments. It can be understood that the content in the above USB port control circuit embodiments is applicable to the present electronic device embodiment. The functions specifically implemented by the present electronic device embodiment are the same as those of the above circuit embodiments, and the beneficial effects achieved are also the same as those of the above circuit embodiments.
[0036] By adding a control signal of an additional EC and an NMOS device, the present invention enables the provision of USB 5V power supply even after the notebook is shut down and the adapter is plugged in. Whether to turn on this function can be decided according to requirements, which is more flexible and provides more options.
[0037] The above are only embodiments of the present application and are not intended to limit the protection scope of the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application. It should be noted that similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0038] As described above, these are only the specific implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of variations or replacements within the technical scope disclosed by the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the said element.
Claims
1. A USB port control circuit, characterized in that: The circuit includes a processor CPU, a controller EC, a USB power supply and a USB power switch. The processor CPU and the controller EC are electrically connected to the USB power switch respectively. The USB power switch is connected to the USB power supply. The processor CPU or the controller EC outputs a high level to control the USB power switch and thus control the on and off of the USB power supply.
2. The USB port control circuit according to claim 1, characterized in that: The USB power switch is a RT9742CGJ5 chip.
3. The USB port control circuit according to claim 1, characterized in that: The circuit also includes a logic gate circuit, the processor CPU and the controller EC are respectively connected to one end of the logic gate circuit, and the other end of the logic gate circuit is connected to a USB power switch. The processor CPU or the controller EC outputs a high level to the logic gate circuit, and after being inverted by the logic gate circuit, outputs a low level to control the USB power switch.
4. The USB port control circuit according to claim 3, characterized in that: The logic gate circuit includes a MOS tube Q4456, a MOS tube Q4455 and a MOS tube Q4457. The controller EC is connected to the G pole of the MOS tube Q4456, the D pole of the MOS tube Q4456 is connected to the G pole of the MOS tube Q4455, the D pole of the MOS tube Q4455 is connected to the fourth pin of the USB power switch, the D pole of the MOS tube Q4456 is also connected to the D pole of the MOS tube Q4457, and the G pole of the MOS tube Q4457 is respectively connected to the IO ports of the processor CPU and the controller EC.
5. The USB port control circuit according to claim 4, characterized in that: The circuit also includes a 3.3V power supply, a resistor R11487, a resistor R11490, a resistor R11491 and a resistor R11524. The controller EC is connected to the G pole of the MOS tube Q4456 through the resistor R11490. The D pole of the MOS tube Q4456 is respectively connected to one end of the resistor R11487 and the G pole of the MOS tube Q4455. The other end of the resistor R11487 is connected to the 3.3V power supply. The D pole of the MOS tube Q4455 is connected to one end of the resistor R11524 through the resistor R11491. The other end of the resistor R11524 is connected to 3.3V.
6. The USB port control circuit according to claim 4, characterized in that: The circuit further includes a resistor 11492, a D pole of the MOS tube Q4456 is connected to a D pole of the MOS tube Q4457 via the resistor 11492, and an S pole of the MOS tube Q4456 is grounded.
7. The USB port control circuit according to claim 4, characterized in that: The circuit also includes a resistor R11488, a resistor R11493 and a capacitor C13223. The G pole of the MOS tube Q4457 is respectively connected to one end of the capacitor C13223 and one end of the resistor 11493, the other end of the capacitor C13223 is grounded, and the other end of the resistor 11493 is respectively connected to the resistor R11488 and the IO port of the processor CPU.
8. The USB port control circuit according to claim 4, characterized in that: The circuit also includes a resistor 11495 and a resistor R11494. The IO port of the controller EC is respectively connected to one end of the resistor R11494 and one end of the resistor R11495. The other end of the resistor R11494 is connected to a 3.3V power supply. The other end of the resistor R11495 is connected to the G pole of the MOS tube Q4457.
9. The USB port control circuit according to claim 2, characterized in that: The circuit also includes capacitor C18, capacitor C15, capacitor C19 and capacitor C20. The first pin of the RT9742CGJ5 chip is respectively connected to the positive electrodes of capacitor C18, capacitor C15, capacitor C19, capacitor C20 and a USB power supply, and the negative electrodes of capacitor C18, capacitor C15, capacitor C19 and capacitor C20 are grounded.
10. An electronic device, characterized in that: The USB port control circuit comprises the USB port control circuit according to any one of claims 1 to 9.