USB controller, chip, display device and control method
By introducing a control circuit into the USB controller, the digital clock circuit is automatically stopped according to the USB transmission speed mode and bus state, solving the power consumption problem of the USB controller in the suspend mode and significantly improving its performance.
Patent Information
- Application Number
- CN202111497918.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In the suspend mode of the USB controller, how to reduce power consumption is an urgent problem.
By introducing a control circuit into the USB controller, after determining that the USB controller is in the suspended state, the operation of the digital clock circuit is stopped, thereby reducing power consumption.
It effectively reduces the power consumption of the USB controller and improves its performance, especially in the suspended state, which reduces dynamic power consumption significantly.
Smart Images

Figure CN114356815B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit design, and in particular to a USB controller, a chip, a display device and a control method. Background Art
[0002] Universal Serial Bus (USB) is a common interface standard communication protocol used to regulate the connection and communication between computers and external devices. It has been widely used in electronic products.
[0003] With the rise of mobile phones and various wearable devices, low power design has become a priority. The USB standard protocol stipulates the suspend mode (Suspend Mode). In this mode, the USB host and external devices are still connected, but the USB bus will not transmit data.
[0004] However, in the suspend mode, how to reduce the power consumption of the USB controller is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The invention provides a USB controller, a chip, a display device and a control method, which are used to solve the problem of how to reduce the power consumption of the USB controller.
[0006] In a first aspect, an embodiment of the present invention provides a USB controller, comprising: a digital circuit, an analog circuit and a control circuit;
[0007] The digital circuit is connected to the analog circuit and the control circuit respectively, and the analog circuit is connected to the control circuit;
[0008] The control circuit is used to obtain the USB transmission speed mode and the USB bus status from the analog circuit; determine that the USB controller is in a suspended state according to the USB transmission speed mode and the USB bus status; and control the digital clock circuit in the digital circuit to stop working.
[0009] In a possible implementation, the logic control circuit is further used for:
[0010] The working state of the digital circuit is obtained from the digital circuit; and it is determined that the USB controller is in a suspended state according to the USB transmission speed mode, the USB bus state and the working state of the digital circuit.
[0011] In a possible implementation, a counter is also included;
[0012] The counter is connected to the control circuit;
[0013] The control circuit is further configured to, after determining that the USB controller is in a suspended state and before controlling the digital clock circuit to stop working, send a first trigger instruction to the counter and receive a second trigger instruction sent by the counter;
[0014] The counter is used to perform timing after receiving the first trigger instruction, and send the second trigger instruction to the control circuit after the timing ends.
[0015] In a possible implementation manner, the control circuit is specifically used to:
[0016] According to the USB transmission speed mode and the USB bus state, it is determined that the USB controller is in the awake state; and the digital clock circuit is controlled to start working.
[0017] In a possible implementation, the control circuit is further used for:
[0018] According to the USB transmission speed mode, the USB bus state and the working state of the digital circuit, it is determined that the USB controller is in the awake state.
[0019] In a possible implementation, the control circuit is further configured to, after determining that the USB controller is in the awake state, send a third trigger instruction to the counter and receive a fourth trigger instruction sent by the counter before controlling the digital clock circuit to start working;
[0020] The counter is further configured to perform timing after receiving the third trigger instruction, and send the fourth trigger instruction to the control circuit after the timing is completed.
[0021] In a possible implementation, the control circuit is further used for:
[0022] receiving a shutdown command to control the control circuit to stop working;
[0023] A start command is received to control the control circuit to start working.
[0024] In a second aspect, an embodiment of the present invention provides a chip with USB function, comprising any USB controller described in the first aspect.
[0025] In a third aspect, an embodiment of the present invention provides a display device, comprising the chip with USB function as described in the second aspect.
[0026] In a fourth aspect, an embodiment of the present invention provides a control method for a digital clock circuit, which is applied to a USB controller as described in any one of the first aspects, and the method includes:
[0027] Get USB transfer speed mode and USB bus status;
[0028] Determining, according to the USB transmission speed mode and the USB bus state, that the USB controller is in a suspended state;
[0029] The digital clock circuit in the digital circuit is controlled to stop working.
[0030] In a possible implementation, the method further includes:
[0031] Acquiring the working state of the digital circuit;
[0032] According to the USB transmission speed mode, the USB bus state and the working state of the digital circuit, it is determined that the USB controller is in a suspended state.
[0033] The beneficial effects of the present invention are as follows:
[0034] The USB controller in the embodiment of the present invention includes a digital circuit, an analog circuit and a control circuit. The control circuit can control the digital clock circuit in the digital circuit to stop working after determining that the USB is in a suspended state according to the USB transmission mode and the USB bus state. Since the digital clock circuit stops working in the suspended state, the power consumption of the USB controller can be reduced and the performance of the USB controller can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic diagram of the structure of a USB controller provided in the related art;
[0037] Figure 2 A schematic diagram of the structure of a USB controller provided by an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of the structure of another USB controller provided by an embodiment of the present invention;
[0039] Figure 4 A schematic diagram of the structure of another USB controller provided by an embodiment of the present invention;
[0040] Figure 5 A schematic flow chart of a control method for a digital clock circuit provided by an embodiment of the present invention;
[0041] Figure 6 A flowchart of a control method for a digital clock circuit provided in the related art;
[0042] Figure 7 A schematic flow chart of another method for controlling a digital clock circuit provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] like Figure 1 As shown, it is a structural diagram of a USB controller disclosed in the related art. Figure 1 As can be seen in the figure, the USB controller includes a digital circuit 101 and an analog circuit 102. The digital circuit 101 is mainly responsible for interacting with the devices in the system, and the analog circuit 102 is mainly responsible for transmitting and receiving analog signals. The connection between the analog circuit 102 and the digital circuit 101 is usually a standard interface such as USB Transceiver Macrocell Interface (UTMI) or USB Low Pin Interface (ULPI), which contains the current USB transmission speed, the clock of the digital circuit, and other status information. Most of the digital logic is located in the digital circuit 101, and the analog circuit 102 provides a working circuit for the digital circuit 101.
[0045] When the USB controller is in the suspended state (suspend mode), the function enable register in the digital circuit is turned on, and the USB bus in the analog circuit ( Figure 1 The D+ and D- in the USB controller do not transmit data, but at this time, the digital clock circuit in the digital circuit is still working, that is, it is flipped. Since the suspend state usually lasts for a long time, the operation of the digital clock circuit will generate dynamic power consumption. Therefore, in order to save the power consumption of the USB controller, in the embodiment of the present invention, when it is determined that the USB controller is in the suspend state, the digital clock circuit is controlled to stop working, thereby reducing the power consumption of the USB controller.
[0046] Dynamic power consumption can be calculated using the formula P d =αCV 2f represents, where α is the probability of circuit level jump, C is the load capacitance, V is the operating voltage, and f is the operating frequency. When the digital clock circuit stops flipping, the logic and registers related to it also stop flipping, and α approaches 0, thereby minimizing dynamic power consumption.
[0047] It should be noted that in the suspended state, the USB bus in the analog circuit does not perform data transmission, which is also to save power consumption of the USB controller.
[0048] like Figure 2 FIG. 1 is a schematic diagram of a USB controller provided by an embodiment of the present invention. Figure 2 As can be seen, the USB controller includes a digital circuit 201, an analog circuit 202 and a control circuit 203;
[0049] The digital circuit 201 is connected to the analog circuit 202 and the control circuit 203 respectively, and the analog circuit 202 is connected to the control circuit 203;
[0050] The control circuit 203 is used to obtain the USB transmission speed mode and the USB bus status from the analog circuit 202; determine that the USB controller is in the suspended state according to the USB transmission speed mode and the USB bus status; and control the digital clock circuit in the digital circuit to stop working.
[0051] The USB controller in the embodiment of the present invention includes a control circuit, and the control circuit can control the digital clock circuit in the digital circuit to stop working after determining that the USB is in a suspended state according to the USB transmission mode and the USB bus state. Since the digital clock circuit stops working in the suspended state, the power consumption of the USB controller can be reduced and the performance of the USB controller can be improved.
[0052] In the embodiment of the present invention, the control circuit 203 may be a programmable integrated circuit, and its functions are realized through a program in the integrated circuit.
[0053] In implementation, the USB transmission speed mode may include a full-speed mode, a low-speed mode, and a high-speed mode. When the USB transmission speed mode is the full-speed mode, when the USB controller is in a suspended state, the USB bus state is (D+: 1, D-: 0), and when the USB controller is in a woken state, the USB bus state is (D+: 0, D-: 1); when the USB transmission speed mode is the low-speed mode, when the USB controller is in a suspended state, the USB bus state is (D+: 0, D-: 1), and when the USB controller is in a woken state, the USB bus state is (D+: 1, D-: 0); when the USB transmission speed mode is the high-speed mode, when the USB controller is in a suspended state, the USB bus state is (D+: 1, D-: 0), and when the USB controller is in a woken state, the USB bus state is (D+: 0, D-: 1).
[0054] The control circuit 203 obtains the USB transmission speed mode and the USB bus status through the analog circuit 202. If the USB transmission speed mode is the full-speed mode and the USB bus status is (D+: 1, D-: 0), or if the USB transmission speed mode is the low-speed mode and the USB bus status is (D+: 0, D-: 1), or if the USB transmission speed mode is the high-speed mode and the USB bus status is (D+: 1, D-: 0), it is determined that the USB controller is in the suspended state.
[0055] In a specific implementation, in addition to obtaining the USB transmission speed mode and USB bus status, the control circuit 203 can also obtain the working status of the digital circuit 201, such as the suspend state and the wake-up state. The control circuit 203 can determine that the USB controller is in the suspend state based on the obtained USB transmission speed mode, USB bus status and the working status of the digital circuit 201.
[0056] For example, if the USB transmission speed mode is full-speed mode, the USB bus status is (D+: 1, D-: 0), and the working state of the digital circuit 201 is the suspended state, then it is determined that the USB controller is in the suspended state; for another example, if the USB transmission speed mode is low-speed mode, the USB bus status is (D+: 0, D-: 1), and the working state of the digital circuit 201 is the suspended state, then it is determined that the USB controller is in the suspended state; for another example, if the USB transmission speed mode is high-speed mode, the USB bus status is (D+: 1, D-: 0), and the working state of the digital circuit 201 is the suspended state, then it is determined that the USB controller is in the suspended state.
[0057] In the embodiment of the present invention, the control circuit 203 can monitor the working state of the digital circuit, the USB transmission speed mode and the USB bus state, and based on the monitored working state of the digital circuit, the USB transmission speed mode and the USB bus state, determine whether the USB controller is in a suspended state. If so, the digital clock circuit is controlled to stop working, thereby reducing the power consumption of the USB controller in the suspended state and improving the performance of the USB controller.
[0058] In the specific implementation, Figure 3 As shown, the USB controller may further include a counter 204, which is connected to the control circuit 203. When the control circuit 203 determines that the USB controller is in a suspended state, the counter 204 sends a first trigger instruction to the counter 204. After receiving the first trigger instruction, the counter 204 starts the timing function. After the timing ends, the counter 204 sends a second trigger instruction to the control circuit 203. After receiving the second trigger instruction, the control circuit 203 controls the digital clock circuit to stop working.
[0059] In the embodiment of the present invention, when the working state of the digital circuit 201 changes from the normal mode to the suspend mode, the control circuit 203 triggers the counter 204 to start the countdown. During the countdown, the digital clock circuit still flips normally. After the counter returns to zero, if the working state of the digital circuit 201 and the USB bus state still remain in the corresponding suspend mode, the control circuit 203 controls the digital clock circuit to stop flipping, so that the digital circuit 201 enters the low power consumption mode, that is, the USB controller enters the low power consumption mode.
[0060] The purpose of adding the countdown is to avoid possible interference or glitches in the related signals, which may cause the circuit to misjudge the suspended state and cause the deadlock of the digital circuit 201. At the same time, after the digital circuit 201 changes its state to suspended, it takes some time to update the register state (such as the suspension interrupt signal). On the other hand, the addition of the countdown leaves redundant time for these updates, ensuring that all registers that need to be updated have been completed before the digital clock circuit stops working.
[0061] It should be noted that the countdown here can also be counted up, and the present invention does not limit the timing method of the counter. The specific timing duration can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0062] The embodiment of the present invention uses a counter to perform timing. Of course, in addition to using a counter, a timer may also be used, which is not limited in the embodiment of the present invention.
[0063] like Figure 4As shown, the control circuit in the embodiment of the present invention can also receive a shutdown command through the system bus to control the control circuit 203 to stop working, and receive a startup command to control the control circuit 203 to start working.
[0064] The control circuit stops working after receiving a shutdown command, and starts working after receiving a startup command. This embodiment is compatible with the Host Negotiation Protocol in the USB On-The-Go (OTG) protocol. In a specific implementation, the default state of the control circuit is the startup state, and the processor can send a shutdown command to the control circuit through the system bus to stop the control circuit from working. After the control circuit stops working, the processor can also send a startup command to the control circuit through the system bus.
[0065] To ensure the normal operation of the master-slave switching series of states after entering the suspend mode, the processor can send a shutdown command to the control circuit while sending a suspend request to the digital circuit to control the control circuit to stop working. In this way, even after the digital circuit enters the suspend state, the digital clock circuit is still working normally. After a period of suspension (50ms), if the external device still does not initiate the host communication protocol to try to switch roles, the processor can send a start command to the control circuit to start the control circuit. After the control starts working, the digital clock circuit can be controlled to stop working, thereby bringing the digital circuit into low power consumption mode.
[0066] Specifically, a register can be set in the control circuit to send a shutdown command to the register to close the register to shut down the control circuit, even if the control circuit stops working, and send an open command to the register to open the register to turn on the control circuit, even if the control circuit starts working.
[0067] The control circuit 203 in the embodiment of the present invention can also determine that the USB controller is in the awake state according to the USB transmission speed mode and the USB bus state, and control the digital clock circuit to start working.
[0068] For example, if the USB transmission speed mode is full-speed mode and the USB bus state is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1), or if the USB transmission speed mode is low-speed mode and the USB bus state is converted from (D+: 0, D-: 1) to (D+: 1, D-: 0), or if the USB transmission speed mode is high-speed mode and the USB bus state is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1), it is determined that the USB controller is in the awake state.
[0069] The control circuit 203 in the embodiment of the present invention can also determine that the USB controller is in the awake state according to the USB transmission speed mode, the USB bus state and the working state of the digital circuit.
[0070] For example, when the USB transmission speed mode is full-speed mode, the USB bus state is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1), and the working state of the digital circuit is the awake state; for another example, when the USB transmission speed mode is low-speed mode, the USB bus state is converted from (D+: 0, D-: 1) to (D+: 1, D-: 0), and the working state of the digital circuit is the awake state; for another example, when the USB transmission speed mode is high-speed mode, the USB bus state is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1), and the working state of the digital circuit is the awake state.
[0071] After determining that the USB controller is in the awake state, the control circuit 203 can also send a third trigger instruction to the counter 204. After receiving the third trigger instruction, the counter 204 starts the timing function. After the timing ends, the counter 204 sends a fourth trigger instruction to the control circuit 203. After receiving the fourth trigger instruction, the control circuit 203 controls the digital clock circuit to start working.
[0072] After receiving the fourth trigger instruction, the control circuit 203 may again determine whether the USB controller is in the awake state. If so, the control circuit 203 may control the digital clock circuit to start working, thereby preventing erroneous operation caused by misjudgment.
[0073] The wakeup after the USB controller is suspended is divided into active wakeup and remote wakeup. In active wakeup, the function enable register is first turned off through the system bus. At this time, the digital clock circuit will start immediately, allowing the digital circuit to re-enter the working state, and then perform corresponding operations to convert the USB bus from the suspended state to the working state (or wakeup state). For example, in full-speed mode, the USB bus is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1). In remote wakeup, the USB bus is generally required to be converted from suspended to wakeup first, and then the digital circuit is changed from suspended to wakeup. At this time, if only the working state of the digital circuit is considered without monitoring the USB bus, it will cause the digital circuit to deadlock, because without the digital clock circuit, the digital circuit state cannot be correctly updated, and then the digital circuit is locked in the suspended state. To avoid this situation, in the suspended state, the control circuit 203 will periodically monitor the USB bus status. If it is found that the USB bus has switched to the awake state, for example, in the full-speed mode, the USB bus is converted from (D+: 1, D-: 0) to (D+: 0, D-: 1), the control circuit 203 controls the digital clock circuit to start working, so that the digital circuit starts working.
[0074] Based on the same inventive concept, the embodiment of the present invention also provides a chip with USB function, including any one of the above USB controllers. The principle of solving the problem by the chip with USB function is similar to that of the USB controller, and the repeated parts are not repeated.
[0075] The chip with USB function may be a microcontroller unit (MCU) chip, a system on chip (SOC), or other chips. As long as the chip has USB function, the embodiment of the present invention is applicable.
[0076] Based on the same inventive concept, an embodiment of the present invention further provides a display device, which includes the chip with USB function. The principle of solving the problem by the display device is similar to that of the USB controller, and the repeated parts will not be repeated.
[0077] Based on the same inventive concept, an embodiment of the present invention further provides a control method for a digital clock circuit, which is applied to any of the above-mentioned USB controllers. The principle of solving the problem by the control method for the digital clock circuit is similar to that of the USB controller, and the repeated parts will not be repeated.
[0078] like Figure 5 As shown, a control method for a digital clock circuit provided by an embodiment of the present invention specifically includes the following steps:
[0079] S501, obtaining USB transmission speed mode and USB bus status;
[0080] S502, determining that the USB controller is in a suspended state according to the USB transmission speed mode and the USB bus state;
[0081] S503: Control the digital clock circuit in the digital circuit to stop working.
[0082] Optionally, the method further includes:
[0083] Acquiring the working state of the digital circuit;
[0084] According to the USB transmission speed mode, the USB bus state and the working state of the digital circuit, it is determined that the USB controller is in a suspended state.
[0085] Optionally, after determining that the USB controller is in the suspended state and before controlling the digital clock circuit in the digital circuit to stop working, the method further includes:
[0086] Sending a first trigger instruction to the counter, so that the counter starts timing after receiving the first trigger instruction, and sends the second trigger instruction to the control circuit after the timing ends;
[0087] A second trigger instruction sent by the counter is received.
[0088] Optionally, before controlling the digital clock circuit in the digital circuit to stop working, the method further includes:
[0089] A suspend command is received, but no wake-up command is received within the preset time.
[0090] Optionally, the method further includes:
[0091] Determining that the USB controller is in a wake-up state according to the USB transmission speed mode and the USB bus state;
[0092] The digital clock circuit is controlled to start working.
[0093] Optionally, the method further includes:
[0094] According to the USB transmission speed mode, the USB bus state and the working state of the digital circuit, it is determined that the USB controller is in the awake state.
[0095] Optionally, after determining that the USB controller is in the awake state and before controlling the digital clock circuit to start working, the method further includes:
[0096] Sending a third trigger instruction to the counter, so that the counter starts timing after receiving the third trigger instruction, and sends the fourth trigger instruction to the control circuit after the timing ends;
[0097] A fourth trigger instruction sent by the counter is received.
[0098] The present invention automatically enters or exits the low power consumption state of the digital circuit by adding a control circuit between the digital circuit and the analog circuit of the USB controller, judging the current working state of the digital circuit and the USB bus state, and automatically turning off or on the working clock of the digital circuit, that is, the digital clock circuit. At the same time, for better compatibility, the present invention also provides a main switch of the low power consumption mode, which does not affect the overall USB specification protocol.
[0099] At the software driver level, compared with the traditional gated clock process ( Figure 6 Compared with the hardware design supporting automatic clock recovery, the hardware design supports automatic clock recovery without the cumbersome central processing unit (CPU) polling process ( Figure 7As shown), you only need to wait for the interrupt signal normally generated by the digital circuit after the clock is restored.
[0100] like Figure 6 As shown, a control method for a digital clock circuit provided by the related technology, the specific steps are as follows:
[0101] S601, CPU detects USB bus status;
[0102] The CPU will continue to query the USB bus status.
[0103] S602, the CPU determines whether the USB controller is in the awake state, if so, executes S603, otherwise executes S604;
[0104] S603, the CPU enables the digital clock circuit to make the USB controller exit the suspended state;
[0105] S604: Delay 20ms and execute S602.
[0106] like Figure 7 As shown, a control method for a digital clock circuit provided by an embodiment of the present invention specifically includes the following steps:
[0107] S701, the control circuit determines that the USB controller is in a wake-up state;
[0108] S702, after the preset time, the control circuit controls the digital clock circuit to start working;
[0109] S703, the digital circuit starts working and generates an interrupt signal;
[0110] S704: After receiving the interrupt signal, the CPU determines that the USB controller exits the suspended state.
[0111] Figure 6 In the suspended state, the digital clock circuit of the digital circuit is turned off, that is, it stops working, the digital circuit is in a low power consumption mode, and the interrupt signal cannot be generated. At this time, in order to ensure that the USB can be successfully awakened remotely, the CPU must keep querying the USB bus status at least once every 20ms. When the awakening state is detected, the control function enable register turns on the digital clock circuit of the digital circuit, that is, controls the digital clock circuit to start working, and the USB controller resumes the normal transmission mode. If the automatic clock recovery module of the present invention is added, that is, the control circuit, such as Figure 7As shown, the CPU only needs to wait for the interrupt signal and respond, which reduces the complexity of use and the response time. When the state of the USB bus is changed to the awake state, the digital clock circuit in the digital circuit is automatically awakened by the control circuit of the present invention to start working, and a wake-up interrupt is generated. Taking the remote wake-up after maintaining the suspend mode for 10 seconds as an example, the traditional polling scheme requires the CPU to access the USB bus at least 500 times. In contrast, the automatic clock recovery scheme of the present invention only needs to process an interrupt response once to complete the wake-up, which significantly reduces the processing bandwidth and response time, and can also make the CPU enter a low-power state to further save power consumption.
[0112] The present application is described above with reference to the block diagrams and / or flow charts showing the methods, devices (systems) and / or computer program products according to the embodiments of the present application. It should be understood that a block of the block diagram and / or flow chart diagram and a combination of blocks of the block diagram and / or flow chart diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer and / or other programmable data processing device to produce a machine, so that the instructions executed by the computer processor and / or other programmable data processing device create a method for implementing the functions / actions specified in the block diagram and / or flow chart block.
[0113] Accordingly, the present application may also be implemented with hardware and / or software (including firmware, resident software, microcode, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium, which has a computer-usable or computer-readable program code implemented in the medium, for use by an instruction execution system or in conjunction with an instruction execution system. In the context of the present application, a computer-usable or computer-readable medium may be any medium that may contain, store, communicate, transmit, or convey a program for use by an instruction execution system, device, or apparatus, or in conjunction with an instruction execution system, device, or apparatus.
[0114] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A universal serial bus USB controller, characterized in that: include: Digital circuits, analog circuits, control circuits and counters; The digital circuit is connected to the analog circuit and the control circuit respectively, the analog circuit is connected to the control circuit, and the counter is connected to the control circuit; The control circuit is used to obtain the USB transmission speed mode and USB bus status from the analog circuit; Determining, according to the USB transmission speed mode and the USB bus state, that the USB controller is in a suspended state; Sending a first trigger instruction to the counter; After receiving the second trigger instruction sent by the counter, controlling the digital clock circuit in the digital circuit to stop working; The counter is used to perform timing after receiving the first trigger instruction, and send the second trigger instruction to the control circuit after the timing is completed.
2. The controller according to claim 1, characterized in that The control circuit is also used for: The working state of the digital circuit is obtained from the digital circuit; and it is determined that the USB controller is in a suspended state according to the USB transmission speed mode, the USB bus state and the working state of the digital circuit.
3. The controller according to claim 1, characterized in that The control circuit is specifically used for: According to the USB transmission speed mode and the USB bus state, it is determined that the USB controller is in the awake state; and the digital clock circuit is controlled to start working.
4. The controller according to claim 3, characterized in that The control circuit is also used for: According to the USB transmission speed mode, the USB bus state and the working state of the digital circuit, it is determined that the USB controller is in the awake state.
5. The controller according to claim 3, characterized in that: The control circuit is further configured to, after determining that the USB controller is in the awake state, send a third trigger instruction to the counter before controlling the digital clock circuit to start working, and receive a fourth trigger instruction sent by the counter; The counter is further configured to perform timing after receiving the third trigger instruction, and send the fourth trigger instruction to the control circuit after the timing is completed.
6. The controller according to any one of claims 1 to 5, characterized in that: The control circuit is also used for: receiving a shutdown command to control the control circuit to stop working; A start command is received to control the control circuit to start working.
7. A chip with USB function, characterized in that: Comprising a USB controller as described in any one of claims 1-6.
8. A display device, characterized in that: The invention comprises the chip with USB function as claimed in claim 7.
9. A control method for a digital clock circuit, characterized in that: Applied to the USB controller according to any one of claims 1 to 6, the method comprises: Get USB transfer speed mode and USB bus status; Determining, according to the USB transmission speed mode and the USB bus state, that the USB controller is in a suspended state; The digital clock circuit in the digital circuit is controlled to stop working.
Citation Information
Patent Citations
Data transmission control method and controller for USB (universal serial bus) low-speed device
CN103810127A
Implementing method for lowering chip power dissipation based on USB protocol
CN107967049A
Operation state switching method and device, electronic equipment and storage medium
CN112506576A
Interface assembly, chip, and electronic device
CN113168207A
Method and apparatus for minimizing power requirements in a computer peripheral device while in suspend state and returning to full operation state without loss of data
US20040015732A1
