CN113655950A - 一种应用于电子远传水表的eeprom擦写平衡方法 - Google Patents

一种应用于电子远传水表的eeprom擦写平衡方法 Download PDF

Info

Publication number
CN113655950A
CN113655950A CN202110045339.3A CN202110045339A CN113655950A CN 113655950 A CN113655950 A CN 113655950A CN 202110045339 A CN202110045339 A CN 202110045339A CN 113655950 A CN113655950 A CN 113655950A
Authority
CN
China
Prior art keywords
eeprom
erasing
state identification
identification unit
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.)
Withdrawn
Application number
CN202110045339.3A
Other languages
English (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.)
Qingdao Topscomm Communication Co Ltd
Original Assignee
Qingdao Topscomm Communication Co Ltd
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 Qingdao Topscomm Communication Co Ltd filed Critical Qingdao Topscomm Communication Co Ltd
Priority to CN202110045339.3A priority Critical patent/CN113655950A/zh
Publication of CN113655950A publication Critical patent/CN113655950A/zh
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0617Improving the reliability of storage systems in relation to availability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明公开了一种应用于电子远传水表的EEPROM擦写平衡方法,根据EEPROM特性、数据结构、数据读写频率和使用场景,划分数据存储单元和状态标识单元;然后通过状态标识单元利用位记录擦写信息;其次根据状态标识单元记录的信息判断下一次写入的位置,修改对应的标识并存储数据;最后,状态标识单元和数据存储单元空间资源耗尽后进行一次擦除,如此循环,实现了EEPROM擦写平衡。本发明大幅度提高EEPROM使用寿命,相比传统方法降低了记录信息所用的空间,提高了EEPROM的空间利用率。

Description

一种应用于电子远传水表的EEPROM擦写平衡方法
技术领域
本发明涉及延长存储器使用寿命技术领域,尤其涉及一种应用于电子远传水表的EEPROM擦写平衡方法。
背景技术
EEPROM在擦写过程中,电子被氧化物捕获,形成栅栏,导致擦写需要更高的电压。氧化层通道情况恶化后,产生泄漏,使浮置栅极不再100%绝缘,使数据保持时间变得不稳定,擦写寿命(循环周期)一般为10万次,对于一些需要频繁存取数据且要求使用寿命较长的产品来说,擦写次数会成为产品寿命的瓶颈。
擦写平衡是指均衡对EEPROM的擦写,使其使用寿命得以延长。目前一般使用数倍于被存储数据长度的存储空间及相同字节数的空间来记录擦写信息,以实现擦写平衡的目的,有一半的空间用来存储数据无关的状态信息,致使EEPROM的空间利用率较低。
发明内容
本发明针对现有技术存在的不足和缺陷,提供了一种应用于电子远传水表的EEPROM擦写平衡方法,根据数据结构与存取频率以及EEPROM特性,选定合适的存储空间,以位记录擦写信息,在延长EEPROM使用寿命的同时提高了EEPROM的空间利用率。
为实现上述目的,本发明提供了一种EEPROM擦写平衡方法,包括以下步骤:
步骤1:根据EEPROM特性、数据结构、数据读写频率和使用场景,划分数据存储单元的存储空间和状态标识单元的存储空间,状态标识单元使用位记录擦写信息;
步骤2:从EEPROM中读取状态标识单元内容;
步骤3:判断状态标识单元是否全为0;全为0则进入步骤4,不全为0则进入步骤5;
步骤4:擦除状态标识单元和数据存储单元;
步骤5:判断写入位置即状态标识单元第一个不为0的位,改变状态标识并写入数据和状态标识,完成擦写平衡,当再次需要写入数据时,返回步骤2重复运行。
一般以单页作为存储空间,首字节/前两个字节作为状态标识单元,按位记录已写入的位置及下一次应该写入的位置。状态标识单元的位数与存储单元的字节数相同,每循环一次进行一次擦除,如此循环便可实现均衡擦写,延长EEPROM的使用寿命。
进一步的,述步骤1中将存储区域划分为数据存储单元和状态标识单元。
进一步的,步骤5中状态标识单元的第一个不为0的位即为下一次要写入的位置。
本发明的有益技术效果:根据数据块以此方法设计长度为L的存储单元,可使EEPROM的使用寿命提升L-2倍。
附图说明
图1是本发明应用于电子远传水表的EEPROM擦写平衡方法的工作流程图。
图2、图3、图4、图5是本发明应用于电子远传水表的EEPROM擦写平衡方法的EEPROM使用状态示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不限定本发明。
如图1所示,一种应用于电子远传水表的EEPROM擦写平衡方法,包括以下步骤。
步骤1:从EEPROM中读取状态标识单元内容,图2表示存储单元为空,下一个写入位置为第一字节,图3表示下一个写入位置为第二字节,图4表示下一个写入位置为第三字节,图5表示存储单元已满,应擦除,下一个写入位置为第一字节。
步骤2:判断stateBuffer是否全为0,若不全为0则表示存储单元有空间且处在可写状态,进入步骤3,若全为0则表示存储单元已满,此时擦除stateBuffer及存储单元,进入步骤1或步骤3。
步骤3:根据stateBuffer找到第一个1所在位置,既下一个数据写入的位置。
步骤4:修改标识,将对应的1修改为0。
步骤5:写入数据及标识。
上述实施例是对本发明的具体实施方式的说明,而非对本发明的限制,有关技术领域的技术人员在不脱离本发明的精神和范围的情况下,还可做出各种变换和变化以得到相对应的等同的技术方案,因此所有等同的技术方案均应归入本发明的专利保护范围。

Claims (3)

1.一种应用于电子远传水表的EEPROM擦写平衡方法,其特征在于,包括以下步骤:
步骤1:根据EEPROM特性、数据结构、数据读写频率和使用场景,划分数据存储单元的存储空间和状态标识单元的存储空间,状态标识单元使用位记录擦写信息;
步骤2:从EEPROM中读取状态标识单元内容;
步骤3:判断状态标识单元是否全为0;全为0则进入步骤4,不全为0则进入步骤5;
步骤4:擦除状态标识单元和数据存储单元;
步骤5:判断写入位置即状态标识单元第一个不为0的位,改变状态标识并写入数据和状态标识,完成擦写平衡,当再次需要写入数据时,返回步骤2重复运行。
2.根据权利要求1所述的一种应用于电子远传水表的EEPROM擦写平衡方法,其特征在于,所述步骤1中将存储区域划分为数据存储单元和状态标识单元。
3.根据权利要求1所述的一种应用于电子远传水表的EEPROM擦写平衡方法,其特征在于,所述步骤5中状态标识单元的第一个不为0的位即为下一次要写入的位置。
CN202110045339.3A 2021-01-12 2021-01-12 一种应用于电子远传水表的eeprom擦写平衡方法 Withdrawn CN113655950A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110045339.3A CN113655950A (zh) 2021-01-12 2021-01-12 一种应用于电子远传水表的eeprom擦写平衡方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110045339.3A CN113655950A (zh) 2021-01-12 2021-01-12 一种应用于电子远传水表的eeprom擦写平衡方法

Publications (1)

Publication Number Publication Date
CN113655950A true CN113655950A (zh) 2021-11-16

Family

ID=78488827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110045339.3A Withdrawn CN113655950A (zh) 2021-01-12 2021-01-12 一种应用于电子远传水表的eeprom擦写平衡方法

Country Status (1)

Country Link
CN (1) CN113655950A (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025715A (zh) * 2007-03-07 2007-08-29 北京飞天诚信科技有限公司 基于非易失性存储器中两个连续逻辑块的掉电保护方法
CN102222047A (zh) * 2011-06-16 2011-10-19 西安交通大学 一种改进的bet静态损耗均衡方法
CN104820641A (zh) * 2015-04-16 2015-08-05 上海冉能自动化科技有限公司 减少flash擦除次数的方法
CN108958978A (zh) * 2018-07-12 2018-12-07 深圳芯邦科技股份有限公司 一种mcu数据恢复方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025715A (zh) * 2007-03-07 2007-08-29 北京飞天诚信科技有限公司 基于非易失性存储器中两个连续逻辑块的掉电保护方法
CN102222047A (zh) * 2011-06-16 2011-10-19 西安交通大学 一种改进的bet静态损耗均衡方法
CN104820641A (zh) * 2015-04-16 2015-08-05 上海冉能自动化科技有限公司 减少flash擦除次数的方法
CN108958978A (zh) * 2018-07-12 2018-12-07 深圳芯邦科技股份有限公司 一种mcu数据恢复方法和系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈启军 等 *

Similar Documents

Publication Publication Date Title
CN101354681B (zh) 存储器系统、非易失性存储器的磨损均衡方法及装置
CN101097781B (zh) 确定数据有效性的方法和设备
CN103577342B (zh) 管理闪存中所储存的数据的方法及相关记忆装置与控制器
CN110347335B (zh) 一种固态硬盘数据存储方法、装置
US8892812B2 (en) Flash memory device and data writing method for a flash memory
KR100282679B1 (ko) 반도체메모리 및 정보기억장치
US9569354B2 (en) System and method to emulate an electrically erasable programmable read-only memory
CN102214143A (zh) 一种多层单元闪存的管理方法、装置及存储设备
CN111061649B (zh) 一种存储器的存储空间自适应分配方法
CN109582224A (zh) 一种基于自恢复效应的NAND Flash存储可靠性优化方法
US20090319721A1 (en) Flash memory apparatus and method for operating the same
CN105867834A (zh) 存储装置数据整理方法
CN109785891B (zh) 一种获取NAND Flash存储器浅擦除特性规律的方法
CN111208950B (zh) 一种基于单片机的提升norflash使用周期的方法
CN111913890B (zh) 一种基于安全模组的非易失存储器随机化读写方法
CN112068772B (zh) 数据存储方法、数据存储装置及存储装置
CN113655950A (zh) 一种应用于电子远传水表的eeprom擦写平衡方法
CN115686362A (zh) 一种智能电表的数据冻结方法
JP2001250386A (ja) 半導体メモリ
CN111258498B (zh) 一种flash存储器管理方法
CN102956255B (zh) 闪存控制器
CN115993938B (zh) 一种磁盘格式化方法、装置、设备和计算机可读存储介质
CN112711378B (zh) 数据储存方法及读写设备
CN112786097B (zh) 一种基于擦除时间判断NAND Flash对浅擦除处理的方法
US20110055459A1 (en) Method for managing a plurality of blocks of a flash memory, and associated memory device and controller thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20211116

WW01 Invention patent application withdrawn after publication