TWI400712B - Read and write method of flash memory information - Google Patents

Read and write method of flash memory information Download PDF

Info

Publication number
TWI400712B
TWI400712B TW95148855A TW95148855A TWI400712B TW I400712 B TWI400712 B TW I400712B TW 95148855 A TW95148855 A TW 95148855A TW 95148855 A TW95148855 A TW 95148855A TW I400712 B TWI400712 B TW I400712B
Authority
TW
Taiwan
Prior art keywords
flash memory
information
memory information
reading
controller
Prior art date
Application number
TW95148855A
Other languages
Chinese (zh)
Other versions
TW200828335A (en
Inventor
Chih Ling Wang
Wee-Kuan Gan
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 TW95148855A priority Critical patent/TWI400712B/en
Publication of TW200828335A publication Critical patent/TW200828335A/en
Application granted granted Critical
Publication of TWI400712B publication Critical patent/TWI400712B/en

Links

Description

Flash memory information reading and writing method

The invention provides a method for reading and writing information of flash memory, in particular, the flash memory can read a new flash memory information through an external host or external memory, and flash through the flash. The controller in the memory writes the new flash memory information to a specific address of the flash memory, so if the flash memory information is wrong or destroyed, the flash memory can discard the flash The preset factory data in the memory, and the way to read the new flash memory information in the flash memory, so that the flash memory can still be used.

According to the current rapid development of flash memory technology, in recent years, operators have been developing more and more flash memory, such as MP3 players, personal digital assistants, digital cameras or digital cameras, and other multimedia devices and mobile phones. There is a memory card. In addition, at present, at least a control chip and a flash memory are disposed in the body of the general audio and video playback device in the market, and the flash memory can be used for digital video decoding and recording. And used to download audio and video data from the computer for users to download, and can also be used by audio and video playback devices to play digital music. In addition, there is also a product in the data storage device that uses flash memory only. Providing consumers with increased use of data memory other than computers, and also freely plugging and unplugging them on a computer for reading or accessing data. Based on the convenience and liquidity of the above-mentioned flash memory, since the flash memory is available It has been favored by consumers and has become an almost Indispensable use of tools.

However, the application of the above-mentioned flash memory requires different types and sizes of memory cards to meet the diverse needs of consumers due to different manufacturers or needs; however, flash memory is like a memory when shipped from the factory. The factory default values such as block size, capacity, chip number, device code, and manufacturer code, so the general program firmware engineer must use this information as a type of flash memory to determine which memory the memory belongs to. The control program of the flash memory must be based on the above-mentioned information such as the flash memory capacity or the block size as the basis for reading and writing the flash memory. However, when this information is misjudged or cannot be read, it will cause This flash memory cannot be used anymore, so this flash memory information is very important for programmer firmware and flash memory manufacturers.

In the case of the flash memory management program, the general program starts by reading the factory information from the flash memory by using a command such as a READ ID, when the identification code of the flash memory and the controller are pre-processed. If the value does not match, the controller will not be able to make correct access to the flash memory, and because the flash memory is new, the speed is too fast, in order to avoid changing the firmware in the controller to match the market. The larger capacity flash memory that is continuously produced is a problem that manufacturers need to face.

Therefore, the above-mentioned deficiencies in the conventional technology are necessary for those who are engaged in this industry to be improved, and it is necessary for the relevant industry to make further improvements and innovative designs.

Now, the inventor has in view of the flash memory in the above flash memory controller. The lack of information and lack of information, so the inventors have used this industry's years of research and invention experience, through continuous improvement and experimentation, finally invented this new method of reading and writing flash memory information.

The main purpose of the present invention is to read a new flash memory information by using an external host or external memory and write the specific address of the flash memory module of the flash memory. If the flash memory information is not recognized, the flash memory will discard the default factory data in the flash memory, so the flash memory can still be used, which also increases the flash memory production yield.

In addition, the secondary purpose of the present invention is that when the flash memory information preset by the flash memory is updated, the external memory resource can be used to update the flash memory information by using the method. It will solve the problem of the flash memory controller provider, and it is necessary to introduce different firmware controllers in response to the new speed of the flash memory, thus saving the development cost of the manufacturer and the difficulty of managing the wafer. By.

In order to achieve the above object and structure, and to enable the reviewing committee to have a better understanding of the purpose and function of the present invention, the technical means adopted by the present invention will be described in detail below with reference to preferred embodiments of the present invention. Philip fully understands.

Referring to the first embodiment, which is a block diagram of a system according to a preferred embodiment of the present invention, it can be clearly seen from the figure that the flash memory system used in the method for reading and writing flash memory information of the present invention is clear. The host side transmission interface 11, the controller 12 and the flash memory module 13 are included, The main structural features are as follows. The host side transmission interface 11 mainly performs data transmission between the data of the flash memory 1 and the external host.

The controller 12 is electrically connected to the host-side transmission interface 11, and the controller 12 is a controller that controls the read/write operation of the flash memory 1.

The flash memory module 13 is electrically connected to the controller 12, and the flash memory module 13 is an integrated circuit having a memory function. Furthermore, the flash memory module 13 is further provided. It can consist of one or more flash memories.

Referring to the second embodiment, which is a block diagram of a system according to another preferred embodiment of the present invention, it can be seen that the difference between the other preferred embodiment and the embodiment of the first embodiment is that the other The embodiment is provided with an electronic erasable programmable read only memory 14 (EEPROM), wherein the features of the embodiment are as follows: the electronic erasable programmable read only memory 14 system and controller 12 is electrically connected, the electronic erasable programmable read-only memory 14 has the advantages of non-volatile memory, and has the advantages of volatile memory, repeatable reading and writing, fast reading and writing speed And the characteristics of good accumulation.

However, in order to avoid that the flash memory 1 disclosed above is limited to the flash memory information pre-written in the controller 12 during reading, the flash memory information reading and writing method of the present invention is utilized. Flash memory 1 rewrites a new flash memory information (ID) during production, or fast When the controller 12 of the flash memory 1 cannot read the flash memory information, the method can be updated by using this method. Therefore, the flash memory 1 is updated by the following steps: (101) Determining the flash memory 1 It is a new flash memory 1, and the new flash memory information is not stored in the controller 12 or the controller 12 of the flash memory 1 cannot read the flash memory information (102). (102) reading new flash memory information from the preset host terminal, performing (103); (103) writing the new flash memory information to the flash memory 1 by the controller 12 The specific address of the flash memory module 13 within.

The method of updating the flash memory through the host terminal may update the flash memory information through the built-in or plug-in program. However, the flash memory 1 writes the new flash memory information. When the flash memory module 13 is inserted into the flash memory module 13, the flash memory 1 is read or used in the following steps: (201) reading the flash memory information preset in the flash memory 1 Performing (202); (202) comparing the preset flash memory information with the flash memory information of the controller 12 in the flash memory 1, and if the comparison is matched, performing (204); 203) Flash memory in controller 12 to flash memory 1 The new specific address in the body module 13 reads the new flash memory information, and performs (204); (204) accessing the data.

However, in addition to the new flash memory information can be read from the preset host by the above step (102), the external electronic erasable programmable read-only memory 14 and the external flash memory can be used. The body or external controller reads, so the form that uses the external resources to update the flash memory information should be covered by this creation. Such simple modification and equivalent structural changes should be included in the same reason. In the scope of this patent, the combination of Chen Ming, in addition, the host-side transmission interface 11 can be a serial signal of USB, 1394 or SATA, or a parallel signal such as IDE, PCMCIA, PCI Express or ATA. The above flash memory 1 can be a memory card in the form of a flash drive, an SD memory card, an MMC memory card, a SATA memory hard disk or a PCI EXPRESS, and such a simple modification and an equivalent structural change are also required. It is included in the scope of this creation patent.

Furthermore, please refer to the fifth, sixth and seventh diagrams, which are related circuit diagrams for reading and writing the flash memory information of the present invention, wherein the controller 12 chip is connected by the group (PHISON). PS2134 wafers are provided.

Therefore, the method for reading and writing the flash memory information of the present invention has the following advantages as compared with the conventional technology:

(1) The present invention reads a new flash memory information through an external host or external memory and writes the flash memory 1 fast. The specific address of the flash memory module 13, so if the flash memory information is wrong or corrupted, the flash memory can discard the default factory data in the flash memory and flash by reading. The new flash memory information in the memory module 13 allows the flash memory 1 to be used, thereby increasing the yield of the flash memory.

(2) Since the general flash memory system will read the factory default value of the original flash memory first, if the microcontroller can read this information correctly, the firmware program still reads and judges the flash according to the original design. The type and size of the memory. However, if the factory information does not match the default value in the microcontroller, the flash memory information can be updated externally, thus ensuring the compatibility of the flash memory between the old and new. Sex.

(3) When the original flash memory information of the factory default is damaged or needs to be updated, the external memory resource may be used to update the flash memory information, and the flash memory controller can be solved by the method. Vendors are not required to launch new firmware controllers in response to flash memory speeds, which will save manufacturers' development costs and the difficulty of managing the chips.

However, the above disclosure is only a preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and therefore, the equivalent changes and modifications made by the scope of the patent application of the present invention should still be included. Within the scope of the patents covered by the present invention.

In summary, the method for reading and writing flash memory information of the present invention can indeed achieve its efficacy and purpose, and therefore the invention is an invention with excellent practicability, and is in conformity with the application requirements of the invention patent, and is in line with industrial utilization. Sex, new Ying Ying and progress, 提出 apply in accordance with the law, I hope that the trial committee will grant this case as soon as possible to protect the inventor's hard work. If there is any doubt in the ruling board, please do not hesitate to give instructions, the inventor will try his best to cooperate, really feel public Will.

1‧‧‧flash memory

11‧‧‧ Host-side transmission interface

12‧‧‧ Controller

13‧‧‧Flash Memory Module

14‧‧‧Electronic erasable programmable read-only memory

The first figure is a block diagram of a system in accordance with a preferred embodiment of the present invention.

The second figure is a system block diagram of another preferred embodiment of the present invention.

The third figure is a flash memory information update step of the preferred embodiment of the present invention.

The fourth figure is a flash memory information reading step of the preferred embodiment of the present invention.

Figure 5 is a circuit diagram of a flash memory controller in accordance with a preferred embodiment of the present invention.

Figure 6 is a circuit diagram of a flash memory module in accordance with a preferred embodiment of the present invention.

Figure 7 is a circuit diagram of a flash memory transmission interface in accordance with a preferred embodiment of the present invention.

Claims (8)

  1. A flash memory information reading and writing method for updating a flash memory information of a flash memory module in a flash memory device through an external resource, the flash memory information reading and writing The method includes: determining whether a controller of the flash memory device cannot read the flash memory information of the flash memory module; when the controller of the flash memory device cannot read the flash Reading the first flash memory information from the external resource, and writing, by the controller, the first flash memory information to the flash memory a specific address of the flash memory module of the device, wherein the first flash memory information includes a device code, and at least a portion of the first flash memory information is different from the flash memory model The flash memory information of the group; when the controller of the flash memory device successfully reads the flash memory information of the flash memory module, determining the flash memory module Flash memory information and one of the controllers Whether the flash memory information is the same; and when the flash memory information of the flash memory module is different from the flash memory information of the controller, the controller is from the flash memory device The first flash memory information is read in the specific address in the flash memory module.
  2. The method for reading and writing flash memory information according to claim 1, wherein the external resource is a host end, an external control end, and an electronic erasable programmable read only memory (EEPROM). Or a quick Flash memory.
  3. The method for reading and writing flash memory information as described in claim 1, wherein the host terminal can update the flash memory information through a built-in or plug-in program.
  4. The method for reading and writing flash memory information as described in claim 1 further includes transmitting the first flash memory information through a serial signal of USB, 1394 or SATA.
  5. The method for reading and writing flash memory information as described in claim 1 of the patent application further includes transmitting the first flash memory information through a parallel signal of IDE, PCMCIA, PCI Express or ATA.
  6. The method for reading and writing flash memory information according to claim 1, wherein the flash memory device is a flash drive, an SD memory card, an MMC memory card, a SATA memory hardware or a PCI EXPRESS memory card.
  7. The method for reading and writing flash memory information as described in claim 1, wherein the flash memory information of the flash memory module is not damaged, and the first flash memory information is used Update and replace the flash memory information of the flash memory module.
  8. A method for reading information of a flash memory, comprising: reading a preset flash memory information in a flash memory module in a flash memory device; determining the preset flash memory information Whether it is the same as a flash memory information of a flash memory controller; and when the preset flash memory information is different from the flash memory control Reading the first flash memory from a specific address in the flash memory module in the flash memory device by the flash memory controller Information, wherein the first flash memory information includes a device code.
TW95148855A 2006-12-25 2006-12-25 Read and write method of flash memory information TWI400712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95148855A TWI400712B (en) 2006-12-25 2006-12-25 Read and write method of flash memory information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95148855A TWI400712B (en) 2006-12-25 2006-12-25 Read and write method of flash memory information

Publications (2)

Publication Number Publication Date
TW200828335A TW200828335A (en) 2008-07-01
TWI400712B true TWI400712B (en) 2013-07-01

Family

ID=44817633

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95148855A TWI400712B (en) 2006-12-25 2006-12-25 Read and write method of flash memory information

Country Status (1)

Country Link
TW (1) TWI400712B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI509624B (en) * 2013-07-01 2015-11-21 Asolid Technology Co Ltd Flash memory apparatus, memory controller and method for controlling flash memory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754765B1 (en) * 2001-05-14 2004-06-22 Integrated Memory Logic, Inc. Flash memory controller with updateable microcode
US20050172065A1 (en) * 2004-01-30 2005-08-04 Micron Technology, Inc. Data move method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754765B1 (en) * 2001-05-14 2004-06-22 Integrated Memory Logic, Inc. Flash memory controller with updateable microcode
US20050172065A1 (en) * 2004-01-30 2005-08-04 Micron Technology, Inc. Data move method and apparatus

Also Published As

Publication number Publication date
TW200828335A (en) 2008-07-01

Similar Documents

Publication Publication Date Title
US9703698B2 (en) Data writing method, memory controller and memory storage apparatus
US8292177B2 (en) Optimized non-volatile storage systems
JP5173818B2 (en) Initializing flash storage via embedded controller
KR100923990B1 (en) Computing system based on characteristcs of flash storage
JP6082389B2 (en) Managing the impact of device firmware updates from the host perspective
US7472251B2 (en) Data storage apparatus detachably mounted to a host apparatus
US7305589B2 (en) Memory card and its initial setting method
KR100365385B1 (en) Control Method of Nonvolatile Semiconductor Memory
US8055873B2 (en) Data writing method for flash memory, and controller and system using the same
US7376781B2 (en) Virtual USB card reader with PCI express interface
TWI430094B (en) Memory storage device, memory controller, and temperature management method
US8103817B2 (en) Systems for accessing memory card and methods for accessing memory card by a control unit
US7039754B2 (en) Detachably mounted removable data storage device
US7934053B2 (en) Flash memory storage device for adjusting efficiency in accessing flash memory
US9582416B2 (en) Data erasing method, memory control circuit unit and memory storage apparatus
US20080256287A1 (en) Methods and systems of managing memory addresses in a large capacity multi-level cell (MLC) based flash memory device
US8812784B2 (en) Command executing method, memory controller and memory storage apparatus
US8892814B2 (en) Data storing method, and memory controller and memory storage apparatus using the same
US6851018B2 (en) Exchanging operation parameters between a data storage device and a controller
US7496703B2 (en) Virtual IDE card reader with PCI express interface
US20150019794A1 (en) Data storage device and operating method thereof
RU2445676C2 (en) Method of communication with multifunctional memory card
US7222211B2 (en) Virtual USB flash memory storage device with PCI express interface
CN101266829B (en) Memory card, memory system including the same, and operating method thereof
CN108804041B (en) Nonvolatile memory device and Operating System (OS) image processing method thereof