CN1327375C - Device and method for backing data from instrument to CF card - Google Patents

Device and method for backing data from instrument to CF card Download PDF

Info

Publication number
CN1327375C
CN1327375C CNB031505481A CN03150548A CN1327375C CN 1327375 C CN1327375 C CN 1327375C CN B031505481 A CNB031505481 A CN B031505481A CN 03150548 A CN03150548 A CN 03150548A CN 1327375 C CN1327375 C CN 1327375C
Authority
CN
China
Prior art keywords
electric board
data
backup
address
instrument
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.)
Expired - Fee Related
Application number
CNB031505481A
Other languages
Chinese (zh)
Other versions
CN1570914A (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.)
HANGZHOU PANGU AUTOMATION SYSTEM CO Ltd
Original Assignee
HANGZHOU PANGU AUTOMATION SYSTEM 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 HANGZHOU PANGU AUTOMATION SYSTEM CO Ltd filed Critical HANGZHOU PANGU AUTOMATION SYSTEM CO Ltd
Priority to CNB031505481A priority Critical patent/CN1327375C/en
Publication of CN1570914A publication Critical patent/CN1570914A/en
Application granted granted Critical
Publication of CN1327375C publication Critical patent/CN1327375C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention discloses a device and a method for a paperless recorder, which is used for backuping data in an instrument to a CF electronic disk, and the instrument backups internal data of the paperless recorder at the high speed. A data backup device comprises a microprocessor (U1), a static memory (U2), a flash memory (U3), a latch (U4), an addresses latch (U5), a programmable logic device (U6), a CF electronic disk socket (J1) and a CF electronic disk. The present invention has a data backup method operation that the CF electronic disk is inserted in the CF electronic disk socket (J1); enter a data backup operation to select a backup target file; the state of the CF electronic disk is checked; data in the flash memory (U3) is read by sector, and the data is written in the CF electronic disk sector by sector; when the backup amount reaches 100%, the CF electronic disk is extracted. The present invention has the advantages of simple device structure, convenient manufacture, maintenance and use, large storage capacity, high data saving reliability, visual and simple backup method operation, fast backup, etc.

Description

Data backup to the devices and methods therefor of CF electric board in the instrument
Technical field
The present invention relates to the devices and methods therefor of a kind of data storing, backup, particularly a kind of being used in the recording instrument without paper backups to the data high-speed of its internal reservoir by the microprocessor single-chip microcomputer devices and methods therefor that data in the instrument of CF electric board backup to the CF electric board.
Background technology
The data recording instrument is widely used in each field such as industry, medical treatment, military affairs.The internal memory of this registering instrument mostly adopts FLASH flash memory or SRAM reservoir, be subjected to the restriction of registering instrument inner control unit single-chip microcomputer extended capability, and consider from the recorder manufacturing cost, the capacity of gauge internal FLASH flash memory or SRAM reservoir can not be done very greatly, arrives between several M at hundreds of K usually.After the interior storage space of instrument was filled with, the data of front will be deleted or be covered, if the user need keep these data, just these data need be backuped in the external storage of instrument.
At present, the external storage that datalogger is commonly used has floppy disk, hard disk or the like.So all have turnover panel on the panel of existing datalogger shell, in floppy drive is housed.Floppy disk record amount is little, the hard disk operation trouble; And these two kinds of reservoirs all have mechanical hook-up, and volume is big, also is out of order easily, be not suitable for being used in generally disturb, the industry spot of dust and vibrations, and require data to preserve the high occasion of reliability.
Summary of the invention
Technical matters to be solved by this invention is, a kind of deficiency that can overcome existing with data in the floppy disk, hard-disc storage, duplicated record instrument is provided, with the microprocessor Single-chip Controlling with fast data backup in the instrument, the capacity that stores into is big, volume is little, do not have mechanical device, data backup to the CF electric board in the instrument in the CF electric board that data preservation reliability is high devices and methods therefor.
The present invention addresses the above problem the technical scheme that is adopted: data backup to the device of CF electric board in this instrument, comprise microprocessor, flash memory, its design feature is: also comprise static store, latch, address latch, programmable logic device (PLD), CF electric board socket and CF electric board, the data of microprocessor and address wire are respectively and static store, flash memory, latch, address latch, programmable logic device (PLD), CF electric board socket links to each other, the output pin of programmable logic device (PLD) links to each other with CF electric board socket, and the CF electric board inserts in the CF electric board socket.
Microprocessor of the present invention adopts the WINBOND78E516 chip, static store adopts the RAM628128 chip, flash memory adopts FLASH WINBOND29C040 chip, latch adopts the 74HC377 chip, address latch adopts the 74HC573 chip, and programmable logic device (PLD) adopts the GAL16V8 chip.
The OE pin of CF electric board socket of the present invention connects the RD pin of microprocessor, and the WE pin connects the WR pin of microprocessor, and eight data lines of D00-D07 pin and microprocessor link to each other, the D08-D15 pin is unsettled, CE 2, IORD, IOWR, REC pin connect high level, CSEL, RESET pin ground connection, other joint is unsettled, output 14 pin of CE pin and programmable logic device (PLD) link to each other.
CF electric board socket of the present invention is fixed on the mainboard of gauge internal.
The present invention addresses the above problem the technical scheme that is adopted: data backup to the method for CF electric board in this instrument, and be characterized in: the operation steps of described data back up method is as follows,
A, the CF electric board is inserted CF electric board socket;
B, enter data backup operation, and select the backup target file by the operating key on the instrument face plate;
C, by operating key, check the state of CF electric board with microprocessor;
D, by operating key, read data in the flash memory by the sector, write in the CF electric board by the sector;
E, after the backup amount reaches 100%, button leaves, and the CF electric board is extracted from CF electric board socket.
Of the present inventionly read data in the instrument flash memory by the sector, as follows by the step operating process that the sector writes in the CF electric board,
The address first address of a, gating flash memory FLASH, the watchdog routine of microprocessor directly reads data in the 512 byte flash memories by bus, writes in the buffering of static store;
The watchdog routine of b, microprocessor writes a sector in the CF electric board continuously to 512 byte datas in the static store buffering;
C, with CF electric board sevtor address+1, flash memory address+512 bytes repeats " a ", " b " operation, shows that until display screen the backup amount reaches 100%.
The element address is that data register OE000H, address register OE004H-OE006H, status register OE007H are that read command is chosen in the CF electric board of the present invention, command register OE007H is that the WRITE order is chosen, the CF electric board is write being operating as of a sector
A, read the status register of CF electric board;
B, first low level, rear high-lying send address register three byte LBA address, the i.e. LBA (Logical Block Addressing) of CF electric board;
C, in the command register of CF electric board write order 30H;
D, read the status register of CF electric board, if " write order sends unsuccessful " then returns this operation, " if write order sends successfully ", then read 512 byte datas in the static store buffering, in CF electric board data register, write continuously, write until this sector.
The present invention compared with prior art has following beneficial effect: 1, in this instrument data to backup to the device hardware configuration of CF electric board simple, CF electric board socket J 1Be fixed on the mainboard of gauge internal, install used module and directly be contained in the instrument, make, safeguard, use and all make things convenient for, and chip used less, low in energy consumption.2, this back-up device adopts the CF electric board to come storage data, and storage volume is big, from tens M to several G, and CF electric board series electron reservoir, there is not mechanical structure, volume is little, data are preserved the reliability height, are difficult for makeing mistakes, losing, and parts that can be used as instrument use in industry spot.3, the interior data of this instrument backup to the method for CF electric board, can back up instrumented data fast, and directly perceived, simple by operating key on the meter case and display screen operation.
Description of drawings
Fig. 1 backups to the circuit theory diagrams of the device of CF electric board for data of the present invention.
Fig. 2 is a data backup display screen operation screen synoptic diagram of the present invention.
Fig. 3 is a data backup operation keyboard synoptic diagram of the present invention.
Fig. 4 is a data backup process flow diagram of the present invention.
Fig. 5 writes the process flow diagram of a sector for data backup of the present invention.
Embodiment
Data backup to the device example structure of CF electric board in the instrument of the present invention, referring to Fig. 1.Data backup to the device of CF electric board in this instrument, comprise microprocessor U 1, static store U 2, flash memory U 3, latch U 4, address latch U 5, programmable logic device (PLD) U 6, CF electric board socket J 1With the CF electric board.Microprocessor U 1Data and address wire respectively with static store U 2, flash memory U 3, latch U 4, address latch U 5, programmable logic device (PLD) U 6, CF electric board socket J 1Link to each other programmable logic device (PLD) U 6Output pin and CF electric board socket J 1Link to each other, during use, the CF electric board inserts CF electric board socket J 1In.
This device directly is contained in the instrument, CF electric board socket J 1Be fixed on the mainboard of gauge internal.This instrument adopts the drawer type gauge outfit, and the plug of CF electric board easily also is provided with display screen and operating key, referring to Fig. 2, Fig. 3 on the panel of instrument.
Embodiment microprocessor U 1Adopt the WINBOND78E516 chip, static store U 2Adopt the RAM628128 chip, flash memory U 3Adopt FLASH WINBOND29C040 chip, latch U 4Adopt the 74HC377 chip, address latch U 5Adopt the 74HC573 chip, programmable logic device (PLD) U 6Adopt the GAL16V8 chip, CF electric board socket J 1Be special-purpose CF electric board socket.
CF electric board socket J 1Be used to connect CF electric board and data, address bus, OE pin meets microprocessor U on it 1The RD pin of CPU, WE pin connect the WR pin of CPU, D00-D07 pin and microprocessor U 1The data line of single-chip microcomputer links to each other, D08-D15 is unsettled, and CE2, IORD, IOWR, REG pin connect high level, CSEL, RESET pin ground connection.Other joints are unsettled.CE pin and programmable logic device (PLD) U 6Output 14 pin of GAL16V8 chip link to each other.Address decoding is that E000H begins, and in the time of gating, CE is a low level, and CE2 is a high level.The CF electric board powers under the MEMORY MAP pattern that automatically operates in eight, and address wire is D00-D07.
Programmable logic device (PLD) U 6Be used for assigning the address to the CF electric board, in this embodiment, CF electric board address is continuous 8 unit that E000H rises, element address in the CF card: data register OE000H, address register OE004H-OE006H, status register OE007H read command are chosen, command register OE007HWRITE order is chosen.The address of CPU is connected with the corresponding input pin of programmable logic device (PLD) GAL16V8 with signal wire, the output of GAL16V8 and CF electric board socket J 1CE link to each other, to finish the sheet choosing of CF electric board and to be operated under eight states.
Data backup to the embodiment of the method for CF electric board in the instrument of the present invention, referring to Fig. 2-5.The method operation steps that the interior data of this instrument backup to the CF electric board is as follows:
1, extracts the drawer type gauge outfit of instrument out, with the CF electric board socket J on the CF electric board insertion mainboard 1, the gauge outfit pushed home of instrument is put;
2, instrument display screen enters historical data backup operation picture, presses operating key 4 or 5, revises the document number of display screen B position, need to select the file destination of backup.
3, button 3 moves on to display screen C position with cursor, i.e. and " CF card state ", button 6 is used microprocessor U 1Single-chip microcomputer check CF electric board whether exist, whether form correctly waits state.If display screen demonstration " normally " is then operated next step,, then return this and check step if demonstration is undesired.
4, button 3, and cursor is moved on to display screen D position, i.e. and " backup ", button 6 again, the beginning data backup; Read data in the instrument by the sector, write in the CF electric board by the sector.
A, gating FLASH flash memory U 3The address first address, microprocessor U 1Watchdog routine directly read 512 byte flash memory U by bus 3Interior data write RAM static store U 2In buffer zone in;
B, microprocessor U 1The microcomputer monitoring program RAM static store U 2512 byte datas in the buffering write in batches a sector in the CF electric board continuously by bus branch sector;
C, with CF electric board sevtor address+1, flash memory U 3" a ", " b " operation are repeated in address+512 bytes, show that until display screen the backup amount reaches 100%.
5, cursor moves on to display screen F position automatically, i.e. " button leaves ", then button 6 leaves this picture, extracts the drawer type gauge outfit of instrument out, with the CF electric board from CF electric board socket J 1In extract, again the gauge outfit pushed home of instrument is put.
Among the embodiment, the CF electric board is write the flow process of a sector, referring to Fig. 5.Operating process is as follows:
1, reads the status register of CF electric board, check that the CF electric board is ready to not,, then enter next step operation, be not ready to then repeat this status check step if having if be ready to;
2, first low level, rear high-lying send address register three byte LBA address, i.e. the LOGICBLOCK ADDRESS LBA (Logical Block Addressing) of CF electric board;
3, write order 30H in the command register of CF electric board, the WRITH order is chosen;
4, read the status register of CF electric board, if " write order sends unsuccessful " then returns this operation; If " write order sends successfully " then reads static store U 2512 byte datas in the buffering write in CF electric board data register, continuously until having write this sector data.

Claims (7)

1, the interior data of a kind of instrument backup to the device of CF electric board, comprise microprocessor, flash memory, it is characterized in that: also comprise static store (U 2), latch (U 4), address latch (U 5), programmable logic device (PLD) (U 6), CF electric board socket (J 1) and the CF electric board, microprocessor (U 1) data and address wire respectively and static store (U 2), flash memory (U 3), latch (U 4), address latch (U 5), programmable logic device (PLD) (U 6), CF electric board socket (J 1) link to each other programmable logic device (PLD) (U 6) output pin and CF electric board socket (J 1) link to each other, the CF electric board inserts CF electric board socket (J 1) in, microprocessor (U 1) read by bus and to be stored in flash memory (U 3) in instrument in data, with flash memory (U 3) in the data that read write static store (U 2) buffer zone in, microprocessor (U 1) again by bus with static store (U 2) data in the buffer zone write in the sector of CF electric board.
2, the interior data of instrument according to claim 1 backup to the device of CF electric board, it is characterized in that: described microprocessor (U 1) employing WINBOND78E516 chip, static store (U 2) employing RAM628128 chip, flash memory (U 3) employing FLASH WINBOND29C040 chip, latch (U 4) employing 74HC377 chip, address latch (U 5) employing 74HC573 chip, programmable logic device (PLD) (U 6) employing GAL16V8 chip.
3, the interior data of instrument according to claim 1 and 2 backup to the device of CF electric board, it is characterized in that: described CF electric board socket (J 1) the OE pin meet microprocessor (U 1) the RD pin, the WE pin meets microprocessor (U 1) the WR pin, D00-D07 pin and microprocessor (U 1) eight data lines link to each other, the D08-D15 pin is unsettled, CE 2, IORD, IOWR, REC pin connect high level, CSEL, RESET pin ground connection, other joint is unsettled, CE pin and programmable logic device (PLD) (U 6) output 14 pin link to each other.
4, the interior data of instrument according to claim 1 backup to the device of CF electric board, it is characterized in that: described CF electric board socket (J 1) be fixed on the mainboard of gauge internal.
5, the interior data of a kind of instrument backup to the method for CF electric board, and it is characterized in that: the operation steps of this method is as follows,
A, the CF electric board is inserted CF electric board socket (J 1);
B, enter data backup operation, and select the backup target file by the operating key on the instrument face plate;
C, by operating key, with microprocessor (U 1) check the state of CF electric board;
D, normal if CF electric board state shows by operating key, reads flash memory (U by the sector 3) interior data, by static store (U 2) in buffer zone, write in the CF electric board by the sector, undesired if CF electric board state shows, then carry out step c once more;
E, after the backup amount reaches 100%, button withdraws from data backup operation, with the CF electric board from CF electric board socket (J 1) in extract.
6, the interior data of instrument according to claim 5 backup to the method for CF electric board, it is characterized in that: read instrument flash memory (U by the sector 3) interior data, it is as follows by the step operating process that the sector writes in the CF electric board,
D1, gating flash memory (U 3) the address first address, microprocessor (U 1) watchdog routine directly read 512 byte flash memory (U by bus 3) interior data, write static store (U 2) buffer zone in;
D2, microprocessor (U 1) watchdog routine static store (U 2) 512 byte datas in the buffer zone, write a sector in the CF electric board continuously;
D3, with CF electric board sevtor address+1, flash memory (U 3) address+512 bytes, repeating step d1, d2 operation shows that until display screen the backup amount reaches 100%.
7, backup to the method for CF electric board according to data in claim 5 or the 6 described instrument, it is characterized in that: the element address is in the described CF electric board: data register OE000H, address register OE004H-OE006H, carrying out read command OE007H is that status register address, execution WRITE order OE007H are the command register address, the CF electric board is write being operating as of a sector
1. read the status register of CF electric board;
2. if the CF electric board is ready to, first low level, rear high-lying send the address register three byte LBA addresses of CF electric board, and this address is a LBA (Logical Block Addressing), if the CF electric board is also unripe, then repeating step 1.;
3. write order 30H in the command register of CF electric board;
4. read the status register of CF electric board, if " write order sends unsuccessful " then returns step beginning 4., if " write order sends successfully " then reads static store (U 2) 512 interior byte datas of buffer zone, in CF electric board data register, write continuously, write until this sector.
CNB031505481A 2003-08-22 2003-08-22 Device and method for backing data from instrument to CF card Expired - Fee Related CN1327375C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031505481A CN1327375C (en) 2003-08-22 2003-08-22 Device and method for backing data from instrument to CF card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031505481A CN1327375C (en) 2003-08-22 2003-08-22 Device and method for backing data from instrument to CF card

Publications (2)

Publication Number Publication Date
CN1570914A CN1570914A (en) 2005-01-26
CN1327375C true CN1327375C (en) 2007-07-18

Family

ID=34472714

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031505481A Expired - Fee Related CN1327375C (en) 2003-08-22 2003-08-22 Device and method for backing data from instrument to CF card

Country Status (1)

Country Link
CN (1) CN1327375C (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1084296A (en) * 1993-10-15 1994-03-23 清华大学 Monolithic processor controlled hard disk recording method and device thereof
CN2287745Y (en) * 1997-01-22 1998-08-12 青岛兽王实业有限公司 Intelligent displaying and recording instrument
US6524137B1 (en) * 2002-03-15 2003-02-25 Carry Computer Eng. Co., Ltd. Integral multiplex adapter card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1084296A (en) * 1993-10-15 1994-03-23 清华大学 Monolithic processor controlled hard disk recording method and device thereof
CN2287745Y (en) * 1997-01-22 1998-08-12 青岛兽王实业有限公司 Intelligent displaying and recording instrument
US6524137B1 (en) * 2002-03-15 2003-02-25 Carry Computer Eng. Co., Ltd. Integral multiplex adapter card

Also Published As

Publication number Publication date
CN1570914A (en) 2005-01-26

Similar Documents

Publication Publication Date Title
CN102354299B (en) Memory card and semiconductor device
US7447072B2 (en) Storage device employing a flash memory
TWI467581B (en) Hybrid storage apparatus and hybrid storage medium controlller and addressing method thereof
CN104461391A (en) Method and system for managing and processing metadata of storage equipment
US20190384681A1 (en) Data storage device and operating method thereof
CN109977034A (en) Data memory device and non-volatile formula memory operating method
CN103150256A (en) Method and device to improve usb flash write performance
CN104346288A (en) Method for managing a memory device, memory device and controller
CN103970665A (en) FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN102200946B (en) Data access method, memory controller and storage system
CN102592670A (en) Data writing method, memory controller and memory storage device
CN103309619A (en) NAND Flash memory data storage method
CN102446137A (en) Data write-in method, memory controller and memory storage device
CN101241469B (en) Method and device for storing and reading data in embedded system
CN104102456A (en) Memory Device Machine Operation Method
CZ283631B6 (en) Personal computer
CN108052468A (en) A kind of autonomous controllable pci bus controller based on FPGA
US20050092846A1 (en) Simulated smartmedia/XD-picture memory card capable of using various kinds on non-volatile memory
CN1327375C (en) Device and method for backing data from instrument to CF card
CN109240949A (en) Data storage device and its operating method
CN205983448U (en) A control chip and solid state hard drives for solid state hard drives
US20090228762A1 (en) Inforamtion Precessing Apparatus and Non-Volatile Semiconductor Memory Drive
CN202838306U (en) Field programmable gata array (FPGA) configuration system based on microprocessor
CN110262980B (en) High-speed storage system based on limited-life storage medium
CN102402396A (en) Combined type storage device as well as combined type storage media controller and addressing method thereof

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

Granted publication date: 20070718

Termination date: 20160822