Chip awakening device and multi-chip system
By using the first wake-up line and the second wake-up line in a multi-chip system to manage the wake-up and sleep states of the chip, the power consumption waste caused by the meaningless operation of the chip in a multi-chip system is solved, and the system power consumption reduction and efficiency are achieved Improvement.
Patent Information
- Application Number
- CN202411093185.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-22
AI Technical Summary
In multi-chip systems, since the number of chips is large and the task execution time does not completely coincide, maintaining multiple chips running at the same time will lead to meaningless operation, resulting in waste of system power consumption.
The first wake-up line and the second wake-up line are used for the first chip to wake up the target chip and the target chip to wake up the first chip respectively. Through the serial interface and state machine mechanisms, each chip only occupies two common types. Input and output pins, save pin count, and realize the chip wake-up and sleep state management.
It effectively reduces the power consumption of multi-chip systems, optimizes the working status of the chip, reduces invalid operation, and improves system efficiency.
Smart Images

Figure CN119003405A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of reducing power consumption, and in particular to a chip wake-up device and a multi-chip system. Background Art
[0002] A multi-chip system refers to a system with more than two chips. In a multi-chip system, due to the large number of chips and the fact that the task execution times of multiple chips do not necessarily overlap completely, if multiple chips are kept running at the same time, the chips without tasks will be running meaninglessly, causing unnecessary waste of system power consumption. Summary of the invention
[0003] The chip wake-up device and multi-chip system provided by the present invention can occupy fewer pins and effectively coordinate the working status of each chip in the multi-chip system, thereby effectively reducing the power consumption of the system.
[0004] In a first aspect, the present invention provides a chip wake-up device, comprising:
[0005] A first chip, wherein the first chip has a serial interface, and the serial interface is used for communication connection with the serial interface of the target chip;
[0006] A first wake-up line, the first wake-up line is used to electrically connect a first general input / output pin of the first chip to a corresponding general input / output pin in a target chip, so that the first chip sends a first switching signal for switching a wake-up state to the target chip by switching a level of the first wake-up line;
[0007] A second wake-up line, the second wake-up line is used to electrically connect the second general input / output pin of the first chip to the corresponding general input / output pin in the target chip, so that the first chip receives a second switching signal for switching the wake-up state sent by the target chip by obtaining the switching of the level of the second wake-up line.
[0008] Optionally, when receiving the second switching signal, the first chip sends a first response signal to the target chip by switching the level state of the first wake-up line;
[0009] After the first chip sends the first switching signal, the first chip receives the second response signal sent by the target chip by obtaining the switching of the second wake-up line level.
[0010] Optionally, the device further comprises a first state machine controlled by the first chip; the first state machine records the state of the first chip;
[0011] After the first chip sends a first switching signal corresponding to the awakening state, the first state machine is modified to a current chip sending state;
[0012] Before the first chip sends a first switching signal corresponding to the sleep state, the first state machine is modified to a current chip non-sending state.
[0013] Optionally, after receiving the second switching signal corresponding to the awakening state, the first chip enters the awakening process, and after completing the awakening, sends a first response signal corresponding to the awakening to the target chip;
[0014] After the first chip receives the second switching signal corresponding to the sleep state, it obtains the state of the first state machine; when the first state machine is in the sending state of the current chip, it continues to send data to the target chip; when the first state machine is in the non-sending state of the current chip, it enters the sleep process and sends a first response signal corresponding to the sleep state to the target chip.
[0015] Optionally, the device further includes a first request wakeup lock and a first feedback wakeup lock controlled by the first chip;
[0016] Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a first request wake-up lock;
[0017] When the first chip receives a second response signal corresponding to the wake-up state sent by the target chip, the first chip starts a first feedback wake-up lock;
[0018] Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the first request wake-up lock;
[0019] When the first chip receives the second response signal corresponding to the sleep state sent by the target chip, the first chip releases the first feedback wake-up lock.
[0020] Optionally, the device further comprises a first response wake-up lock controlled by the first chip;
[0021] When the first chip receives a second switching signal corresponding to the wake-up state sent by the target chip, the first chip starts a first response wake-up lock;
[0022] When the first chip receives the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the first response wake-up lock.
[0023] Optionally, when receiving the second switching signal, the first chip sends a first response signal to the target chip through one of the serial port multiplexing channels of the serial interface;
[0024] After sending the first switching signal, the first chip receives the second response signal sent by the target chip through one of the serial interface multiplexing channels.
[0025] Optionally, the device further comprises a second state machine controlled by the first chip; the second state machine records the state of the target chip;
[0026] After the first chip receives the second response signal corresponding to the awake state, the second state machine is modified to the target chip awake state;
[0027] After receiving the second response signal corresponding to the sleep state, the first chip modifies the second state machine to the target chip sleep state.
[0028] Optionally, when the first chip needs to send data to the target chip, it obtains the state of the second state machine. When the second state machine is in the sleep state of the target chip, the first chip sends a first switching signal corresponding to the wake-up state to the target chip; when the second state machine is in the wake-up state of the target chip, the first chip sends data to the target chip.
[0029] Optionally, the device further includes a second request wake-up lock and a second response wake-up lock controlled by the first chip;
[0030] Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a second request wake-up lock;
[0031] Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the second request wake-up lock;
[0032] After the first chip receives the second switching signal corresponding to the wake-up state sent by the target chip, the second response wake-up lock is activated;
[0033] After receiving the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the second response wake-up lock.
[0034] Optionally, the device further comprises a first timer controlled by the first chip;
[0035] Before the first chip sends the first switching signal corresponding to the sleep state to the target chip, the first chip starts a first timer, and when the first timer expires, the first chip sends the first switching signal corresponding to the sleep state to the target chip;
[0036] When the first chip needs to send data to the target chip, the first timer is turned off.
[0037] In a second aspect, the present invention provides a multi-chip system, comprising two chip wake-up devices as described in any one of the foregoing, wherein a first wake-up line of any one of the two or more chip wake-up devices is electrically connected to a second wake-up line of the other chip wake-up devices.
[0038] In the technical solution provided by the present invention, the first wake-up line and the second wake-up line are respectively used for the first chip to wake up the target chip and the target chip to wake up the first chip, and corresponding pins are defined in the general input and output pins of the first chip and the target chip. Therefore, each chip only needs to occupy two general input and output pins to achieve mutual wake-up, which can effectively save the number of pins required for the wake-up function. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a schematic diagram of an application scenario of a chip wake-up device according to an embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of an application scenario of a chip wake-up device according to another embodiment of the present invention;
[0041] Figure 3 FIG. 4 is a schematic diagram of a multi-chip system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.
[0043] An embodiment of the present invention provides a device chip wake-up device, such as Figure 1 As shown, including:
[0044] A first chip, wherein the first chip has a serial interface, and the serial interface is used to communicate with the serial interface of the target chip; in some embodiments, Figure 1 As shown, a modem and a microprocessor MCU are used as examples. It should be understood that when the modem is the first chip, the microprocessor will be the target chip, and when the modem is the target chip, the microprocessor will be the first chip.
[0045] The first wake-up line is used to electrically connect the first general input / output pin of the first chip with the corresponding general input / output pin in the target chip, so that the first chip sends a first switching signal for switching the wake-up state to the target chip by switching the level of the first wake-up line; in some embodiments, the corresponding general input / output pin is predefined so that a pin in the first chip corresponds to a pin in the target chip. That is, a pin of the first chip is defined, and when the wake-up state of the target chip needs to be switched, the level of the pin is switched; similarly, a pin of the target chip is defined, and when the level of the pin is switched, the wake-up state of the target chip will be switched. For the switching of the level of the first wake-up line, for example, the high level of the first wake-up line can be defined as the corresponding target chip switching to the wake-up state, and the low level can be defined as the corresponding target chip switching to the sleep state; the opposite definition can also be adopted, that is, the low level of the first wake-up line is defined as the corresponding target chip switching to the wake-up state, and the high level is defined as the corresponding target chip switching to the sleep state.
[0046] The second wake-up line is used to electrically connect the second general input / output pin of the first chip to the corresponding general input / output pin in the target chip, so that the first chip receives the second switching signal for switching the wake-up state sent by the target chip by obtaining the switching of the level of the second wake-up line.
[0047] In some embodiments, the corresponding general input and output pins are predefined so that a pin in the first chip corresponds to a pin in the target chip. That is, a pin of the target chip is defined, and when the wake-up state of the first chip needs to be switched, the level of the pin is switched; similarly, a pin of the first chip is defined, and when the level of the pin is switched, the wake-up state of the first chip will be switched. For the switching of the second wake-up line level, for example, the high level of the second wake-up line can be defined as corresponding to the first chip switching to the wake-up state, and the low level can be defined as corresponding to the first chip switching to the sleep state; the opposite definition can also be adopted, that is, the low level of the second wake-up line is defined as corresponding to the first chip switching to the wake-up state, and the high level is defined as corresponding to the first chip switching to the sleep state. The first wake-up line is shown as GPIO1, and the second wake-up line is shown as GPIO2.
[0048] In the technical solution provided in the embodiment of the present invention, the first wake-up line and the second wake-up line are respectively used for the first chip to wake up the target chip and the target chip to wake up the first chip, and corresponding pins are defined in the general input and output pins of the first chip and the target chip. Therefore, each chip only needs to occupy two general input and output pins to achieve mutual wake-up, which can effectively save the number of pins required for the wake-up function.
[0049] As an optional implementation, continue as Figure 1 As shown, when the first chip receives the second switching signal, it sends a first response signal to the target chip by switching the level state of the first wake-up line;
[0050] After the first chip sends the first switching signal, the first chip receives the second response signal sent by the target chip by obtaining the switching of the second wake-up line level.
[0051] In some embodiments, Figure 1 As shown, the modem Modem and the microprocessor MCU are used as examples. It should be understood that when the modem is the first chip, the microprocessor will be the target chip, and when the modem is the target chip, the microprocessor will be the first chip. When the first chip wakes up the target chip, the target chip needs to send a response signal to the first chip after waking up, so that the first chip can obtain the current state of the target chip. Similarly, when the target chip wakes up the first chip, the first chip needs to send a response signal to the target chip after waking up, so that the target chip can obtain the current state of the first chip. In this embodiment, the first chip sends a first response signal to the target chip by switching the first wake-up line level state, and the target chip sends a second response signal to the first chip by switching the second wake-up line level state.
[0052] As an optional implementation, the device further includes a first state machine controlled by the first chip; the first state machine records the state of the first chip;
[0053] After the first chip sends a first switching signal corresponding to the awakening state, the first state machine is modified to a current chip sending state;
[0054] Before the first chip sends a first switching signal corresponding to the sleep state, the first state machine is modified to a current chip non-sending state.
[0055] In some embodiments, since the first wake-up line is used for both the first chip to wake up the target chip and the first chip to respond to the target chip, the first chip cannot determine whether the level state of the first wake-up line represents wake-up information or response information. Therefore, in this implementation, the first state machine needs to record its own state so that the first chip can determine what state it is in.
[0056] As an optional implementation manner, after receiving the second switching signal corresponding to the awakening state, the first chip enters the awakening process, and after completing the awakening, sends a first response signal corresponding to the awakening to the target chip;
[0057] After the first chip receives the second switching signal corresponding to the sleep state, it obtains the state of the first state machine; when the first state machine is in the sending state of the current chip, it continues to send data to the target chip; when the first state machine is in the non-sending state of the current chip, it enters the sleep process and sends a first response signal corresponding to the sleep state to the target chip.
[0058] In some embodiments, through the record of the state machine, when the second switching signal corresponding to the sleep state is received, the first chip obtains the information that the target chip has completed the transmission. However, at this time, the first chip still needs to determine whether to enter the sleep state based on its own data transmission situation. Therefore, the first chip obtains its own state through the state machine. When the first chip still has data to send, it does not enter the sleep state but continues to send data. When the first chip itself has no data to send, it enters the sleep state and responds to the target chip.
[0059] As an optional implementation, the device further includes a first request wake-up lock and a first feedback wake-up lock controlled by the first chip;
[0060] Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a first request wake-up lock;
[0061] When the first chip receives a second response signal corresponding to the wake-up state sent by the target chip, the first chip starts a first feedback wake-up lock;
[0062] Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the first request wake-up lock;
[0063] When the first chip receives the second response signal corresponding to the sleep state sent by the target chip, the first chip releases the first feedback wake-up lock.
[0064] In some embodiments, when the first chip needs to send data, it first starts the first request wake-up lock to ensure that it will not enter the sleep state during the process of waking up the target chip. When receiving the second response signal, it starts the first feedback wake-up lock to ensure that it will not enter the sleep state during the data transmission process. After the data transmission is completed, before sending the first switching signal corresponding to the sleep state, it first releases the first request wake-up lock to indicate that it no longer needs to transmit data. When receiving the second response signal corresponding to the sleep state, it releases the first feedback wake-up lock to enter the sleep state.
[0065] As an optional implementation, the device further includes a first response wake-up lock controlled by the first chip;
[0066] When the first chip receives a second switching signal corresponding to the wake-up state sent by the target chip, the first chip starts a first response wake-up lock;
[0067] When the first chip receives the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the first response wake-up lock.
[0068] In some embodiments, when the first chip is awakened by the target chip, that is, when the second switching signal corresponding to the awakening state is received, it indicates that the target chip needs to send data to the first chip. At this time, the first chip starts the first response wake-up lock to ensure that the data will not enter the sleep state during the data transmission process. When the second switching signal corresponding to the sleep state is received, it indicates that the target chip data has been transmitted. At this time, the first response wake-up lock is released. If there are no other tasks, the first chip will enter the sleep state.
[0069] As an optional implementation, Figure 2 As shown, when the first chip receives the second switching signal, it sends a first response signal to the target chip through one of the serial port multiplexing channels of the serial interface;
[0070] After sending the first switching signal, the first chip receives the second response signal sent by the target chip through one of the serial interface multiplexing channels.
[0071] In some embodiments, Figure 2 As shown, the modem and the microprocessor MCU are used as examples. It should be understood that when the modem is the first chip, the microprocessor will be the target chip, and when the modem is the target chip, the microprocessor will be the first chip. Among them, the first wake-up line is shown as GPIO1, the second wake-up line is shown as GPIO2, the channel used by the target chip is shown as ACK virtual pipe 1, and the channel used by the first chip is shown as ACK virtual pipe 2. ACK virtual pipe 2 and ACK virtual pipe 1 channels are privileged channels, which have the highest priority for sending data, and the sending of data does not need to go through the wake-up process. In this embodiment, the switching result of the wake-up state is fed back through the serial port, and the general input and output pins are not occupied, thereby simplifying the content represented by the first wake-up line and the second wake-up line.
[0072] As an optional implementation, the device further includes a second state machine controlled by the first chip; the second state machine records the state of the target chip;
[0073] After the first chip receives the second response signal corresponding to the awake state, the second state machine is modified to the target chip awake state;
[0074] After receiving the second response signal corresponding to the sleep state, the first chip modifies the second state machine to the target chip sleep state.
[0075] In some embodiments, after the first chip receives the second response signal corresponding to the awake state, it indicates that the target chip has been awakened. At this time, the first chip must be in the awakened state, and the second state machine is modified to the awakened state of the target chip. After the first chip receives the second response signal corresponding to the sleep state, the state of the target chip does not necessarily enter the sleep state, but the first chip no longer maintains the awake state of the target chip. The target chip can enter the sleep state at any time if there are no other tasks. This state machine is set up to improve the accuracy of data transmission. When the target chip is definitely in the awake state, the target chip awake state is recorded. When the target chip is likely to be in the sleep state, the target chip is recorded as being in the sleep state.
[0076] As an optional implementation, when the first chip needs to send data to the target chip, it obtains the state of the second state machine. When the second state machine is in the sleep state of the target chip, the first chip sends a first switching signal corresponding to the wake-up state to the target chip; when the second state machine is in the wake-up state of the target chip, the first chip sends data to the target chip.
[0077] In some embodiments, when the second state machine records the wake-up state of the target chip, the target chip must be in the wake-up state. At this time, data transmission can be performed directly. When the second state machine records the sleep state of the target chip, the target chip may be in the sleep state. In order to ensure successful data transmission, the target chip needs to be woken up first before data can be transmitted to the target chip.
[0078] As an optional implementation, the device further includes a second request wake-up lock and a second response wake-up lock controlled by the first chip;
[0079] Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a second request wake-up lock;
[0080] Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the second request wake-up lock;
[0081] After the first chip receives the second switching signal corresponding to the wake-up state sent by the target chip, the second response wake-up lock is activated;
[0082] After receiving the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the second response wake-up lock.
[0083] In some embodiments, when the first chip needs to send data, it first starts the second request wake-up lock to ensure that it will not enter the sleep state during the process of waking up the target chip and the data transmission process. Before the first chip sends the first switching signal corresponding to the sleep state, the first chip has completed the data transmission. At this time, the second request wake-up lock can be released. After the first chip receives the second switching signal corresponding to the wake-up state, it indicates that the target chip has data to send to the first chip. At this time, the second response wake-up lock is started to keep the first chip awake to ensure successful data transmission. After the first chip receives the second switching signal corresponding to the sleep state, it indicates that the data transmission of the target chip is completed. At this time, there is no need to maintain the wake-up state for the data transmission of the target chip, and the second response wake-up lock is released. At this time, if there are no other tasks, the first chip will enter the sleep state.
[0084] As an optional implementation manner, the device further includes a first timer controlled by the first chip;
[0085] Before the first chip sends the first switching signal corresponding to the sleep state to the target chip, the first chip starts a first timer, and when the first timer expires, the first chip sends the first switching signal corresponding to the sleep state to the target chip;
[0086] When the first chip needs to send data to the target chip, the first timer is turned off.
[0087] In some embodiments, after the current data transmission is completed, it is uncertain when the next data transmission will be performed. If the first switching signal corresponding to the sleep state is sent to the target chip upon the completion of the transmission, then in the case of multiple transmissions in a short period of time, it is necessary to frequently enter the wake-up process of the target chip. This method is likely to cause a great burden on power consumption. Therefore, in this embodiment, before sending the switching signal corresponding to the sleep state, the timer is first started, and the first switching signal corresponding to the sleep state is sent when the timer ends.
[0088] For ease of understanding, the technical solutions of the above embodiments are described below with exemplary specific implementations:
[0089] like Figure 1 As shown, the modem and the microprocessor MCU are used as examples. Figure 1In the system, each chip uses the same pins to send wake-up and sleep signals as the pins to send response and feedback signals. That is, each chip uses one wire to wake up the other chip, and the function of one wire is both wake-up and response to the other chip's wake-up.
[0090] like Figure 1 As shown in the figure, taking the data transmission from Modem to MCU as an example, the data transmission process is described as follows:
[0091] When the modem is transmitting, it needs to start its own first request wake-up lock to ensure that it does not enter sleep during data transmission; then switch the level of the first wake-up line, that is, send a first switching signal corresponding to the wake-up state through the first wake-up line;
[0092] When the MCU receives the level change of the first wake-up line, it starts the first response wake-up lock and switches the level of the second wake-up line at the same time, forming a second response signal in response to the first switching signal of the Modem;
[0093] The modem receives the second response signal from the MCU through the second wake-up line and starts the first feedback wake-up lock. At this time, the wake-up is completed, and both the modem and the MCU are in the wake-up state and can start normal transmission.
[0094] After the modem transmission is completed, the modem releases its own first request wake-up lock and switches the level of the first wake-up line, that is, sends a first switching signal corresponding to the sleep state through the first wake-up line;
[0095] When the MCU receives the first switching signal corresponding to the sleep loading of the Modem, it will release the first response wake-up lock, and at the same time determine whether the MCU has data to transmit at this time through the state machine. If the MCU has no data to transmit, the second wake-up line level of the MCU is immediately switched, that is, the second response signal is sent through the second wake-up line. If there is data transmission, the second wake-up line level of the MCU is not switched, that is, the second response signal is not sent through the second wake-up line.
[0096] When the modem receives the second response signal sent by the MCU, it will release the first feedback wake-up lock. At this time, the modem does not need to remain awake.
[0097] The mutual awakening of the modem and MCU is a symmetrical process. The awakening and release process of the MCU transmitting data to the modem will not be described in detail here.
[0098] like Figure 2 As shown, the modem and the microprocessor MCU are used as examples. Figure 2In the process, each chip uses one pin to send the first switching signal and the second switching signal, and uses the serial interface to send the first response signal and the second response signal. That is, each chip uses one line to wake up the other, and both are wake-up lines. The other chip responds to the wake-up behavior through one of the channels in the multiplexing technology of the serial interface. This channel is a privileged channel, with the highest priority for sending data, and the sending data does not need to go through the wake-up process.
[0099] like Figure 2 As shown in the figure, taking the data transmission from Modem to MCU as an example, the data transmission process is described as follows:
[0100] When the Modem has data transmission, it turns off the timer and starts the second request wake-up lock, and then
[0101] The second state machine of the modem determines whether the MCU is in the awake state. If it is in the awake state, the level state of the first awake line is maintained and the transmission continues. If it is in the dormant state, the modem pulls the awake line GPIO1 to wake up the MCU, that is, sends the first switching signal corresponding to the awake state through the first awake line; at this time, the modem waits for the MCU to send the second response signal through the serial interface.
[0102] The MCU receives an interrupt caused by the first switching signal corresponding to the wake-up state of the Modem, starts the second response wake-up lock, and simultaneously sends a second response signal to the Modem through the corresponding channel of the serial interface.
[0103] The modem receives the second response signal from the MCU from the corresponding channel of the serial interface and starts to transmit data normally.
[0104] After the modem completes data transmission, the modem starts a timer. When the timer expires, it pulls GPIO1 to release the MCU's wake-up behavior, that is, sends a first switching signal corresponding to the sleep state through the first wake-up line. At this time, the modem waits for the MCU to send a second response signal through the corresponding channel of the serial interface.
[0105] When the MCU receives the first switching signal from the Modem, the MCU releases the second response wake-up lock and sends a second response signal to the Modem through the corresponding channel of the serial interface.
[0106] When the modem receives the second response signal from the MCU, the modem switches the second state machine for recording the MCU state from the awake state to the sleep state, and releases its own second request wake-up lock at the same time.
[0107] The mutual awakening of the modem and MCU is a symmetrical process. The awakening and release process of the MCU transmitting data to the modem is similar to the above process and will not be repeated here.
[0108] The embodiment of the present invention also provides a multi-chip system, such as Figure 3 As shown, two chip wake-up devices as described in any one of the above items are included, wherein a first wake-up line of any one of the two or more chip wake-up devices is electrically connected to a second wake-up line of the other chip wake-up devices.
[0109] In some embodiments, since in each chip wake-up device, the first wake-up line is a wake-up line for actively waking up the target chip, and the second wake-up line is a wake-up line for passively accepting the wake-up of the target chip, in order to enable multiple chips in a multi-chip system to wake up each other, in this embodiment, the first wake-up line of one chip wake-up device is electrically connected to the second wake-up line of another chip wake-up device. Thus, any chip wake-up device can wake up the other party and can also accept the wake-up of the other party.
[0110] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0111] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A chip wake-up device, characterized in that: include: A first chip, wherein the first chip has a serial interface, and the serial interface is used for communication connection with the serial interface of the target chip; A first wake-up line, wherein the first wake-up line is used to electrically connect a first general-purpose input-output pin of the first chip to a corresponding general-purpose input-output pin in a target chip, so that the first chip sends a first switching signal for switching a wake-up state to the target chip by switching a level of the first wake-up line; The second wake-up line is used to electrically connect the second general input / output pin of the first chip to the corresponding general input / output pin in the target chip, so that the first chip receives the second switching signal for switching the wake-up state sent by the target chip by obtaining the switching of the level of the second wake-up line.
2. The chip wake-up device according to claim 1, characterized in that: When the first chip receives the second switching signal, the first chip sends a first response signal to the second chip by switching the level state of the first wake-up line; After the first chip sends the first switching signal, the first chip receives the second response signal sent by the target chip by obtaining the switching of the second wake-up line level.
3. The chip wake-up device according to claim 2, characterized in that: The device further comprises a first state machine controlled by the first chip; the first state machine records the state of the first chip; After the first chip sends a first switching signal corresponding to the awakening state, the first state machine is modified to a current chip sending state; Before the first chip sends the first switching signal corresponding to the sleep state, the first state machine is modified to the current chip non-sending state.
4. The chip wake-up device according to claim 3, characterized in that: After receiving the second switching signal corresponding to the awakening state, the first chip enters the awakening process, and after completing the awakening, sends a first response signal corresponding to the awakening to the target chip; After the first chip receives the second switching signal corresponding to the sleep state, it obtains the state of the first state machine; when the first state machine is in the sending state of the current chip, it continues to send data to the target chip; when the first state machine is in the non-sending state of the current chip, it enters the sleep process and sends a first response signal corresponding to the sleep state to the target chip.
5. The chip wake-up device according to claim 2, characterized in that: The apparatus further includes a first request wakeup lock and a first feedback wakeup lock controlled by the first chip; Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a first request wake-up lock; When the first chip receives a second response signal corresponding to the wake-up state sent by the target chip, the first chip starts a first feedback wake-up lock; Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the first request wake-up lock; When the first chip receives the second response signal corresponding to the sleep state sent by the target chip, the first chip releases the first feedback wake-up lock.
6. The chip wake-up device according to claim 2, characterized in that: The device also includes a first response wake-up lock controlled by the first chip; When the first chip receives a second switching signal corresponding to the wake-up state sent by the target chip, the first chip starts a first response wake-up lock; When the first chip receives the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the first response wake-up lock.
7. The chip wake-up device according to claim 1, characterized in that: When the first chip receives the second switching signal, the first chip sends a first response signal to the target chip through one of the serial port multiplexing channels of the serial interface; After sending the first switching signal, the first chip receives the second response signal sent by the target chip through one of the serial interface multiplexing channels.
8. The chip wake-up device according to claim 7, characterized in that: The device also includes a second state machine controlled by the first chip; the second state machine records the state of the target chip; After the first chip receives the second response signal corresponding to the awake state, the second state machine is modified to the target chip awake state; After receiving the second response signal corresponding to the sleep state, the first chip modifies the second state machine to the target chip sleep state.
9. The chip wake-up device according to claim 8, characterized in that: When the first chip needs to send data to the target chip, it obtains the state of the second state machine. When the second state machine is in the sleep state of the target chip, the first chip sends a first switching signal corresponding to the wake-up state to the target chip; when the second state machine is in the wake-up state of the target chip, the first chip sends data to the target chip.
10. The chip wake-up device according to claim 7, characterized in that: The device also includes a second request wake-up lock and a second response wake-up lock controlled by the first chip; Before the first chip sends a first switching signal corresponding to the wake-up state to the target chip, starting a second request wake-up lock; Before the first chip sends a first switching signal corresponding to the sleep state to the target chip, releasing the second request wake-up lock; After the first chip receives the second switching signal corresponding to the wake-up state sent by the target chip, the second response wake-up lock is activated; After receiving the second switching signal corresponding to the sleep state sent by the target chip, the first chip releases the second response wake-up lock.
11. The chip wake-up device according to claim 7, characterized in that: The device also includes a first timer controlled by the first chip; Before the first chip sends the first switching signal corresponding to the sleep state to the target chip, the first chip starts a first timer, and when the first timer expires, the first chip sends the first switching signal corresponding to the sleep state to the target chip; When the first chip needs to send data to the target chip, the first timer is turned off.
12. A multi-chip system, characterized in that: The method comprises two chip wake-up devices according to any one of claims 1 to 11, wherein a first wake-up line of any one of the two or more chip wake-up devices is electrically connected to a second wake-up line of the other chip wake-up devices.
Citation Information
Cited By
Vehicle controller, chip awakening method and vehicle
CN119781425A
