CN102445953B - A kind of method of adjustment of embedded device clock source - Google Patents

A kind of method of adjustment of embedded device clock source Download PDF

Info

Publication number
CN102445953B
CN102445953B CN201010500155.3A CN201010500155A CN102445953B CN 102445953 B CN102445953 B CN 102445953B CN 201010500155 A CN201010500155 A CN 201010500155A CN 102445953 B CN102445953 B CN 102445953B
Authority
CN
China
Prior art keywords
clock
module
equipment
clock source
frequency
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.)
Active
Application number
CN201010500155.3A
Other languages
Chinese (zh)
Other versions
CN102445953A (en
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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Chongqing Cyit Communication Technologies 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 Chongqing Cyit Communication Technologies Co Ltd filed Critical Chongqing Cyit Communication Technologies Co Ltd
Priority to CN201010500155.3A priority Critical patent/CN102445953B/en
Publication of CN102445953A publication Critical patent/CN102445953A/en
Application granted granted Critical
Publication of CN102445953B publication Critical patent/CN102445953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention discloses the method for adjustment of a kind of embedded device clock source, equipment obtains the clock frequency required for each module in real time;If the clock frequency required for having module changes, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;Equipment voltage is adjusted by equipment according to the electric pressure that the clock source reconfigured is corresponding.Technical scheme is when module clock frequency demand changes, according to clock frequency requirement, the clock source of whole equipment is readjusted, make equipment on the premise of meeting work requirements, it is in less operating frequency as far as possible or ensures that clock source opens minimum number as far as possible, thus it is substantially reduced the dynamic power consumption of embedded device, extend the use time of equipment.

Description

A kind of method of adjustment of embedded device clock source
Technical field
The present invention relates to embedded device power conservation techniques, be related specifically to the method for adjustment of a kind of embedded device clock source.
Background technology
In recent years, along with the fast development of embedded technology, the application of embedded device (being called for short, equipment) is more and more extensive, and from strength to strength, its power consumption is the most increasing for function.For portable set, most small volume, and rely on battery to power, and often require that there is the longer standby and use time.The system power dissipation of equipment is just designed and proposes higher requirement, in the hope of reaching the purpose of power saving to greatest extent by this.
The system power dissipation of equipment is mainly made up of dynamic power consumption and quiescent dissipation two parts, equipment power dissipation to be reduced, standby and the time of use of increase equipment, one important aspect seeks on the premise of meeting the normal work requirements of equipment, reduce frequency and the voltage of equipment as far as possible, thus reduce the dynamic power consumption of equipment.
Equipment is generally of one or more clock zone, single clock zone structure is as shown in Figure 1, the multiple modules being this clock zone including a clock source provide master clock signal, each module has a corresponding clock controller to obtain, from clock source, the clock frequency that this module needs, clock controller is typically made up of a frequency divider and a clock selecting switch, wherein, frequency divider divides to obtain the clock frequency required for module for the clock signal providing clock source, and clock switch is for the connecting and disconnecting of control module clock signal.The structure of multiple clock zones, as in figure 2 it is shown, each module may belong to multiple clock zone, is switched by clock selecting, and module can select the clock source of its affiliated different clock-domains to provide clock signal for it.
Under normal circumstances, same module, even if using identical clock frequency, if but its clock source selected is different, and its power consumption is the most different, and the power consumption levels selecting relatively low clock source is less;Same equipment, if having multiple clock zone, the number that clock source is opened is the fewest, and its power consumption levels is the least.So, on the premise of meeting the normal work requirements of equipment, if the clock source that selection clock signal frequency is relatively low, or the clock source number opened is less, then can reduce the dynamic power consumption of equipment, the standby and time of use of extension device.
Prior art carries out the method for clock source adjustment:
(1) it is that modules distributes one or more clock sources when equipment initializes;
(2) when having that needed for module, clock frequency changes, equipment adjusts according to the clock frequency needed for described module and reselects a suitable clock source in for the clock source of this module assignment and be supplied to this module;
(3) when there being clock source not provide clock signal for any module, this clock source is closed.
Problem of the prior art is:
When needed for module, clock frequency changes, only adjust the clock source of this module, and the clock source of other modules of equipment is adjusted by the situation of change not according to equipment entirety clock frequency requirement, it is unfavorable for optimizing according to equipment clock changes in demand the clock source configuration of whole equipment, is unfavorable for effectively reducing equipment power dissipation.
Summary of the invention
In view of this, the invention provides the method for adjustment of a kind of embedded device clock source, to solve the problem that can not carry out clock source adjustment according to the change of equipment entirety clock frequency requirement that prior art exists.
The technical scheme is that
Equipment obtains the clock frequency required for each module in real time;
If the clock frequency required for having module changes, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;
Equipment voltage is adjusted by equipment according to the electric pressure that the clock source reconfigured is corresponding.
Described equipment obtain each module in real time required for clock frequency farther include:
Clock frequency required for each module of equipment real-time query.
Described equipment obtain each module in real time required for clock frequency farther include:
Each module when required clock frequency changes real-time report clock frequency requirement to equipment.
The clock source that described equipment reconfigures all modules according to the clock frequency needed for each module farther includes:
To each module, equipment reselects the clock source that needed for can providing it, clock signal frequency of clock frequency is minimum and provides clock signal for described module;
Needed for clock signal frequency according to each clock source reconfigured and each module, clock frequency arranges the divide ratio of clock controller corresponding to described module;
If there being clock source not provide clock signal for any module, equipment closes this clock source.
The clock source that described equipment reconfigures all modules according to the clock frequency needed for each module farther includes:
Step 1, equipment choice can provide the clock source of required clock frequency for most states for the module not reconfiguring clock source opened;
Step 2, the clock source that state is the module opened of required clock frequency can be obtained from this clock source be configured to this clock source by all;
If step 3 also residual state is the module not reconfiguring clock source opened, return step 1;Otherwise the divide ratio of clock controller corresponding to described module is set according to clock frequency needed for the clock signal frequency of each clock source reconfigured and each module;
If step 4 has clock source not provide clock signal for any module, equipment closes this clock source.
Described step 1 farther includes:
If able to provide the clock source number of required clock frequency to be more than 1 for most states for the module not reconfiguring clock source opened, the clock source that in clock source described in equipment choice, clock signal frequency is minimum.
Technical scheme obtains the clock frequency requirement of each module in real time, when module clock frequency demand changes, according to clock frequency requirement, the clock source of whole equipment is readjusted, make equipment on the premise of meeting work requirements, it is in less operating frequency as far as possible or ensures that clock source opens minimum number as far as possible, thus it is substantially reduced the dynamic power consumption of embedded device, extend the use time of equipment.
Accompanying drawing explanation
Fig. 1 is embedded device single clock zone structure chart
Fig. 2 is embedded device multiple clock zone topology example figure
Fig. 3 is the specific embodiment of the invention 1 overview flow chart
Fig. 4 is the specific embodiment of the invention 2 overview flow chart
Detailed description of the invention
For further illustrating technical scheme, specific embodiment is given below and is described with reference to the accompanying drawings.
Specific embodiment 1
The application scenarios of the present embodiment is, embedded device has 4 clock sources, be respectively CLK1 clock signal frequency be 26Mhz, CLK2 clock signal frequency be 81.92Mhz, CLK3 clock signal frequency be 104Mhz, CLK4 clock signal frequency be 240Mhz, 6 hardware modules, being respectively M1, M2, M3, M4, M5, M6, initial clock frequency needs is respectively 26Mhz~48Mhz, 26Mhz~48Mhz, 104Mhz~120Mhz, 104Mhz~120Mhz, 81.92Mhz~120Mhz, 52Mhz~81.92Mhz;
Wherein, the clock source that M1 and M2 can use is CLK1 and CLK4, and the clock source that M3 can use is CLK1, CLK2, CLK4, and the clock source that M4 can use is CLK3, CLK4, and the clock source that M5 and M6 can use is CLK2, CLK3.
It is CLK3 that the clock source that current each module is configured is respectively as follows: the clock source that clock source is CLK2, M6 configuration that clock source is CLK4, M5 configuration that the clock source of M1 and M2 configuration is CLK1, M3 and M4 configuration.
The present embodiment overall procedure is as shown in Figure 3.
1, the clock frequency needed for equipment obtains each module in real time;
In the present embodiment, the clock frequency requirement that mode is each module of equipment real-time query of clock frequency needed for the equipment each module of acquisition;
If 2 have module required for clock frequency change, perform step 3, otherwise perform step 1;
In the present embodiment, the clock frequency needed for equipment query to M3 is become 26Mhz~48Mhz from 104Mhz~120Mhz;
3, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;
301, the clock frequency required for each module of device statistics;
302, for each module, select this module to use, and the clock source that the clock signal frequency of clock frequency is minimum needed for being provided that this module is that this module provides clock signal;
In the present embodiment, CLK1 is provided that clock frequency 26Mhz required for M1, and CLK1 is the clock source that in the clock source that M1 can use, clock signal frequency is minimum, and configuration CLK1 provide clock signal for M1;
By that analogy, the result reconfigured is, M1, M2, M3 use CLK1;M5, M6 use CLK2, M4 to use CLK3;
4, the divide ratio of clock controller corresponding to described module is set according to clock frequency needed for the clock signal frequency of each clock source reconfigured and each module;
In the present embodiment, the clock controller divide ratio that the clock frequency required for the clock signal frequency of the clock source used according to each module after reconfiguring and each module configures each module corresponding is respectively as follows:
M1 divide ratio=1, M2 divide ratio=1, M3 divide ratio=1, M4 divide ratio=1, M5 divide ratio=1, M6 divide ratio=1;
If 5 have clock source not provide clock signal for any module, perform step 6, otherwise perform step 7;
6, equipment closes the clock source not providing clock signal for any module;
In the present embodiment, reconfiguring rear CLK4 and do not provide clock signal for any one module, equipment closes CLK4;
7, according to the electric pressure that each clock source after reconfiguring is corresponding, voltage is adjusted.
In the present embodiment, when having that needed for module, clock frequency changes, through reconfiguring, on the premise of ensureing that each module normally works, all modules are all configured to meet on the minimum clock source of its demand, reduce the dynamic power consumption of equipment.
Specific embodiment 2
The present embodiment application scenarios is identical with specific embodiment 1.Embodiment overall procedure is as shown in Figure 4.
1, clock frequency needed for equipment obtains each module in real time;
In the present embodiment, equipment obtain each module in real time needed for the mode of clock frequency be each module when required clock frequency changes real-time report clock frequency requirement to equipment.;
If 2 have module required for clock frequency change, perform step 3, otherwise perform step 1;
In the present embodiment, the clock frequency needed for equipment query to M1 is become 104Mhz~120Mhz from 26Mhz~48Mhz;
3, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;
311, equipment choice can provide the clock source of required clock frequency for most states for module that is that open and that do not reconfigure clock source;
In the present embodiment, after the change of clock frequency needed for M1, needed for each CLK can provide module, the situation of clock frequency is:
CLK1 can be the clock signal that M2 provides 26Mhz
CLK2 can be the clock signal that M5, M6 provide 81.92Mhz
CLK3 can be the clock signal that M4, M5, M6 provide 104Mhz
CLK4 can be the clock signal that M1, M2, M3, M4 provide 240Mhz
If the 312 selected clock sources arrived are more than 1, perform step 313, otherwise perform step 314;
313, selected to clock source in select the minimum clock source of clock signal frequency;
314, this clock source can be configured to from the clock source of the module that state is unlatching that this clock source obtains required clock frequency by all;
If 315 also residual state be open the module not reconfiguring clock source, perform step 311, otherwise perform step 4;
In the present embodiment, when selecting clock source for the first time, select CLK4, the clock source of M1, M2, M3, M4 is configured to CLK4;
When second time selects clock source, there remains M5, M6 and do not reconfigure clock source, and CLK2, CLK3 can provide its required clock signal for M5, M6, owing to the clock signal frequency of CLK2 is less than CLK3, select CLK2, the clock source of M5, M6 is configured to CLK2.
4, the divide ratio of clock controller corresponding to described module is set according to clock frequency needed for the clock signal frequency of each clock source reconfigured and each module;
In the present embodiment, the clock controller divide ratio that the clock frequency required for the clock signal frequency of the clock source used according to each module after reconfiguring and each module configures each module corresponding is respectively as follows:
M1 divide ratio is 2, and M2 divide ratio is 5, and M3 divide ratio is 2, and M4 divide ratio is 2, and M5 divide ratio is 1, and M6 divide ratio is 1.
If 5 have clock source not provide clock signal for any module, perform step 6, otherwise perform step 7;
6, equipment closes the clock source not providing clock signal for any module;
In the present embodiment, reconfiguring rear CLK1 and CLK3 and do not provide clock signal for any one module, equipment closes CLK1 and CLK3;
7, according to the electric pressure that each clock source after reconfiguring is corresponding, voltage is adjusted.
In the present embodiment, when having that needed for module, clock frequency changes, through reconfiguring, on the premise of ensureing that each module normally works, it would be desirable to the number opening clock source is reduced to minimum, reduces the dynamic power consumption of equipment.
It will be apparent to those skilled in the art that and understand, the above example that the inventive method is lifted is merely to illustrate the present invention, and is not limited to the present invention.Although effectively describing the present invention by embodiment; those skilled in the art will know that; there is many changes spirit without deviating from the present invention in the present invention; in the case of without departing substantially from the spirit of the present invention and essence thereof; those skilled in the art are when making various corresponding change or deformation according to the inventive method, but these change accordingly or deform the claims belonging to the present invention.

Claims (5)

1. an embedded device clock source method of adjustment, it is characterised in that including:
Equipment obtains the clock frequency required for each module in real time;
If the clock frequency required for having module changes, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;
Equipment voltage is adjusted by equipment according to the electric pressure that the clock source reconfigured is corresponding, including:
To each module, equipment reselects the clock source that needed for can providing it, clock signal frequency of clock frequency is minimum and provides clock signal for described module;
Needed for clock signal frequency according to each clock source reconfigured and each module, clock frequency arranges the divide ratio of clock controller corresponding to described module;
If there being clock source not provide clock signal for any module, equipment closes this clock source.
A kind of embedded device clock source method of adjustment the most according to claim 1, it is characterised in that described equipment obtain each module in real time required for clock frequency include:
Clock frequency required for each module of equipment real-time query.
A kind of embedded device clock source method of adjustment the most according to claim 1, it is characterised in that described equipment obtain each module in real time required for clock frequency include:
Each module when required clock frequency changes real-time report clock frequency requirement to equipment.
4. an embedded device clock source method of adjustment, it is characterised in that including:
Equipment obtains the clock frequency required for each module in real time;
If the clock frequency required for having module changes, equipment reconfigures the clock source of all modules according to the clock frequency needed for each module;
Equipment voltage is adjusted by equipment according to the electric pressure that the clock source reconfigured is corresponding, including:
Step 1, equipment choice can provide the clock source of required clock frequency for most states for the module not reconfiguring clock source opened;
Step 2, the clock source that state is the module not reconfiguring clock source opened of required clock frequency can be obtained from this clock source be configured to this clock source by all;
If step 3 also residual state is the module not reconfiguring clock source opened, return step 1;Otherwise the divide ratio of clock controller corresponding to described module is set according to clock frequency needed for the clock signal frequency of each clock source reconfigured and each module;
If step 4 has clock source not provide clock signal for any module, equipment closes this clock source.
A kind of embedded device clock source method of adjustment the most according to claim 4, it is characterised in that described step 1 includes:
If able to provide the clock source number of required clock frequency to be more than 1 for most states for the module not reconfiguring clock source opened, the clock source that in clock source described in equipment choice, clock signal frequency is minimum.
CN201010500155.3A 2010-09-30 2010-09-30 A kind of method of adjustment of embedded device clock source Active CN102445953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010500155.3A CN102445953B (en) 2010-09-30 2010-09-30 A kind of method of adjustment of embedded device clock source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010500155.3A CN102445953B (en) 2010-09-30 2010-09-30 A kind of method of adjustment of embedded device clock source

Publications (2)

Publication Number Publication Date
CN102445953A CN102445953A (en) 2012-05-09
CN102445953B true CN102445953B (en) 2016-08-03

Family

ID=46008528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010500155.3A Active CN102445953B (en) 2010-09-30 2010-09-30 A kind of method of adjustment of embedded device clock source

Country Status (1)

Country Link
CN (1) CN102445953B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324268A (en) * 2013-05-29 2013-09-25 东南大学 Low-power design method for wireless sensor network core chip
CN103412615B (en) * 2013-08-22 2018-02-09 中国航天科工集团第三研究院第八三五七研究所 A kind of impulse- free robustness self-adaptation clock switching method for UART interface chip
CN105353827A (en) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 Control method and apparatus and functional board
CN106598137A (en) * 2016-11-02 2017-04-26 深圳驰芯微电子有限公司 Chip
CN108733134A (en) * 2017-04-21 2018-11-02 涂骏飞 Chip
CN114427434A (en) * 2020-09-21 2022-05-03 中国石油化工股份有限公司 Underground low-power-consumption management method and device based on clock management
CN112468148A (en) * 2020-11-09 2021-03-09 浙江大学 Multi-sampling-rate low-power-consumption micromechanical gyroscope digital signal processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641534A (en) * 2004-01-13 2005-07-20 Lg电子株式会社 Apparatus for controlling power of processor having a plurality of cores and control method of the same
CN101036120A (en) * 2004-11-29 2007-09-12 英特尔公司 A frequency and voltage scaling architecture
CN101281415A (en) * 2007-04-06 2008-10-08 上海摩飞电子科技有限公司 Method for regulating dynamic voltage frequency in power supply management technique
CN101297255A (en) * 2005-10-26 2008-10-29 英特尔公司 Cluster architecture capable of detecting variation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641534A (en) * 2004-01-13 2005-07-20 Lg电子株式会社 Apparatus for controlling power of processor having a plurality of cores and control method of the same
CN101036120A (en) * 2004-11-29 2007-09-12 英特尔公司 A frequency and voltage scaling architecture
CN101297255A (en) * 2005-10-26 2008-10-29 英特尔公司 Cluster architecture capable of detecting variation
CN101281415A (en) * 2007-04-06 2008-10-08 上海摩飞电子科技有限公司 Method for regulating dynamic voltage frequency in power supply management technique

Also Published As

Publication number Publication date
CN102445953A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102445953B (en) A kind of method of adjustment of embedded device clock source
CN106059290B (en) Multi-channel DC-DC converter and control circuit and method
CN110383202A (en) Programmable power supply generator
US20200161978A1 (en) Power supply circuit, electronic component, mobile phone terminal, and power supply control method
CN104201883A (en) Control circuit for switching converter
CN106797179B (en) A kind of chip method of supplying power to and chip
CN106162664B (en) A kind of generation method and system of base station configuration information
CN106601184B (en) A kind of LED display and its power redundancy backup method and device
CN110413041B (en) Chip clock circuit and control method thereof
US10250130B2 (en) Capacitor reconfiguration of a single-input, multi-output, switched-capacitor converter
CN110365296A (en) A kind of power supply for radio-frequency power amplifier
CN104750147A (en) Dynamic voltage adjusting device and method
CN105607688A (en) Clock signal generated integrated circuit, method and system
CN208190338U (en) A kind of low-loss power switching circuit
CN207135003U (en) Active rectifier
CN109074145A (en) Power supply circuit and method of supplying power to
KR102204923B1 (en) Radio unit and method for controlling electric power of the same
CN104750525A (en) Control method for turning on and turning off server in timed mode
CN209120219U (en) A kind of SRIO high-speed figure interchanger
CN110096114A (en) A kind of system and method managing multiple ARM server nodes
CN101662169A (en) Power management method, power management circuit using same and energy transmission system
CN107294409A (en) Active rectifier
CN107908269A (en) A kind of more POL parallel combinations electric power systems and method of supplying power to
CN204013219U (en) Control circuit for switching converter
CN103902247A (en) Method for converting interface mode and electronic devices

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
TR01 Transfer of patent right

Effective date of registration: 20170427

Address after: Nanping Street 400060 Chongqing Nan'an District Nancheng Road No. 199 left attached to the floor 403

Patentee after: Keen (Chongqing) Microelectronics Technology Co.,Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Chongqing University of Posts and Telecommunications shineford building 12 floor 1205

Patentee before: CHONGQING CYIT COMMUNICATION TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181107

Address after: 201203 Building 1, exhibition hall, 2288 lane, 2288 Chong, road, Zhangjiang hi tech park, Shanghai

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 400060 Nanping Road 199, Nanping Street, Nan'an District, Chongqing, 403

Patentee before: Keen (Chongqing) Microelectronics Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190321

Address after: 361006 Xiamen Free Trade Pilot Area, Xiamen, Fujian Province, Unit X, 8th Floor, Unit 05, Building D, Xiamen International Shipping Center, 97 Xiangyu Road, Xiamen Section

Patentee after: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Address before: 201203 Building 1, exhibition hall, 2288 lane, 2288 Chong, road, Zhangjiang hi tech park, Shanghai

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20120509

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

Contract record no.: X2021110000009

Denomination of invention: A method of adjusting clock source of embedded device

Granted publication date: 20160803

License type: Exclusive License

Record date: 20210317

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20221024

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 361006 Xiamen Free Trade Pilot Area, Xiamen, Fujian Province, Unit X, 8th Floor, Unit 05, Building D, Xiamen International Shipping Center, 97 Xiangyu Road, Xiamen Section

Patentee before: Xinxin Finance Leasing (Xiamen) Co.,Ltd.

TR01 Transfer of patent right