CN101150698B - Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device - Google Patents
Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device Download PDFInfo
- Publication number
- CN101150698B CN101150698B CN2007100710725A CN200710071072A CN101150698B CN 101150698 B CN101150698 B CN 101150698B CN 2007100710725 A CN2007100710725 A CN 2007100710725A CN 200710071072 A CN200710071072 A CN 200710071072A CN 101150698 B CN101150698 B CN 101150698B
- Authority
- CN
- China
- Prior art keywords
- frequency
- cpu
- voltage
- operating
- playing device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 238000004321 preservation Methods 0.000 claims 1
- 230000001105 regulatory effect Effects 0.000 abstract description 2
- 238000012360 testing method Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000004134 energy conservation Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005265 energy consumption Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000009514 concussion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
Images
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a dynamic voltage and frequency regulating energy-saving method for MP4 palm type video play device. Through setting initial value of CPU work frequency and work voltage at the MP4 application beginning position, starting a monitoring feedback timing interrupt; monitoring the output buffer of application periodically through an interrupt service routine, adjusting CPU work frequency and work voltage dynamically according to states of the output buffer, and adopting oscillation-proof measures, improving operation performance of the system greatly through the danamic feedback network; recovering original work frequency and work voltage at the MP4 application end position. Thereby, when running applications, the CPU can always run at the lowest work frequency and work voltage, assure using performance, guarantee the lowest power consumption in dynamic using, overcome the energy-saving bottle-neck of the palm type video play device, have important significance in future.
Description
Technical field
The present invention relates to DVFS (Dyanmic Voltage Frequency Scaling), i.e. dynamic voltage adjustment frequency modulation technology relates in particular to the dynamic voltage adjustment frequency modulation energy-saving method of the palm video playing device of a kind of MP4 of being applicable to.
Background technology
Power management is in the palm video playing device product, and particularly the status among the mp4 is extremely important, and it has determined the operating time and the useful life of this equipment.Because the palm video playing device product often by powered battery, lowers power consumption like this in the palm video playing device design, lengthen working hours, become very urgent demand.
The CPU power consumption can be expressed as P=C*V
2* f+V*I
Q, C is a cpu chip electric capacity here, and V is the operating voltage of CPU, and f is the CPU operating frequency, I
QIt is the inner total leakage current of CPU.As can be seen, as long as reduce operating voltage, operating frequency, and present CPU can provide the relation between operating frequency and the minimum operating voltage, operating frequency is too high if core voltage is very low, perhaps core voltage is too high and operating frequency is very low, all will cause system unstable even crash.
Static energy-conservation very universal in built-in field at present, if can on the energy-conservation basis of static state, adopt dynamic energy-saving again, then energy consumption can descend greatly.The dynamic energy-saving algorithm mainly contains three kinds at present, and a kind of DPM of being is the dynamic power management technology, other power management techniques of operating system grade; Second kind is the DVS dispatching algorithm technology of operating system grade; The third is an application-level DVS dispatching algorithm.The DVS dispatching algorithm technology of DPM technology here and operating system grade all will depend on embedded OS on the current operation task base of prediction, and the DVS algorithmic technique of application-level is carried out frequency modulation by application program acquisition information of forecasting itself.But no matter the sort of algorithm at present its effect is exactly not remarkable, be mainly reflected in energy consumption when lowering, performance has also lowered, as when the displaying video, break etc. appears, traces it to its cause still because algorithm is from big and wide system-level consideration, too complicated, effect is bad on the contrary.So, in the palm video playing device in the market, only adopt static power-economizing method, all further do not adopt dynamic energy saving method.
Summary of the invention
The dynamic voltage adjustment frequency modulation energy-saving method that the purpose of this invention is to provide the palm video playing device of a kind of MP4 of being applicable to.
Open one section program of this local insertion of data file in the MP4 application program, one section program of this local insertion before the MP4 application program finishes to return,
Open one section program of this local insertion of data file in application program:
A) at first obtain the mean value of peak frequency and minimum frequency the relation between CPU operating frequency and minimum operating voltage;
B), obtain the corresponding minimum operating voltage of CPU according to the relation between CPU operating frequency and the minimum operating voltage;
C) preserve current CPU operating voltage and operating frequency, set new CPU operating voltage and operating frequency by instruction;
D) initialization output buffer underflow flag is 0, sets timing, opens the monitoring feedback and regularly interrupts;
One section program of this local insertion before application program finishes to return:
E) read by c) operating voltage of having preserved and the operating frequency stated, and recover former CPU operating voltage and operating frequency by instruction;
F) closing the monitoring feedback regularly interrupts.
The method that described monitoring feedback is regularly interrupted is: set the maximum threshold values and the minimum threshold values of buffer size, and this is compared comprise the steps:
G) if the buffer size that reads greater than maximum threshold values, represents that then cpu frequency is higher, judge underflow flag for anti-concussion, if be masked as 0, allow current frequency reduce a constant, new CPU operating frequency and operating voltage are set, return interruption; If be masked as 1, do not change operating frequency and the operating voltage of CPU, directly return interruption;
H) if the buffer size that reads less than minimum threshold values, represents that then cpu frequency is on the low side, allow existing frequency increase by a constant, new CPU operating frequency and operating voltage are set, depositing overflows is masked as 1, returns interruption;
I) if the buffer size that reads both less than maximum threshold values, again greater than minimum threshold values, represents that then cpu frequency is suitable, directly return interruption.
Relation between described CPU operating frequency and the minimum operating voltage is the corresponding relation that is provided the discrete type between CPU operating frequency and the minimum operating voltage by CPU manufacturer, and its median is then provided by simple linear interpolation.The timing that the monitoring feedback is regularly interrupted is generally between 30 milliseconds to 50 milliseconds, and the time is too short, can cause CPU to adjust overfrequency, and the time is oversize, and it is slow partially to occur reaction again.The maximum threshold values of buffering area is 90% of a buffer size.The minimum threshold values of buffering area is 50% of a buffer size.A described constant is 1 percent five equilibriums of the difference of the peak frequency of CPU work and minimum frequency.
Beneficial effect of the present invention: after adopting the present invention, the palm video playing device of MP4 allows CPU be operated in lowest operating frequency and minimum operating voltage all the time, neither can produce concussion, guarantee serviceability again, thereby guaranteed the lowest power consumption in the dynamic use, overcome the energy-conservation bottleneck of palm video playing device, its meaning is very far-reaching.
Description of drawings
Fig. 1 is periodic monitor buffer size that the present invention relates to and the interrupt service routine flow chart of revising voltage to frequency;
Fig. 2 is the program flow diagram that application program provided by the present invention is inserted when beginning;
Fig. 3 is the program flow diagram that application program provided by the present invention is inserted when finishing.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, the present invention is described in further detail below in conjunction with embodiment.
The ADSP-BF533 that now adopts ADI company is as the CPU that looks audio player mp4,
Open this place of data file in the MP4 application program and will insert one section program (see figure 1):
A) at first find relation between operating frequency and the minimum operating voltage from the service manual of ADSP-BF533, the minimum step that finds the voltage adjustment is 0.05V, peak frequency is 530M, minimum frequency is 30M, the relation that adopts the average interpolation method to obtain between ADSP-BF533 operating frequency and the minimum operating voltage sees Table 1, and average operating frequency is decided to be 280M;
B) obtained frequency 280M, checking in corresponding operating voltage from table 1 is 0.85V;
C) preserve operating voltage and the operating frequency of ADSP-BF533 when this application program of operation, the operating voltage by instruction setting ADSP-BF533 is that 0.85V and operating frequency are 280M again;
D) then wanting initialization output buffer underflow flag is 0, and this is in order to guarantee neither to produce vibration, not influence service behaviour again; And to set timing be 30 milliseconds, and general CPU setting voltage frequency is no more than 30 times/second; Open the monitoring feedback at last and regularly interrupt, monitor in real time, the monitoring feedback procedure is seen Fig. 3;
One section program (see figure 2) is inserted in this place again before the MP4 application program finishes to return:
E) read the operating voltage and the operating frequency of preserving earlier, and recover former ADSP-BF533 operating voltage and operating frequency by instruction by step c);
F) close the monitoring feedback then and regularly interrupt, the state before it will recover to interrupt.
See Fig. 3 at described monitoring feedback timing interrupt service routine, its concrete operations are:
Configure the output buffer size in advance, look among the mp4 of audio player in the ADSP-BF533 conduct, its output buffer size is decided to be 12MB according to hardware, determine that its maximum threshold values is 10.8MB, minimum threshold values is 6MB, the output buffer size of reading in real time and maximum threshold values and the minimum threshold values set are compared, specifically relatively comprise as follows:
G) if the output buffer size that reads in real time greater than maximum threshold values, the operating frequency of then representing ADSP-BF533 is higher, for anti-concussion is judged when the initialization, ad hoc underflow flag, if be masked as 0, allow operating frequency reduce a constant, new ADSP-BF533 operating frequency and operating voltage are set, return interruption; If be masked as 1, minimum point has been in expression, for preventing vibration, does not change operating frequency and the voltage of ADSP-BF533, directly returns interruption;
H) if the buffer size that reads less than minimum threshold values, represents that then the ADSP-BF533 frequency is on the low side, allow existing frequency increase by a constant, new ADSP-BF533 operating frequency and operating voltage are set, depositing overflows is masked as 1, and the minimum point point has been in expression, returns interruption;
I) if the buffer size that reads both less than maximum threshold values, again greater than minimum threshold values, represents that then the ADSP-BF533 frequency is suitable, directly return interruption.
ADSP-BF533, always works under the operating frequency and operating voltage that does not just influence performance when running application as the CPU that looks audio player mp4 like this, has broken through the bottleneck of dynamic frequency pressure regulating energy-saving technology.
In power consumption test to mp4, with same ADSP-BF533 MP4 as CPU, but its software difference, one has been adopted the inventive method, and one is not adopted the present invention, table two has provided and has not adopted actual power loss test result of the present invention, table three has provided the resulting actual power loss test result of employing the present invention, energy-conservationly in MP3 plays reaches 10%, and in the AVI movie, its energy-saving effect reaches 34%, highly significant.
Table 1: the frequency and the voltage table of comparisons
Frequency (million) | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 |
Voltage (volt) | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 | 0.75 |
Frequency (million) | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 |
Voltage (volt) | 0.75 | 0.75 | 0.75 | 0.75 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 |
Frequency (million) | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 175 |
Voltage (volt) | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 |
Frequency (million) | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 |
Frequency (million) | 180 | 185 | 190 | 195 | 200 | 205 | 210 | 215 | 220 | 225 |
Voltage (volt) | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 | 0.80 |
Frequency (million) | 230 | 235 | 240 | 245 | 250 | 255 | 260 | 265 | 270 | 275 |
Voltage (volt) | 0.80 | 0.80 | 0.80 | 0.80 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 |
Frequency (million) | 280 | 285 | 290 | 295 | 300 | 305 | 310 | 315 | 320 | 325 |
Voltage (volt) | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 | 0.85 |
Frequency (million) | 330 | 335 | 240 | 345 | 350 | 355 | 360 | 365 | 370 | 375 |
Voltage (volt) | 0.85 | 0.90 | 0.90 | 0.90 | 0.90 | 0.90 | 0.90 | 0.95 | 0.95 | 0.95 |
Frequency (million) | 380 | 385 | 390 | 395 | 400 | 405 | 410 | 415 | 420 | 425 |
Voltage (volt) | 0.95 | 0.95 | 0.95 | 0.95 | 1.00 | 1.00 | 1.00 | 1.00 | 1.05 | 1.05 |
Frequency (million) | 430 | 435 | 440 | 445 | 450 | 455 | 460 | 465 | 470 | 475 |
Voltage (volt) | 1.05 | 1.05 | 1.05 | 1.10 | 1.10 | 1.10 | 1.10 | 1.10 | 1.10 | 1.15 |
Frequency (million) | 480 | 485 | 490 | 495 | 500 | 505 | 510 | 515 | 520 | 525 |
Voltage (volt) | 1.15 | 1.15 | 1.15 | 1.15 | 1.20 | 1.20 | 1.20 | 1.20 | 1.20 | 1.20 |
Table 2: do not adopt power consumption test of the present invention
Test | Test condition | The complete machine average current | The complete machine average power consumption |
MP3 | 128K, 44100, audio closes, and flash memory is play cell voltage 3.8V 25 degree room temperatures | 60mA | 228mw |
The AVI film | MPEG4 SP 720*480@30FPS cell voltage 3.8V 25 degree room temperatures | 230mA | 874mw |
Table 3: adopt power consumption test of the present invention
Test | Test condition | The complete machine average current | The complete machine average power consumption |
MP3 | 128K, 44100, audio closes, and flash memory is play cell voltage 3.8V 25 degree room temperatures | 54mA | 205mw |
The AVI film | MPEG4 SP 720*480@30FPS cell voltage 3.8V 25 degree room temperatures | 152mA | 578mw |
Claims (6)
1. a dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 is characterized in that opening this place of data file in application program comprises the steps:
A) at first obtain the mean value of peak frequency and minimum frequency the relation between CPU operating frequency and minimum operating voltage;
B), obtain the corresponding minimum operating voltage of CPU according to the relation between CPU operating frequency and the minimum operating voltage;
C) preserve current CPU operating voltage and operating frequency, set new CPU operating voltage and operating frequency by instruction;
D) initialization output buffer underflow flag is 0, sets timing, opens the monitoring feedback and regularly interrupts;
This place comprises the steps: before application program finishes to return
E) read the operating voltage and the operating frequency of above-mentioned preservation, and pass through instruction and recover former CPU operating voltage, operating frequency;
F) closing the monitoring feedback regularly interrupts.
2. a kind of dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 according to claim 1, it is characterized in that the method that described monitoring feedback is regularly interrupted is: set the max-thresholds and the minimum threshold of buffer size, and this is compared comprise the steps:
G) if the buffer size that reads greater than max-thresholds, represents that then cpu frequency is higher, judge underflow flag for anti-concussion, if be masked as 0, allow existing frequency reduce a constant, new CPU operating frequency and operating voltage are set, return interruption; If be masked as 1, do not change operating frequency and the voltage of CPU, directly return interruption;
H) if the buffer size that reads less than minimum threshold, represents that then cpu frequency is on the low side, allow existing frequency increase by a constant, new CPU operating frequency and operating voltage are set, it is 1 that underflow flag is set, and returns interruption;
I) if the buffer size that reads both less than max-thresholds, again greater than minimum threshold, represents that then cpu frequency is suitable, directly return interruption.
3. a kind of dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 according to claim 1 is characterized in that described timing is between 30 milliseconds to 50 milliseconds.
4. a kind of dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 according to claim 2 is characterized in that described max-thresholds is 90% of a buffer size.
5. a kind of dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 according to claim 2 is characterized in that described minimum threshold is 50% of a buffer size.
6. a kind of dynamic voltage adjustment frequency modulation energy-saving method that is applicable to the palm video playing device of MP4 according to claim 2 is characterized in that a described constant is one of the percentage of the difference of the peak frequency of CPU work and minimum frequency.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100710725A CN101150698B (en) | 2007-09-04 | 2007-09-04 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100710725A CN101150698B (en) | 2007-09-04 | 2007-09-04 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101150698A CN101150698A (en) | 2008-03-26 |
CN101150698B true CN101150698B (en) | 2010-06-02 |
Family
ID=39251000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007100710725A Expired - Fee Related CN101150698B (en) | 2007-09-04 | 2007-09-04 | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101150698B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102221871A (en) * | 2010-04-19 | 2011-10-19 | 英业达股份有限公司 | Portable electronic device and power saving method thereof |
CN103226382B (en) * | 2012-01-31 | 2016-03-30 | 联想(北京)有限公司 | Application operation method and electronic equipment |
CN103293838A (en) * | 2012-02-22 | 2013-09-11 | 光宝电子(广州)有限公司 | Minitype projecting device and method for prolonging play time of minitype projecting device and enabling image quality to be optimal |
CN103596045B (en) * | 2012-08-14 | 2017-03-15 | 吴飞 | A kind of energy-saving control method for video code flow playing terminal equipment |
CN107256078B (en) * | 2017-05-05 | 2020-06-23 | 浙江大华技术股份有限公司 | Dynamic voltage frequency adjusting method and device |
CN113556642A (en) * | 2021-07-09 | 2021-10-26 | 维沃移动通信有限公司 | Electronic equipment assembly and terminal equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1532671A (en) * | 2003-03-18 | 2004-09-29 | ���µ�����ҵ��ʽ���� | Processor and its driving method and electronic information processing product |
-
2007
- 2007-09-04 CN CN2007100710725A patent/CN101150698B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1532671A (en) * | 2003-03-18 | 2004-09-29 | ���µ�����ҵ��ʽ���� | Processor and its driving method and electronic information processing product |
Non-Patent Citations (1)
Title |
---|
JP特开2004-303206A 2004.10.28 |
Also Published As
Publication number | Publication date |
---|---|
CN101150698A (en) | 2008-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101150698B (en) | Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device | |
CA2741088C (en) | Methods of achieving cognizant power management | |
CN103376859B (en) | The control method of chip performance and device | |
CN102981825B (en) | A kind of management method of mobile terminal back-end data and system | |
CN102290854A (en) | Method and device for performing state control on redundant power module | |
CN104423529A (en) | CPU (central processing unit) state adjustment method and device | |
US8495400B2 (en) | Energy-efficient transitioning among device operating modes | |
CN101739114A (en) | Storage device and method for realizing energy conservation of hard disc in storage device | |
CN104457069A (en) | Capacity regulating method for refrigerating system | |
CN101364437A (en) | Method capable of loss equalization of flash memory and application thereof | |
CN108539743B (en) | Energy-efficient type distribution terminal | |
CN105352119A (en) | Control method and device for freezing water system in air conditioner | |
CN105573860A (en) | STD (Suspend to disk) management method and STD management system used in computer system | |
CN101702535A (en) | Power supply device and method | |
CN101383179A (en) | Storage system and power supplying method for the storage system | |
CN104345858A (en) | Method and device for managing power consumption of server hardware equipment, and server | |
CN102411423A (en) | Collaborating dynamic power management method for CPU (central processing unit) and wireless network card | |
CN117289782A (en) | Low-power consumption control method and system for multi-core heterogeneous chip | |
CN101789016A (en) | Method and device thereof for improving valid storage capacity of file system | |
CN105517133A (en) | Power-saving method for adjusting backlight of terminal | |
CN104834562A (en) | Isomerous data center and operating method thereof | |
US20030088797A1 (en) | Adapting link speed of a network controller to available power supply | |
CN101938594A (en) | Volume saving method for digital television set top box | |
CN106708242A (en) | Hard real-time system energy consumption optimizing method | |
CN108874546B (en) | Linux system and method for optimizing resource use |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100602 Termination date: 20110904 |