CN116069402A - PMC asynchronous wake-up control method and system based on APB control - Google Patents

PMC asynchronous wake-up control method and system based on APB control Download PDF

Info

Publication number
CN116069402A
CN116069402A CN202211705458.8A CN202211705458A CN116069402A CN 116069402 A CN116069402 A CN 116069402A CN 202211705458 A CN202211705458 A CN 202211705458A CN 116069402 A CN116069402 A CN 116069402A
Authority
CN
China
Prior art keywords
pmc
wake
signal
asynchronous
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211705458.8A
Other languages
Chinese (zh)
Inventor
周成梅
陈婷
黄志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xihua Technology Co Ltd
Original Assignee
Shenzhen Xihua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xihua Technology Co Ltd filed Critical Shenzhen Xihua Technology Co Ltd
Priority to CN202211705458.8A priority Critical patent/CN116069402A/en
Publication of CN116069402A publication Critical patent/CN116069402A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)

Abstract

The invention 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 synchronous configuration information by using an asynchronous wake-up signal and a wake-up synchronous signal based on the APB control signal and sends the wake-up synchronous configuration information to the PMC control unit; the PMC control unit generates a wake-up enabling signal; the PMC is wake-up processed based on the wake-up enable signal. In the embodiment of the invention, the problem of run-out is prevented when the PMC is awakened by the asynchronous awakening signal, and the data synchronization when the PMC is awakened is realized.

Description

PMC asynchronous wake-up control method and system based on APB control
Technical Field
The invention 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
The PMC (power management controller) in a power management system generally supports three modes of RUN (RUN), STOP (STOP) and STANDBY (STANDBY); the operation mode is that the chip in the power management system enters after power-on reset, and all power supplies, clocks and functional modules of the chip are in a normal working state in the operation mode; in the stop mode, the power supply module of the power supply management system keeps supplying power, but the core clock is closed, the CPU stops reading and writing flash/sram, and other clock sources can have the power supply management system to determine whether to start or not; in the standby mode, the power consumption of the power management system is the lowest, the power management system turns off most of digital circuit power supplies, only an external wake-up source is reserved, a 128KHz low-speed clock is reserved by the clock module, flash enters the deep power down or power off, and sram enters the retrieve state.
In the standby mode, when an external asynchronous wake-up source is received, the prior art directly wakes up the PMC, and at this time, the problem that the PMC cannot realize data synchronization after waking up may exist; meanwhile, the state of the PMC in a normal running mode may be caused, and the CPU is in a power-down preparation stage, so that the two states of the CPU and the PMC are not synchronous, namely, the states of the CPU and the PMC cannot be synchronous, and the state of the CPU and the PMC cannot be quickly synchronized to enter into the RUN mode.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a PMC asynchronous wake-up control method and system based on APB control, which can prevent the problem of flying when a PMC is awakened by an asynchronous wake-up signal and realize data synchronization when the PMC is awakened.
In order to solve the technical problems, an embodiment of the present invention provides a PMC asynchronous wake-up control method based on APB control, where the method includes:
when a PMC wake-up triggering 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 and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit;
the PMC configuration unit generates wake-up synchronous configuration information by using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, and sends the wake-up synchronous configuration information to the PMC control unit;
the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
and carrying out wake-up processing on the PMC based on the wake-up enabling signal.
Optionally, the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, and further includes:
and 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.
Optionally, the PMC configuration unit generates wake-up synchronization configuration information based on an APB control signal using the asynchronous wake-up signal and the wake-up synchronization signal, including:
after receiving the asynchronous wakeup signal, the PMC configuration unit sends the asynchronous wakeup signal to a CPU (central processing unit) based on the APB bus;
the PMC configuration unit receives an APB control signal sent by the CPU based on the asynchronous wakeup signal, wherein the APB control signal comprises the current working frequency of the CPU;
and the PMC configuration unit performs configuration processing by utilizing the asynchronous wakeup signal and the wakeup synchronous signal according to the APB control signal to generate wakeup synchronous configuration information.
Optionally, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronization signal and the wake-up synchronization configuration information, including:
the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit;
if the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
and if the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information.
Optionally, the wake-up enable signals include 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_fic_en signal.
Optionally, the performing wake-up processing on the PMC based on the wake-up enabling signal includes:
the PMC control unit performs PMC system power-on processing in a preset clock period based on the wake-up enabling signal;
after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is required, and the PMC exits from the standby mode.
Optionally, after the PMC system is powered on, the method further includes:
when the low power consumption mode of the flash device is power off, after the flash supply, a tputp time period is needed to pass, and the flash is reset and released; wherein the tpup time period is 1-16 src_clk periods.
Optionally, after the PMC exits the standby mode, the method further includes:
the PMC ranges from isolation disable phase to normal run phase from 1-16 src clock cycles;
and upon entering the PMC normal run phase, the reset of the entire glutdomain is released.
Optionally, 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 enabling signal.
In addition, the embodiment of the invention also provides a PMC asynchronous wake-up control system based on APB control, which comprises a PMC wake-up triggering unit, a PMC synchronous unit, a PMC configuration unit, a PMC control unit and a PMC analog communication unit; wherein the system is configured to perform the PMC asynchronous wake-up control method of any of the above.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal at the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of the structural components of an APB control-based PMC asynchronous wake-up control system according to an embodiment of the present invention;
FIG. 2is a flow chart of a PMC asynchronous wake-up control method based on APB control in a second embodiment of the present invention;
FIG. 3 is a flow chart of a PMC asynchronous wake-up control method based on APB control according to a third embodiment of the present invention;
FIG. 4 is a flow chart of a PMC asynchronous wake-up control method based on APB control in a fourth embodiment of the present invention;
FIG. 5 is a flow chart of a PMC asynchronous wake-up control method based on APB control in a fifth embodiment of the present invention;
FIG. 6 is a timing diagram of PMC asynchronous wake-up in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an APB control-based PMC asynchronous wake-up control system according to an embodiment of the present invention.
As shown in fig. 1, a PMC asynchronous wake-up control system based on APB control includes a PMC wake-up trigger unit, a PMC synchronization unit, a PMC configuration unit, a PMC control unit, and a PMC analog communication unit; the PMC wake-up triggering unit is used for receiving the asynchronous wake-up signal and respectively sending the asynchronous wake-up signal to the PMC synchronous unit, the PMC configuration unit and the PMC control unit when receiving the asynchronous wake-up signal; the PMC synchronization unit is used for generating a wake-up synchronization signal according to the asynchronous wake-up 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 synchronous configuration information by utilizing an asynchronous wake-up signal and a wake-up synchronous signal according to the APB control signal, and sending the wake-up synchronous configuration information to the PMC control unit; the PMC control unit is used for generating a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC according to the wake-up enabling signal; the PMC analog communication unit is used for being connected with the analog unit according to the received wake-up synchronous configuration information and the wake-up enabling signal.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal by the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
Referring to fig. 2, fig. 2is a flow chart of a PMC asynchronous wake-up control method based on APB control according to a second embodiment of the present invention.
As shown in fig. 2, a PMC asynchronous wake-up control method based on APB control, the method includes:
s21: when a PMC wake-up triggering 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;
in the implementation process of the invention, when the PMC is in the standby mode, after the PMC wake-up triggering unit receives an asynchronous wake-up signal of a user, the asynchronous wake-up signal is required to be respectively sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit.
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;
in the implementation process of the invention, the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal, and the method further comprises the following steps: and 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.
Specifically, the PMC synchronization unit is configured to perform synchronization processing, and when an asynchronous wakeup signal is received, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to a cycle frequency of the wakeup clock, so as to generate a wakeup synchronization signal, where the wakeup clock is inconsistent with a wakeup clock of the PMC; 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.
S23: the PMC configuration unit generates wake-up synchronous configuration information by using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, and sends the wake-up synchronous configuration information to the PMC control unit;
in the implementation process of the invention, firstly, after receiving the asynchronous wakeup signal, the PMC configuration unit immediately sends the asynchronous wakeup signal to a CPU (central processing unit) which works cooperatively with the PMC according to an APB (advanced peripheral bus), and the CPU can generate an APB control signal after receiving the asynchronous wakeup signal; then sending the APB control signal back to a PMC configuration unit in the PMC through an APB bus, wherein the APB control signal comprises the current working frequency of the CPU; and finally, the PMC configuration unit performs configuration processing by utilizing an asynchronous wakeup signal and a wakeup synchronous signal according to the APB control signal to generate wakeup synchronous configuration information.
S24: the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
in the implementation process of the invention, the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit; when the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; when the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information.
The wake-up enabling signals comprise 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_fic_en signal.
S25: and carrying out wake-up processing on the PMC based on the wake-up enabling signal.
In the implementation process of the invention, the PMC control unit performs PMC system power-on processing within a preset clock period according to the wake-up enabling signal; and after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is also required, and the PMC exits from the standby mode.
When the low power consumption mode of the flash device is power off, after the flash supply, the flash needs to be reset and released after a tputp time period; wherein the tpup time period is 1-16 src_clk periods.
The time period from isolation disable phase to normal run phase of the PMC ranges from 1 to 16 src clock cycles; and when the PMC normal run phase is entered, the reset of the whole glutdomain is released.
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 enabling signal.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal at the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
Embodiment three, fig. 3 is a schematic flow chart of a PMC asynchronous wake-up control method based on APB control in a third embodiment of the present invention.
As shown in fig. 3, a PMC asynchronous wake-up control method based on APB control, the method includes:
s31: when a PMC wake-up triggering 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;
in the implementation process of the invention, after the PMC wake-up triggering unit receives the asynchronous wake-up signal of the user when the PMC is in the standby mode, the asynchronous wakeup signal needs to be sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit, respectively.
S32: 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;
in the implementation process of the invention, the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal, and the method further comprises the following steps: and 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.
Specifically, the PMC synchronization unit is configured to perform synchronization processing, and when an asynchronous wakeup signal is received, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to a cycle frequency of the wakeup clock, so as to generate a wakeup synchronization signal, where the wakeup clock is inconsistent with a wakeup clock of the PMC; 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.
S33: after receiving the asynchronous wakeup signal, the PMC configuration unit sends the asynchronous wakeup signal to a CPU (central processing unit) based on the APB bus;
in the implementation process of the invention, after receiving the asynchronous wakeup signal, the PMC configuration unit needs to enable the PMC to work cooperatively with the CPU after being waken up, so that the PMC cannot run off or hang up; therefore, the PMC configuration unit needs to send the received asynchronous wakeup signal to the CPU through an APB bus connected with the CPU; so that the CPU can receive the asynchronous wakeup signal and make a corresponding work preparation.
S34: the PMC configuration unit receives an APB control signal sent by the CPU based on the asynchronous wakeup signal, wherein the APB control signal comprises the current working frequency of the CPU;
in the implementation process of the invention, after the CPU receives the asynchronous wakeup signal, the clock period in the asynchronous wakeup signal is read, and an APB control signal is generated according to the clock period, and meanwhile, the APB control signal comprises the current working frequency of the CPU; the APB control signal is then sent to the PMC configuration unit over the APB bus.
S35: the PMC configuration unit performs configuration processing by utilizing the asynchronous wakeup signal and the wakeup synchronous signal according to the APB control signal, generates wakeup synchronous configuration information, and sends the wakeup synchronous configuration information to the PMC control unit;
in the implementation process of the invention, after the PMC configuration unit receives the APB control signal, the configuration processing is needed to be performed by utilizing an asynchronous wakeup signal and a wakeup synchronous signal according to the APB control signal, and finally, wakeup synchronous configuration information is generated and sent to the PMC control unit.
S36: the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
in the implementation process of the invention, the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit; when the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; when the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information.
The wake-up enabling signals comprise 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_fic_en signal.
S37: and carrying out wake-up processing on the PMC based on the wake-up enabling signal.
In the implementation process of the invention, the PMC control unit performs PMC system power-on processing within a preset clock period according to the wake-up enabling signal; and after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is also required, and the PMC exits from the standby mode.
When the low power consumption mode of the flash device is power off, after the flash supply, the flash needs to be reset and released after a tputp time period; wherein the tpup time period is 1-16 src_clk periods.
The time period from isolation disable phase to normal run phase of the PMC ranges from 1 to 16 src clock cycles; and when the PMC normal run phase is entered, the reset of the whole glutdomain is released.
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 enabling signal.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal at the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
In the fourth embodiment, fig. 4 is a schematic flow chart of a PMC asynchronous wake-up control method based on APB control in the fourth embodiment of the present invention.
As shown in fig. 4, a PMC asynchronous wake-up control method based on APB control is characterized in that the method includes:
s41: when a PMC wake-up triggering 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;
in the implementation process of the invention, when the PMC is in the standby mode, after the PMC wake-up triggering unit receives an asynchronous wake-up signal of a user, the asynchronous wake-up signal is required to be respectively sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit.
S42: 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;
in the implementation process of the invention, the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal, and the method further comprises the following steps: and 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.
Specifically, the PMC synchronization unit is configured to perform synchronization processing, and when an asynchronous wakeup signal is received, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to a cycle frequency of the wakeup clock, so as to generate a wakeup synchronization signal, where the wakeup clock is inconsistent with a wakeup clock of the PMC; 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.
S43, the PMC configuration unit generates wake-up synchronous configuration information by using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, and sends the wake-up synchronous configuration information to the PMC control unit;
in the implementation process of the invention, firstly, after receiving the asynchronous wakeup signal, the PMC configuration unit immediately sends the asynchronous wakeup signal to a CPU (central processing unit) which works cooperatively with the PMC according to an APB (advanced peripheral bus), and the CPU can generate an APB control signal after receiving the asynchronous wakeup signal; then sending the APB control signal back to a PMC configuration unit in the PMC through an APB bus, wherein the APB control signal comprises the current working frequency of the CPU; and finally, the PMC configuration unit performs configuration processing by utilizing an asynchronous wakeup signal and a wakeup synchronous signal according to the APB control signal to generate wakeup synchronous configuration information.
S44: the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit;
in the implementation process of the invention, when the PMC wakes up, because cooperation with the CPU is needed, the memory storage unit of the CPU is needed to be accessed, so that whether the CPU memory operation exists in the CPU memory storage unit is judged, and the PMC wakes up according to whether the CPU memory operation exists, so that the starting work between the PMC and the CPU is synchronous, and the running problem is prevented.
S45: if the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
in the implementation process of the invention, when the CPU memory operation exists, the PMC control unit is required to extract the corresponding CPU memory operation in the CPU memory storage unit through the corresponding control instruction, and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information; wherein 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_fic_en signal.
S46: if the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
in the implementation process of the invention, when the CPU memory operation does not exist, the PMC control unit only needs to generate a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; wherein 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_fic_en signal.
S47: and carrying out wake-up processing on the PMC based on the wake-up enabling signal.
In the implementation process of the invention, the PMC control unit performs PMC system power-on processing within a preset clock period according to the wake-up enabling signal; and after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is also required, and the PMC exits from the standby mode.
When the low power consumption mode of the flash device is power off, after the flash supply, the flash needs to be reset and released after a tputp time period; wherein the tpup time period is 1-16 src_clk periods.
The time period from isolation disable phase to normal run phase of the PMC ranges from 1 to 16 src clock cycles; and when the PMC normal run phase is entered, the reset of the whole glutdomain is released.
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 enabling signal.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal at the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
In a fifth embodiment, referring to fig. 5, fig. 5 is a flowchart of a PMC asynchronous wake-up control method based on APB control in a fifth embodiment of the present invention.
As shown in fig. 5, a PMC asynchronous wake-up control method based on APB control, the method includes:
s51: when a PMC wake-up triggering 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;
in the implementation process of the invention, when the PMC is in the standby mode, after the PMC wake-up triggering unit receives an asynchronous wake-up signal of a user, the asynchronous wake-up signal is required to be respectively sent to the PMC synchronization unit, the PMC configuration unit and the PMC control unit.
S52: 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;
in the implementation process of the invention, the PMC synchronization unit generates a wake-up synchronization signal based on the asynchronous wake-up signal, and the method further comprises the following steps: and 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.
Specifically, the PMC synchronization unit is configured to perform synchronization processing, and when an asynchronous wakeup signal is received, the PMC synchronization unit performs signal synchronization processing on the asynchronous wakeup signal according to a cycle frequency of the wakeup clock, so as to generate a wakeup synchronization signal, where the wakeup clock is inconsistent with a wakeup clock of the PMC; 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.
S53: the PMC configuration unit generates wake-up synchronous configuration information by using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, and sends the wake-up synchronous configuration information to the PMC control unit;
in the implementation process of the invention, firstly, after receiving the asynchronous wakeup signal, the PMC configuration unit immediately sends the asynchronous wakeup signal to a CPU (central processing unit) which works cooperatively with the PMC according to an APB (advanced peripheral bus), and the CPU can generate an APB control signal after receiving the asynchronous wakeup signal; then sending the APB control signal back to a PMC configuration unit in the PMC through an APB bus, wherein the APB control signal comprises the current working frequency of the CPU; and finally, the PMC configuration unit performs configuration processing by utilizing an asynchronous wakeup signal and a wakeup synchronous signal according to the APB control signal to generate wakeup synchronous configuration information.
S54: the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
in the implementation process of the invention, the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit; when the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; when the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information.
The wake-up enabling signals comprise 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_fic_en signal.
S55: the PMC control unit performs PMC system power-on processing in a preset clock period based on the wake-up enabling signal;
in the implementation process of the invention, the PMC control unit performs PMC system power-up processing in a predicted city and state period through the wake-up enabling signal, namely, after the wake-up enabling signal is generated, the wake-up enabling signal is controlled to be about one 128KHz clock period, and then the PMC system is controlled to power up.
S56: after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is required, and the PMC exits from the standby mode.
In the implementation process of the present invention, please refer to fig. 6, fig. 6 is a timing diagram of PMC asynchronous wake-up in an embodiment of the present invention; after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is required, and the PMC exits from a standby mode; i.e., after the PMC system is powered up, the src_clk begins to shake out the clock, when the flash device power consumption mode is supply, because the flash needs an establishment time of 1us (min) after the system is powered on to go to the support, the PMC can exit the standby mode only after the system is powered on and at least needs 1us time; considering that the starting oscillation of the src_clk may be an nonstandard clock, the period may be less than one cycle, and considering that the flash needs 1us of setup time, the time delay is configurable, the starting oscillation of the src_clk is performed, and the maximum period is 64 cycles, and the minimum period is 1 cycle.
When the flash device low power consumption mode is power off, and after flash supply, namely when the fls_supply signal is high and effective, the PMC simultaneously exits from the standby mode, and enters a isolation disable stage, and corresponds to a pu2iso time period of the timing diagram; the length of the time is configurable, and the range is 1-16 sirc clock cycles; because the low power consumption mode of the flash device is power off, the flash can be reset and released only after tputp in order to meet the special time sequence of flash device supplyon and reset; the tpup time is long, the software is controllable, and the range is 1-16 src_clk cycles.
The PMC enters isolation disable to normal run phase, and corresponds to an iso2run time period of the time chart, wherein the time period is configurable by software and ranges from 1 to 16 src clock cycles; the reset of the entire glutdomain is released while the PMC enters the PMC normal run phase.
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 enabling signal.
In the embodiment of the invention, after receiving an asynchronous wakeup signal, generating wakeup synchronous configuration information by using the asynchronous wakeup signal and the wakeup synchronous signal in a PMC configuration unit according to an APB control signal; therefore, the problem of run-off when the PMC is awakened by the asynchronous wakeup signal can be effectively prevented; generating a wake-up enabling signal at the PMC control unit according to the asynchronous wake-up wakeup signal, the wake-up synchronous signal and the wake-up synchronous configuration information; performing wake-up processing on the PMC through a wake-up enabling signal; data synchronization when the PMC is awake can be achieved.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
In addition, the foregoing describes in detail a PMC asynchronous wake-up control method and system based on APB control provided in the embodiments of the present invention, and specific examples should be adopted herein to illustrate the principles and embodiments of the present invention, where the foregoing description of the embodiments is only for helping to understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. An APB control-based PMC asynchronous wake-up control method, comprising:
when a PMC wake-up triggering 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 and sends the wake-up synchronization signal to the PMC configuration unit and the PMC control unit;
the PMC configuration unit generates wake-up synchronous configuration information by using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, and sends the wake-up synchronous configuration information to the PMC control unit;
the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
and carrying out wake-up processing on the PMC based on the wake-up enabling signal.
2. The PMC asynchronous wakeup control method of claim 1, wherein the PMC synchronization unit generates a wakeup synchronization signal based on the asynchronous wakeup signal, further comprising:
and 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.
3. The PMC asynchronous wake-up control method of claim 1, wherein the PMC configuration unit generates wake-up synchronous configuration information using the asynchronous wake-up signal and the wake-up synchronous signal based on an APB control signal, including:
after receiving the asynchronous wakeup signal, the PMC configuration unit sends the asynchronous wakeup signal to a CPU (central processing unit) based on the APB bus;
the PMC configuration unit receives an APB control signal sent by the CPU based on the asynchronous wakeup signal, wherein the APB control signal comprises the current working frequency of the CPU;
and the PMC configuration unit performs configuration processing by utilizing the asynchronous wakeup signal and the wakeup synchronous signal according to the APB control signal to generate wakeup synchronous configuration information.
4. 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 wakeup signal, the wake-up synchronization signal, and wake-up synchronization configuration information, including:
the PMC control unit generates an access instruction to access the CPU memory storage unit, and the access result judges whether the CPU memory operation exists in the CPU memory storage unit;
if the CPU memory operation exists, the PMC control unit extracts the CPU memory operation in the CPU memory storage unit and generates a wake-up enabling signal according to the CPU memory operation, the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information;
and if the CPU memory operation does not exist, the PMC control unit generates a wake-up enabling signal according to the asynchronous wake-up signal, the wake-up synchronous signal and the wake-up synchronous configuration information.
5. The PMC asynchronous wake-up control method of claim 1 or 4, wherein 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_fic_en signal.
6. The PMC asynchronous wake-up control method of claim 1, wherein the waking up the PMC based on the wake-up enable signal includes:
the PMC control unit performs PMC system power-on processing in a preset clock period based on the wake-up enabling signal;
after the PMC system is powered on, controlling the src_clk to start to shake out a clock, and when the flash device power consumption mode is supply, at least 1us of time is required, and the PMC exits from the standby mode.
7. The PMC asynchronous wake-up control method of claim 6, wherein after powering up the PMC system, further comprises:
when the low power consumption mode of the flash device is power off, after the flash supply, a tputp time period is needed to pass, and the flash is reset and released; wherein the tpup time period is 1-16 src_clk periods.
8. The PMC asynchronous wake-up control method of claim 6, wherein after the PMC exits standby mode, further comprising:
the PMC ranges from isolation disable phase to normal run phase from 1-16 src clock cycles;
and upon entering the PMC normal run phase, the reset of the entire glutdomain is released.
9. 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 enabling signal.
10. The PMC asynchronous wake-up control system based on APB control is characterized by comprising a PMC wake-up triggering unit, a PMC synchronous unit, a PMC configuration unit, a PMC control unit and a PMC analog communication unit; wherein the system is configured for performing the PMC asynchronous wake-up control method of any one of claims 1-9.
CN202211705458.8A 2022-12-29 2022-12-29 PMC asynchronous wake-up control method and system based on APB control Pending CN116069402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211705458.8A CN116069402A (en) 2022-12-29 2022-12-29 PMC asynchronous wake-up control method and system based on APB control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211705458.8A CN116069402A (en) 2022-12-29 2022-12-29 PMC asynchronous wake-up control method and system based on APB control

Publications (1)

Publication Number Publication Date
CN116069402A true CN116069402A (en) 2023-05-05

Family

ID=86179521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211705458.8A Pending CN116069402A (en) 2022-12-29 2022-12-29 PMC asynchronous wake-up control method and system based on APB control

Country Status (1)

Country Link
CN (1) CN116069402A (en)

Similar Documents

Publication Publication Date Title
TWI302649B (en) Electric saving circuitry and method of an electronic device
US6874095B2 (en) Memory control system
EP1727379B1 (en) Method and apparatus for reducing standby power consumption of a handheld communication system
TW200414217A (en) Device and method for selecting power down exit
CN110568919B (en) Device for reducing chip power consumption
JP2002015575A5 (en)
CN102037428A (en) Integrated circuit with secondary-memory controller for providing a sleep state for reduced power consumption and method therefor
CN104977979A (en) Clock source switching method and clock source switching system
CN112148662A (en) Low-power-consumption chip architecture awakened by I2C address matching and awakening method
CN103857021A (en) Method for controlling Bluetooth device, Bluetooth device and electronic device
CN102929381B (en) Electronic system and method for managing power supply thereof
CN110568921B (en) Method for reducing chip power consumption
CN114661138A (en) Automatic control method and system for low-power-consumption mode of chip
CN109283995B (en) Method and system for reducing power consumption of terminal user identification card of Internet of things
CN103150191A (en) Terminal equipment
CN116069402A (en) PMC asynchronous wake-up control method and system based on APB control
US20050144494A1 (en) Method and apparatus for reducing memory current leakage a mobile device
JPH09222939A (en) Memory card
CN113253824B (en) MCU system based on RISC-V kernel, power supply method and terminal equipment
CN113037309B (en) Receiver circuit, terminal and working method
CN1321372C (en) Computer system capable of executing reserved work items and the method thereof
CN112235850A (en) Low-power-consumption system and method of Internet of things chip
CN117111718B (en) Processor power control system based on state jump
CN116126117B (en) Automatic management system and method for on-chip power consumption
CN115827071A (en) Method and system for suspending standby operation of power management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination