CN100559507C - The minisize storage device of tool write-protection function - Google Patents

The minisize storage device of tool write-protection function Download PDF

Info

Publication number
CN100559507C
CN100559507C CNB2004100004691A CN200410000469A CN100559507C CN 100559507 C CN100559507 C CN 100559507C CN B2004100004691 A CNB2004100004691 A CN B2004100004691A CN 200410000469 A CN200410000469 A CN 200410000469A CN 100559507 C CN100559507 C CN 100559507C
Authority
CN
China
Prior art keywords
flash memory
write
block
main frame
data
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 - Lifetime
Application number
CNB2004100004691A
Other languages
Chinese (zh)
Other versions
CN1649032A (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.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
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 Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CNB2004100004691A priority Critical patent/CN100559507C/en
Publication of CN1649032A publication Critical patent/CN1649032A/en
Application granted granted Critical
Publication of CN100559507C publication Critical patent/CN100559507C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The present invention is relevant for a kind of minisize storage device of tool write-protection function; comprise interface circuit; the single-chip flash memory control; and at least one flash memory; wherein have a plurality of blocks in these flash memories; each block has at least one storage unit; described storage unit has the excess enthalpy block; be set with in this excess enthalpy block and prevent the parameter that writes; write for preventing in order to mark described storage unit; this interface circuit then is connected with main frame (as: computer or card reader); make this main frame in these flash memories when access data or program; this single-chip flash memory control can forbid that this main frame writes data in the designated anti-block of writing from these flash memories according to its write protection of setting in advance.The present invention need not change any hardware configuration or the circuit wiring pattern in this memory storage, only needs to set in this single-chip flash memory control to write parameter, can specify the anti-block of writing arbitrarily, reaches the purpose of write protection.

Description

The minisize storage device of tool write-protection function
Technical field
The present invention relates to a kind of minisize storage device with write-protection function.
Background technology
In recent years, science and technology is maked rapid progress, especially electronic industry is especially with very fast speed progress, make present electronic product and in the past electronic product, cannot be mentioned in the same breath, such as: computer, card reader, digital camera, digital camera, mobile phone and personal digital aid (PDA) etc., its volume is more and more little, carry out using and be convenient to people, relatively, the data storage element of its use also must dwindle thereupon, so manufacturer of each tame electronics storage unit, constantly develop the storage card of various different sizes, as: Compact Flash, the SD storage card, the SM storage card, the MS storage card, MMC storage cards etc. make these storage cards under identical volume size, its storage volume can be by millions of bits originally, be advanced to present millions of bits (MB) always, or even more than 1,000,000,000 bits (1GB), and constantly towards bigger storage volume development.
And because the application of these storage cards is extensive day by day; its purposes also extends to digital key from the storage personal information and replaces floppy disk as the booting computer start-up system; or as the data storage device of mobile phone; no matter therefore the person of being to use or system manufacturer all need according to individual demand; to archives, data or the application program of its storage, make the anti-protection data of writing.In the past to the protected mode of the data of storage card; mostly adopt the switch that pins hardware; one control pin of the control wafer of storage card is connected in this switch; to detect the state that this switch connects signal (ON or OFF); determine whether to do write protection, but such practice, not only need increase the cost of hardware circuit; and in the flash memory of the storage card that is divided into a plurality of blocks, also can't flexiblely do the anti-setting that writes at individual block.
Summary of the invention
The invention provides a kind of minisize storage device of tool write-protection function, can specify a certain block in the flash memory to be the anti-block of writing arbitrarily by setting an anti-write parameters.
The minisize storage device of tool write-protection function of the present invention comprises: an interface circuit, be connected with a main frame: at least one flash memory, have a plurality of blocks in this flash memory, wherein each block has at least one storage unit, described storage unit has an excess enthalpy block, being set with one in this excess enthalpy block prevents from the parameter that writes to write for preventing in order to mark described storage unit; One single-chip flash memory control is connected with this interface circuit, this flash memory respectively; Make this main frame in this flash memory when access data or program, this single-chip flash memory control can forbid that this main frame in the designated anti-block of writing, writes data from this flash memory according to the anti-write parameters of setting in this excess enthalpy block.
According to said apparatus of the present invention, institute reaches flash memory and can be and not b gate type flash memory, the capacity of this and not b gate type flash memory is 32MB, the capacity of this and not b gate type flash memory comprises 2048 blocks, each block is made up of 32 pages or leaves, every page of data zone by 512 bytes, and the excess enthalpy block of 16 bytes constitutes.
According to said apparatus of the present invention, wherein this interface circuit can be a USB (universal serial bus) or PCMCIA or ATA ide interface and constitutes.
According to said apparatus of the present invention, wherein this memory storage can be a storage card.
According to said apparatus of the present invention, wherein this memory storage can be a carry-on dish.
According to said apparatus of the present invention, it is characterized in that: wherein this main frame can be a computer or card reader.
Description of drawings
Fig. 1 is a circuit block diagram of the present invention.
Fig. 2 is a write activity sequential chart of the present invention.
Fig. 3 is the control flow chart that generally writes of the present invention.
Fig. 4 is a single-chip flash memory control structural representation of the present invention.
Fig. 5 is the block diagram of flash memory of the present invention.
Fig. 6 is the anti-process flow diagram that writes of the present invention.
Fig. 7 is the circuit block diagram of another most preferred embodiment of the present invention.
Fig. 8 is the storage block synoptic diagram of another most preferred embodiment of the present invention.
Fig. 9 is the write protection data storage area schematic of another most preferred embodiment of the present invention.
Figure 10 is the process flow diagram that the execution of another most preferred embodiment of the present invention generally writes.
Figure 11 is the anti-process flow diagram that writes of another most preferred embodiment of the present invention.
Embodiment
The present invention is a kind of minisize storage device of tool write-protection function, see also shown in Figure 1, this memory storage 1 (as: storage card, carry-on dish etc.) comprise an interface circuit 11, one single-chip flash memory control 12, and at least one flash memory 13, wherein cut apart in these flash memories 13 one or more block is arranged, then be set with in this single-chip flash memory control 12 one can be at the block in these flash memories 13 prevent to write parameter, and this interface circuit 11 and a main frame 15 (as: computer, card reader, mobile phone etc.) be connected, make this memory storage 1 and this main frame 15 line mutually, make this main frame 15 can be in these flash memories 13 when access data or program, this single-chip flash memory control 12 can be according to its anti-write parameters of setting in advance, forbid that this main frame 15 in the designated anti-block of writing, writes data from these flash memories 13.
Described parameter can be a numeral, a word string, a shelves name or any alphanumeric combination.In dos command, usually parameter is optionally, and just a parameter is not essential, fully by the user at that time needs and determine.But parameter is often with minus sign (-) or oblique line (/) beginning, to distinguish with the shelves masterpiece traditionally.Usually each program language all comprises many groups function library, and not down tens of kinds of the functions of each function library when needs use certain function to finish a certain work, only need to reach for the function parameters assignment.Therefore, the parameter described in the present invention is not limited to a certain parametric form.
In the present invention; this single-chip flash memory control 12 is a programmable firmware; but this firmware is embedded or be hung on the shade formula read-only program memory 14 (MASK ROM) of an imprinting one secondary program (or data) outward; make the user can be in this storer 14; setting prevents the parameter that writes; and in this parameter, be set with the write protection of designated blocks, reach and can specify the anti-purpose of writing block arbitrarily.
In the present invention; this single-chip flash memory control 12 is a programmable firmware; this firmware is embedded or be hung on program storage 14 (as: the electric erasing type programmable storage (EEPROM) or the and not b gate type flash memory (Nor Type Flash) of a writable repeatedly program (or data) outward; the user can be in this program storage 14; set or upgrade and prevent the parameter that writes; and in this parameter, be set with the write protection of designated blocks, reach and can specify the anti-purpose of writing block arbitrarily.
In the present invention, see also Fig. 1, shown in Figure 2, this single-chip flash memory control 12 mainly is the control signal with these main frame 15 ends, be converted to the signal of control flash memory 13 ends, and these flash memories 13 are done appropriate managerial and planning, after making these single-chip flash memory control 12 reception instructions (comprise and write the address and write data) from this main frame 15, just send the instruction that writes and give flash memory 13, main frame 15 is passed the address and the data of coming, write in regular turn in the flash memory 13.As shown in Figure 2, for being this sequential chart that writes.
In the present invention, see also Fig. 1, shown in Figure 4, this memory storage 1 is by this interface circuit 11, from main frame 15 ends collect this main frame 15 under write command, again this order is returned to this single-chip flash memory control 12 (as: 8051 controller) and does the action of instruction decoding, and the data that main frame 15 ends are desired to write receives and puts into this single-chip flash memory control 12 inside information storeies 151, after making this single-chip flash memory control 12 finish the decoding of instruction, this data is write flash memory 13 via the information transmission line 16 that is connected with flash memory 13, oscillator 17 is for producing the required clock pulse of System Operation in addition, please consult shown in Figure 3 again, to carry out writing of data fashionable when this memory storage 1, and its this single-chip flash memory control 12 will be handled according to the following step:
(301) at first, receive the order that writes by main frame 15 ends;
(302) receive address and the data that transmits by main frame 15 ends, put into this single-chip flash memory control 12 inside information storeies 151;
(303) carry out write activity,, and write in this flash memory 13 together with data with the relative address of the address translation in the data memory 151 to flash memory 13;
Need (304) have judged whether that the next record data write? if there is the next record data to write, proceed step (302); Otherwise, finish.
In the present invention; see also shown in Figure 5; comprise to be the 0th block 131 of tool write protection at these flash memory 13 first halves in this parameter; and Lower Half is the 1st block (parameter setting is no write protection) 132; please consult Fig. 5, shown in Figure 6 again; when this main frame 15 in these flash memories 13 when access data or program, this single-chip flash memory control 12 can be handled according to the following step:
(601) at first, receive the order that writes by main frame 15 ends;
Will (602) do you judge that the address that write is the 0th block 131 of flash memory 13? if carry out step (606); Otherwise, proceed following step (603);
(603) receive address and the data that transmits by main frame 15 ends, put into this single-chip flash memory control 12 inside information storeies 151;
(604) carry out write activity,, and write to together with data in the 1st block 132 of this flash memory 13 the relative address of the address translation in the data memory 151 to flash memory 13;
Need (605) have judged whether that the next record data write? if there is the next record data to write, proceed step (603); Otherwise, finish;
(606) respond this main frame 15 and forbid writing information, to forbid this main frame 15 from the 0th block 131, the access data.
In another most preferred embodiment of the present invention; please consult shown in Figure 7 again; this memory storage 1 (as: storage card; carry-on dish etc.) be provided with an interface circuit 11; one single-chip flash memory control 12 and at least one flash memory 13; wherein this single-chip flash memory control 12 respectively with interface circuit 11; these flash memories 13 are connected; and cut apart in these flash memories 13 one or more block is arranged; wherein be set with one in an excess enthalpy (Redundant) block and prevent the parameter that writes; including in this parameter can be at the write protection of these flash memories 13 block wherein; interface circuit 11 then is connected with a main frame 15 (as: computer or card reader); make this main frame 15 in these flash memories 13 when access data or program; its single-chip flash memory control 12 can be according to the anti-write parameters of setting in this excess enthalpy block; forbid this main frame 15 from these flash memories 13 in the designated anti-block of writing, the access data.
In this embodiment, see also shown in Figure 7 again, this excess enthalpy block is except the stored logic position, the all undefined special-purpose of remaining part, so being demarcated purposes block partly, this does not deposit the anti-dynamic parameter of writing, when making main frame 15 data will be write this block, whether be prevent write setting, and determine different executive routines if will read this dynamic parameter earlier at every turn.
In this embodiment, please consult shown in Figure 8 again, be illustrated as example at this flash memory with 32MB (or 256Mbit) capacity, these flash memories 13 can be and not b gate type flash memory (NorType Flash), the capacity of this 32MB and not b gate type flash memory is by 2048 sections (block), each section is made up of 32 pages or leaves (page), this page is the least unit of data transmission each time, and page or leaf is the data zone by 512 bytes, and the excess enthalpy block of 16 bytes (Redundant Area) constitutes, its allocation situation as shown in Table 1:
Table one:
The data zone The excess enthalpy block
Byte NO 0~511 512~527
Purposes Store data The stored logic address, block state, error-detecting code, anti-write parameters.
Capacity 512 bytes 16 bytes
This single-chip flash memory control 12 desires to write the sequential of information data area and excess enthalpy block; then as shown in Figure 2; be illustrated as example at this and not b gate type flash memory with the 32MB capacity; receive the instruction of input when this single-chip flash memory control 12; when writing each page; except that writing the data in the data zone; and read the excess enthalpy block earlier and whether have anti-write parameters; if any anti-write parameters; then can't carry out the instruction that writes; as shown in Figure 9; the left side of its flash memory 13 is the data zone; right-hand part is the excess enthalpy block, and its first half is the 0th block (parameter setting is for there being write protection) 131 in addition, and Lower Half then is the 1st block (parameter setting is no write protection) 132.
In this embodiment, please consult Fig. 7, shown in Figure 10 again, this single-chip flash memory control 12 with data via the information transmission line 16 that is connected with flash memory 13, write in the flash memory 13, to carry out writing of data fashionable when this memory storage 1, and its single-chip flash memory control 12 will be handled according to the following step:
(501) at first, receive the order that writes by main frame 15 ends;
(502) receive address and the data that transmits by main frame 15 ends, put into this single-chip flash memory control 12 inside information storeies 151;
(503) carry out write activity,, and write in this flash memory 13 together with data with the relative address of the address translation in the data memory 151 to flash memory 13;
Need (504) have judged whether that the next record data write? if there is the next record data to write, proceed step (502); Otherwise, finish.
In this embodiment, see also shown in Figure 11ly, when this excess enthalpy block has been set anti-write parameters, and this main frame 15 is in these flash memories 13 when access data or program, and this single-chip flash memory control 12 can be handled according to the following step:
(701) at first, receive the order that writes by main frame 15 ends;
(702) read this excess enthalpy block, and judge that this excess enthalpy block has the setting of anti-write parameters? if carry out step (706); Otherwise, proceed following step (703);
(703) receive address and the data that transmits by main frame 15 ends, put into this single-chip flash memory control 12 inside information storeies 151;
(704) carry out write activity,, and write to together with data in the 1st block 132 of this flash memory 13 the relative address of the address translation in the data memory 151 to flash memory 13;
Need (705) have judged whether that the next record data write? if there is the next record data to write, proceed step (703); Otherwise, finish;
(706) respond this main frame 15 and forbid writing information, to forbid this main frame 15 from the 0th block 131, the access data.
So, the parameter that sets in the excess enthalpy block by flash memory 13 of the present invention, promptly need not change this memory storage 1 any hardware configuration, circuit wiring pattern or install any switch, only need to set or upgrade the anti-write parameters that is stored in this block, can specify the anti-block of writing arbitrarily.The present invention's interface circuit 11 in two above-mentioned embodiment can be a USB (universal serial bus) (USB interface) or PCMCIA or ATA ide interface and constitutes.
In sum, only be the best specific embodiment of the present invention, yet, structural attitude of the present invention is not limited thereto, anyly be familiar with this skill person in field of the present invention, can think easily and variation or modification, all should be encompassed in the claim scope of the present invention.

Claims (6)

1, a kind of minisize storage device of tool write-protection function comprises:
One interface circuit is connected with a main frame;
At least one flash memory, have a plurality of blocks in this flash memory, wherein each block has at least one storage unit, and described storage unit has an excess enthalpy block, being set with one in this excess enthalpy block prevents from the parameter that writes to write for preventing in order to mark described storage unit;
One single-chip flash memory control is connected with this interface circuit, this flash memory respectively; Make this main frame in this flash memory when access data or program, this single-chip flash memory control can forbid that this main frame in the designated anti-block of writing, writes data from this flash memory according to the anti-write parameters of setting in this excess enthalpy block.
2, the minisize storage device of tool write-protection function as claimed in claim 1, it is characterized in that: described flash memory can be and not b gate type flash memory, the capacity of this and not b gate type flash memory is 32MB, the capacity of this and not b gate type flash memory comprises 2048 blocks, each block is made up of 32 pages or leaves, every page of data zone by 512 bytes, and the excess enthalpy block of 16 bytes constitutes.
3, the minisize storage device of tool write-protection function as claimed in claim 1 is characterized in that: wherein this interface circuit can be a USB (universal serial bus) or PCMCIA or ATA ide interface and constitutes.
4, the minisize storage device of tool write-protection function as claimed in claim 1 is characterized in that: wherein this memory storage can be a storage card.
5, the minisize storage device of tool write-protection function as claimed in claim 1 is characterized in that: wherein this memory storage can be a carry-on dish.
6, the minisize storage device of tool write-protection function as claimed in claim 1 is characterized in that: wherein this main frame can be a computer or card reader.
CNB2004100004691A 2004-01-29 2004-01-29 The minisize storage device of tool write-protection function Expired - Lifetime CN100559507C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100004691A CN100559507C (en) 2004-01-29 2004-01-29 The minisize storage device of tool write-protection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100004691A CN100559507C (en) 2004-01-29 2004-01-29 The minisize storage device of tool write-protection function

Publications (2)

Publication Number Publication Date
CN1649032A CN1649032A (en) 2005-08-03
CN100559507C true CN100559507C (en) 2009-11-11

Family

ID=34866765

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100004691A Expired - Lifetime CN100559507C (en) 2004-01-29 2004-01-29 The minisize storage device of tool write-protection function

Country Status (1)

Country Link
CN (1) CN100559507C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631245B2 (en) * 2005-09-26 2009-12-08 Sandisk Il Ltd. NAND flash memory controller exporting a NAND interface
US9437312B2 (en) 2009-02-26 2016-09-06 Sandisk Il Ltd. Management of write-protected data in a semiconductor memory
CN101840520B (en) * 2009-12-28 2012-07-25 北京握奇数据系统有限公司 Intelligent card and method for accessing flash memory of intelligent card
CN104182293B (en) * 2013-05-22 2017-06-30 群联电子股份有限公司 Method for writing data, memory storage apparatus and Memory Controller
CN112992231A (en) * 2017-02-02 2021-06-18 慧荣科技股份有限公司 Data storage device and parameter rewriting method
JP7267692B2 (en) * 2018-07-31 2023-05-02 キヤノン株式会社 Image forming device for updating firmware

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6621748B2 (en) * 1998-03-05 2003-09-16 Micron Technology, Inc. Recovery of useful areas of partially defective synchronous memory components

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6621748B2 (en) * 1998-03-05 2003-09-16 Micron Technology, Inc. Recovery of useful areas of partially defective synchronous memory components

Also Published As

Publication number Publication date
CN1649032A (en) 2005-08-03

Similar Documents

Publication Publication Date Title
CN101706709B (en) Card and host apparatus
US5648929A (en) Flash memory card
CN100468307C (en) Memory card, card controller mounted on the memory card, and device for processing the memory card
US7908424B2 (en) Memory card and data rewriting method
EP2003569A9 (en) Flash memory controller
CN103514096B (en) Data storage method, Memory Controller and memorizer memory devices
CN101454746A (en) Method for communication with a multi-function memory card
US20140156913A1 (en) Data processing method, memory controller and memory storage apparatus
CN102053796A (en) Flash memory storage system, flash memory controller and data processing method
CN100559507C (en) The minisize storage device of tool write-protection function
CN103514101A (en) Method for accessing flash memory and related memory device
CN103136111A (en) Data writing method, memorizer controller and memorizer storage device
CN101266828B (en) Mixed flash memory device and its operation method
CN103218300B (en) Data processing method, Memory Controller and memorizer memory devices
CN102915273A (en) Data writing method, memory controller and memory storage device
CN102446137A (en) Data write-in method, memory controller and memory storage device
CN103714008A (en) Method for memorizing data, memory controller and memorizing device of memory
CN103870214A (en) Method for enabling MLC (Multi Level Cell) to have function of SLC (Single Level Cell)
CN103377132A (en) Memory space management method, memory controller and memory storage device
JP2008027070A (en) Portable electronic apparatus and control method of portable electronic apparatus
CN102650971B (en) Memory managing method, memory controller and memory storing device
CN102591738A (en) Data management method, memory controller and embedded memory storage device
CN110286855A (en) A kind of devices and methods therefor of the automatic assorted cold dishes of multiple TF cards
JPH07141479A (en) Ic memory card and file control system using ic memory card
CN101826053A (en) Access method of flash memory and flash memory 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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20091111