Method for treating broken block when using flash memory in tax-controlled cashing machine

A tax-controlled cash register and bad block technology, which is applied in the field of processing bad blocks when using flash memory in tax-controlled cash registers, can solve the frequency limit and cannot be widely used. NANDFLASH cannot be well applied to 8-bit single-chip microcomputers System and other issues, to achieve the effect of fast running speed, easy to understand and implement, and reliable system

Inactive Publication Date: 2009-01-28
SHENZHEN SED IND +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the 8-bit single-chip microcomputer system cannot be widely used due to the limitation of the amount of programs, the limitation of memory capacity, and the limitation of frequency.
Moreover, NANDFLASH cannot be well applied to 8-bit single-chip microcomputer systems due to the processing of bad blocks.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for treating broken block when using flash memory in tax-controlled cashing machine
  • Method for treating broken block when using flash memory in tax-controlled cashing machine
  • Method for treating broken block when using flash memory in tax-controlled cashing machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Below in conjunction with accompanying drawing and specific embodiment the present invention will be described in further detail

[0015] Now take a flash memory with a capacity of 32M as an example. The flash memory is divided into 2048 blocks, and each block is divided into 32 pages. There are 512+16B bytes on each page, of which the first 512 bytes are generally used to store data, and the last 16B are used for Store check code and bad block flag. Therefore, the capacity is designed to have a total of 2000 logical blocks, each block has 32 pages, and each page has 512 bytes. The special block 0 stores the mapping table, and the last 47 blocks are the mapping spare blocks.

[0016] The mapping table of the above flash memory is designed as follows

[0017] a. Rules: The physical block address of the chip is obtained through the mapping table in block 0. If a chip has more than 47 bad blocks, or a corresponding block is broken four times in a row but not at the same t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a bad block processing method using flash memory which is used in tax controlling cashier's machine, it resolves problems that the NANDFLASH can not be used in 8 bit singlechip system for its bad block, it adopts technique that during the processing cause, a mapping table between logic block and physical block is built, once there is bad block, new mapping will be formed in the head sector, when the p page of the programming logic X fails or unsuccessful to erasure some logic block Y, the bad block is identified first, then the max standby block BLK and its table address ADR are found out, programs or erasures BLK+1, the new physical address is filled into the mapping table. The method possesses advantages of simple practicality, easy to understand and realize few quantities of codes, fast running speed and stable, it is reliable to be used intax controlling cashier's machine.

Description

technical field [0001] The invention relates to an operation method of using a flash memory in a single-chip computer system, in particular to a method for processing bad blocks when using a flash memory in a tax control cash register. Background technique [0002] Due to its large storage capacity and fast erasing and writing speed, NANDFLASH is being widely used in data storage systems. Because its interface is similar to hard disks, it is developing in the direction of replacing hard disks. Current electronic disks, such as U disks, DOC (disk on chip), smart cards, etc. all use NANDFLASH. [0003] At present, systems based on 8-bit single-chip microcomputers rarely use NANDFLASH for data storage. The system based on 32-bit ARM core and LINUX platform uses at least a few megabytes or even tens of megabytes of memory, and the program is also running in it. The main frequency is above 70 megabytes, and it can run any algorithm with ease. [0004] The algorithm is roughly l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02G06F11/10G07G1/12
Inventor 李伟民程永生邓武陵
Owner SHENZHEN SED IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products