CN101551780A - Television and data storage method and device thereof - Google Patents

Television and data storage method and device thereof Download PDF

Info

Publication number
CN101551780A
CN101551780A CNA2008102418882A CN200810241888A CN101551780A CN 101551780 A CN101551780 A CN 101551780A CN A2008102418882 A CNA2008102418882 A CN A2008102418882A CN 200810241888 A CN200810241888 A CN 200810241888A CN 101551780 A CN101551780 A CN 101551780A
Authority
CN
China
Prior art keywords
data
unit
televisor
space
storer
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.)
Granted
Application number
CNA2008102418882A
Other languages
Chinese (zh)
Other versions
CN101551780B (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN2008102418882A priority Critical patent/CN101551780B/en
Publication of CN101551780A publication Critical patent/CN101551780A/en
Application granted granted Critical
Publication of CN101551780B publication Critical patent/CN101551780B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applicable to the field of television and provides a data storage method, a device and a receiving terminal for the television. The method comprises the following steps of: arranging a space in a memory; dividing the space into a plurality of sectors which are respectively divided into a plurality of units; searching the units which do not store data in the space arranged in the memory when the data is saved; and writing down the data which needs to be saved in the searched units which do not store data in sequence. The invention is divided into a plurality of sectors through the memory, divides each sector into a plurality of units and stores the data which needs to be stored in each unit in sequence; as the variables which are saved are dynamically stored in the memory, the invention avoids the process for wiping the memory once when the data is saved every time, and the memory is wiped once after the sectors of the whole memory are completely written on, thereby greatly prolonging the service life of the memory.

Description

A kind of televisor and date storage method thereof, device
Technical field
The invention belongs to field of television, relate in particular to a kind of televisor and date storage method thereof, device.
Background technology
At present, all be that the E2PROM of inner portion stores before frequency range data, volume, brightness, the shutdown last time parameters such as program location in most of system for TV set.E2PROM is the storer of can online electricity wiping with electronically written, have that volume is little, interface simple, data preserve reliable, can onlinely rewrite, low in energy consumption, erasable number of times can reach 1,000,000 times, data and characteristics such as can preserve 100 years.Therefore, it aspect televisor storage data always in occupation of irreplaceable position.
Yet along with the continuous development of TV tech, the complexity of television system also improves constantly, and has seemed unable to do what one wishes as 8 single-chip microcomputers of televisor main control chip.Therefore, 32 bit processors begin to serve as the main control chip of television system.This has also brought the rapid expansion of code space thereupon.
Television system before is fairly simple owing to its function, so size of code is less, program generally all is stored among the ROM of MCU, yet adopts the system of 32 bit processors must consider that plug-in storer solves the problem that expands in the space.Consider that the NORFlash cost is higher, industry begins to have released a kind of with the stored program method of SPI Flash (Serial Peripheral Interface Flash, the serial periphery connects flash memory).The method be with procedure stores in SPI Flash, system operation time, again program is copied among the DDR of system, processor directly obtains the instruction of execution from DDR.
The data storage that how will be stored in E2PROM becomes one of direction of TV domain research in SPI Flash.
Wherein, have a look the characteristics of SPI Flash earlier.Its erasing times has 100,000 times, and minimum erase units is a sector (4KB), and data can only write on the zone of having wiped and can preserve 20 years.
In television system, need frequent preservation data, for E2PROM, can repeat to write data to same place, SPI Flash is then not all right, writes before the data, must wipe the zone that will write.And the minimum space that will to wipe a sector be 4Kbyte size when wiping.
See also Fig. 1, the figure shows the general Flash process of writing.
When wiping a certain zone, guarantee that the data of same sector outside should the zone are not damaged in order to solve, usually way be exactly read earlier->change again->wipe again->mode write again.Promptly wipe and change before the sector, at first reading out of this sectors of data is saved in the internal memory, in internal memory, revise data to be written, wipe all data of this sector then, at last the data in the amended internal memory are write back among the SPI Flash.
But, because television system needs frequent preservation data, sometimes may need to preserve the information that the user changes platform, sometimes may need to preserve volume, and the address of these data in SPI Flash fixed, if preserve a byte, just must wipe the space of a sector earlier, this will have a strong impact on the life-span of SPI Flash.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of date storage method of televisor, is intended to make storer to be utilized fully, improves the serviceable life of storer.
The embodiment of the invention is achieved in that a kind of date storage method of televisor, and described method comprises:
One space is set in storer, is a plurality of sectors with described spatial division, and each sector also is divided into a plurality of unit;
When preserving data, in the space of described storer setting, search the unit of not storing data;
The data that needs are preserved write in the unit of not storing data that finds successively.
Another purpose of the embodiment of the invention is to provide a kind of data storage device of televisor, and described device comprises:
The space is provided with module, is used at storer one space being set;
The spatial division module, being used for described spatial division is a plurality of sectors, each sector also is divided into a plurality of unit;
Module is searched in the space, is used for searching the unit of not storing data in the space of described storer setting when preserving data;
Data are preserved module, are used for the data that needs are preserved are write the unit of not storing data that finds successively.
An also purpose of the embodiment of the invention is to provide a kind of televisor, and described televisor comprises the data storage device of the televisor that the embodiment of the invention provides.
The embodiment of the invention is divided into a plurality of sectors by storer, each sector is divided into a plurality of unit, the data of needs storage are stored in each unit successively, because the variable that is saved is dynamic memory in storer, the process of having avoided every preservation one secondary data need wipe primary memory, but just wipe once after writing the sector of completely whole storer, prolonged the life-span of storer greatly.
Description of drawings
Fig. 1 is the Flash process of a writing synoptic diagram general in the prior art;
Fig. 2 is the process flow diagram of the date storage method of the televisor that provides of the embodiment of the invention;
Fig. 3 A to Fig. 3 E is the synoptic diagram of the televisor data storage procedure that provides of the embodiment of the invention;
Fig. 4 is the structural drawing of the data storage device of the televisor that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is by being divided into storer a plurality of sectors, and each sector also is divided into a plurality of unit, and the data that needs are stored store in each unit successively.
Fig. 1 shows the flow process of the date storage method of the televisor that the embodiment of the invention provides.
The embodiment of the invention is that example describes with SPI Flash in the televisor.Certainly, in specific implementation process, can be the storage that example is carried out data also with nonvolatile flash memory (NAND).
In step S101, in internal memory, one space is set for the data that will be written to SPI Flash.
See also Fig. 3 A, the size (length) of physical address (instance) in internal memory of data that preserve as needs in this space and a bridge between the SPI Flash, this variable of this spatial registration, shared internal memory, whether need information (Dirty) such as preservation.Simultaneously, it is also writing down the concrete physical address (storage_address) that this variable is saved to SPI Flash.
In step S102, a space is set in SPI Flash, be a plurality of sectors with the spatial division that is provided with, each sector also is divided into a plurality of unit.
In specific implementation process, see also Fig. 3 B, at first in SPI Flash, open up the space of a 16Kbyte according to the size of SPI Flash, be four sector A, B, C, D with spatial division, the size of each sector is 4Kbyte.
In the sector that each marks off, mark off several unit a, b, c... again, these unit are used for depositing and need the data of preserving, physical address and the data of this unit sign that whether be wiped free of of these data in internal memory,
In step S103, whether needs are preserved data according to time detecting that system is provided with, when system need preserve the data of certain variable, carry out step S104, otherwise normal operation.
For example, the embodiment of the invention by Time Created at interval (for example 3 seconds) detect once whether need the mechanism of preserving, rather than data are modified real-time the going in back and preserve, and can prolong the life-span of SPI Flash like this.
In step S104,, search the unit of not storing data according to the operating position of current SPI Flash.
In step S105, the data that needs are preserved write in the unit of not storing data that finds.
In specific implementation process, see also Fig. 3 C 1., when system need preserve the data of certain variable, the zone bit shown at first can set Fig. 3 A showed that promptly this variable need be saved.
Afterwards, in the described space of Fig. 3 B, find out and be used, but the sector that does not also use, suppose to find sector A, and then find the unit that is not used, be assumed to be unit a at sector A, then 2. system can see also Fig. 3 C with data to be preserved writing unit a successively.
Simultaneously, also to write down the physical address of this part data in internal memory that writes, see also Fig. 3 C 3..
At last, according to the preservation address of this variable in SPI Flash before, find the unit that in SPIFlash, is saved before this variable, then whether the data of this unit are wiped free of zone bit and write 0 and see also Fig. 3 C 4., show that this part data block is invalid.Then system need upgrade the up-to-date physical address that the described variable of 3A is stored in SPI Flash, sees also Fig. 3 C 5..
Arrive this, data are preserved and are finished.
Because it is in real time synchronous being kept at data and the data in the described space of Fig. 3 A of SPI Flash, therefore, after writing a full sector (such as sector A), we are before preserving data next time, can directly wipe this sector A, again the data among the DDR be write successively next sector (such as sector B).
When reading the data that are written into SPI Flash, be described below:
Usually, in adopting the system of E2PROM, when system had just started, whether the data that detect E2PROM were effective, if invalid, at first used the default value initialization E2PROM of variable in the system; Otherwise, then read the data initialization system variable of E2PROM.
In like manner, be stored in the data read process basically identical with E2PROM of reading of data among the SPI Flash, unique difference is exactly that the address that is stored in the data of E2PROM is changeless, sees also Fig. 3 D.Therefore, read the data of certain fixed address after, all can the same variable of initialization.SPI Flash is then different, and the variable that is saved is fully indefinite in the address of SPI Flash, and this just needs system when starting, and travels through the space of the 16Kbyte that whole Fig. 3 B opens up out, and whether detect each sectors of data effective.If effectively, then, see also Fig. 3 E according to this partial data of this sector record variable in the physical address initialization correspondence of DDR.
After adopting above the description, we can be saved in data among the SPI Flash at any time, and do not need every preservation once to wipe SPI Flash one time, but just wipe once after writing a full sector, in the life-span that this has just prolonged SPI Flash greatly, solved with SPI Flash and substituted E2PROM key technical problem to be solved.
The embodiment of the invention also provides a kind of data storage device of televisor, sees also Fig. 2.
Wherein, the space is provided with module 21 space is set in storer.
Spatial division module 22 is a plurality of unit with described spatial division.
Described spatial division module 22 specifically comprises sector division module 221 and dividing elements module 222:
Division module 221 in sector is a plurality of sectors according to the described spatial division of big young pathbreaker in described space;
Dividing elements module 222 continues to be divided into a plurality of unit with the described sector that marks off.
Whether needs are preserved data to the time detecting that Data Detection preservation module 23 is provided with according to system.
When 23 detections of described Data Detection preservation module needed to preserve data, the space was searched module 24 and search the unit of not storing data in the space of described storer setting.
The data that data are preserved module 25 will be needed to preserve write in the unit of not storing data that finds successively.
Data preserve address acquisition module 26 obtain the data of preserving in the preservation address of the unit of described storer.
Address designation module 27 is invalid with the described address designation that obtains.
The embodiment of the invention also provides a kind of televisor, and described televisor comprises the data storage device of the televisor that the embodiment of the invention provides, in view of the data storage device of this televisor in above existing detailed description, repeat no more herein.
The embodiment of the invention is by being divided into storer a plurality of sectors, each sector also is divided into a plurality of unit, the data of needs storage are stored in each unit successively, the process of having avoided every preservation one secondary data need wipe primary memory, but just wipe once after writing the sector of completely whole storer, prolonged the life-span of storer greatly.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of date storage method of televisor is characterized in that, described method comprises:
One space is set in storer, is a plurality of sectors with described spatial division, and each sector also is divided into a plurality of unit;
When preserving data, in the space of described storer setting, search the unit of not storing data;
The data that needs are preserved write in the unit of not storing data that finds successively.
2, the date storage method of televisor as claimed in claim 1 is characterized in that, before the described data that will need to preserve write step in the unit of not storing data that finds successively, described method also comprised:
Whether needs are preserved data according to time detecting that system is provided with.
3, the date storage method of televisor as claimed in claim 1 is characterized in that, the step of searching the unit of not storing data in the space of described storer setting specifically comprises:
Search data storage less than the sector;
In the sector that finds, search the unit of not storing data.
4, the date storage method of televisor as claimed in claim 1 is characterized in that, in the described space that is provided with in storer, is a plurality of sectors with described spatial division, and each sector also is divided into before the step of a plurality of unit, and described method also comprises:
In internal memory, a space is set, the size of the physical address of the described data of described spatial registration in described internal memory, shared internal memory, whether needs to preserve and described data are saved to concrete physical address in the described storer for the data that will be written in the described storer.
5, the date storage method of televisor as claimed in claim 1 is characterized in that, after the described data that will need to preserve write step in the unit of not storing data that finds successively, described method also comprised:
Obtain the preservation address of preserving before the data in the unit of described storer;
With the preservation address mark in the unit of described storer before the described preservation data is invalid.
6, the date storage method of televisor as claimed in claim 1 is characterized in that, described storer is that the serial periphery connects flash memory or nonvolatile flash memory.
7, a kind of data storage device of televisor is characterized in that, described device comprises:
The space is provided with module, is used at storer one space being set;
The spatial division module, being used for described spatial division is a plurality of sectors, each sector also is divided into a plurality of unit;
Module is searched in the space, is used for searching the unit of not storing data in the space of described storer setting when preserving data;
Data are preserved module, are used for the data that needs are preserved are write the unit of not storing data that finds successively.
8, the data storage device of televisor as claimed in claim 7 is characterized in that, described device also comprises:
Data Detection is preserved module, and whether needs are preserved data to be used for the time detecting that is provided with according to system
9, the data storage device of televisor as claimed in claim 7 is characterized in that, described storer is that the serial periphery connects flash memory or nonvolatile flash memory.
10, a kind of televisor is characterized in that, described televisor comprises the data storage device of each described televisor of claim 7 to 9.
CN2008102418882A 2008-12-29 2008-12-29 Television and data storage method and device thereof Expired - Fee Related CN101551780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102418882A CN101551780B (en) 2008-12-29 2008-12-29 Television and data storage method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102418882A CN101551780B (en) 2008-12-29 2008-12-29 Television and data storage method and device thereof

Publications (2)

Publication Number Publication Date
CN101551780A true CN101551780A (en) 2009-10-07
CN101551780B CN101551780B (en) 2012-05-09

Family

ID=41156028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102418882A Expired - Fee Related CN101551780B (en) 2008-12-29 2008-12-29 Television and data storage method and device thereof

Country Status (1)

Country Link
CN (1) CN101551780B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270177A (en) * 2011-06-17 2011-12-07 南京Lg新港显示有限公司 Method for replacing EEPROM (Electrically-Erasable Programmable Read-Only Memory) with memory space of flash memory
CN102279806A (en) * 2011-05-18 2011-12-14 深圳创维-Rgb电子有限公司 Digital television equipment and storage method for single program initiation (SPI) memory
CN102073592B (en) * 2009-11-19 2012-12-05 中兴通讯股份有限公司 Quick read-write method and device for flash memory
CN102883207A (en) * 2012-09-13 2013-01-16 深圳创维数字技术股份有限公司 Data processing method and digital television terminal
CN103294615A (en) * 2012-02-24 2013-09-11 北京四达时代软件技术股份有限公司 Method for storing user information of set top box
CN105022701A (en) * 2015-07-27 2015-11-04 四川长虹电器股份有限公司 Method for storing running state and parameters of air conditioner
CN105812891A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and system for storing data in screen end plate of modular television
CN105828196A (en) * 2016-03-09 2016-08-03 青岛海信电器股份有限公司 Intelligent television data processing method and device
CN108279852A (en) * 2017-12-27 2018-07-13 浙江恒业电子有限公司 Method for improving NORFLASH service lifes in intelligent electric energy meter
CN109947364A (en) * 2019-02-01 2019-06-28 浙江蓝点动力科技有限公司 A kind of method for storing real-time data in FLASH/EEPROM
CN109947369A (en) * 2019-03-22 2019-06-28 河南卓正电子科技有限公司 Date storage method and device
CN111324554A (en) * 2020-02-18 2020-06-23 日立楼宇技术(广州)有限公司 Management method and device of flash memory data and elevator controller
CN113316010A (en) * 2021-05-28 2021-08-27 杭州国芯科技股份有限公司 Method for recording current viewing channel information by set top box

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073592B (en) * 2009-11-19 2012-12-05 中兴通讯股份有限公司 Quick read-write method and device for flash memory
CN102279806A (en) * 2011-05-18 2011-12-14 深圳创维-Rgb电子有限公司 Digital television equipment and storage method for single program initiation (SPI) memory
CN102270177A (en) * 2011-06-17 2011-12-07 南京Lg新港显示有限公司 Method for replacing EEPROM (Electrically-Erasable Programmable Read-Only Memory) with memory space of flash memory
CN103294615B (en) * 2012-02-24 2017-09-22 北京四达时代软件技术股份有限公司 A kind of method for storing set-top box users information
CN103294615A (en) * 2012-02-24 2013-09-11 北京四达时代软件技术股份有限公司 Method for storing user information of set top box
CN102883207B (en) * 2012-09-13 2016-11-23 深圳创维数字技术有限公司 The method of a kind of data process and digital TV terminal
CN102883207A (en) * 2012-09-13 2013-01-16 深圳创维数字技术股份有限公司 Data processing method and digital television terminal
CN105812891B (en) * 2014-12-30 2019-03-19 Tcl集团股份有限公司 A kind of method and system of module TV screen end plate data storage
CN105812891A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and system for storing data in screen end plate of modular television
CN105022701A (en) * 2015-07-27 2015-11-04 四川长虹电器股份有限公司 Method for storing running state and parameters of air conditioner
CN105828196A (en) * 2016-03-09 2016-08-03 青岛海信电器股份有限公司 Intelligent television data processing method and device
CN105828196B (en) * 2016-03-09 2019-01-15 青岛海信电器股份有限公司 A kind of smart television data processing method and device
CN108279852A (en) * 2017-12-27 2018-07-13 浙江恒业电子有限公司 Method for improving NORFLASH service lifes in intelligent electric energy meter
CN109947364A (en) * 2019-02-01 2019-06-28 浙江蓝点动力科技有限公司 A kind of method for storing real-time data in FLASH/EEPROM
CN109947369A (en) * 2019-03-22 2019-06-28 河南卓正电子科技有限公司 Date storage method and device
CN111324554A (en) * 2020-02-18 2020-06-23 日立楼宇技术(广州)有限公司 Management method and device of flash memory data and elevator controller
CN111324554B (en) * 2020-02-18 2022-03-18 日立楼宇技术(广州)有限公司 Management method and device of flash memory data and elevator controller
CN113316010A (en) * 2021-05-28 2021-08-27 杭州国芯科技股份有限公司 Method for recording current viewing channel information by set top box
CN113316010B (en) * 2021-05-28 2023-02-28 杭州国芯科技股份有限公司 Method for recording current viewing channel information by set top box

Also Published As

Publication number Publication date
CN101551780B (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN101551780B (en) Television and data storage method and device thereof
CN1902599B (en) Method for updating data in non-volatile memory systems and operating the non-volatile memory systems system
US7127551B2 (en) Flash memory management method
KR100843543B1 (en) System comprising flash memory device and data recovery method thereof
CN103577121B (en) A kind of highly reliable linear file access method based on Nand Flash
KR100493884B1 (en) Control apparatus and method for xip(execution in place) in serial flash memory and flash memory chip using the same
CN102737715B (en) For the method for power fail safeguard of data of NOR flash memory
CN103440205B (en) A kind of set top box data storage method and device
US7925821B2 (en) Nonvolatile semiconductor storage device and method of managing the same
CN103577574B (en) High-reliability linear file system based on nand flash
CN101944115B (en) Method and system for searching logs
JP2000505215A (en) Memory management
US8775758B2 (en) Memory device and method for performing a write-abort-safe firmware update
CN101013351A (en) Hard disk drive cache memory and playback device
CN103270500A (en) Transaction log recovery
US6839798B1 (en) Flash memory capable of storing frequently rewritten data
CN101625897B (en) Data write-in method, storage system and controller used for quick flash memory
CN101901189A (en) Data updating and recovering methods for a non-volatile memory array
CN100524217C (en) Embedded system guiding method and device
CN102541753B (en) A kind of read-write optimization method of in-line memory
CN111124294B (en) Sector mapping information management method and device, storage medium and equipment
US9535796B2 (en) Method, apparatus and computer for data operation
CN102023845A (en) Cache concurrent access management method based on state machine
JP4794530B2 (en) Semiconductor device and mobile phone
US7899974B2 (en) Nonvolatile memory, mapping control apparatus and method of the same

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120509

Termination date: 20151229

EXPY Termination of patent right or utility model