[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN100489738C - Storage card electricity-saving method and its device - Google Patents

Storage card electricity-saving method and its device Download PDF

Info

Publication number
CN100489738C
CN100489738C CNB2006101397235A CN200610139723A CN100489738C CN 100489738 C CN100489738 C CN 100489738C CN B2006101397235 A CNB2006101397235 A CN B2006101397235A CN 200610139723 A CN200610139723 A CN 200610139723A CN 100489738 C CN100489738 C CN 100489738C
Authority
CN
China
Prior art keywords
storage card
clock
power
management
data access
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
Application number
CNB2006101397235A
Other languages
Chinese (zh)
Other versions
CN101149639A (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.)
Petevio Institute Of Technology Co ltd
Original Assignee
Potevio Institute of 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 Potevio Institute of Technology Co Ltd filed Critical Potevio Institute of Technology Co Ltd
Priority to CNB2006101397235A priority Critical patent/CN100489738C/en
Publication of CN101149639A publication Critical patent/CN101149639A/en
Application granted granted Critical
Publication of CN100489738C publication Critical patent/CN100489738C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

This invention offers a kind of power save method for the storage card basing on the communicating module and the device which can realize the power save for the storage card effectively. This invention manages the clock of every module in the storage card and the external clock of storage card and the power by the expansion communicating agreement order of the storage card also it can resolve the problem of leakage better for the storage card when it is not work.

Description

A kind of storage card electricity-saving method and device
Technical field
The present invention relates to the storage card field, be meant a kind of storage card electricity-saving method and device especially based on communication mode.
Background technology
Storage card is applied in the electronics mobile terminal device more, and the electronics mobile terminal device under this applied environment is very responsive to work and the power consumption during holding state.
In the prior art, for the SD/MMC storage card, the method that solves the economize on electricity problem is: when data access equipment was not operated storage card, data access equipment can be closed the external clock of storage card, reduces the power consumption of storage card with this.
The shortcoming of this prior art is that flexibility of operation is poor, because if will carry out power save function to storage card, then data access equipment need be closed the external clock of storage card, thereby causes storage card to work; In addition, this method can not solve the quiescent dissipation problem, even because the data access device shutdown external clock of storage card, but the power supply supply of inner each module of storage card still exists, thereby can not solve the quiescent dissipation problem that IC interior causes because of gate leakage current and sub-threshold leakage current.
In the prior art, for general SOC (system on a chip) (SOC), the method that solves the economize on electricity problem is: dispose the power management registers of SOC inside by the mode of bus and instruction, thereby finish the clock of each module of SOC inside and the management of power supply, to reduce SOC power consumption.
The shortcoming of this prior art is that the power-saving method of SOC is only at its field, place; And the storage card universal standard does not provide the corresponding description and the address space of power management registers, and the agreement of storage card is based on the communications protocol of acknowledgement mechanism, so the power-saving method of existing SOC can't be applied directly to the storage card field.
Summary of the invention
In view of this, the invention provides a kind of storage card electricity-saving method and device, can effectively realize the economize on electricity of storage card based on communication mode.
Technical scheme of the present invention is specific as follows:
The invention provides a kind of storage card electricity-saving method, this method is based on described storage card and can operate the communication between the data access equipment of described storage card and realize, comprising:
A, described data access equipment send the power saving management order to described storage card, and described power saving management order is arranged in the existing communication protocol, comprises the information and the management type information of power saving management object;
B, described storage card receive described power saving management order, carry out corresponding operating according to described storage card self-condition, and return the power saving management response to described data access equipment.
Described power saving management order can be the order of clock power saving management.
The order of described clock power saving management can be: the external clock shutdown command of described storage card; Corresponding operating described in the step B is: described storage card be provided with external clock and close the response characteristic value in will responding to the power saving management that described data access equipment returns; After described step B, further comprise:
C1, described data access equipment receive the response of described power saving management and the external clock that obtains is wherein closed the response characteristic value, close the response characteristic value according to this external clock then, judge whether described storage card agrees to close external clock, if storage card is agreed, the described storage card external clock of then described data access device shutdown; If storage card disagrees with, process ends then.
The order of described clock power saving management can be: the internal clocking regulating command of described storage card comprises the internal module information of needs adjusting clock and the clock information value that is fit in this storage card internal clocking regulating command; Corresponding operating described in the step B is: described storage card obtains described internal module information and the described suitable clock information value that needs to regulate clock from the described storage card internal clocking regulating command of receiving, and, regulate for the inner described clock of the internal module of adjusting clock that needs of described storage card according to internal module information and described suitable clock information value that these needs are regulated clock.After described step B, can comprise: in will responding, the internal clocking adjusting will be set and finish the response characteristic value to the power saving management that described data access equipment returns.
Before described steps A, can further comprise:
A11, described data access equipment send the internal clocking status inquiry command to described storage card;
A12, described storage card receive described internal clocking status inquiry command, and described data access equipment is returned in the status poll response that will comprise described storage card self clock condition information;
A13, described data access equipment receive described status poll response and obtain wherein storage card self clock condition information, then according to this storage card self clock condition information, judge whether the setting of described storage card is fit to, if be fit to, and process ends then; If be not suitable for, execution in step A then.
Described power saving management order can be the power-supply saving administration order.
Described power-supply saving administration order can be: the external power source shutdown command of described storage card; Corresponding operating described in the step B is: described storage card be provided with external power source and close the response characteristic value in will responding to the power saving management that described data access equipment returns; After described step B, further comprise:
C2, described data access equipment receive the response of described power saving management and the external power source that obtains wherein cuts out the response characteristic value, close the response characteristic value according to this external power source then, judge whether described storage card agrees to close external power source, if storage card is agreed, the described storage card external power source of then described data access device shutdown; If storage card disagrees with, process ends then.
Described power-supply saving administration order can be: the internal electric source shutdown command of described storage card comprises in this storage card internal electric source shutdown command needing the internal module of powered-down information; Corresponding operating described in the step B is: described storage card obtains the described internal module information that needs powered-down from the described storage card internal electric source shutdown command of receiving, and closes the power supply that this needs the internal module of powered-down.After described step B, can comprise: close and finish the response characteristic value in that internal electric source will be set in the response of power saving management that described data access equipment returns.
Described power-supply saving administration order can be: the internal electric source of described storage card is opened order, and this storage card internal electric source is opened and comprised in the order and need the internal module of opening power information; Corresponding operating described in the step B is: described storage card is opened from the described storage card internal electric source of receiving and is obtained the described internal module information that needs opening power the order, and opens the power supply that this needs the internal module of opening power.After described step B, can comprise: open and finish the response characteristic value in that internal electric source will be set in the response of power saving management that described data access equipment returns.
Before described steps A, can further comprise:
A21, described data access equipment send the internal electric source status inquiry command to described storage card;
A22, described storage card receive described internal electric source status inquiry command, and described data access equipment is returned in the status poll response that will comprise described storage card self power status information;
A13, described data access equipment receive described status poll response and obtain wherein storage card self power status information, then according to this storage card self power status information, whether the power supply of judging the internal module that needs opening power described in the described storage card is opened, if opened, process ends then; If do not open, execution in step A then.
Described power saving management order can be the storage card status inquiry command, comprises the information of described power saving management object in this storage card status inquiry command; Described power saving management response is storage card status poll response; Described power saving management object comprises the clock or the power supply of storage card internal module; Corresponding operating described in the step B is: described storage card will be provided with the status information of described power saving management object in the storage card status poll response that described data access equipment returns.
According to the present invention, before steps A, can further comprise: judge whether described storage card supports energy-saving mode, if support, then execution in step A; Otherwise, process ends.Describedly judge whether described storage card supports described energy-saving mode, can be and judge whether the value that is arranged on the signature identification in the particular register in the described storage card is corresponding to the value of supporting energy-saving mode.
According to the present invention, can work as and carry out described steps A when described storage card is in the side configuration state.
According to the present invention, described storage card can be multimedia card MMC or safe digital card SD; Described power saving management order can be the CMD explosion command.
The present invention also provides a kind of memory storage, this memory storage by and external fetch equipment between communication realizes alternately economize on electricity, comprising: store main control unit, Clock management register CCR, clock control cell, power management registers PCR, regulating and controlling voltage unit and function executing unit;
Described storage main control unit is used for linking to each other with described external fetch equipment, and link to each other respectively with described PCR with described CCR, be used for that described CCR is resolved and sends in the order that described external fetch equipment is sent or PCR stores, and be used for reading described memory storage inner function module information from described CCR or PCR;
Described CCR links to each other with described clock control cell with described storage main control unit respectively, is used to deposit described memory storage clock internal management information;
Described clock control cell links to each other with described CCR, with the internal clocking management information of storing among receiving management order and the described CCR; Described clock control cell also links to each other with described function executing unit, and according to administration order of obtaining and internal clocking management information, and the clock of corresponding one or more functional modules in the described function executing unit is managed;
Described PCR links to each other with described regulating and controlling voltage unit with described storage main control unit respectively, is used to deposit the power management message of described memory storage inside;
Described regulating and controlling voltage unit links to each other with described PCR, with the internal electric source management information of storing among receiving management order and the described PCR; Described regulating and controlling voltage unit also links to each other with described function executing unit, and according to administration order of obtaining and internal electric source management information, and the power supply of corresponding one or more functional modules in the described function executing unit is managed.
Described memory storage can comprise and described CCR, described PCR and the value preserving latch that described regulating and controlling voltage unit links to each other respectively, is used for latching the management information of described CCR and described PCR.
The invention provides a kind of storage card electricity-saving method and device, can effectively realize the economize on electricity of storage card based on communication mode.The expansion communications protocol order of the present invention by storage card manages the clock of each module of storage card inside and power supply and storage card external clock and power supply, and the electric leakage problem can better solve storage card and do not work the time.
Description of drawings
Fig. 1 is for closing the control procedure embodiment process flow diagram of storage card external power source under the power saving management pattern provided by the invention;
Fig. 2 is for closing the control procedure embodiment process flow diagram of storage card external clock under the power saving management pattern provided by the invention;
Fig. 3 is a control procedure embodiment process flow diagram of regulating storage card internal module clock under the power saving management pattern provided by the invention;
Fig. 4 is for closing the control procedure embodiment process flow diagram of storage card internal module power supply under the power saving management pattern provided by the invention;
Fig. 5 is for opening the control procedure embodiment process flow diagram of storage card internal module power supply under the power saving management pattern provided by the invention;
Fig. 6 is for reading the process embodiment process flow diagram of Clock management register in the storage card under the power saving management pattern provided by the invention;
Fig. 7 is for opening the process embodiment process flow diagram of power management registers in the storage card under the power saving management pattern provided by the invention;
Fig. 8 is for realizing the state transition graph of energy-saving mode management;
Fig. 9 is the memory device structure synoptic diagram that is applicable to internal module clock and power management under the energy-saving mode provided by the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The present invention will use for reference existing SOC method for managing power supply, and the expansion communications protocol order by a kind of storage card, and the clock of each module of storage card inside and power supply and storage card external clock and power supply are managed.Therefore, need carry out following work: the one, in the feature register of storage card, corresponding marker bit is set, make data access equipment, as card-reading apparatus, can determine whether storage card supports the management method of energy-saving mode provided by the invention; The 2nd, corresponding power saving management order is set in existing communications protocol, data access equipment can be managed by the interior external power timely clock of this order to storage card; The 3rd, in the response of storage card, comprise and inform whether data access equipment has adopted this power-saving measures to carry out the information of work described power saving management order; The 4th, in the storage register group, relevant register is set, with the working condition of power supply and clock in management and inner each module of sign storage card, and whether the sign storage card is ready to the operation of closing external power source and clock.
The present invention is applicable to but is not limited in the SD/MMC storage card, for the storage card of other types, also can adopt similar method to realize.Be that the present invention will be described for example with the SD/MMC storage card below.
1) energy-saving mode is set and supports zone bit:
Particular register at storage card, as block and energy-saving mode is set in particular data (CSD) register supports zone bit SAVE_POWER, as shown in table 1, wherein, the SAVE_POWER value is to express support for energy-saving mode at 1 o'clock, value is to represent not support energy-saving mode at 0 o'clock, like this, makes data access equipment can know when last electro-detection whether this storage card supports electricity-saving operation method provided by the invention.
Title Field Width The cell type The CSD-sheet
The realization of DSR DSR_IMP 1 R [76:76]
Energy-saving mode support sign SAVE_POWER 1 R [75]
Keep - 2 R [74]
Instrument size C_SIZE 12 R [73:62]
Table 1
2) the power saving management order is set:
For realizing energy-saving mode management control, in the command list (CLIST) of former SD/MMC agreement, can set up power saving management order CMD43-SAVE_POWER_CONTROL, as shown in table 2.Certainly, except that CMD43, also can adopt other available explosion commands, as CMD44.
Table 2
Wherein, the command format of CMD43 (SAVE_POWER_CONTROL) is described shown in table 2A and table 2B.Wherein, the command format when showing 2A corresponding to CPS=1, wherein symbol A represents module clock stratum control word; Command format when showing 2B corresponding to CPS=0, wherein, symbol B represents modular power source open and close controlling word.
Figure C200610139723D00141
Table 2A
Figure C200610139723D00142
Table 2B
As show shown in 2A and the table 2B, wherein:
● in the 5th row, the 7th " 0 " is start bit; The 6th " 1 " expression is from the data transfer direction of data access equipment to storage card; 5-0 position " 101011 " expression command sequence number 43;
● in the 4th row, the 7th CPS is command module rank function control bit, and CPS is that 1 or 0 expression is provided with the clock or the power supply of each module in the storage card; The 6th WR is the read-write control bit, and WR is that 1 or 0 expression is carried out the write or read operation to storage card clock/power management registers (CCR/PCR); The 5th PD enables control bit for the storage card external power source, and PD provides or do not provide external power source for 1 or 0 expression to storage card, and the PD default value is " 1 "; The 4th CD enables control bit for the storage card external clock, and CD provides or do not provide external clock for 1 or 0 expression to storage card, and the CD default value is " 1 "; The 0th of the 2nd the-the 1st row of the 4th row, its default value is complete " 0 ", be used for the clock stratum of each module of storage card inside is carried out control and management, and the power enable of carrying out module level is managed, but, do not provide corresponding Be Controlled module, can determine according to actual conditions, the maximum clock frequency that each module clock provides for system is opened each modular power source.
● be used for 7 CRC effects from the 0th row 7-1 position; The 0th " 1 " is stop bit.
3) the power saving management command response is set:
In the response of storage card to described power saving management order, response message is set, inform whether this storage card of data access equipment has adopted this power-saving measures to carry out work.Wherein, table 3A and table 3B show the command response of CMD43 (SAVE_POWER_CONTROL), wherein, the command format when showing 3A corresponding to CPR=1, wherein symbol C represents the response of module clock stratum control word; Command format when showing 3B corresponding to CPR=0, wherein, symbol D represents the response of modular power source open and close controlling word.
Figure C200610139723D00151
Table 3A
Figure C200610139723D00152
Table 3B
As show shown in 3A and the table 3B, wherein:
● in the 5th row, the 7th " 0 " is start bit; The 6th " 0 " expression is from the data transfer direction of storage card to data access equipment; 5-0 position " 101011 " expression command sequence number 43;
● in the 4th row, the 7th CPR is module level function control response position, and CPR is that 1 or 0 expression storage card is provided with order to each module clock or power level and responds; The 6th WRR is read-write control response position, and WRR is that operation responds 1 or 0 expression storage card to write or read; The 5th PDR is storage card external power source " shut " mode" response bit, PDR be 1 or 0 expression storage card operation has been ready to or is unripe to outside power-off, the PDR default value is " 0 "; The 4th CDR is storage card external clock " shut " mode" response bit, and CDR is that 1 or 0 expression storage card has been ready to the external clock shutoff operation or unripe, and the CDR default value is " 0 "; The 3rd reservation; The 0th of the 2nd the-the 1st row of the 4th row, its acquiescence numerical value is complete " 0 ", being used for power enable management that clock stratum to each module of storage card inside carries out control and management and module level is provided with and responds, but, do not provide corresponding Be Controlled module, can determine according to actual conditions, the maximum clock frequency that each module clock provides for system, each modular power source is opened, simultaneously, if the passback value equate with preset value, represent that this module is by the work of the value of setting, if the passback value be provided with before read value equate, represent that this module is not by the work of the value of setting;
● be used for the CRC effect from the 0th row 7-1 position; The 0th " 1 " is stop bit;
4) relevant register is set:
In the storage register group, relevant register is set, as Clock management register (CCR) and power management registers (PCR), with the working condition of power supply and clock in management and inner each module of sign storage card, and whether the sign storage card is ready to the operation of closing external power source and clock.
The setting of storage card Clock management register is shown in table 4A.Wherein, symbol E represents module clock stratum control word.
Table 4A
As show shown in the 4A, wherein:
● the 4th CDR of the 3rd row is storage card external clock " shut " mode" indicating bit, CDR is that 1 or 0 expression storage card can be accepted or unacceptable external clock shutoff operation, CDR is read-only with respect to data access equipment, but the storage card state according to self of can following is provided with CDR, and the CDR default value is 0;
● the 0th of the 2nd the-the 0th row of the 3rd row, its default value are complete " 0 ", for each the module clock stratum control of storage card inside, do not provide concrete definition in this enforcement, should decide according to actual conditions, represent the high-frequency work that each module all can provide by system; It is as follows with reference to being provided with: 000 expression system is according to the high-frequency work that can provide, and 001 expression system is according to 2 frequency division work of the high frequency that can provide ..., 111 expression systems are according to 128 frequency division work of the high frequency that can provide.
The setting of storage card power management registers is shown in table 4B.Wherein, symbol F represents modular power source open and close controlling word.
Table 4B
Wherein:
● the 5th PDR of the 3rd row is storage card external power source " shut " mode" indicating bit, PDR is that 1 or 0 expression storage card can be accepted or unacceptable external power source shutoff operation, PDR is read-only with respect to data access equipment, but the storage card state according to self of can following is provided with PDR, and the PDR default value is 0;
● the 0th of the 2nd the-the 0th row of the 3rd row, its default value are complete " 0 ", are each the modular power source rank control of storage card inside, and this enforcement does not provide concrete definition, should decide according to actual conditions, represents the magnitude of voltage normal supply of each module.
So far described, the present invention can be by the media card communication protocol command of expansion, realizes managing for the clock of each module of storage card inside and power supply and storage card external clock and power supply.Energy-saving mode provided by the invention operation mainly comprises the control procedure to external clock in the storage card and power supply, and to the operating process of relevant register.
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is for closing the control procedure embodiment process flow diagram of storage card external power source under the power saving management pattern provided by the invention.Specific as follows:
Step 101, data access equipment to the storage card initialization after, detect and obtain the SAVE_POWER value in the CSD register in this storage card;
Step 102, data access equipment judge according to the SAVE_POWER value of obtaining in the step 101 whether this storage card supports energy-saving mode, if support that promptly the value of described SAVE_POWER is 1, then execution in step 103; If do not support, promptly the value of described SAVE_POWER is 0, then process ends;
Step 103, described storage card enter other configuration state, wait command;
Step 104, data access equipment send the CMD43 order to storage card, wherein, CPS=0, WR=1, CD=0, PD=1, expression data access equipment will be closed the storage card external power source in following a period of time;
The order of CMD43 described in step 105, the storage card receiving step 104, state according to self determines whether to agree to close its external power source, corresponding PDR value is set then, and the response message that will comprise this PDR value returns described data access equipment in the storage card power management registers;
The response message that storage card returns described in step 106, the data access equipment receiving step 105, and obtain wherein PDR value;
Step 107, data access equipment judge according to the PDR value of being obtained in the step 106 whether described storage card is agreed to close its external power source, if described PDR value is 1, illustrate that described storage card agrees to close its external power source, and then execution in step 108; If described PDR value is 0, illustrate that described storage card is disagreed with to close its external power source, return execution in step 104 after then need waiting for certain hour, promptly retransmit the CMD43 order;
The external power source of step 108, the described storage card of data access device shutdown.
Fig. 2 is for closing the control procedure embodiment process flow diagram of storage card external clock under the power saving management pattern provided by the invention.Specific as follows:
Step 201, data access equipment to the storage card initialization after, detect and obtain the SAVE_POWER value in the CSD register in this storage card;
Step 202, data access equipment judge according to the SAVE_POWER value of obtaining in the step 201 whether this storage card supports energy-saving mode, if support that promptly the value of described SAVE_POWER is 1, then execution in step 203; If do not support, promptly the value of described SAVE_POWER is 0, then process ends;
Step 203, described storage card enter other configuration state, wait command;
Step 204, data access equipment send the CMD43 order to storage card, wherein, CPS=1, WR=1, CD=1, PD=0, expression data access equipment will be closed the storage card external clock in following a period of time;
The order of CMD43 described in step 205, the storage card receiving step 204, state according to self determines whether to agree to close its external clock, corresponding C DR value is set then, and the response message that will comprise this CDR value returns described data access equipment in storage card Clock management register;
The response message that storage card returns described in step 206, the data access equipment receiving step 205, and obtain wherein CDR value;
Step 207, data access equipment judge according to the CDR value of being obtained in the step 206 whether described storage card is agreed to close its external clock, if described CDR value is 1, illustrate that described storage card agrees to close its external clock, and then execution in step 208; If described CDR value is 0, illustrate that described storage card is disagreed with to close its external clock, return execution in step 204 after then need waiting for certain hour, promptly retransmit the CMD43 order;
The external clock of step 208, the described storage card of data access device shutdown.
As shown in Figure 2, it is similar with as shown in Figure 1 the control procedure of closing the storage card external power source to close the control procedure of storage card external clock in the present embodiment, the content of wherein ordering among the CMD43 and judge parameter just, and promptly CDR is different.
Fig. 3 is a control procedure embodiment process flow diagram of regulating storage card internal module clock under the power saving management pattern provided by the invention.Specific as follows:
Step 301, data access equipment to the storage card initialization after, detect and obtain the SAVE_POWER value in the CSD register in this storage card;
Step 302, data access equipment judge according to the SAVE_POWER value of obtaining in the step 301 whether this storage card supports energy-saving mode, if support that promptly the value of described SAVE_POWER is 1, then execution in step 303; If do not support, promptly the value of described SAVE_POWER is 0, then process ends;
Step 303, described storage card enter other configuration state, wait command;
Step 304, data access equipment send the CMD43 order to storage card, wherein, and CPS=1, WR=0, CD=0, PD=0, expression data access equipment will read the value in the storage card Clock management register, to judge whether to need to regulate storage card internal module clock;
CMD43 described in step 305, the storage card receiving step 304 order is included in the clock relevant information in the storage card Clock management register according to self state and returns described data access equipment in the response message;
The response message that storage card returns described in step 306, the data access equipment receiving step 305, and obtain wherein clock relevant information;
Step 307, data access equipment are according to the storage card internal clocking relevant information of being obtained in the step 306, and judging whether needs to regulate storage card internal module clock, suitable if described clock relevant information is provided with, and then need not regulate process ends; If it is improper that described clock relevant information is provided with, then need to regulate execution in step 308;
Step 308, data access equipment send the CMD43 order to storage card, wherein, CPS=1, WR=1, CD=0, PD=0, the clock control position of corresponding module is set to desired value in the storage card Clock management register;
CMD43 described in step 309, the storage card receiving step 308 orders, and regulates the clock of its inner corresponding module according to the state agreement of self according to described CMD43 order, and returns the internal clocking adjusting to data access equipment and finish response after finishing adjusting;
The response that storage card returns described in step 310, the data access equipment receiving step 309 knows that the internal clocking adjusting of storage card is finished, and described storage card carries out work according to new setting.
As shown in Figure 3, the control procedure and the control procedure of closing the storage card external clock as shown in Figure 2 of adjusting storage card internal module clock are similar in the present embodiment.Wherein, at data access equipment before storage card sends the internal clocking regulating command, order the clock information that reads in the storage card Clock management register by a CMD43 earlier, regulate to judge whether the internal clocking that need carry out storage card, and when the clock of finding described clock information is improper, just send the order that internal clocking is regulated to storage card.
Fig. 4 is for closing the control procedure embodiment process flow diagram of storage card internal module power supply under the power saving management pattern provided by the invention.Specific as follows:
Step 401, data access equipment to the storage card initialization after, detect and obtain the SAVE_POWER value in the CSD register in this storage card;
Step 402, data access equipment judge according to the SAVE_POWER value of obtaining in the step 401 whether this storage card supports energy-saving mode, if support that promptly the value of described SAVE_POWER is 1, then execution in step 403; If do not support, promptly the value of described SAVE_POWER is 0, then process ends;
Step 403, described storage card enter other configuration state, wait command;
Step 404, data access equipment send the CMD43 order to storage card, wherein, CPS=0, WR=1, CD=0, PD=0, expression will be closed the power supply of corresponding module in the storage card;
CMD43 described in step 405, the storage card receiving step 404 order determines to agree to close the power supply of its inner corresponding module according to the state of self, and returns internal electric source to data access equipment and close and finish response finishing powered-down operation back;
The response that storage card returns described in step 406, the data access equipment receiving step 406 knows that the power-off of the inner corresponding module of storage card is finished.
Fig. 5 is for opening the control procedure embodiment process flow diagram of storage card internal module power supply under the power saving management pattern provided by the invention.Specific as follows:
Step 501, data access equipment to the storage card initialization after, detect and obtain the SAVE_POWER value in the CSD register in this storage card;
Step 502, data access equipment judge according to the SAVE_POWER value of obtaining in the step 501 whether this storage card supports energy-saving mode, if support that promptly the value of described SAVE_POWER is 1, then execution in step 503; If do not support, promptly the value of described SAVE_POWER is 0, then process ends;
Step 503, described storage card enter other configuration state, wait command;
Step 504, data access equipment send the CMD43 order to storage card, wherein, and CPS=0, WR=0, CD=0, PD=0, expression data access equipment will read the value in the storage card power management registers, to judge whether to need to regulate storage card internal module power supply;
CMD43 described in step 505, the storage card receiving step 504 order is included in the power supply relevant information in the storage card power management registers according to self state and returns described data access equipment in the response message;
The response message that storage card returns described in step 506, the data access equipment receiving step 505, and obtain wherein power supply relevant information;
Step 507, data access equipment judge according to the storage card internal electric source relevant information of being obtained in the step 506 whether the power supply of corresponding module is opened, if the power supply of corresponding module is opened, and process ends then; If the power supply of corresponding module is not opened, then need to regulate execution in step 508;
Step 508, data access equipment send the CMD43 order to storage card, wherein, CPS=1, WR=1, CD=0, PD=0, the power supply control bit of corresponding module is set to 0 in the storage card power management registers;
CMD43 described in step 509, the storage card receiving step 508 order determines to agree to open the power supply of its inner corresponding module according to the state of self, and returns internal electric source to data access equipment and open and finish response finishing opening power operation back;
The response that storage card returns described in step 510, the data access equipment receiving step 509 knows that the power supply opening of the inner corresponding module of storage card is finished.
As shown in Figure 5, it is similar with as shown in Figure 4 the control procedure of closing storage card internal module power supply to open the control procedure of storage card internal module power supply in the present embodiment.Wherein, at data access equipment before storage card sends the order of internal module power supply opening, order the power supply relevant information that reads in the storage card power management registers by a CMD43 earlier, to judge whether to open the power supply of storage card internal module, and when the power supply of finding described storage card internal module is not opened, just send the order of opening its internal module power supply to storage card.
Fig. 6 is for reading the process embodiment process flow diagram of Clock management register in the storage card under the power saving management pattern provided by the invention.As shown in Figure 6, in fact step 601-606 is identical with as shown in Figure 3 step 301-306, does not repeat them here.In embodiment as shown in Figure 3, need read the information in the storage card Clock management register, and judge whether that according to this information needs regulate the clock setting of storage card.And in fact, data access equipment needs the detection of stored card knowing its status information sometimes, so the data access device just reads the information in the storage card Clock management register, and does not need further to operate, promptly as shown in Figure 6.
Fig. 7 is for opening the process embodiment process flow diagram of power management registers in the storage card under the power saving management pattern provided by the invention.As shown in Figure 7, in fact step 701-706 is identical with as shown in Figure 5 step 501-506, does not repeat them here.In embodiment as shown in Figure 5, need read the information in the storage card power management registers, and judge whether that according to this information needs operate the power supply of storage card.And in fact, data access equipment needs the detection of stored card knowing its status information sometimes, so the data access device just reads the information in the storage card power management registers, and does not need further to operate, promptly as shown in Figure 7.
Fig. 8 is for realizing the state transition graph of energy-saving mode management.As shown in Figure 8, data access equipment will carry out power saving management operation and control for the power supply and the clock of storage card, preferably, can be at storage card and carry out when (Standby) state is put on the side, to avoid the harmful effect for storage card work.But, in fact, data access equipment also can send power supply and operation of clock power saving management and control command to storage card under other states.
In each above-mentioned embodiment, in CSD register that is adopted and CMD43 explosion command, use 1 or 0 corresponding to control word with corresponding meaning, as support battery saving mode or do not support battery saving mode, clock operation or power operation, write operation or read operation etc., these settings of 1 or 0 only are used to illustrate, and are not to be used to limit use of the present invention.
The present invention also provides a kind of memory storage that adopts energy-saving mode managing internal module clock and power supply.Fig. 9 is the memory device structure synoptic diagram that is applicable to internal module clock and power management under the energy-saving mode provided by the invention.As shown in Figure 9, described memory storage comprises storage main control unit 900, Clock management register (CCR) 901, clock control cell 902, power management registers (PCR) 903, regulating and controlling voltage unit 904 and function executing unit 905.Wherein:
Storage main control unit 900 can link to each other with the external data access arrangement, and links to each other respectively with PCR903 with CCR 901; Storage main control unit 900 is used to receive order that the external data access arrangement sends and it is resolved, and the information to storage card internal module clock or power management that will parse is deposited into respectively among CCR 901 or the PCR 903; On the other hand,, the corresponding command be can send, from CCR 901 or PCR 903, storage card clock internal or power management message read by storage main control unit 900 if external data access equipment will be known storage card clock internal or power management situation.
CCR 901 links to each other with clock control cell 902 with storage main control unit 900 respectively, is used to deposit storage card clock internal management information.
Clock control cell 902 links to each other with CCR 901, with the internal clocking management information of storage among receiving management order and the CCR 901; Clock control cell 902 also links to each other with function executing unit 905, and can be according to administration order of obtaining and internal clocking management information, and the clock of corresponding one or more functional modules in the function executing unit 905 is managed.
PCR 903 links to each other with regulating and controlling voltage unit 904 with storage main control unit 900 respectively, is used to deposit the power management message of storage card inside.
Regulating and controlling voltage unit 904 links to each other with PCR 903, with the internal electric source management information of storage among receiving management order and the PCR 903; Regulating and controlling voltage unit 904 also links to each other with function executing unit 905, and can be according to administration order of obtaining and internal electric source management information, and the power supply of corresponding one or more functional modules in the function executing unit 905 is managed.
Among the memory storage embodiment as shown in Figure 9, comprised clock control and regulon simultaneously, promptly CCR 901 and clock control cell 902 are controlled and regulon, i.e. PCR 903 and regulating and controlling voltage unit 904 with power supply.In fact, also can only comprise wherein class control and regulon, i.e. clock or power supply control and regulon.
In addition, under idle situation, need be with storage card internal module register, remain as the value of CCR 901 or PCR 903.The value preserving latch that is used for the save register value is a kind of slow high threshold unit, but quiescent dissipation is low, and except common D, CLK, Q end, also has SLEEP, WAKE-UP control signal.Described value preserving latch meets two kinds of voltage: Vdd and Vsleep, and wherein Vdd uses for general register, and Vsleep uses for the value preserving latch, is provided by regulating and controlling voltage unit 904 respectively.Described value preserving latch register as a low threshold value when active state uses; It is in high threshold to reduce quiescent dissipation when sleep state, the operating voltage of cut-out and other internal elements only provides Vsleep voltage to guarantee its work simultaneously; It is loaded into register with the data of preserving and outputs to driving Q end when wake-up states.
In sum, the invention provides a kind of storage card electricity-saving method and device, can effectively realize the economize on electricity of storage card based on communication mode.The expansion communications protocol order of the present invention by storage card manages the clock of each module of storage card inside and power supply and storage card external clock and power supply, and the electric leakage problem can better solve storage card and do not work the time.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (20)

1, a kind of storage card electricity-saving method is characterized in that, this method is based on described storage card and can operate the communication between the data access equipment of described storage card and realize, comprising:
A, described data access equipment send the power saving management order to described storage card, and described power saving management order is arranged in the existing communication protocol, comprises the information and the management type information of power saving management object;
B, described storage card receive described power saving management order, carry out corresponding operating according to described storage card self-condition, and return the power saving management response to described data access equipment.
2, storage card electricity-saving method as claimed in claim 1 is characterized in that: described power saving management order is the order of clock power saving management.
3, storage card electricity-saving method as claimed in claim 2 is characterized in that:
The order of described clock power saving management is: the external clock shutdown command of described storage card;
Corresponding operating described in the step B is: described storage card be provided with external clock and close the response characteristic value in will responding to the power saving management that described data access equipment returns;
After described step B, further comprise:
C1, described data access equipment receive the response of described power saving management and the external clock that obtains is wherein closed the response characteristic value, close the response characteristic value according to this external clock then, judge whether described storage card agrees to close external clock, if storage card is agreed, the described storage card external clock of then described data access device shutdown; If storage card disagrees with, process ends then.
4, storage card electricity-saving method as claimed in claim 2 is characterized in that:
The order of described clock power saving management is: the regulating command of described storage card internal clocking comprises the internal module information of needs adjusting clock and the clock information value that is fit in this storage card internal clocking regulating command;
Corresponding operating described in the step B is: described storage card obtains described internal module information and the described suitable clock information value that needs to regulate clock from the described storage card internal clocking regulating command of receiving, and, regulate for the inner described clock of the internal module of adjusting clock that needs of described storage card according to internal module information and described suitable clock information value that these needs are regulated clock.
5, storage card electricity-saving method as claimed in claim 4 is characterized in that: after described step B, comprising: in will responding to the power saving management that described data access equipment returns the internal clocking adjusting will be set and finish the response characteristic value.
6, storage card electricity-saving method as claimed in claim 4 is characterized in that:
Before described steps A, further comprise:
A11, described data access equipment send the internal clocking status inquiry command to described storage card;
A12, described storage card receive described internal clocking status inquiry command, and described data access equipment is returned in the status poll response that will comprise described storage card self clock condition information;
A13, described data access equipment receive described status poll response and obtain wherein storage card self clock condition information, then according to this storage card self clock condition information, judge whether the setting of described storage card is fit to, if be fit to, and process ends then; If be not suitable for, execution in step A then.
7, storage card electricity-saving method as claimed in claim 1 is characterized in that: described power saving management order is the power-supply saving administration order.
8, storage card electricity-saving method as claimed in claim 7 is characterized in that:
Described power-supply saving administration order is: the external power source shutdown command of described storage card;
Corresponding operating described in the step B is: described storage card be provided with external power source and close the response characteristic value in will responding to the power saving management that described data access equipment returns;
After described step B, further comprise:
C2, described data access equipment receive the response of described power saving management and the external power source that obtains wherein cuts out the response characteristic value, close the response characteristic value according to this external power source then, judge whether described storage card agrees to close external power source, if storage card is agreed, the described storage card external power source of then described data access device shutdown; If storage card disagrees with, process ends then.
9, storage card electricity-saving method as claimed in claim 7 is characterized in that:
Described power-supply saving administration order is: the internal electric source shutdown command of described storage card comprises in the internal electric source shutdown command of this storage card needing the internal module of powered-down information;
Corresponding operating described in the step B is: described storage card obtains the described internal module information that needs powered-down from the described storage card internal electric source shutdown command of receiving, and closes the power supply that this needs the internal module of powered-down.
10, storage card electricity-saving method as claimed in claim 9 is characterized in that: after described step B, comprising: close and finish the response characteristic value in that internal electric source will be set in the response of power saving management that described data access equipment returns.
11, storage card electricity-saving method as claimed in claim 7 is characterized in that:
Described power-supply saving administration order is: the internal electric source of described storage card is opened order, and the internal electric source of this storage card is opened and comprised in the order and need the internal module of opening power information;
Corresponding operating described in the step B is: described storage card is opened from the described storage card internal electric source of receiving and is obtained the described internal module information that needs opening power the order, and opens the power supply that this needs the internal module of opening power.
12, storage card electricity-saving method as claimed in claim 11 is characterized in that: after described step B, comprising: open and finish the response characteristic value in that internal electric source will be set in the response of power saving management that described data access equipment returns.
13, storage card electricity-saving method as claimed in claim 11 is characterized in that:
Before described steps A, further comprise:
A21, described data access equipment send the internal electric source status inquiry command to described storage card;
A22, described storage card receive described internal electric source status inquiry command, and described data access equipment is returned in the status poll response that will comprise described storage card self power status information;
A13, described data access equipment receive described status poll response and obtain wherein storage card self power status information, then according to this storage card self power status information, whether the power supply of judging the internal module that needs opening power described in the described storage card is opened, if opened, process ends then; If do not open, execution in step A then.
14, storage card electricity-saving method as claimed in claim 1 is characterized in that:
Described power saving management order is the storage card status inquiry command, comprises the information of described power saving management object in this storage card status inquiry command; Described power saving management response is storage card status poll response;
Described power saving management object comprises the clock or the power supply of storage card internal module;
Corresponding operating described in the step B is: described storage card will be provided with the status information of described power saving management object in the storage card status poll response that described data access equipment returns.
15, as claim 1,2,7 or 14 described storage card electricity-saving methods, it is characterized in that: before steps A, further comprise: judge whether described storage card supports energy-saving mode, if support, then execution in step A; Otherwise, process ends.
16, storage card electricity-saving method as claimed in claim 15, it is characterized in that: describedly judging whether described storage card supports described energy-saving mode, is to judge whether the value that is arranged on the signature identification in the particular register in the described storage card is corresponding to the value of supporting energy-saving mode.
17, as claim 1,2,7 or 14 described storage card electricity-saving methods, it is characterized in that: when described storage card is in the side configuration state, carry out described steps A.
18, storage card electricity-saving method as claimed in claim 1 is characterized in that: described storage card is multimedia card MMC or safe digital card SD; Described power saving management order is the CMD explosion command.
19, a kind of memory storage, it is characterized in that: this memory storage by and external fetch equipment between communication realizes alternately economize on electricity, comprising: store main control unit, Clock management register CCR, clock control cell, power management registers PCR, regulating and controlling voltage unit and function executing unit;
Described storage main control unit is used for linking to each other with described external fetch equipment, and link to each other respectively with described PCR with described CCR, be used for that described CCR is resolved and sends in the order that described external fetch equipment is sent or PCR stores, and be used for reading described memory storage inner function module information from described CCR or PCR;
Described CCR links to each other with described clock control cell with described storage main control unit respectively, is used to deposit described memory storage clock internal management information;
Described clock control cell links to each other with described CCR, with the internal clocking management information of storing among receiving management order and the described CCR; Described clock control cell also links to each other with described function executing unit, and according to administration order of obtaining and internal clocking management information, and the clock of corresponding one or more functional modules in the described function executing unit is managed;
Described PCR links to each other with described regulating and controlling voltage unit with described storage main control unit respectively, is used to deposit the power management message of described memory storage inside;
Described regulating and controlling voltage unit links to each other with described PCR, with the internal electric source management information of storing among receiving management order and the described PCR; Described regulating and controlling voltage unit also links to each other with described function executing unit, and according to administration order of obtaining and internal electric source management information, and the power supply of corresponding one or more functional modules in the described function executing unit is managed.
20, memory storage as claimed in claim 19 is characterized in that: comprise and described CCR, described PCR and the value preserving latch that described regulating and controlling voltage unit links to each other respectively, be used for latching the management information of described CCR and described PCR.
CNB2006101397235A 2006-09-22 2006-09-22 Storage card electricity-saving method and its device Expired - Fee Related CN100489738C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101397235A CN100489738C (en) 2006-09-22 2006-09-22 Storage card electricity-saving method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101397235A CN100489738C (en) 2006-09-22 2006-09-22 Storage card electricity-saving method and its device

Publications (2)

Publication Number Publication Date
CN101149639A CN101149639A (en) 2008-03-26
CN100489738C true CN100489738C (en) 2009-05-20

Family

ID=39250200

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101397235A Expired - Fee Related CN100489738C (en) 2006-09-22 2006-09-22 Storage card electricity-saving method and its device

Country Status (1)

Country Link
CN (1) CN100489738C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101995938A (en) * 2010-11-23 2011-03-30 东莞宇龙通信科技有限公司 Memory card management method, device and mobile communication terminal

Also Published As

Publication number Publication date
CN101149639A (en) 2008-03-26

Similar Documents

Publication Publication Date Title
CN101470509B (en) Computer system control method, computer system and notebook computer
CN106020721B (en) Memory device and energy-saving control method thereof
CN101943941B (en) Information processing device and method for controlling power
CN102842154B (en) Based on grid equipment inspection device and the method for inspecting of RFID
CN104345869B (en) Secure digital input/output unit, system and its control method
CN103123579A (en) Standby operation with additional micro-controller
CN203338121U (en) Electric appliance switch identification and control circuit based on active RFID technology
CN110488673A (en) A kind of data processing module and data processing method of low-power consumption mode
CN103809994A (en) Solid-state storage device and sleep control circuit thereof
CN103746417B (en) Low-power-consumption control method and system of battery monitoring chip
CN101855643A (en) Chip card comprising a display
CN113765679B (en) Computer network awakening method and system
CN100535935C (en) CPUCPU and logic encryption double-purpose smart card and its data synchronization method
CN102402704B (en) Compound multifunctional IC card reader-writer
CN101088099B (en) Card device
CN100489738C (en) Storage card electricity-saving method and its device
CN101855641A (en) Chip card comprising a display
CN101369318A (en) Energy-saving operation method for multi-interface card and control circuit thereof
CN101855642A (en) Chip card comprising a display
CN206331414U (en) A kind of solid state hard disc
CN2884169Y (en) Low temp. preservation temp. recording device based-on electronic label
CN101995938A (en) Memory card management method, device and mobile communication terminal
CN101727418A (en) Bridged device with electricity saving function
CN113343724B (en) Method for writing data into a memory of a contactless transponder and transponder device
CN102799393B (en) Double interface intelligent card chip working state administration method and apparatus

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
ASS Succession or assignment of patent right

Owner name: CHINA POTEVIO CO., LTD.

Free format text: FORMER OWNER: PUTIAN IT TECH INST CO., LTD.

Effective date: 20130927

C41 Transfer of patent application or patent right or utility model
C56 Change in the name or address of the patentee

Owner name: PUTIAN IT TECH INST CO., LTD.

Free format text: FORMER NAME: PUTIAN INST. OF INFORMATION TECHNOLOGY

CP03 Change of name, title or address

Address after: 100080 Beijing, Haidian, North Street, No. two, No. 6, No.

Patentee after: PETEVIO INSTITUTE OF TECHNOLOGY Co.,Ltd.

Address before: 100085, No. two, 2 street, base of information industry, Beijing

Patentee before: POTEVIO Institute of Information Technology

TR01 Transfer of patent right

Effective date of registration: 20130927

Address after: 100080, No. two, 2 street, Zhongguancun science and Technology Park, Beijing, Haidian District

Patentee after: CHINA POTEVIO CO.,LTD.

Address before: 100080 Beijing, Haidian, North Street, No. two, No. 6, No.

Patentee before: PETEVIO INSTITUTE OF TECHNOLOGY Co.,Ltd.

ASS Succession or assignment of patent right

Owner name: PUTIAN IT TECH INST CO., LTD.

Free format text: FORMER OWNER: CHINA POTEVIO CO., LTD.

Effective date: 20131211

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20131211

Address after: 100080 Beijing, Haidian, North Street, No. two, No. 6, No.

Patentee after: PETEVIO INSTITUTE OF TECHNOLOGY Co.,Ltd.

Address before: 100080, No. two, 2 street, Zhongguancun science and Technology Park, Beijing, Haidian District

Patentee before: CHINA POTEVIO CO.,LTD.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090520

Termination date: 20150922

EXPY Termination of patent right or utility model