APB control-based PMC asynchronous wake-up control method and system

The PMC asynchronous wake-up control method controlled by APB utilizes the collaborative work of wake-up triggering, synchronization, configuration and control units to solve the data synchronization problem during PMC asynchronous wake-up, ensuring that the PMC and CPU states are synchronized and enabling rapid entry into RUN mode.

CN116069402BActive Publication Date: 2026-01-20SHENZHEN XIHUA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211705458.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-01-20
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

In existing technologies, asynchronous wake-up of PMC may result in the inability to achieve data synchronization after wake-up, and the states of CPU and PMC may be out of sync, making it impossible to quickly synchronize and enter RUN mode.

Method used

The PMC asynchronous wake-up control method based on APB control is adopted. Through the coordinated work of the PMC wake-up trigger unit, synchronization unit, configuration unit and control unit, wake-up synchronization signal and configuration information are generated, and wake-up enable signal is generated for PMC wake-up processing to ensure data synchronization.

Benefits of technology

It effectively prevents the PMC from crashing during asynchronous wake-up, achieves synchronization between the PMC and CPU states, and ensures that the PMC quickly enters RUN mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069402B_ABST
    Figure CN116069402B_ABST
Patent Text Reader

Abstract

The application discloses a PMC asynchronous wake-up control method and system based on APB control, wherein the method comprises the following steps: when a PMC wake-up trigger unit in the PMC receives an asynchronous wake-up signal, the asynchronous wake-up signal is respectively sent to a PMC synchronization unit, a PMC configuration unit and a PMC control unit; the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal; the PMC configuration unit generates wake-up synchronization configuration information by using the asynchronous wake-up signal and the wake-up synchronization signal based on an APB control signal, and sends the wake-up synchronization configuration information to the PMC control unit; the PMC control unit generates a wake-up enable signal; and the PMC is woken up based on the wake-up enable signal. In the embodiment of the application, the problem of runaway is prevented when the PMC is woken up by the asynchronous wake-up signal, and data synchronization when the PMC is woken up is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power management, in particular to a PMC asynchronous wake-up control method and system based on APB control. BACKGROUND

[0002] The PMC (power management controller) in the power management system generally supports three modes of running (RUN), stopping (STOP) and standby (STANDBY); among them, the running mode is entered after the chip is powered on and reset in the power management system, and in the running mode, all power supplies, clocks and function modules of the chip are in normal working state; in the stopping mode, the power module of the power management system keeps power supply, but the core clock is turned off, the CPU stops reading and writing flash / sram, and other clock sources can be determined by the power management system whether to be turned on; in the standby mode, the power management system has the lowest power consumption, the power management system turns off the power supply of most digital circuits, only the external wake-up source is reserved, the clock module retains a 128KHz low-speed clock, the flash enters deep power down or power off, and the sram enters the retention state.

[0003] In the standby mode, when receiving an external asynchronous wake-up source, the prior art directly wakes up the PMC, at this time, there may be a problem that the PMC cannot realize data synchronization after being woken up; at the same time, it may cause the CPU to be in the power-down preparation stage while the PMC is in the normal running mode state, so that the two states of the CPU and the PMC are not synchronized, that is, the states between the CPU and the PMC cannot be synchronized, and cannot quickly enter the RUN mode. SUMMARY

[0004] The present application aims to overcome the shortcomings of the prior art, and provides a PMC asynchronous wake-up control method and system based on APB control, which prevents the runaway problem when the asynchronous wake-up wakeup signal wakes up the PMC, and realizes data synchronization when the PMC is woken up.

[0005] In order to solve the above technical problems, the present application embodiment provides a PMC asynchronous wake-up control method based on APB control, which comprises:

[0006] When the PMC wake-up trigger unit in the PMC receives an asynchronous wake-up wakeup signal, the asynchronous wake-up wakeup signal is sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively;

[0007] The PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up wakeup signal, and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit.

[0008] The PMC configuration unit generates wakeup synchronization configuration information based on the APB control signal, the asynchronous wakeup signal and the wakeup synchronization signal, and sends the wakeup synchronization configuration information to the PMC control unit;

[0009] The PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information;

[0010] The PMC is woken up based on the wakeup enable signal.

[0011] Optionally, the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, and further comprises:

[0012] After the PMC synchronization unit receives the asynchronous wakeup signal, it performs signal synchronization processing according to the asynchronous wakeup signal and generates a wakeup synchronization signal.

[0013] Optionally, the PMC configuration unit generates wakeup synchronization configuration information based on the APB control signal, the asynchronous wakeup signal and the wakeup synchronization signal, and comprises:

[0014] After receiving the asynchronous wakeup signal, the PMC configuration unit sends the asynchronous wakeup signal to the CPU based on the APB bus;

[0015] The PMC configuration unit receives the APB control signal sent by the CPU based on the asynchronous wakeup signal, and the APB control signal contains the current working frequency of the CPU;

[0016] The PMC configuration unit performs configuration processing according to the APB control signal, the asynchronous wakeup signal and the wakeup synchronization signal, and generates wakeup synchronization configuration information.

[0017] Optionally, the PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information, and comprises:

[0018] The PMC control unit generates an access instruction to access the CPU memory storage unit, and judges whether there is a CPU memory operation in the CPU memory storage unit according to the access result;

[0019] If the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit, and generates a wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal and wakeup synchronization configuration information;

[0020] If the CPU memory operation does not exist, the PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and wakeup synchronization configuration information.

[0021] Optionally, the wakeup enable signal comprises a wakeup da_en_vbg signal, a wakeup da_en_mldo signal, a wakeup da_en_fldo signal and a wakeup da_firc_en signal.

[0022] Optionally, the wakeup processing of the PMC based on the wakeup enable signal comprises:

[0023] The PMC control unit performs a PMC system power-on processing based on the wakeup enable signal within a preset clock cycle.

[0024] After the PMC system is powered on, the control sirc_clk starts to output a clock, and when the flash device power supply mode is supplyon, at least 1us of time is required, and the PMC exits the standby mode.

[0025] Optionally, after the PMC system is powered on, the method further comprises:

[0026] After the flash device low-power supply mode is power off, and after the flash supplyon, a tpup time cycle is required to release the reset of the flash; wherein the tpup time cycle is 1-16 sirc_clk cycles.

[0027] Optionally, after the PMC exits the standby mode, the method further comprises:

[0028] The time cycle of the PMC from the isolation disable stage to the normal run stage ranges from 1-16 sirc clock cycles.

[0029] And when entering the PMC normal run stage, the reset of the entire shut domain is released.

[0030] Optionally, the method further comprises:

[0031] The PMC analog communication unit generates the wake-up synchronization configuration information based on the received wake-up synchronization configuration information and the wake-up enabling signal.

[0032] In addition, the embodiment of the present application further provides a PMC asynchronous wake-up control system based on APB control, which comprises a PMC wake-up triggering unit, a PMC synchronization unit, a PMC configuration unit, a PMC control unit and a PMC analog communication unit.

[0033] In the embodiment of the present application, after receiving the asynchronous wake-up signal, the PMC configuration unit generates the wake-up synchronization configuration information based on the asynchronous wake-up signal and the wake-up synchronization signal according to the APB control signal, so that the runaway problem of the PMC wake-up caused by the asynchronous wake-up signal can be effectively prevented; the PMC control unit generates the wake-up enabling signal based on the asynchronous wake-up signal, the wake-up synchronization signal and the wake-up synchronization configuration information, and wakes up the PMC through the wake-up enabling signal, so that the data synchronization when the PMC is woken up can be realized. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0035] Figure 1 is a structural composition schematic diagram of the PMC asynchronous wake-up control system based on APB control in the embodiment of the present application;

[0036] Figure 2 is a flowchart of the PMC asynchronous wake-up control method based on APB control in the second embodiment of the present application;

[0037] Figure 3 is a flowchart of the PMC asynchronous wake-up control method based on APB control in the third embodiment of the present application;

[0038] Figure 4 is a flowchart of the PMC asynchronous wake-up control method based on APB control in the fourth embodiment of the present application;

[0039] Figure 5 is a flowchart of the PMC asynchronous wake-up control method based on APB control in the fifth embodiment of the present application;

[0040] Figure 6 PMC asynchronous wake-up timing diagram in the embodiment of the present application. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0042] Embodiment one, please refer to Figure 1 , Figure 1 is a structure composition schematic diagram of the PMC asynchronous wake-up control system based on APB control in the embodiment of the present application.

[0043] As Figure 1 shown, a PMC asynchronous wake-up control system based on APB control, the system comprises a PMC wake-up trigger unit, a PMC synchronization unit, a PMC configuration unit, a PMC control unit and a PMC analog communication unit; wherein the PMC wake-up trigger unit is used for receiving an asynchronous wake-up wakeup signal, and sending the asynchronous wake-up wakeup signal to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively when receiving the asynchronous wake-up wakeup signal; the PMC synchronization unit is used for generating a wake-up synchronization signal according to the asynchronous wake-up wakeup signal, and sending the wake-up synchronization signal to the PMC configuration unit and the PMC control unit; the PMC configuration unit is used for generating wake-up synchronization configuration information according to the asynchronous wake-up wakeup signal and the wake-up synchronization signal by using the APB control signal, and sending the wake-up synchronization configuration information to the PMC control unit; the PMC control unit is used for generating a wake-up enable signal according to the asynchronous wake-up wakeup signal, the wake-up synchronization signal and the wake-up synchronization configuration information; and performing wake-up processing on the PMC according to the wake-up enable signal; the PMC analog communication unit is used for connecting with the analog unit according to the received wake-up synchronization configuration information and the wake-up enable signal.

[0044] In the embodiment of the present application, after receiving the asynchronous wake-up wakeup signal, the PMC configuration unit generates wake-up synchronization configuration information according to the asynchronous wake-up wakeup signal and the wake-up synchronization signal by using the APB control signal; in this way, the runaway problem when the asynchronous wake-up wakeup signal wakes up the PMC can be effectively prevented; the PMC control unit generates a wake-up enable signal according to the asynchronous wake-up wakeup signal, the wake-up synchronization signal and the wake-up synchronization configuration information; and performs wake-up processing on the PMC through the wake-up enable signal; that is, data synchronization when the PMC is woken up can be realized.

[0045] Embodiment two, please refer to Figure 2 , Figure 2 is the flowchart of the PMC asynchronous wake-up control method based on APB control in the second embodiment of the present application.

[0046] As Figure 2 shown, a PMC asynchronous wake-up control method based on APB control, the method comprises:

[0047] S21: When the PMC wake-up trigger unit in the PMC receives an asynchronous wake-up signal, the asynchronous wake-up signal is sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively;

[0048] In the implementation process of the present application, when the PMC is in standby mode, after the PMC wake-up trigger unit receives the asynchronous wake-up signal of the user, the asynchronous wake-up signal needs to be sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively.

[0049] S22: The PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit;

[0050] In the implementation process of the present application, the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal, which further comprises: after the PMC synchronization unit receives the asynchronous wake-up signal, signal synchronization processing is performed according to the asynchronous wake-up signal, and a wake-up synchronization signal is generated.

[0051] Specifically, the PMC synchronization unit is used for synchronization processing. After receiving the asynchronous wake-up signal, since the asynchronous wake-up signal is inconsistent with the wake-up clock of the PMC, the PMC synchronization unit performs signal synchronization processing on the asynchronous wake-up signal according to the period frequency of the wake-up clock, that is, a wake-up synchronization signal is generated; after generating the wake-up synchronization signal, the wake-up synchronization signal is sent to the PMC configuration unit and the PMC control unit respectively.

[0052] S23: The PMC configuration unit generates wake-up synchronization configuration information based on the asynchronous wake-up signal and the wake-up synchronization signal using the APB control signal, and sends the wake-up synchronization configuration information to the PMC control unit;

[0053] In the embodiment of the present application, first, the PMC configuration unit sends the asynchronous wakeup signal to the CPU working in cooperation with the PMC according to the APB bus after receiving the asynchronous wakeup signal, and the CPU generates the APB control signal after receiving the asynchronous wakeup signal; then the PMC configuration unit in the PMC sends the APB control signal back to the PMC configuration unit through the APB bus, and the APB control signal contains the current working frequency of the CPU; finally, the PMC configuration unit generates the wakeup synchronization configuration information by using the asynchronous wakeup signal and the wakeup synchronization signal according to the APB control signal.

[0054] S24: The PMC control unit generates the wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information.

[0055] In the embodiment of the present application, the PMC control unit generates the access instruction to access the CPU memory storage unit, and judges whether the CPU memory operation exists in the CPU memory storage unit according to the access result; and when the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit, and generates the wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information; when the CPU memory operation does not exist, the PMC control unit generates the wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information.

[0056] The wakeup enable signal includes the wakeup da_en_vbg signal, the wakeup da_en_mldo signal, the wakeup da_en_fldo signal and the wakeup da_firc_en signal.

[0057] S25: The PMC is woken up based on the wakeup enable signal.

[0058] In the embodiment of the present application, the PMC control unit performs the PMC system power-on processing according to the wakeup enable signal in a preset clock cycle; and after the PMC system is powered on, the sirc_clk starts to oscillate, and when the flash device power supply mode is supplyon, at least 1us time is needed, and the PMC exits the standby mode.

[0059] When the flash device low-power mode is power off, the flash supplyon needs to pass through the tpup time cycle to reset and release the flash; the tpup time cycle is 1-16 sirc_clk cycles.

[0060] The time period of PMC from the isolation disable stage to the normal run stage is 1-16 sirc clock cycles; and the reset of the whole shut domain is released when entering the PMC normal run stage.

[0061] The PMC analog communication unit needs to be connected with the analog unit according to the received wake-up synchronization configuration information and the wake-up enable signal.

[0062] In the embodiment of the present application, after receiving the asynchronous wake-up wakeup signal, the PMC configuration unit generates the wake-up synchronization configuration information according to the APB control signal, the asynchronous wake-up wakeup signal and the wake-up synchronization signal; thus, the runaway problem can be effectively prevented when the asynchronous wake-up wakeup signal wakes up the PMC; the PMC control unit generates the wake-up enable signal according to the asynchronous wake-up wakeup signal, the wake-up synchronization signal and the wake-up synchronization configuration information; and the PMC is woken up by the wake-up enable signal; thus, the data synchronization when the PMC is woken up can be realized.

[0063] Embodiment three, Figure 3 is a flowchart of the PMC asynchronous wake-up control method based on the APB control in the third embodiment of the present application.

[0064] As Figure 3 shown, a PMC asynchronous wake-up control method based on the APB control, the method comprising:

[0065] S31: when the PMC wake-up trigger unit in the PMC receives the asynchronous wake-up wakeup signal, the asynchronous wake-up wakeup signal is sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively;

[0066] In the specific implementation process of the present application, when the PMC is in the standby mode, after the PMC wake-up trigger unit receives the asynchronous wake-up wakeup signal of the user, the asynchronous wake-up wakeup signal needs to be sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively.

[0067] S32: the PMC synchronization unit generates the wake-up synchronization signal based on the asynchronous wake-up wakeup signal, and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit;

[0068] In the embodiment of the present application, the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, and further comprises: after the PMC synchronization unit receives the asynchronous wakeup signal, performing signal synchronization processing according to the asynchronous wakeup signal, and generating a wakeup synchronization signal.

[0069] Specifically, the PMC synchronization unit is configured to perform synchronization processing, and after receiving the asynchronous wakeup signal, since the asynchronous wakeup signal is inconsistent with the wakeup clock of the PMC, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to the period frequency of the wakeup clock, so as to generate a wakeup synchronization signal; after generating the wakeup synchronization signal, the wakeup synchronization signal is sent to the PMC configuration unit and the PMC control unit.

[0070] S33: The PMC configuration unit sends the asynchronous wakeup signal to the CPU based on the APB bus after receiving the asynchronous wakeup signal.

[0071] In the embodiment of the present application, after the PMC configuration unit receives the asynchronous wakeup signal, the PMC needs to be able to work cooperatively with the CPU after being woken up, so that the two will not run away or exist hanging phenomenon; therefore, the PMC configuration unit needs to send the received asynchronous wakeup signal to the CPU through the APB bus connected with the CPU; so that the CPU can receive the asynchronous wakeup signal and make corresponding preparation for work.

[0072] S34: The PMC configuration unit receives an APB control signal sent by the CPU based on the asynchronous wakeup signal, and the APB control signal contains the current working frequency of the CPU.

[0073] In the embodiment of the present application, after the CPU receives the asynchronous wakeup signal, the clock period in the asynchronous wakeup signal is read, and the APB control signal is generated according to the clock period, and the APB control signal contains the current working frequency of the CPU; then the APB control signal is sent to the PMC configuration unit through the APB bus.

[0074] S35: The PMC configuration unit performs configuration processing on the asynchronous wakeup signal and the wakeup synchronization signal according to the APB control signal, generates wakeup synchronization configuration information, and sends the wakeup synchronization configuration information to the PMC control unit.

[0075] In the embodiment of the present application, after the PMC configuration unit receives the APB control signal, the PMC configuration unit needs to perform configuration processing according to the APB control signal by using the asynchronous wakeup signal and the wakeup synchronization signal, and finally generates wakeup synchronization configuration information, and sends the wakeup synchronization configuration information to the PMC control unit.

[0076] S36: The PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal, and the wakeup synchronization configuration information.

[0077] In the embodiment of the present application, the PMC control unit generates an access instruction to access the CPU memory storage unit, and judges whether there is a CPU memory operation in the CPU memory storage unit according to the access result. When there is a CPU memory operation, the PMC control unit extracts the CPU memory operation from the CPU memory storage unit, and generates a wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal, and the wakeup synchronization configuration information. When there is no CPU memory operation, the PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal, and the wakeup synchronization configuration information.

[0078] The wakeup enable signal includes a wakeup da_en_vbg signal, a wakeup da_en_mldo signal, a wakeup da_en_fldo signal, and a wakeup da_firc_en signal.

[0079] S37: Perform wakeup processing on the PMC based on the wakeup enable signal.

[0080] In the embodiment of the present application, the PMC control unit performs PMC system power-on processing according to the wakeup enable signal within a preset clock period. After the PMC system is powered on, the sirc_clk starts to output a clock, and when the flash device power supply mode is supplyon, at least 1us of time is needed, and the PMC exits the standby mode.

[0081] When the flash device low-power mode is power off, after the flash supplyon, the flash needs to be reset and released after a tpup time period. The tpup time period is 1-16 sirc_clk periods.

[0082] The time period of PMC from the isolation disable stage to the normal run stage is 1-16 sirc clock cycles; and the reset of the whole shut domain is released when entering the PMC normal run stage.

[0083] The PMC analog communication unit needs to be connected with the analog unit according to the received wakeup synchronization configuration information and wakeup enable signal.

[0084] In the embodiment of the present application, after receiving the asynchronous wakeup wakeup signal, the wakeup synchronization configuration information is generated in the PMC configuration unit according to the APB control signal, the asynchronous wakeup wakeup signal and the wakeup synchronization signal; thus, the runaway problem can be effectively prevented when the asynchronous wakeup wakeup signal wakes up the PMC; the wakeup enable signal is generated in the PMC control unit according to the asynchronous wakeup wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information; and the PMC is woken up by the wakeup enable signal; thus, the data synchronization when the PMC is woken up can be realized.

[0085] Embodiment four, Figure 4 is a flowchart of the PMC asynchronous wakeup control method based on the APB control in the fourth embodiment of the present application.

[0086] As Figure 4 shown, a PMC asynchronous wakeup control method based on the APB control, characterized in that the method comprises:

[0087] S41: when the asynchronous wakeup wakeup signal is received by the PMC wakeup trigger unit in the PMC, the asynchronous wakeup wakeup signal is sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively;

[0088] In the specific implementation process of the present application, when the PMC is in the standby mode, after the asynchronous wakeup wakeup signal of the user is received by the PMC wakeup trigger unit, the asynchronous wakeup wakeup signal needs to be sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively.

[0089] S42: the wakeup synchronization signal is generated based on the asynchronous wakeup wakeup signal by the PMC synchronization unit, and the wakeup synchronization signal is sent to the PMC configuration unit and the PMC control unit;

[0090] In the embodiment of the present application, the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, and further comprises: after the PMC synchronization unit receives the asynchronous wakeup signal, performing signal synchronization processing according to the asynchronous wakeup signal, and generating a wakeup synchronization signal.

[0091] Specifically, the PMC synchronization unit is configured to perform synchronization processing, and after receiving the asynchronous wakeup signal, since the asynchronous wakeup signal is inconsistent with the wakeup clock of the PMC, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to the period frequency of the wakeup clock, so as to generate a wakeup synchronization signal; after generating the wakeup synchronization signal, the wakeup synchronization signal is sent to the PMC configuration unit and the PMC control unit respectively.

[0092] S43: The PMC configuration unit generates wakeup synchronization configuration information based on the APB control signal, the asynchronous wakeup signal and the wakeup synchronization signal, and sends the wakeup synchronization configuration information to the PMC control unit.

[0093] In the embodiment of the present application, first, after receiving the asynchronous wakeup signal, the PMC configuration unit immediately sends the asynchronous wakeup signal to the CPU working in cooperation with the PMC according to the APB bus, and the CPU generates an APB control signal after receiving the asynchronous wakeup signal; then the APB control signal containing the current working frequency of the CPU is sent back to the PMC configuration unit in the PMC through the APB bus; finally, the PMC configuration unit performs configuration processing on the asynchronous wakeup signal and the wakeup synchronization signal according to the APB control signal, to generate wakeup synchronization configuration information.

[0094] S44: The PMC control unit generates an access instruction to access the memory storage unit of the CPU, and judges whether there is a CPU memory operation in the memory storage unit of the CPU according to the access result.

[0095] In the embodiment of the present application, since the PMC needs to work in cooperation with the CPU, it is necessary to access the memory storage unit of the CPU, so as to judge whether there is a CPU memory operation in the memory storage unit of the CPU, and to wake up the PMC according to whether there is a CPU memory operation, so as to synchronize the starting work with the CPU and prevent the problem of running away.

[0096] S45: If there is a CPU memory operation, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit, and generates a wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal, and wakeup synchronization configuration information;

[0097] In the embodiment of the present application, when there is a CPU memory operation, the PMC control unit needs to extract the corresponding CPU memory operation in the CPU memory storage unit through a corresponding control instruction, and generate a wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal, and wakeup synchronization configuration information; wherein the wakeup enable signal includes a wakeup da_en_vbg signal, a wakeup da_en_mldo signal, a wakeup da_en_fldo signal, and a wakeup da_firc_en signal.

[0098] S46: If there is no CPU memory operation, the PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal, and wakeup synchronization configuration information;

[0099] In the embodiment of the present application, when there is no CPU memory operation, the PMC control unit only needs to generate a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal, and wakeup synchronization configuration information; wherein the wakeup enable signal includes a wakeup da_en_vbg signal, a wakeup da_en_mldo signal, a wakeup da_en_fldo signal, and a wakeup da_firc_en signal.

[0100] S47: Based on the wakeup enable signal, the PMC is woken up.

[0101] In the embodiment of the present application, the PMC control unit performs a PMC system power-on process according to the wakeup enable signal within a preset clock period; and after the PMC system is powered on, the sirc_clk starts to oscillate, and when the flash device power supply mode is supplyon, at least 1us of time is needed, and the PMC exits the standby mode.

[0102] And when the flash device low-power mode is power off, after the flash supplyon, the flash needs to be reset and released after a tpup time period; wherein the tpup time period is 1-16 sirc_clk periods.

[0103] The time period of PMC from the isolation disable stage to the normal run stage is 1-16 sirc clock cycles; and the reset of the whole shut domain is released when the PMC enters the normal run stage.

[0104] The PMC analog communication unit needs to be connected with the analog unit according to the received wakeup synchronization configuration information and wakeup enable signal.

[0105] In the embodiment of the present application, after receiving the asynchronous wakeup wakeup signal, the wakeup synchronization configuration information is generated in the PMC configuration unit according to the APB control signal, the asynchronous wakeup wakeup signal and the wakeup synchronization signal; thus, the runaway problem can be effectively prevented when the asynchronous wakeup wakeup signal wakes up the PMC; the wakeup enable signal is generated in the PMC control unit according to the asynchronous wakeup wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information; and the PMC is woken up by the wakeup enable signal; thus, the data synchronization when the PMC is woken up can be realized.

[0106] Embodiment five, please refer to Figure 5 , Figure 5 is the flowchart of the PMC asynchronous wakeup control method based on the APB control in the fifth embodiment of the present application.

[0107] As Figure 5 shown, a PMC asynchronous wakeup control method based on the APB control, the method comprises:

[0108] S51: when the asynchronous wakeup wakeup signal is received by the PMC wakeup trigger unit in the PMC, the asynchronous wakeup wakeup signal is sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively;

[0109] In the specific implementation process of the present application, when the PMC is in the standby mode, after the asynchronous wakeup wakeup signal of the user is received by the PMC wakeup trigger unit, the asynchronous wakeup wakeup signal needs to be sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit respectively.

[0110] S52: the wakeup synchronization signal is generated based on the asynchronous wakeup wakeup signal by the PMC synchronization unit, and the wakeup synchronization signal is sent to the PMC configuration unit and the PMC control unit;

[0111] In the embodiment of the present application, the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, and further comprises: after the PMC synchronization unit receives the asynchronous wakeup signal, performing signal synchronization processing according to the asynchronous wakeup signal, and generating a wakeup synchronization signal.

[0112] Specifically, the PMC synchronization unit is configured to perform synchronization processing, and after receiving the asynchronous wakeup signal, since the asynchronous wakeup signal is inconsistent with the wakeup clock of the PMC, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to the period frequency of the wakeup clock, so as to generate a wakeup synchronization signal; after generating the wakeup synchronization signal, the wakeup synchronization signal is sent to the PMC configuration unit and the PMC control unit respectively.

[0113] S53: The PMC configuration unit generates wakeup synchronization configuration information based on the asynchronous wakeup signal and the wakeup synchronization signal according to the APB control signal, and sends the wakeup synchronization configuration information to the PMC control unit.

[0114] In the embodiment of the present application, first, after receiving the asynchronous wakeup signal, the PMC configuration unit immediately sends the asynchronous wakeup signal to the CPU working in cooperation with the PMC according to the APB bus, and the CPU generates an APB control signal after receiving the asynchronous wakeup signal; then the APB control signal containing the current working frequency of the CPU is sent back to the PMC configuration unit in the PMC through the APB bus; finally, the PMC configuration unit performs configuration processing on the asynchronous wakeup signal and the wakeup synchronization signal according to the APB control signal, to generate wakeup synchronization configuration information.

[0115] S54: The PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information.

[0116] In the embodiment of the present application, the PMC control unit generates an access instruction to access the CPU memory storage unit, and judges whether there is a CPU memory operation in the CPU memory storage unit according to the access result; and when there is a CPU memory operation, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit, and generates a wakeup enable signal according to the CPU memory operation, the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information; when there is no CPU memory operation, the PMC control unit generates a wakeup enable signal according to the asynchronous wakeup signal, the wakeup synchronization signal and the wakeup synchronization configuration information.

[0117] The wake-up enable signal includes a wake-up da_en_vbg signal, a wake-up da_en_mldo signal, a wake-up da_en_fldo signal and a wake-up da_firc_en signal.

[0118] S55: The PMC control unit performs a PMC system power-on process within a preset clock cycle based on the wake-up enable signal.

[0119] In the embodiment, the PMC control unit performs a PMC system power-on process within a predicted clock cycle through the wake-up enable signal, that is, after the wake-up enable signal is generated, the PMC system is controlled to be powered on after approximately one 128KHz clock cycle.

[0120] S56: After the PMC system is powered on, the sirc_clk is controlled to start oscillating, and when the flash device power consumption mode is supplyon, at least 1us of time is needed, and the PMC exits the standby mode.

[0121] In the embodiment, please refer to Figure 6 , Figure 6 is a PMC asynchronous wake-up timing diagram in the embodiment. After the PMC system is powered on, the sirc_clk is controlled to start oscillating, and when the flash device power consumption mode is supplyon, at least 1us of time is needed, and the PMC exits the standby mode. That is, after the PMC system is powered on, the sirc_clk starts to oscillate, and when the flash device power consumption mode is supplyon, since the flash needs 1us (min) of establishment time to supplyon after the system is powered on, at least 1us of time is needed after the system is powered on, and the PMC exits the standby mode. Considering that the sirc_clk that starts to oscillate may be a non-standard clock, and the period may be less than one cycle, and considering that the flash needs 1us of establishment time to be powered on, the time delay here is configurable, and from the sirc_clk starting to oscillate, at most 64 cycles and at least one cycle are needed.

[0122] When the flash device low-power mode is power off, when the flash supplyon is high, the PMC exits the standby mode and enters the isolation disable stage, corresponding to the pu2iso period of the timing diagram; the length of this period can be configured by software, and the range is 1-16 sirc clock cycles; since the flash device low-power mode is power off, in order to meet the special timing of the flash device supplyon and reset, the flash supplyon needs to pass through tpup to release the flash reset; the length of tpup is controllable by software, and the range is 1-16 sirc_clk cycles.

[0123] The PMC enters the isolation disable to normal run stage, corresponding to the iso2run period of the timing diagram; the length of this period can be configured by software, and the range is 1-16 sirc clock cycles; at the same time when the PMC enters the PMC normal run stage, the reset of the entire shut domain is released.

[0124] The PMC analog communication unit needs to be connected with the analog unit according to the received wake-up synchronization configuration information and the wake-up enable signal.

[0125] In the embodiment of the application, after receiving the asynchronous wake-up wakeup signal, the PMC configuration unit generates the wake-up synchronization configuration information according to the APB control signal, the asynchronous wake-up wakeup signal and the wake-up synchronization signal; in this way, the runaway problem when the asynchronous wake-up wakeup signal wakes up the PMC can be effectively prevented; the PMC control unit generates the wake-up enable signal according to the asynchronous wake-up wakeup signal, the wake-up synchronization signal and the wake-up synchronization configuration information; and the PMC is woken up through the wake-up enable signal; that is, the data synchronization when the PMC is woken up can be realized.

[0126] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium, and the storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0127] In addition, the above detailed introduction is provided for the PMC asynchronous wake-up control method and system based on the APB control according to the embodiments of the present application, the principles and implementation manners of the present application are described by using specific examples in this paper, and the above embodiment description is only used for helping to understand the method of the present application and the core idea; meanwhile, for the general technical personnel in the art, the specific implementation manners and application ranges will be changed according to the idea of the present application, and the above description should not be understood as the limitation of the present application.

Claims

1. A PMC asynchronous wake-up control method based on APB control, characterized in that, The method comprises: When the PMC is in the standby mode, the PMC wake-up trigger unit receives an asynchronous wake-up signal, and sends the asynchronous wake-up signal to a PMC synchronization unit, a PMC configuration unit and a PMC control unit respectively; The PMC synchronization unit performs signal synchronization processing on the asynchronous wake-up signal according to the period frequency of the wake-up clock of the PMC to generate a wake-up synchronization signal, and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit; The PMC configuration unit generates wake-up synchronization configuration information based on the asynchronous wake-up signal and the wake-up synchronization signal according to an APB control signal, and sends the wake-up synchronization configuration information to the PMC control unit; The PMC control unit generates a wake-up enable signal according to the asynchronous wake-up signal, the wake-up synchronization signal and the wake-up synchronization configuration information; The PMC is woken up based on the wake-up enable signal; the PMC configuration unit generates wake-up synchronization configuration information based on the asynchronous wake-up signal and the wake-up synchronization signal according to an APB control signal, which comprises: The PMC configuration unit sends the asynchronous wake-up signal to the CPU based on the APB bus after receiving the asynchronous wake-up signal; The PMC configuration unit receives an APB control signal sent by the CPU based on the asynchronous wake-up signal, and the APB control signal contains the current working frequency of the CPU; The PMC configuration unit generates wake-up synchronization configuration information by performing configuration processing on the asynchronous wake-up signal and the wake-up synchronization signal according to the APB control signal; The wake-up enable signal comprises a wake-up da_en_vbg signal, a wake-up da_en_mldo signal, a wake-up da_en_fldo signal and a wake-up da_firc_en signal.

2. The PMC asynchronous wake-up control method of claim 1, wherein, The PMC control unit generates a wake-up enable signal according to the asynchronous wake-up signal, the wake-up synchronization signal and the wake-up synchronization configuration information, which comprises: The PMC control unit generates an access instruction to access the memory storage unit of the CPU, and judges whether there is a CPU memory operation in the memory storage unit of the CPU according to the access result; If there is a CPU memory operation, the PMC control unit extracts the CPU memory operation in the memory storage unit of the CPU, and generates a wake-up enable signal according to the CPU memory operation, the asynchronous wake-up signal, the wake-up synchronization signal and the wake-up synchronization configuration information; If there is no CPU memory operation, the PMC control unit generates a wake-up enable signal according to the asynchronous wake-up signal, the wake-up synchronization signal and the wake-up synchronization configuration information.

3. The PMC asynchronous wake-up control method of claim 1, wherein, The PMC is woken up based on the wake-up enable signal, which comprises: The PMC control unit performs a PMC system power-on process within a preset clock cycle based on the wake-up enable signal; After the PMC system is powered on, the sirc_clk is controlled to start oscillating, and at least 1us of time is required when the flash device power supply mode is supplyon, and the PMC exits the standby mode.

4. The PMC asynchronous wake-up control method of claim 3, wherein, The method further comprises: After the flash device low-power supply mode is power off, and after the flash supplyon, the flash reset is released after a tpup time period, wherein the tpup time period is 1-16 sirc_clk cycles.

5. The PMC asynchronous wake-up control method of claim 3, wherein, After the PMC exits the standby mode, the method further comprises: The time period of the PMC from the isolation disable stage to the normal run stage ranges from 1-16 sirc clock cycles; And when entering the PMC normal run stage, the reset of the entire shut domain is released.

6. The PMC asynchronous wake-up control method of claim 1, wherein, The method further comprises: The PMC analog communication unit is connected with the analog unit based on the received wake-up synchronization configuration information and the wake-up enable signal.

7. A PMC asynchronous wake-up control system based on APB control, characterized in that, The system comprises a PMC wake-up trigger unit, a PMC synchronization unit, a PMC configuration unit, a PMC control unit, and a PMC analog communication unit; wherein the system is configured to execute the PMC asynchronous wake-up control method of any one of claims 1-6.

Citation Information

Patent Citations

  • Chip awakening circuit, chip and chip awakening method

    CN114647297A

  • Synchronization method between high-frequency clock and low-frequency clock

    CN115220527A