CN101441598A - Data storage method - Google Patents

Data storage method Download PDF

Info

Publication number
CN101441598A
CN101441598A CNA2007101886382A CN200710188638A CN101441598A CN 101441598 A CN101441598 A CN 101441598A CN A2007101886382 A CNA2007101886382 A CN A2007101886382A CN 200710188638 A CN200710188638 A CN 200710188638A CN 101441598 A CN101441598 A CN 101441598A
Authority
CN
China
Prior art keywords
data
data field
field
storing
write
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.)
Granted
Application number
CNA2007101886382A
Other languages
Chinese (zh)
Other versions
CN101441598B (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.)
Compal Electronics Inc
Original Assignee
Compal Electronics Inc
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 Compal Electronics Inc filed Critical Compal Electronics Inc
Priority to CN2007101886382A priority Critical patent/CN101441598B/en
Publication of CN101441598A publication Critical patent/CN101441598A/en
Application granted granted Critical
Publication of CN101441598B publication Critical patent/CN101441598B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for storing data, which is applicable to a program memory using data storage to store a programming code. The program storage can store data which can be accessed in time through partitioning the program memory into a first buffer storage area and a second buffer storage area, and interleaving the first buffer storage area and the second buffer storage area. Therefore, the program memory replaces the prior data memory so as to achieve the aim of reducing the production cost.

Description

Data storage method
Technical field
The invention relates to a kind of method of data storing, and particularly relevant for a kind of with the method for data storing to program storage.
Background technology
Along with making rapid progress of science and technology, electronic product miscellaneous is also weeded out the old and bring forth the new.Relative, the commercial competition on electronic industry is also fierce day by day.Except pursuing the innovation in many ways on function, obtain outside the more vast business opportunity, be devoted to the reduction of commodity price, also be an approach that promotes commodity competitiveness.
And, therefore on motherboard, used very many electronic packages because computer system is day by day complicated.For example south bridge (southbridge) chip, north bridge chips (northbridge), storer and power supply are supplied chip etc.Particularly aspect storer, for function sophistication in response to microcomputer system, the many different types of memories of normal employing in the design of motherboard, can wipe programmble read only memory PROM (electrically erasable programmablere ad-onlymemory as electronics, EEPROM) and serial peripheral interface ROM (read-only memory) (serial peripheral interface read-only memory, SPI ROM).
Yet; the serial peripheral interface ROM (read-only memory) can only be written into 0 (its initial value is all 1); therefore be used for storing the procedure code of the firmware program that more can not change usually by planning, it then is to be selected to store the data that other changes through regular meeting that electronics can be wiped programmble read only memory PROM.
Fig. 1 illustrate is the synoptic diagram of the access method of storage of conventional computer system.Please refer to Fig. 1, wherein system 110 is that (low pin count, LPC) bus 120 is sent instruction and given controller 130 by low pin number.And controller 130 is again according to above-mentioned instruction, select by serial periphery (serial peripheral interface, SPI) bus 140 access serial peripheral interface ROM (read-only memory) 160, or (system management bus, SM-Bus) 150 access electronics can be wiped programmble read only memory PROM 170 by System Management Bus.
Please continue with reference to Fig. 1, also few because of stored routine data usually as the serial peripheral interface ROM (read-only memory) 160 that program storage uses under this kind framework, and remain a lot of untapped zones, cause the waste of storage space.Relatively, be used for the electronics of storage data can wipe programmble read only memory PROM 170 except meeting occupies the space of motherboard, its cost is higher, and it is many that the result makes that the manufacturing cost of product promotes.As can be known above-mentioned thus, very uneconomical of traditional computer system architecture.
Summary of the invention
In view of this, purpose of the present invention is providing a kind of data storage method exactly, makes the controller can be with data storing in order to the program storage of stored routine sign indicating number.
For reaching above-mentioned or other purpose, the present invention proposes a kind of data storage method, is suitable for data storing to the program storage in order to the stored routine sign indicating number.Wherein program storage comprises first buffer storage area and second buffer storage area.First buffer storage area comprises first data field and first marked area.Second buffer storage area comprises second data field and second marked area.This kind data storage method comprises the following steps: at first, receives the data storing instruction.Then, in data storing to the first data field, and in first marked area, write first unlabeled data, in order to indicate the block of written data in first data field.Last then the data of second data field are copied to first data field, be uncovered and when copy data, keep in first data field block that is denoted as written data by first unlabeled data.
In one embodiment of this invention, above-mentioned after the step of data to the first data field of duplicating second data field, also comprise the data of removing second buffer storage area.
In one embodiment of this invention, receive another group data storing instruction above-mentioned after the step of the data of removing second buffer storage area, also comprising.Then, another data are stored in second data field, and in second marked area, write second unlabeled data, in order to indicate the block that has write another data in second data field.When data storing finished, the data with first data field copied to second data field again, were denoted as the block that writes another data by second unlabeled data in second data field and were uncovered and keep when copy data.Last then remove the data of first buffer storage area.
In one embodiment of this invention, judge whether first buffer storage area has stored another data above-mentioned after the step that receives the data storing instruction, also comprising.If judged result is for not, then with data storing to the first data field; Otherwise, if judged result is for being, then with data storing to the second data field.
In one embodiment of this invention, above-mentioned among the step of storage data to the first data field, also be included in the record first data field written data in first certain bits of first data field.
In one embodiment of this invention, above-mentioned after the step of data to the first data field of duplicating second data field, the data that also are included in record second data field in second certain bits of first data field are duplicated.
In one embodiment of this invention, above-mentioned after the step that receives the data storing instruction, also comprise first certain bits and second certain bits of checking first data field, to judge the storing state of present data.
In one embodiment of this invention, the step of the data of above-mentioned removing second buffer storage area comprises that the data dump with second buffer storage area is 0xFF.
In one embodiment of this invention, the instruction of above-mentioned data storing is that the microprocessor by system sends, and above-mentioned access action to program storage is to be carried out by controller.
In one embodiment of this invention, the above-mentioned first buffered data district and the second buffered data district are formed at the storage requirements planning of data by system.
In one embodiment of this invention, the size of the first above-mentioned data field, second data field, first marked area and second marked area is identical, wherein the size of first buffer storage area and second buffer storage area respectively is 4K, and the size of first data field, second data field, first marked area and second marked area then respectively is 2K.
In one embodiment of this invention, above-mentioned program storage is the serial peripheral interface ROM (read-only memory), and above-mentioned data were then for originally wiping access data in time in the programmble read only memory PROM in order to be stored in electronics.
The present invention proposes another kind of data storage method, be suitable for storage data to program storage in order to the stored routine sign indicating number, program storage comprises first data field, second data field and marked area, and this kind data storage method comprises the following steps: at first, receives the data storing instruction.Then, in this data storing to the first data field, and in the marked area, write first unlabeled data in, in order to indicate the block of written data in first data field.Last then the data of second data field are copied to first data field, be labeled data in first data field and be denoted as the block that has write and be uncovered and when copy data, keep.
In one embodiment of this invention, above-mentioned first data field, second data field are identical with the size of marked area.
In one embodiment of this invention, the size of above-mentioned first data field, second data field and marked area respectively is 4K.
The present invention is because of adopting two groups of structures that buffer storage area comes interleaving access data of planning in program storage, with the timely access data that originally must be stored on the data-carrier store, then is stored to program storage in order to the stored routine sign indicating number.Use more effective use storer, reach the purpose that reduces cost.
Description of drawings
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below, wherein:
Fig. 1 illustrates the synoptic diagram of the access method of storage of conventional computer system.
Fig. 2 is the system block diagrams of the data storage method that illustrates according to preferred embodiment of the present invention.
Fig. 3 is the process flow diagram according to the data storage method that preferred embodiment of the present invention illustrated.
The data storage method process flow diagram of Fig. 4 for being illustrated according to another preferred embodiment of the present invention.
Fig. 5 is the system block diagrams of the data storage method that illustrated according to another preferred embodiment of the present invention.
Fig. 6 is the process flow diagram of the data storage method that illustrated according to another preferred embodiment of the present invention.
Fig. 7 is the data storage method process flow diagram that is illustrated according to another preferred embodiment of the present invention.
Embodiment
Can only be written into 0 characteristic because the serial peripheral interface ROM (read-only memory) has, it can't be provided becomes the storage storer of access data in time.Data storage method proposed by the invention, promptly be utilize a kind of with the program storage subregion, and interlaced mode.Make the serial peripheral interface ROM (read-only memory) can store the data of access in time smoothly, and can wipe programmble read only memory PROM in order to replace expensive electronics.In order to make content of the present invention more clear, below the example that can implement according to this really as the present invention especially exemplified by embodiment.
Fig. 2 is the system block diagrams of the data storage method that illustrates according to preferred embodiment of the present invention.Please refer to Fig. 2, present embodiment comprises system 210, low pin number transfer bus 220, controller 230, serial peripheral bus 240 and serial peripheral interface ROM (read-only memory) 250.Wherein system 210 is coupled to bist controller 230 via low pin number transfer bus 220, and controller 230 is coupled to serial peripheral interface ROM (read-only memory) 250 via serial peripheral bus 240.
System 210 comprises the microprocessor of general computing machine.System 210 can be at the demand of the storage of data, with routine data in the serial peripheral interface ROM (read-only memory) 250 used less than the zone, the planning region is divided into first buffer storage area 260 and second buffer storage area 270.When data will be written into, system 210 can send out data storing by low pin number transfer bus 220 and instruct to controller 230.Controller 230 then writes data in one of them buffered data district of serial peripheral interface ROM (read-only memory) 250 by serial peripheral bus 240 when obtaining this data storing instruction, for example is first buffer storage area 260.Controller 230 finished the first buffered data district, 260 data are write after, also comprise at aforementioned first buffer storage area 260 is write the fashionable zone that is not written into, the data of corresponding region in second buffer storage area 270 are made carbon copies to first buffer storage area 260, last and delete second buffer storage area 270 data, and finish the data write activity.
Please continue with reference to Fig. 2, when new data will be written into, system 210 can send the data storing that makes new advances by low pin number transfer bus 220 and instruct to controller 230.Controller 230 then writes data in second buffer storage area 270 of serial peripheral interface ROM (read-only memory) 250 by serial peripheral bus 240 when obtaining this new data storing instruction.Data write activity with respect to the last time, controller 230 is finished after the writing of second buffer storage area 260, also comprise at the zone that does not write data in second buffer storage area 270, data with corresponding region in first buffer storage area 260, manifolding to the second buffer storage area 270, last and delete first buffer storage area 260 data, and finish the write activity of new data.
By above-mentioned data write activity, utilize controller 230 at first buffer storage area 260 and 270 interleaving access datas of second buffer storage area, promptly can reach and utilize the serial peripheral interface ROM (read-only memory) to store the purpose of access data in time.
Fig. 3 is the process flow diagram according to the data storage method that preferred embodiment of the present invention illustrated.Please refer to Fig. 3, the fundamental purpose of this kind data storage method is data storing to the program storage in order to the stored routine sign indicating number.In the present embodiment, the program storage of stored routine sign indicating number for example is a serial peripheral interface ROM (read-only memory).Please be simultaneously with reference to Fig. 2 and Fig. 3, in the present embodiment, controller 230 is except planning first buffer storage area 260 and second buffer storage area 270 in serial peripheral interface ROM (read-only memory) 250, cook up first data field and first marked area at first buffer storage area 260 more respectively, and second buffer storage area 270 is cooked up second data field and second marked area.
Please continue with reference to Fig. 3, at first, receive the data storing instruction (step S310) of sending by controller 230 from system 210.Then, controller 230 is understood in data storing to the first data field, and writes first unlabeled data (step S320) in first marked area.Wherein, the purpose that writes first unlabeled data is to indicate the block of corresponding written data in first data field, is uncovered when the subsequent duplicate data with the data of guaranteeing these blocks.Last then be that data with second data field are copied to first data field (step S330).In the process of duplicating, can be according to aforesaid first unlabeled data, only the data with second data field are copied to the block that first data field does not write data, are uncovered to guarantee the block that is denoted as written data in first data field.
Fig. 4 is the data storage method process flow diagram that is illustrated according to another preferred embodiment of the present invention.Please be simultaneously with reference to Fig. 2 and Fig. 4, in the present embodiment, controller 230 will be planned at serial peripheral interface ROM (read-only memory) 250, first buffer storage area 260 that it is cooked up and the size of second buffer storage area 270 are 4K byte and first data field, first shows the district, the size of second data field and second marked area then is respectively 2K byte, in this kind planning mode, each byte in the data field is corresponding to a byte in the marked area, whenever there being data to write in certain byte of data field, the byte that corresponding byte promptly can indicate this data field in the marked area has record data.
What deserves to be mentioned is, in another planning mode, then be corresponding to one " position " in the marked area with each byte in the data field, whenever there being data to write in certain byte of data field, the byte that corresponding " position " promptly can indicate this data field in the marked area has record data (for example writing 0).In this planning mode, the size of unlabeled data only is a position, compared to the mode that byte of aforementioned use indicates, shared storage space only was 1/8th (byte comprises eight positions), and can effectively save the storage space of required use.Yet above-mentioned two kinds of planning modes only are as one embodiment of the invention, are not in order to restriction the present invention, know art technology person when visual actual needs, adopt the storage space of different sizes to come unlabeled data.With the next detailed step of introducing data storage method of the present invention:
At first, receive data storing instruction (step S401) by controller 230, and this data storing instruction is sent by system 210.Controller 230 will further judge whether stored another data (step S402) in first buffer storage area 260 after receiving the data storing instruction.If judging does not have storage data, represent that then first data field can write, this moment promptly by controller 230 with data storing to the first data field; Opposite, if judge that storage data is arranged, then by controller 230 with data storing to the second data field.
In above-mentioned steps S402, if judge in first buffer storage area 260 and do not have storage data, then controller 230 can be with in data storing to the first data field, and writes first unlabeled data simultaneously in first marked area, with the block (step S403) that indicates written data in first data field.For instance, if write down 00 among the tenth of first marked area, represent that promptly the tenth block in first data field is written into.
What deserves to be mentioned is that in step S403, controller 230 also is included in the record first data field written data in first certain bits of first data field.This first certain bits for example is a position (being usually located at the last of first data field) selected in first data field, and it is with being intended to write down whether written data of first data field, and the usefulness of the judgement of controller when write data next time is provided.For instance, can specify 0 to represent the first data field written data, then read first certain bits when being 0 when controller, promptly represent written data in first data field, can write data second data field this moment.Relative, if first particular number of bits that reads represents promptly that according to being still first data field does not write data at 1 o'clock, can write data first data field this moment.
Then, after with data storing to the first data field, controller 230 is copied to first data field with the data of second data field, and keeps in first data field block that is denoted as written data by first unlabeled data and be uncovered (step S405).Wherein, after the step of data to the first data field of duplicating second data field, controller 230 also is included in second certain bits of first data field and notes down.This second certain bits is another selected in first data field position, and it is to be used for writing down having finished the action that data are duplicated.For instance, can specify second certain bits is that the data of 0 interval scale, second data field have been copied to first data field, then reads second certain bits when being 0 when controller 230, and promptly the data of decidable second data field have been copied to first data field; Relative, if reading second certain bits still is 1 o'clock, promptly the data of decidable second data field are not copied to first data field yet.
At last, controller 230 will be removed the data (step S405) of second buffer storage area 270.In the present embodiment, the step of removing second buffer storage area, 270 data comprises that the data dump with second buffer storage area 270 is 0xFF.
According to above-mentioned, controller 230 can utilize first certain bits and second certain bits of checking first data field, judge whether first buffer storage area 260 has stored another data, also can learn simultaneously the storing state of data in first buffer storage area 260, and then select " sky " buffer storage area that data are write, and the replication actions of execution data, and the speed of quickening data access.
If controller 230 judges that first buffer storage area 260 has stored another data, then controller 230 can transfer to select in data storing to the second data field, and in second marked area, write second unlabeled data simultaneously, with the block (step S406) that indicates written data in second data field.Wherein, controller 230 also is included in the record second data field written data in first certain bits of second data field.This first certain bits for example is a position (being usually located at the last of second data field) selected in second data field, first certain bits of its functional equivalent in first data field, no longer numerous herein stating.
Then, after with data storing to the second data field, controller 230 can be copied to second data field with the data of first data field, and keeps in second data field block that is denoted as written data by second unlabeled data and be uncovered (step S407).Yet after the step of data to the second data field of duplicating first data field, controller 230 also is included in second certain bits of second data field and notes down.The function of this second certain bits then is equal to second certain bits in first data field, also no longer numerous herein stating.
At last, controller 230 will be removed the data (step S408) of first buffer storage area 270.In the present embodiment, the step of removing first buffer storage area, 270 data comprises that the data dump with first buffer storage area 270 is 0xFF.
Fig. 5 is the system block diagrams of the data storage method that illustrated according to another preferred embodiment of the present invention.Comprising system 510, low pin number transfer bus 520, controller 530, serial peripheral bus 540 and serial peripheral interface ROM (read-only memory) 550.The maximum difference that this Fig. 5 and Fig. 2 illustrated is the planning mode of serial peripheral interface ROM (read-only memory) 550.In this preferred embodiment, serial peripheral interface ROM (read-only memory) 550 is formulated for three districts, is respectively first data field 551, second data field 552 and marked area 553.And the size of first data field 551, second data field 552 and marked area 553 is all identical, all is formulated for 4K byte for example at this.
When carrying out the data save command, no matter be that data are deposited in first data field 551, or data are deposited in second data field 552, first unlabeled data and second unlabeled data all are the same being deposited in the marked area 553.This practice is because data can't be stored in first data field 551 and second data field 552 simultaneously, so marked area 553 can be shared.Thus, relative first data field 551 and second data field 552 also can be strengthened, and make that the use of storer is more efficient.
Fig. 6 is the process flow diagram of the data storage method that illustrated according to another preferred embodiment of the present invention.Please refer to Fig. 6, the fundamental purpose of this kind data storage method is data storing to the program storage in order to the stored routine sign indicating number.In the present embodiment, the program storage of stored routine sign indicating number for example is a serial peripheral interface ROM (read-only memory).Please be simultaneously with reference to Fig. 5 and Fig. 6, in the present embodiment, controller 530 is planned first data field 551, second data field 552 and marked area 553 in serial peripheral interface ROM (read-only memory) 550.
Please continue with reference to Fig. 6, at first, receive the data storing instruction (step S610) of sending by controller 530 from system 510.Then, controller 530 is understood in data storing to the first data field 551, and writes first unlabeled data (step S620) in marked area 553.Wherein, the purpose that writes first unlabeled data is to indicate the block of corresponding written data in first data field 551, is uncovered when the subsequent duplicate data with the data of guaranteeing these blocks.Last then be that data with second data field 552 are copied to first data field 551 (step S630).In the process of duplicating, can be according to aforesaid first unlabeled data, only the data with second data field 552 are copied to the block that first data field 551 does not write data, are uncovered to guarantee the block that is denoted as written data in first data field 551.
Fig. 7 is the data storage method process flow diagram that is illustrated according to another preferred embodiment of the present invention.Please be simultaneously with reference to Fig. 5 and Fig. 7, in the present embodiment, controller 530 will be planned at serial peripheral interface ROM (read-only memory) 550, its first data field 551, second data field 552 of cooking up is 4K byte with the size of marked area 553, in this kind planning mode, each byte in each data field is all corresponding to a byte in the marked area 553, whenever there being data to write in certain byte of data field, the byte that corresponding byte promptly can indicate this data field in the marked area 553 has record data.
What deserves to be mentioned is, in this planning mode, then be corresponding to 553 one " position " in the marked area with each byte in the data field, whenever there being data to write in certain byte of data field, the byte that corresponding " position " promptly can indicate this data field in the marked area 553 has record data (for example writing 0).Wherein, the size of unlabeled data only is a position, and compared to the mode that byte of known use indicates, shared storage space only was 1/8th (byte comprises eight positions), and can effectively save the storage space of required use.Yet above-mentioned two kinds of planning modes only are as one embodiment of the invention, are not in order to restriction the present invention, know art technology person when visual actual needs, adopt the storage space of different sizes to come unlabeled data.With the next detailed step of introducing data storage method of the present invention:
At first, receive data storing instruction (step S701) by controller 530, and this data storing instruction is sent by system 510.Controller 530 will further judge whether stored another data (step S702) in first data field 551 after receiving the data storing instruction.If judging does not have storage data, represent that then first data field 551 can write, this moment promptly by controller 530 with data storing to the first data field 551; Opposite, if judge that storage data is arranged, then by controller 530 with data storing to the second data field 552.
In above-mentioned steps S702, if judge in first data field 551 and do not have storage data, then controller 530 can be with in data storing to the first data field 551, and in marked area 553, write first unlabeled data simultaneously, to indicate the block (step S703) of written data in first data field 551.For instance, if write down 00 among the tenth of marked area 553, represent that promptly the tenth block in first data field 551 is written into.
What deserves to be mentioned is that in step S703, controller 530 also is included in record first data field 551 written data in first certain bits of first data field 551.This first certain bits for example is a position (being usually located at the last of first data field 551) selected in first data field 551, it is with being intended to write down whether written data of first data field 551, and the usefulness of the judgement of controller when write data next time is provided.For instance, can specify 0 to represent first data field, 551 written data, then read first certain bits when being 0 when controller, promptly represent written data in first data field 551, can write data second data field 552 this moment.Relative, if first particular number of bits that reads represents promptly that according to being still first data field 551 does not write data at 1 o'clock, can write data first data field 551 this moment.
Then, after with data storing to the first data field 551, controller 530 is copied to first data field 551 with the data of second data field 552, and keeps in first data field 551 block that is denoted as written data by first unlabeled data and be uncovered (step S705).Wherein, after the step of data to the first data field 551 of duplicating second data field 552, controller 530 also is included in second certain bits of first data field 551 and notes down.This second certain bits is another selected in first data field 551 position, and it is to be used for writing down having finished the action that data are duplicated.For instance, can specify second certain bits is that the data of 0 interval scale, second data field 552 have been copied to first data field 551, then read second certain bits when being 0 when controller 530, promptly the data of decidable second data field 552 have been copied to first data field 551; Relative, if reading second certain bits still is 1 o'clock, promptly the data of decidable second data field 552 are not copied to first data field 551 yet.
At last, controller 530 will be removed the data (step S705) of second data field 552.In the present embodiment, the step of removing second data field, 552 data comprises that the data dump with second data field 552 is 0xFF.
According to above-mentioned, controller 530 can utilize first certain bits and second certain bits of checking first data field 551, judge whether first data field 551 has stored another data, also can learn simultaneously the storing state of data in first data field 551, and then select " sky " data field that data are write, and the replication actions of execution data, and the speed of quickening data access.
If controller 530 judges that first data field 551 has stored another data, then controller 530 can transfer to select in data storing to the second data field 552, and in marked area 553, write second unlabeled data simultaneously, to indicate the block (step S706) of written data in second data field 552.Wherein, controller 530 also is included in record second data field 552 written data in first certain bits of second data field 552.This first certain bits for example is a position (being usually located at the last of second data field 552) selected in second data field 552, first certain bits of its functional equivalent in first data field 551, no longer numerous herein stating.
Then, after with data storing to the second data field 552, controller 530 can be copied to second data field 552 with the data of first data field 551, and keeps in second data field 552 block that is denoted as written data by second unlabeled data and be uncovered (step S707).Yet after the step of data to the second data field 552 of duplicating first data field 551, controller 530 also is included in second certain bits of second data field 552 and notes down.The function of this second certain bits then is equal to second certain bits in first data field 551, also no longer numerous herein stating.
At last, controller 530 will be removed the data (step S708) of first data field 551.In the present embodiment, the step of removing first data field, 551 data comprises that the data dump with first data field 551 is 0xFF.
In sum, the present invention utilizes planning two group data areas and corresponding marked area in program storage, and will write data cross and be stored in this two group data area, and realized in program storage, storing the purpose of access data in time, and then make program storage can replace traditional data-carrier store fully.In view of the above, the present invention not only can save the area of motherboard, more need not use comparatively expensive data-carrier store, fully reaches the purpose that reduces cost.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when looking being as the criterion that the appended claim scope of the present invention defined.

Claims (17)

1. data storage method, be suitable for storing data to a program storage in order to the stored routine sign indicating number, this program storage comprises one first buffer storage area and one second buffer storage area, and this first buffer storage area comprises one first data field and one first marked area, this second buffer storage area comprises one second data field and one second marked area, it is characterized in that this method comprises the following steps:
Receive data storing instruction;
Store these data to this first data field, and write one first unlabeled data, in order to indicate the block that has write these data in this first data field in this first marked area; And
The data of duplicating this second data field are to this first data field, and keep and be denoted as the block that writes these data by this first unlabeled data in this first data field and be uncovered.
2. data storage method as claimed in claim 1 is characterized in that, wherein in the data of duplicating this second data field to the step of this first data field, also comprise:
Remove the data of this second buffer storage area;
Receive another data storing instruction;
Store another data to this second data field, and write one second unlabeled data, in order to indicate the block that has write these another data in this second data field in this second marked area;
When this data storing finished, the data of duplicating this first data field were to this second data field, and kept and be denoted as the block that writes these another data by this second unlabeled data in this second data field and be uncovered; And
Remove the data of this first buffer storage area.
3. data storage method as claimed in claim 1 is characterized in that, wherein after the step that receives this data storing instruction, also comprises:
Judge whether this first buffer storage area has stored another data;
If not, then store these data to this first data field; And
If then store these data to this second data field.
4. data storage method as claimed in claim 1 is characterized in that, is wherein storing these data to the step of this first data field, also comprises:
One first certain bits in this first data field writes down this first data field and has write these data.
5. data storage method as claimed in claim 4 is characterized in that, wherein in the data of duplicating this second data field to the step of this first data field, also comprise:
One second certain bits in this first data field writes down the data of this second data field and duplicates.
6. data storage method as claimed in claim 5 is characterized in that, wherein after the step that receives this data storing instruction, also comprises:
Check this first certain bits and this second certain bits of this first data field, to judge the storing state of these data at present.
7. data storage method as claimed in claim 1 is characterized in that, the step of wherein removing the data of this second buffer storage area comprises that the data dump with this second buffer storage area is 0xFF.
8. data storage method as claimed in claim 1, it is characterized in that, wherein the instruction of this data storing is that a microprocessor by a system sends, and this first buffered data district and this second buffered data district are formed at the storage requirements planning of these data by this system.
9. data storage method as claimed in claim 1, it is characterized in that, wherein this program storage is a serial peripheral interface ROM (read-only memory), and these data were for originally can wipe the access data in time of one in the programmble read only memory PROM in order to be stored in an electronics.
10. a data storage method is suitable for storing data to the program storage in order to the stored routine sign indicating number, and this program storage comprises one first data field, one second data field and marked area, it is characterized in that this method comprises the following steps:
Receive data storing instruction;
Store these data to this first data field, and write one first unlabeled data, in order to indicate the block that has write these data in this first data field in this marked area; And
The data of duplicating this second data field are to this first data field, and keep and be denoted as the block that writes these data by this unlabeled data in this first data field and be uncovered.
11. data storage method as claimed in claim 10 is characterized in that, wherein in the data of duplicating this second data field to the step of this first data field, also comprise:
Remove the data of this second data field;
Receive another data storing instruction;
Store another data to this second data field, and write one second unlabeled data, in order to indicate the block that has write these another data in this second data field in this marked area;
When this data storing finished, the data of duplicating this first data field were to this second data field, and kept and be denoted as the block that writes these another data by this second unlabeled data in this second data field and be uncovered; And
Remove the data of this first data field.
12. data storage method as claimed in claim 10 is characterized in that, wherein after the step that receives this data storing instruction, also comprises:
Judge whether this first data field has stored another data;
If not, then store these data to this first data field; And
If then store these data to this second data field.
13. data storage method as claimed in claim 10 is characterized in that, wherein store these data to the step of this first data field in, also comprise:
One first certain bits in this first data field writes down this first data field and has write these data.
14. data storage method as claimed in claim 13 is characterized in that, wherein in the data of duplicating this second data field to the step of this first data field, also comprise:
One second certain bits in this first data field writes down the data of this second data field and duplicates.
15. data storage method as claimed in claim 14 is characterized in that, wherein after the step that receives this data storing instruction, also comprises:
Check this first certain bits and this second certain bits of this first data field, to judge the storing state of these data at present.
16. data storage method as claimed in claim 10 is characterized in that, the step of wherein removing the data of this second data field comprises that the data dump with this second data field is 0xFF.
17. data storage method as claimed in claim 10 is characterized in that, wherein the instruction of this data storing is that a microprocessor by a system sends, and this first data field and this second data field are to be formed at the storage requirements planning of these data by this system.
CN2007101886382A 2007-11-21 2007-11-21 Data storage method Expired - Fee Related CN101441598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101886382A CN101441598B (en) 2007-11-21 2007-11-21 Data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101886382A CN101441598B (en) 2007-11-21 2007-11-21 Data storage method

Publications (2)

Publication Number Publication Date
CN101441598A true CN101441598A (en) 2009-05-27
CN101441598B CN101441598B (en) 2011-05-11

Family

ID=40726043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101886382A Expired - Fee Related CN101441598B (en) 2007-11-21 2007-11-21 Data storage method

Country Status (1)

Country Link
CN (1) CN101441598B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314368A (en) * 2011-09-26 2012-01-11 贵阳朗玛信息技术股份有限公司 Method and equipment for updating configuration data of server program
CN110781166A (en) * 2019-10-12 2020-02-11 苏州浪潮智能科技有限公司 Data management method and device in storage system
CN112347011A (en) * 2020-11-11 2021-02-09 歌尔科技有限公司 Dual-computer communication method, terminal device and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314368A (en) * 2011-09-26 2012-01-11 贵阳朗玛信息技术股份有限公司 Method and equipment for updating configuration data of server program
CN110781166A (en) * 2019-10-12 2020-02-11 苏州浪潮智能科技有限公司 Data management method and device in storage system
WO2021068515A1 (en) * 2019-10-12 2021-04-15 苏州浪潮智能科技有限公司 Data management method and device in storage system
CN110781166B (en) * 2019-10-12 2022-07-12 苏州浪潮智能科技有限公司 Data management method and device in storage system
CN112347011A (en) * 2020-11-11 2021-02-09 歌尔科技有限公司 Dual-computer communication method, terminal device and storage medium
CN112347011B (en) * 2020-11-11 2024-04-05 歌尔科技有限公司 Dual-computer communication method, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN101441598B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN101483067B (en) Flash memory data writing method and flash memory controller
US8131911B2 (en) Data writing method, and flash storage system and controller using the same
CN101382918B (en) NAND flash memory optimizing and managing method based on data interchange zone
US20080016267A1 (en) Memory controller, flash memory system having memory controller, and method for controlling flash memory
US20100241789A1 (en) Data storage method for flash memory and data storage system using the same
US9037814B2 (en) Flash memory management method and flash memory controller and storage system using the same
CN101567220B (en) The bad block identifying method of flash memory, stocking system and controller thereof
CN101699476B (en) Data processing method and device of smart cards
CN101872644A (en) Electronic storage device and storage method thereof
CN102135942A (en) Method for realizing wear-leveling in storage equipment as well as the storage equipment
CN103064755B (en) Method and device for processing write data of NAND (not-and) flash memory
US20150058531A1 (en) Data writing method, memory control circuit unit and memory storage apparatus
US20100088540A1 (en) Block management and replacement method, flash memory storage system and controller using the same
CN101625897A (en) Data write-in method, storage system and controller used for quick flash memory
CN102193869A (en) Memory management and write-in method, memory controller and storage system
TWI450271B (en) Method for managing a plurality of blocks of a flash memory, and associated memory device and controller thereof
CN101876927A (en) Power-off protection method for realizing FAT32 file system, and device thereof
CN101441598B (en) Data storage method
CN101727397B (en) Block management and change method, flash memory storage system and controller thereof
CN102592670A (en) Data writing method, memory controller and memory storage device
CN101625661B (en) Data management method, storage system and controller used for flash memory
CN102800357B (en) Procedure code is written into and access method, Memory Controller and memorizer memory devices
US8209472B2 (en) Data writing method for flash memory and control circuit and storage system using the same
CN109815158A (en) Carry out method, memory storage and the controller and electronic device of system backup
CN102999437A (en) Data transfer method, memory controller and memory storage device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20151121

EXPY Termination of patent right or utility model