CN108037944B - EPROM automatic reburning method - Google Patents
EPROM automatic reburning method Download PDFInfo
- 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
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
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:
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.
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.
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.
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.
and searching all data table calling program segments according to the table calling instruction, and offsetting the calling address.
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.
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.
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:
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:
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;
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.
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)
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)
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 of Flash file system |
-
2017
- 2017-12-12 CN CN201711320555.4A patent/CN108037944B/en active Active
Patent Citations (3)
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 of 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 | |
CN108268770B (en) | Stack overflow detection system and method | |
CN109726107A (en) | Test method, device, equipment and storage medium | |
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 | |
CN108399124A (en) | Application testing method, device, computer equipment and storage medium | |
CN103955354B (en) | Method for relocating and device | |
CN107643893A (en) | A kind of program detecting method and device | |
CN110659197B (en) | Application test case generation method and device and software test system | |
TW200941216A (en) | Method for managing defect blocks in non-volatile memory | |
US9786373B2 (en) | EEPROM backup method and device | |
CN109918064A (en) | A kind of implementation method and device of the code completion based on ace extension | |
CN113778890B (en) | Code testing method and device, electronic equipment and storage medium | |
US20170154681A1 (en) | Memory control method and apparatus | |
CN107145689A (en) | A kind of method that words direction is checked in PCB design | |
CN103593252B (en) | The memory detected with dynamic error and corrected | |
CN110096442A (en) | Code debugging method, user equipment, storage medium and device | |
CN106126425A (en) | Function traversal method based on Android automated test frame and system | |
CN106648713A (en) | OTP programming method and device | |
CN109901829A (en) | A kind of code completion method and device of the third party library based on ace extension | |
CN105677559B (en) | A kind of detection method and device | |
CN102629259A (en) | Read-only file system setting up method in embedded system, device and embedded system | |
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 |