Method and device for writing data in memorizer and intelligent card

A technology for writing data and memory, applied in the field of smart cards, which can solve the problems of shortened service life of smart cards, shortened service life of memory, and waste of writable times in storage areas.

Inactive Publication Date: 2015-11-25
KTMICRO ELECTRONICS
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the storage area 1 targeted by the memory when performing the write operation is the operation unit of the write operation of the memory, in the process of using the memory, the control terminal may need to perform the write operation with the storage area 2 as the operation unit, and the storage area 2 is smaller than the storage area of ​​storage area 1. In this case, if the data in storage area 2 is continuously updated, the memory will not only repeatedly execute the write operation on storage area 1, but also write to storage area 1 except Other storage areas other than storage area 2 perform repeated write operations, which wastes the writable times of other storage areas, thereby reducing the service life of the memory, and correspondingly, the service life of the smart card using this memory will also be reduced
For example, if the smart card requires the data write operation to be performed in blocks with a capacity of 16 bytes, and the memory in the smart card uses pages as the operation unit for performing write operations, assuming that the capacity of a page is 128 bytes , then 128÷16=8 blocks can be stored in one page. If a block in a page needs to be frequently written, other blocks in the page will also be written together, which will cause The useful life of the memory is greatly reduced

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 and device for writing data in memorizer and intelligent card
  • Method and device for writing data in memorizer and intelligent card
  • Method and device for writing data in memorizer and intelligent card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0024] Such as figure 1 As shown, it is a schematic structural diagram of an embodiment of the device for writing data to the memory according to the present invention. The device may include: a first selection module 11, a judgment module 12, a first writing module 13 and a second writing module 14, and the judgment module 12 is connected to the first selection module 11, the first writing module 13 is connected to the judging module 12, the second writing module 14 is connected to the first writing module 13, and the second writing module 14 is connected to the judging module 12.

[0025] In this embodiment, the memory may include more than two pages, and the page may include: a data unit and an information unit, the data unit stores data, and the information unit stores auxiliary information, where the auxiliary information may include a log...

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 method and device for writing data in a memorizer and an intelligent card. The method includes the steps of selecting a power failure page from two or more pages according to a verification value to serve as a backup page, judging whether the backup page needs to be replaced according to the number of write-in times of the backup page, if it is judged that the backup page needs to be replaced, selecting a replacing page from two or more pages according to the number of write-in times, writing data of the replacing page in a data unit of the backup page, updating an information unit of the backup page, making the replacing page serve as a new backup page, writing data, needing to be written in, in a data unit of the new backup page, and updating an information unit of the new backup page, and if it is judged that the backup page does not need to be replaced, writing data, needing to be written in, in the data unit of the backup page, and updating the information unit of the backup page. The method and device are used for prolonging the service life of the memorizer and can conduct power failure protection when data are written in.

Description

technical field [0001] The invention relates to the field of memory, in particular to a method and device for writing data into the memory, and a smart card. Background technique [0002] Memory is widely used in the preservation of information in modern information technology. It is a memory device whose main function is to store programs and various data, and to complete the access of programs or data automatically and at high speed during the operation of the computer. [0003] In the prior art, if a storage area in the memory loses power when performing a write operation, the data to be written cannot be completely written into the memory, and the original data that needs to be replaced may have been completely or partially erased. Deleted, which results in the loss of the original data in this storage area. For example: in the smart card system, the card reader must first read and store the original data in the smart card before each writing operation to the smart card...

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
IPC IPC(8): G06F12/02G06F12/16G06F11/14
Inventor 孙超孙马秋程萌李丛王胜利梁波
Owner KTMICRO ELECTRONICS
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