The power management control method and the power-supply management system of multimedia intelligent chip
Technical field
The present invention relates to a kind of standby prioritization scheme of multimedia intelligent chip, relate in particular to a kind of multimedia intelligent chip that possesses standby mode but do not possess park mode and utilize CPU itself to realize the method and system of power management control.
Background technology
Today of development in science and technology, consumption electronic product and people's life is closely bound up, and increasing intelligent consumption electronic product accepted by people, uses constantly flourish.And along with to the universal use of this type of consumption electronic product and on frequency of utilization, have than big-difference property.As multi-media TV receiver, need usually be in holding state especially.
Existing this type of multimedia chip mostly adopts Single-chip Controlling, so outside Single-chip Controlling is also wanted in the management of plate level power supply.For the intelligent multimedia chip that itself possesses CPU, even if a single-chip microcomputer has also increased hardware cost extraly.
Summary of the invention
The objective of the invention is defective, propose a kind of power management control method and power-supply management system of multimedia intelligent chip, the cost of optimizing hardware to the prior art this respect.
The purpose of multimedia intelligent chip power management of the present invention; To be achieved through following technical scheme: a kind of power management control method of multimedia intelligent chip; Said multimedia intelligent chip has CPU and peripheral interface, it is characterized in that comprising the steps:
S1: the standby mark step, through remote controller or treat switch input IR, the standby signal of RTC or GIPO also saves as standby mark;
S2:CPU standby step; CPU receives standby and interrupts; Preserve current multimedia display information, and send reset signal, trigger guiding standby program through first pin of CPU self; And after certain delay, close except that IR, functional module and peripheral equipment power in the outer chip are handled in RTC and GIPO input;
S3: starting-up signal poll step, treating that CPU receives the start interruption under the unit frequency, said start interrupts comprising received IR, the arbitrary wake-up signal among RTC or the GIPO;
S4:CPU setting up procedure, CPU are opened the power supply of interior functional module of chip and ancillary equipment, and are sending reset signal in certain back that postpones through first pin, trigger Bootstrap Commissioning Program.
Further, standby mark is stored in chip internal RAM reserved word among the step S1, and outside FLASH storage chip is among outside RTC or the NVRAM chip.
Further, close functional module in the chip through register among the step S2, and enable, close peripheral equipment power through the output modulation MOSFET electronic switch shutoff peripheral interface of set second pin.
Further, open functional module in the chip through register among the step S4, and enable, open peripheral equipment power through the output modulation MOSFET electronic switch connection peripheral interface of set second pin.
The purpose of multimedia intelligent chip power management of the present invention will be achieved through following system schema: the power-supply management system of multimedia intelligent chip, and said multimedia intelligent chip has CPU and peripheral interface, it is characterized in that comprising:
The standby mark module is used for receiving through remote controller or treats switch input IR, and the standby signal of RTC or GIPO also saves as standby mark;
CPU standby module; Be used for interrupting when CPU receives standby; Preserve current multimedia display information, and send reset signal, trigger guiding standby program through first pin of CPU self; And after certain delay, close except that IR, functional module and peripheral equipment power in the outer chip are handled in RTC and GIPO input;
Starting-up signal poll module is used for treating that CPU receives the start interruption under the unit frequency that said start interrupts comprising received IR, the arbitrary wake-up signal among RTC or the GIPO;
CPU starts module, is used for the power supply that CPU opens interior functional module of chip and ancillary equipment, and is sending reset signal in certain back that postpones through first pin, triggers Bootstrap Commissioning Program.
Further, said standby mark module is used to preserve the standby mark part and comprises chip internal RAM reserved word, and outside FLASH storage chip is among outside RTC or the NVRAM chip.
Further, said CPU standby module or CPU start in the module, comprise the register that is used to open or close functional module in the chip.
Further, said CPU standby module or CPU start in the module, comprise the MOSFET electronic switch and second pin that are used to open or close peripheral equipment power, and the output of said second pin are by CPU set.
The application of multimedia intelligent chip power management control method of the present invention and system thereof can simplified hardware design realize idle function, and control complete machine stand-by power consumption is satisfied the product energy consumption requirement; The cost that reduced hardware, reduced the complexity of software setting, be significant for the entire machine design of consumer-elcetronics devicess such as STB, television set.
Following constipation closes accompanying drawing, and specific embodiments of the invention is done further to detail, so that technical scheme of the present invention is easier to understand, grasp.
Description of drawings
Fig. 1 is the flow process simplified schematic diagram of power management control method of the present invention;
Fig. 2 is the practical implementation flow chart of power management control method of the present invention;
Fig. 3 is the modular structure sketch map of power source management control system of the present invention;
Fig. 4 is that the chip principle of power source management control system of the present invention is always schemed;
Fig. 5 is peripheral equipment power control principle figure.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, describe the present invention below in conjunction with accompanying drawing and specific embodiment.
As shown in Figure 1, in an embodiment of the present invention, the power management control method of said multimedia intelligent chip comprises the steps.
S1: the standby mark step, through remote controller or treat switch input IR, the standby signal of RTC or GIPO also saves as standby mark; Wherein IR is the infrared ray standby signal of emission from remote controller, and RTC is the real-time clock control signal, and GIPO serves as reasons and treats a certain general input/output signal of CPU that switch triggers.
S2:CPU standby step; CPU receives standby and interrupts; Preserve current multimedia display information, and send reset signal, trigger guiding standby program through first pin (selecting GPIO7 in the present embodiment for use) of CPU self; And after certain delay, close except that IR, functional module and peripheral equipment power in the outer chip are handled in RTC and GIPO input; Wherein said certain time-delay is elected 10ms as, also never is limited to this value certainly.
S3: starting-up signal poll step, treating that CPU receives the start interruption under the unit frequency, said start interrupts comprising received IR, the arbitrary wake-up signal among RTC or the GIPO.Its input mode is close with standby mark among the step S1, so will not give unnecessary details.
S4:CPU setting up procedure, CPU are opened the power supply of interior functional module of chip and ancillary equipment, and are sending reset signal in certain back that postpones through the first pin GPIO7, trigger Bootstrap Commissioning Program.
Wherein, standby mark is stored in chip internal RAM reserved word among the step S1, and outside FLASH storage chip is among outside RTC or the NVRAM chip (nonvolatile memory).Obviously, adopt inner RAM reserved word to save most, but after the complete machine outage, just can only use default value.
First pin through CPU self among step S2 and the step S4 sends reset signal; Trigger guiding standby program or boot program; Shown in the total figure of the chip principle of power source management control system as shown in Figure 4, particularly relevant with the RESETN pin of CPU reset circuit is realized.Visible from illustrating, as far as CPU, it triggers pin is the first pin GPIO7.
Further, close functional module in the chip through register among the step S2, and enable, close peripheral equipment power through the output modulation MOSFET electronic switch shutoff peripheral interface of set second pin (GPIO1); Open functional module in the chip through register among the step S4, and enable, open peripheral equipment power through the output modulation MOSFET electronic switch connection peripheral interface of set second pin.This step need combine peripheral equipment power control principle figure shown in Figure 5; Visible from illustrating; Second pin GPIO1 control MOSFET electronic switch through CPU; Can change the current potential height of VDD5, enable switching, make the power initiation or the shutoff of peripheral all devices thereby change peripheral interface.
Again please be as shown in Figure 3, in an embodiment of the present invention, the power-supply management system of said multimedia intelligent chip comprises.
The standby mark module is used for through remote controller or treats switch input IR, and the standby signal of RTC or GIPO also saves as standby mark; Wherein IR is the infrared ray standby signal of emission from remote controller, and RTC is the real-time clock control signal, and GIPO serves as reasons and treats a certain general input/output signal of CPU that switch triggers.
CPU standby module; Be used for interrupting when CPU receives standby; Preserve current multimedia display information, and send reset signal, trigger guiding standby program through first pin (selecting GPIO7 in the present embodiment for use) of CPU self; And after certain delay, close except that IR, functional module and peripheral equipment power in the outer chip are handled in RTC and GIPO input; Wherein said certain time-delay is elected 10ms as, also never is limited to this value certainly.
Starting-up signal poll module is used for treating that CPU receives the start interruption under the unit frequency that said start interrupts comprising received IR, the arbitrary wake-up signal among RTC or the GIPO; Its input mode is close with standby mark among the step S1, so will not give unnecessary details.
CPU starts module, is used for the power supply that CPU opens interior functional module of chip and ancillary equipment, and is sending reset signal in certain back that postpones through the first pin GPIO7, triggers Bootstrap Commissioning Program.
Wherein, said standby mark is stored in chip internal RAM reserved word, and outside FLASH storage chip is among outside RTC or the NVRAM chip.Obviously, adopt inner RAM reserved word to save most, but after the complete machine outage, just can only use default value.
Said CPU standby module or CPU startup module are sent reset signal through first pin of CPU self; Trigger guiding standby program or boot program; Shown in the total figure of the chip principle of power source management control system as shown in Figure 4, particularly relevant with the RESETN pin of CPU reset circuit is realized.Visible from illustrating, as far as CPU, it triggers pin is the first pin GPIO7.
And; Said CPU standby module or CPU start in the module; Comprise the register that is used to open or close functional module in the chip, also comprise the MOSFET electronic switch and second pin that are used to open or close peripheral equipment power, and the output of said second pin is by CPU set.Combine peripheral equipment power control principle figure shown in Figure 5 here; Visible from illustrating; Second pin GPIO1 control MOSFET electronic switch through CPU; Can change the current potential height of VDD5, enable switching, make the power initiation or the shutoff of peripheral all devices thereby change peripheral interface.
As shown in Figure 2, be the practical implementation flow chart of power management control method of the present invention.From the software design that illustrates visible this management control method be embodied as: multimedia chip powers on or when resetting, at first gets into the STANDBY pattern, and CPU carries out with the frequency of external crystal-controlled oscillation.The first initialization system clock of U-boot (common boot) switches to fast frequency again and carries out, and starts the operating system then and or main program.The idle function software section is exactly to start boot a bit of program before.Through inquiry, realize that multimedia intelligent chip effective CPU state under standby mode switches to standby mark and wake-up signal.
The application of multimedia intelligent chip power management control method of the present invention and system thereof can simplified hardware design realize idle function, and control complete machine stand-by power consumption is satisfied the product energy consumption requirement; The cost that reduced hardware, reduced the complexity of software setting, be significant for the entire machine design of consumer-elcetronics devicess such as STB, television set.
Be to be understood that; Though this specification is described according to execution mode; But be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, and those skilled in the art should make specification as a whole; Technical scheme in each execution mode also can form other execution modes that it will be appreciated by those skilled in the art that through appropriate combination.
The listed a series of detailed description of preceding text only is specifying to feasibility execution mode of the present invention; They are not in order to restriction protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill of the present invention spirit done and all should be included within protection scope of the present invention.