CN108037944B - EPROM automatic reburning method - Google Patents

EPROM automatic reburning method Download PDF

Info

Publication number
CN108037944B
CN108037944B CN201711320555.4A CN201711320555A CN108037944B CN 108037944 B CN108037944 B CN 108037944B CN 201711320555 A CN201711320555 A CN 201711320555A CN 108037944 B CN108037944 B CN 108037944B
Authority
CN
China
Prior art keywords
data
programming
eprom
written
programmed
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.)
Active
Application number
CN201711320555.4A
Other languages
Chinese (zh)
Other versions
CN108037944A (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.)
SUZHOU HUAXIN MICRO-ELECTRONICS CO LTD
Original Assignee
SUZHOU HUAXIN MICRO-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 SUZHOU HUAXIN MICRO-ELECTRONICS CO LTD filed Critical SUZHOU HUAXIN MICRO-ELECTRONICS CO LTD
Priority to CN201711320555.4A priority Critical patent/CN108037944B/en
Publication of CN108037944A publication Critical patent/CN108037944A/en
Application granted granted Critical
Publication of CN108037944B publication Critical patent/CN108037944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Read Only Memory (AREA)

Abstract

The invention discloses an EPROM automatic reburning method, which comprises the following steps: judging whether the operation control area of the chip is suitable for programming again, if the operation control area is suitable for programming, reading the storage area, and calculating the programmed length and the length of data to be written; judging whether the programming space in the control area is enough, if so, processing the special instruction of the data to be written, and programming the data to be written; after programming is finished, performing data verification on the programming data, and if the verification is successful, automatically programming successfully; otherwise, displaying a check error and finishing programming. The automatic re-burning method of the EPROM provided by the invention can realize the repeated use of the EPROM, and uses automatic testing and burning equipment to replace manpower, thereby increasing the utilization rate of the EPROM and reducing the re-burning cost.

Description

EPROM automatic reburning method
Technical Field
The invention relates to the field of integrated circuits, in particular to an EPROM automatic reburning method.
Background
Solid semiconductor memories, ROM for short, are capable of reading only data stored in advance. Except for a few products using a general purpose rom, different users require different contents of the rom. For ease of use and mass production, programmable read-only memories (PROMs), erasable programmable read-only memories (EPROMs) and electrically erasable programmable read-only memories (EEPROMs) have been further developed. On one hand, the EPROM can be independently programmed and has low cost, so the rapid development is achieved, but the EPROM can be erased only by long-time irradiation of ultraviolet light, which is more complicated. When the chip using the EPROM is packaged into a package without a light transmission function, the chip cannot be erased and can only be programmed once. When such chips write wrong data, it cannot be corrected, resulting in loss.
Disclosure of Invention
Aiming at the defects of the prior art, the invention mainly aims to: the automatic re-burning method of EPROM can realize the repeated use of EPROM, and uses automatic test and burning equipment to replace manpower, raise the utilization rate of EPROM and lower the re-burning cost.
In order to achieve the purpose, the invention discloses an EPROM automatic reburning method, which comprises the following steps:
s1, judging whether the operation control area of the chip is suitable for programming again, if so, executing a step S2; otherwise, go to step S7;
s2, reading the storage area and calculating the programmed length; reading data to be written and calculating the length of the data;
s3, judging whether the programming space in the operation control area is enough, if so, executing the step S4; otherwise, go to step S7;
s4, processing the special instruction of the data to be written;
s5, programming the data to be written;
s6, carrying out data verification on the programming data, and if the verification is successful, automatically re-programming; otherwise, displaying a check error;
and S7, ending programming.
Preferably, when writing data to be burnt, adding a special instruction set to the header, hiding table length information, and reserving a jump space at the starting operation position.
Preferably, the judging whether the operation control area of the chip is suitable for programming again includes: and detecting whether the data to be programmed in the operation control area has irreversible operation, wherein if the irreversible operation exists, the control area is not suitable for programming again.
Preferably, whether the programming space is enough is judged according to the size of the whole space of the current EPROM chip, the length of the programmed data and the length of the data to be written.
Preferably, the processing the special instruction of the data to be written includes:
searching all data tables and the lengths thereof according to the special instruction set, and carrying out address offset on the EPROM address related instructions except the data tables;
searching all data table calling program segments according to the table calling instruction, and offsetting calling addresses;
and programming an address jump instruction in a reserved area of the numerical value starting execution position.
Preferably, the jump address pointed by the address jump instruction is determined according to the size of the current programmed space.
Preferably, in step S1, no programming error is displayed before step S7 is executed.
Preferably, in step S3, no programming error is displayed before step S7 is executed.
Compared with the prior art, the invention has the advantages that: the invention discloses an EPROM automatic re-burning method, which does not limit the burning times, can re-burn as long as the re-burning conditions are met, and uses automatic testing and burning equipment to replace manpower. Therefore, the EPROM can be used for a plurality of times, the space utilization rate of the EPROM is improved, and the chip re-burning cost is reduced.
Drawings
Figure 1 is a flow chart of an EPROM auto-burn-back method disclosed in an exemplary embodiment of the invention;
FIG. 2 is a flow chart of a special instruction process disclosed in an exemplary embodiment of the invention;
fig. 3 is a flowchart illustrating a procedure for invoking address offsets in a data table according to an exemplary embodiment of the present invention.
Detailed Description
In view of the deficiencies in the prior art, the inventors of the present invention have made extensive studies and extensive practices to provide technical solutions of the present invention. The technical solution, its implementation and principles, etc. will be further explained as follows.
Different models of EPROMs have different burning space sizes, and in the process of practical application, a certain special function may only need a small part of space.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart of an EPROM auto-reboiling method according to an exemplary embodiment of the present invention, where the auto-reboiling method mainly includes the following steps:
step 100, starting an automatic reburning program;
before data is programmed, when data to be programmed is programmed, a special instruction set is added to a table head, table length information is hidden, and a jump space is reserved at the starting operation position.
Step 101, judging whether the operation control area of the chip is suitable for programming again, if so, executing step 102; otherwise, go to step 111;
detecting the operation control area, mainly detecting a new numerical value to be programmed in the area, and whether irreversible operation exists, for example, the EPROM only supports the operation of changing all 0 into 1, and whether the operation of changing 1 into 0 is attempted, if no operation exists, continuing to execute downwards, otherwise, directly reporting that the programming error cannot be realized, and finishing the programming.
Step 102, reading an EPROM storage area and calculating the programmed length;
step 103, reading data to be programmed and calculating the length of the data;
step 104, judging whether the programming space is enough, if so, continuing to execute step 105, otherwise, executing step 111;
respectively reading the EPROM data storage areas, judging the length of the used space, calculating the length of the data to be programmed, judging whether the space exists for programming the data to be programmed by combining the size of the whole space of the current EPROM model, if the space is insufficient, indicating that the programming error cannot be realized, finishing the programming, and otherwise, continuously executing the programming operation.
Step 105, searching a data table in the data to be burned according to the specific instruction, and offsetting the burned length of the key instruction of the data to be burned except the data table;
and processing the data to be burned, searching all data tables and the lengths thereof according to the previously inserted special instruction set, and performing address offset on the related instructions of the EPROM address except the data tables.
Step 106, searching a data table in the data to be burned according to a specific instruction, and calling to perform special processing;
and searching all data table calling program segments according to the table calling instruction, and offsetting the calling address.
Step 107, writing an address offset instruction to the starting reserved area;
and in a reserved area of the numerical value starting execution position, programming an address jump instruction, wherein the jump address is determined by calculation according to the size of the existing programming space.
And reserving a reserved area at the beginning of programming of the EPROM, such as an address 0, an address 1, an address 2 and an address 3, reserving non-programming, programming a jump instruction to the address 3 when programming for the first time, jumping to a target area, programming a jump instruction to the address 2 when programming for the second time, jumping to the target area, and the like. Assuming that the maximum space of the EPROM is maxEPROM, the used space of the EPROM is usedEPROM, and the jump address is objEPROM, the objEPROM is usedEPROM +1, and the objEPROM < maxEPROM.
Step 108, programming data to be written;
step 109, carrying out data verification on the programming data, wherein if the verification is successful, the automatic programming is indicated to be successful; otherwise, go to step 110;
and programming the data to be programmed at the available programming position, verifying the data after programming is finished, automatically programming if verification is successful, displaying verification errors if verification is wrong, and finishing programming.
Step 110, displaying the check error, and executing step 112;
step 111, displaying that the error can not be programmed again;
and step 112, ending the burning.
By using the method for automatically rewriting the EPROM provided by the embodiment of the invention, the rewriting times are not limited, and the rewriting can be realized as long as the rewriting conditions are met.
FIG. 2 is a process flow of performing lookup table and length lookup on a special instruction and performing address offset on the special instruction, which mainly includes the following steps:
step 200, detecting data to be detected from the 0 address;
step 201, judging whether the data to be detected is a special instruction set, if so, executing 202; otherwise, go to step 204;
step 202, obtaining the length of a table;
step 203, skipping addresses with the length of the table, and returning to step 201;
step 204, judging whether the instruction is a special instruction, if so, executing step 205; otherwise, go to step 206;
step 205, performing address offset on the instruction operand;
at step 206, special instruction processing is complete.
FIG. 3 is a flow chart of a process for offsetting a calling address according to a table calling instruction, which mainly includes the following steps:
step 300, detecting data to be burnt from the 0 address;
step 301, judging whether the data to be burned is a table calling instruction, if so, executing step 302, otherwise, executing step 305;
step 302, obtaining a called table initial address;
step 303, offsetting the address;
step 304, returning the new address to the corresponding position of the data to be burnt, and returning to step 301;
at step 305, data monitoring is complete.
For example, the table caller segments are as follows:
instruction 1; if it is an address offset instruction
Instruction 2;
instruction 3; v/assume Address offset instruction
Instruction 4;
instruction 5; v/symbolic instruction of call table
All the instructions 1 to 4 may use a call instruction, so a table call instruction (instruction 5) must be found first, and after the instruction 5 is found, the use addresses of the instruction 1 and the instruction 3 are shifted, so that the table address shift of the call table is completed;
the method for automatically re-burning the EPROM can re-burn the EPROM by automatically detecting and burning the residual space of the EPROM chip as long as the re-burning condition is met, and the burning times are not limited, thereby realizing the repeated use of the EPROM, greatly improving the utilization rate of the EPROM and reducing the re-burning cost of the chip.
It should be understood that the above-mentioned embodiments are merely illustrative of the technical concepts and features of the present invention, which are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and therefore, the protection scope of the present invention is not limited thereby. All equivalent changes and modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.

Claims (5)

1. An EPROM automatic reburning method is characterized by comprising the following steps:
s1, judging whether the operation control area of the chip is suitable for programming again, if so, executing a step S2; otherwise, go to step S7;
s2, reading the storage area and calculating the programmed length; reading data to be written and calculating the length of the data;
s3, judging whether the programming space in the operation control area is enough, if so, executing the step S4; otherwise, go to step S7;
s4, processing the special instruction of the data to be written;
s5, programming the data to be written;
s6, carrying out data verification on the programming data, and if the verification is successful, automatically re-programming; otherwise, displaying a check error;
s7, ending programming;
when the data to be written is coded, adding a special instruction set at the head of the table, hiding table length information, and reserving a jump space at the starting operation position; wherein, processing the special instruction of the data to be written comprises:
searching all data tables and the lengths thereof according to the special instruction set, and carrying out address offset on the EPROM address related instructions except the data tables;
searching all data table calling program segments according to the table calling instruction, and offsetting calling addresses;
and programming an address jump instruction in a reserved area of the numerical value starting execution position, wherein the jump address pointed by the address jump instruction is determined by calculation according to the size of the current programmed space.
2. The method of claim 1, wherein said determining whether the operational control area of the chip is suitable for programming again comprises: and detecting whether the data to be programmed in the operation control area has irreversible operation, wherein if the irreversible operation exists, the control area is not suitable for programming again.
3. The EPROM auto-reburn method of claim 1, wherein: and judging whether the programming space is enough or not according to the size of the whole space of the current EPROM chip, the length of the programmed data and the length of the data to be written.
4. The EPROM auto-reburn method of claim 1, wherein: in step S1, if the determination result is NO, it is displayed that the error cannot be programmed before step S7 is executed.
5. The EPROM auto-reburn method of claim 1, wherein: in step S3, if the determination result is NO, it is displayed that the error cannot be programmed before step S7 is executed.
CN201711320555.4A 2017-12-12 2017-12-12 EPROM automatic reburning method Active CN108037944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711320555.4A CN108037944B (en) 2017-12-12 2017-12-12 EPROM automatic reburning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711320555.4A CN108037944B (en) 2017-12-12 2017-12-12 EPROM automatic reburning method

Publications (2)

Publication Number Publication Date
CN108037944A CN108037944A (en) 2018-05-15
CN108037944B true CN108037944B (en) 2021-01-01

Family

ID=62102065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711320555.4A Active CN108037944B (en) 2017-12-12 2017-12-12 EPROM automatic reburning method

Country Status (1)

Country Link
CN (1) CN108037944B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007931A (en) * 2019-01-21 2019-07-12 合肥市航嘉电子技术有限公司 Programming module and its programming method
CN114397939B (en) * 2022-01-20 2024-06-18 无锡驰翔创新科技有限公司 Chip clock frequency trimming method, burning method and burner

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295879A (en) * 1994-04-28 1995-11-10 Brother Ind Ltd Data processor
CN102306125A (en) * 2011-08-17 2012-01-04 深圳市共进电子股份有限公司 Method for erasing and writing data of FLASH memory
CN106569748A (en) * 2016-10-27 2017-04-19 南方电网科学研究院有限责任公司 Data processing method and device for Flash file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295879A (en) * 1994-04-28 1995-11-10 Brother Ind Ltd Data processor
CN102306125A (en) * 2011-08-17 2012-01-04 深圳市共进电子股份有限公司 Method for erasing and writing data of FLASH memory
CN106569748A (en) * 2016-10-27 2017-04-19 南方电网科学研究院有限责任公司 Data processing method and device for Flash file system

Also Published As

Publication number Publication date
CN108037944A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN104199773B (en) Obtain the method and device of code coverage information
CN109726107A (en) Test method, device, equipment and storage medium
CN108268770B (en) Stack overflow detection system and method
CN108037944B (en) EPROM automatic reburning method
CN110109897A (en) Database script generation method, device, computer equipment and storage medium
US20080016415A1 (en) Evaluation system and method
CN106158047A (en) A kind of NAND FLASH method of testing
CN103955354B (en) Method for relocating and device
CN107643893A (en) A kind of program detecting method and device
CN108647140A (en) A kind of test method and test system of mobile terminal
TW200941216A (en) Method for managing defect blocks in non-volatile memory
US9786373B2 (en) EEPROM backup method and device
CN107168750B (en) Firmware upgrade protection method and system
US10176876B2 (en) Memory control method and apparatus for programming and erasing areas
CN103049374A (en) Automatic testing method and device
CN113778890B (en) Code testing method and device, electronic equipment and storage medium
CN107145689A (en) A kind of method that words direction is checked in PCB design
CN110096442A (en) Code debugging method, user equipment, storage medium and device
CN106648713A (en) OTP programming method and device
CN110659197A (en) Application test case generation method and device and software test system
US8566813B2 (en) Method and system generating execution file system device
CN114020278B (en) Data processing method, device, equipment and storage medium
CN105677559B (en) A kind of detection method and device
CN111859089B (en) Wrong word detection control method for Internet information
KR101470158B1 (en) Calibration apparatus and method 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
GR01 Patent grant
GR01 Patent grant