A method and apparatus for writing data
By parsing and converting the programming data into 14-bit program instruction data, and combining command strings and data strings, the problem of MCU programs being easily cracked is solved, thereby improving data security and programming efficiency.
Patent Information
- Application Number
- CN202210991615.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-08-18
AI Technical Summary
In existing technologies, MCU programs and data are easily cracked, resulting in insufficient data security. Furthermore, directly obtaining program instruction data by burning files poses risks and can cause incalculable losses.
After acquiring the data to be programmed, it is parsed into a 0-4 bit command string. Based on the preset function, it is determined whether a data string needs to be substituted. It is further parsed into a 0+8 bit data string and converted into 7 bits of program instruction data, which are programmed into the high and low bytes respectively. 14 bits of program instruction data are used. The command string and data string are combined to distinguish the function mode and avoid directly obtaining the program instruction data.
It improves data security, reduces costs, and enhances data burning and transmission efficiency, while reducing the occupation of control pins and improving burning efficiency.
Smart Images

Figure CN115408014B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of integrated circuits, in particular to a method and device for writing data to be burned. BACKGROUND
[0002] With the rapid development of science and technology and society, data security is very important. The progress of technology makes it easy to crack MCU programs and data, which causes immeasurable losses to enterprises.
[0003] In order to improve the security between the original data to be burned and the program instruction data in the chip, and to avoid obtaining the program instruction data directly based on the data to be burned, the present application provides a method and device for writing data to be burned. SUMMARY
[0004] The present application provides a method and device for writing data to be burned, which improves the security of data, has low cost, and improves transmission efficiency.
[0005] Therefore, the present application provides a method for writing data to be burned, which comprises the following steps:
[0006] S1, obtaining data to be burned;
[0007] S2, parsing the data to be burned after entering a programming mode to obtain a command string corresponding to 0-4 bits;
[0008] S3, if it is judged according to the command string that a data string needs to be substituted according to a preset function, the data to be burned is further parsed to obtain a data string corresponding to 0+8 bits;
[0009] S4, according to 7-bit program instruction data corresponding to the data string of 8 bits, the data string after the command string corresponding to the preset function of writing high byte data to a latch is converted into program instruction data and burned into the corresponding high byte, and the data string after the command string corresponding to the preset function of writing low byte data to a latch is converted into program instruction data and burned into the corresponding low byte.
[0010] Optionally, the step S2 further comprises the following steps before the step S2:
[0011] After receiving 4 start communication bits STB signals, the programming mode is entered.
[0012] Optionally, the step S3 specifically comprises the following steps:
[0013] receiving a command string corresponding to 0-4 bits;
[0014] The command string is parsed by a string+1 method to correspond to a preset function, and the preset function includes: starting erasing, stopping erasing, resetting address, increasing address, starting a burning program, stopping the burning program, writing low byte data to a latch, writing high byte data to the latch, setting mode, setting an internal RC calibration latch, reading low byte data, and reading high byte data;
[0015] If the preset function is any one of writing low byte data to the latch, writing high byte data to the latch, setting mode, setting the internal RC calibration latch, reading low byte data, or reading high byte data, it is determined that a data string corresponding to 0+8-bit data needs to be substituted.
[0016] Optionally, the method further comprises:
[0017] If the preset function corresponding to the command string is writing low byte data to the latch, the command string must be parsed in advance to correspond to a command string of writing high byte data to the latch, otherwise the burning is stopped.
[0018] Optionally, the step S4 specifically comprises:
[0019] The data string after the command string corresponding to the preset function of writing high byte data to the latch is converted into program instruction data and is latched into the corresponding high byte;
[0020] The data string after the command string corresponding to the preset function of writing low byte data to the latch is converted into program instruction data and is latched into the corresponding low byte;
[0021] The command string corresponding to the preset function of starting the burning program is parsed, so that the 14-bit program instruction data is burned at the same time.
[0022] The command string corresponding to the preset function of stopping the burning program is parsed, and the burning is completed.
[0023] The second aspect of the present application provides a burning data writing device, and the device comprises:
[0024] A data parsing module, a buffer module, and a control module;
[0025] The data parsing module is in communication connection with the buffer module;
[0026] The buffer module is in communication connection with the control module;
[0027] The data parsing module is used for judging whether to enter a programming mode;
[0028] The buffer module is used for obtaining data to be burned;
[0029] The control module is used for:
[0030] After entering the programming mode, the to-be-burned data is parsed to obtain a command string corresponding to 0-4 bits;
[0031] If it is judged according to the command string that the preset function needs to be substituted into a data string, the to-be-burned data is continuously parsed to obtain a data string corresponding to 0+8 bits of data;
[0032] According to 7-bit program instruction data corresponding to the data string of 8 bits of data, the data string after the command string corresponding to the preset function of writing high byte data into a latch is converted into program instruction data and burned into the corresponding high byte, and the data string after the command string corresponding to the preset function of writing low byte data into a latch is converted into program instruction data and burned into the corresponding low byte.
[0033] Optionally, the data parsing module is specifically configured to enter the programming mode when receiving 4 start communication bits STB signals.
[0034] Optionally, the control module judges whether the preset function needs to be substituted into a data string according to the command string, and the judging specifically includes:
[0035] Receiving a command string corresponding to 0-4 bits;
[0036] Parsing the preset function of the command string by a string+1 method, and the preset function includes: starting erasing, stopping erasing, resetting address, increasing address, starting a burning program, stopping a burning program, writing low byte data into a latch, writing high byte data into a latch, setting mode, setting internal RC calibration latch, reading low byte data, and reading high byte data;
[0037] If the preset function is any one of writing low byte data into a latch, writing high byte data into a latch, setting mode, setting internal RC calibration latch, reading low byte data, or reading high byte data, it is determined that a data string corresponding to 0+8 bits of data needs to be substituted.
[0038] Optionally, the control module is further used for:
[0039] If the command string corresponds to the preset function of writing low byte data into a latch, the command string before the command string must be parsed to correspond to the preset function of writing high byte data into a latch, otherwise, the burning is stopped.
[0040] Optionally, the control module is further used for:
[0041] convert the data string after the command string corresponding to the preset function of writing high byte data to the latch into program instruction data and lock into the corresponding high byte;
[0042] convert the data string after the command string corresponding to the preset function of writing low byte data to the latch into program instruction data and lock into the corresponding low byte;
[0043] analyze the command string corresponding to the preset function of starting the burning program, so that the 14-bit program instruction data is burned at the same time;
[0044] analyze the command string corresponding to the preset function of stopping the burning program, and complete the burning.
[0045] From the above technical solutions, the embodiments of the present application have the following advantages:
[0046] In the present application, a burning data writing method is provided, including: S1, obtaining to-be-burned data; S2, after entering a programming mode, analyzing the to-be-burned data to obtain a command string corresponding to 0-4 bits; S3, if it is judged according to the command string corresponding to the preset function that a data string needs to be substituted, then continue to analyze the to-be-burned data to obtain a data string corresponding to 0+8 bits; S4, according to 7-bit program instruction data corresponding to the data string corresponding to 8-bit data, respectively convert the data string after the command string corresponding to the preset function of writing high byte data to the latch into program instruction data and burn into the corresponding high byte, and convert the data string after the command string corresponding to the preset function of writing low byte data to the latch into program instruction data and burn into the corresponding low byte.
[0047] The present application is directed to to-be-burned data, and realizes the differentiation of function modes and data through the combination of command strings and data strings, can facilitate the addition of new functions or the modification of functions, and at the same time, the 7-bit program instruction data corresponding to the data string of 8-bit data after being written into the latch can avoid obtaining program instruction data directly according to the data string, improve the security of data, and has low cost. The present application uses 14-bit program instruction data, which improves the efficiency of data burning and transmission compared with commonly used 16-bit data. BRIEF DESCRIPTION OF DRAWINGS
[0048] Figure 1 A method flowchart of a burning data writing method in the embodiments of the present application;
[0049] Figure 2 A structure schematic diagram of a burning data writing device provided by the embodiments of the present application;
[0050] Figure 3A schematic diagram of the preset functions corresponding to the command string and the data string of the burning communication protocol in the embodiment of the present application is shown in the following table.
[0051] Figure 4 A structure schematic diagram of the latch in the embodiment of the present application is shown in the following table.
[0052] Figure 5 A burning interface schematic diagram of the burning data writing device in the embodiment of the present application is shown in the following table. DETAILED DESCRIPTION
[0053] In order to enable personnel in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0054] The present application designs a burning data writing method and device, improves the security of data, has low cost, and improves the transmission efficiency.
[0055] For the convenience of understanding, please refer to Figure 1 , Figure 1 A method flowchart of a burning data writing method in the embodiment of the present application is shown in the following table. Figure 1 ,
[0056] S1, obtaining to-be-burned data;
[0057] S2, after entering the programming mode, parsing the to-be-burned data to obtain a command string corresponding to 0-4 bits;
[0058] S3, if it is judged according to the preset function corresponding to the command string that the data string needs to be substituted, then continue to parse the to-be-burned data to obtain a data string corresponding to 0+8 bits;
[0059] S4, according to the 7-bit program instruction data corresponding to the data string of 8 bits, respectively converting the data string after the command string corresponding to the preset function of writing high byte data to the latch into program instruction data and burning the program instruction data into the corresponding high byte, and converting the data string after the command string corresponding to the preset function of writing low byte data to the latch into program instruction data and burning the program instruction data into the corresponding low byte.
[0060] It should be noted that after entering the programming mode, the to-be-burned data needs to be parsed, and specifically, the preset function corresponding to the command string can be parsed after the data value is shifted by the latch.
[0061] The command string is usually set in 0-4 bits, and is composed of 5-bit data, as shown in Figure 3 Different command strings can represent different function settings for the burning data writing device, and thus the application has easy expandability, and different burning function settings can be set by increasing or decreasing the command string according to different requirements.
[0062] The command string can be further divided into two types: a data string without substitution and a data string with substitution. For the former command string, some instruction functions can be corresponded, such as starting erasing, stopping erasing, resetting address, increasing address, starting the burning program, stopping the burning program, etc.; the latter command string can correspond to data or program instruction related functions, such as writing low byte data to the latch, writing high byte data to the latch, setting the mode, setting the internal RC calibration latch, reading low byte data, reading high byte data, etc.
[0063] In a burning data writing process, after recognizing that the command string corresponds to the preset function of writing high byte data to the latch, the 8-bit data string after the command string except the first 0 is converted into program instruction data and burned into the corresponding high byte; after recognizing that the command string corresponds to the preset function of writing low byte data to the latch, the 8-bit data string after the command string except the first 0 is converted into program instruction data and burned into the corresponding low byte.
[0064] As shown in Figure 4 The program instruction data is divided into two bytes, each byte contains 7 bits, and the data string of 0-7 bits corresponds to the program instruction data of 0-6 bits, and the data string of 8-15 bits corresponds to the program instruction data of 7-13 bits.
[0065] Among them, "writing high byte data to the latch" must be executed before "writing low byte data to the latch".
[0066] It can be understood that the data string and the program instruction data are directly further encrypted and converted, which can greatly improve the security of the burning data. At the same time, the final 14-bit program instruction data can improve the efficiency of burning and transmission compared with the 16-bit program instruction data.
[0067] Further, before step S2, it further includes:
[0068] After receiving 4 start communication bits STB signals, the programming mode is entered.
[0069] It should be noted that the burning protocol adopted in the present application includes a start communication bit STB, data bits "0" and "1", when 4 consecutive start communication STB signals are received, the mode is changed, in addition, when 16 data bits "0" signals are received, the programming mode is ended, and the program counter of the burning writing device is set to the reset address.
[0070] Further, the judgment of the need to substitute the data string according to the command string corresponding to the preset function specifically includes:
[0071] Receiving a command string corresponding to 0-4 bits;
[0072] Analyzing the command string corresponding to the preset function by the string +1 method, the preset function including: starting erasing, stopping erasing, resetting address, increasing address, starting burning program, stopping burning program, writing low byte data to latch, writing high byte data to latch, setting mode, setting internal RC calibration latch, reading low byte data, and reading high byte data;
[0073] If the preset function is any one of writing low byte data to latch, writing high byte data to latch, setting mode, setting internal RC calibration latch, reading low byte data, or reading high byte data, it is determined that the data string corresponding to 0+8 bits of data needs to be substituted.
[0074] Further, it also includes:
[0075] If the command string corresponding to the preset function is writing low byte data to latch, the command string before it must be parsed to the command string corresponding to the preset function of writing high byte data to latch, otherwise the burning is stopped.
[0076] Further, step S4 specifically includes:
[0077] Converting the data string after the command string corresponding to the preset function of writing high byte data to latch into program instruction data and latching it into the corresponding high byte;
[0078] Converting the data string after the command string corresponding to the preset function of writing low byte data to latch into program instruction data and latching it into the corresponding low byte;
[0079] Analyzing the command string corresponding to the preset function of starting the burning program, so that the 14-bit program instruction data is burned at the same time;
[0080] Analyzing the command string corresponding to the preset function of stopping the burning program, and completing the burning.
[0081] It should be noted that the 14-bit program instruction data is simultaneously burned only after being latched by the latch, and the burning is more convenient.
[0082] As Figure 2 shown, Figure 2 a structure diagram of a burning data writing device provided by the embodiment of the application, the device comprises:
[0083] a data analysis module 21, a buffer module 22 and a control module 23;
[0084] The data analysis module 21 is in communication connection with the buffer module 22.
[0085] The buffer module 22 is in communication connection with the control module 23.
[0086] The data analysis module 21 is configured to determine whether to enter a programming mode.
[0087] The buffer module 22 is configured to obtain to-be-burned data.
[0088] The control module 23 is configured to:
[0089] analyze the to-be-burned data after entering the programming mode to obtain a command string corresponding to 0-4-bit data;
[0090] if it is determined according to a preset function corresponding to the command string that data strings need to be substituted, continue to analyze the to-be-burned data to obtain a data string corresponding to 0+8-bit data;
[0091] according to 7-bit program instruction data corresponding to the data string corresponding to the 8-bit data, respectively convert data strings after command strings corresponding to preset functions of writing high-byte data to a latch into program instruction data and burn the program instruction data into corresponding high bytes, and convert data strings after command strings corresponding to preset functions of writing low-byte data to the latch into program instruction data and burn the program instruction data into corresponding low bytes.
[0092] It should be noted that, as Figure 5 shown, since a communication port of a current mass-produced single-chip microcomputer product burning system is a 3-pin communication burning mode, a customer often needs to update a program on a PCB in application of the product, but since the 3-pin communication port burning mode needs to occupy 3 pins, it will cause a problem of insufficient use of control pins in application, so the application adopts a single-pin burning data writing device, which can improve the problem of insufficient use of control pins when updating on the board. Specifically, the burning data writing device communicates with the single-chip microcomputer through three wires of a power supply VDD, a ground (VSS) and data DATA, and completes burning and reading data.
[0093] Because the clock line is reduced in the burning interface, only three lines of power VDD, ground (VSS) and data DATA are left, and the power VDD and ground (VSS) can be shared, so the number of single-chip microcomputers burned by the burning machine at the same time can be increased by nearly one time.
[0094] Further, the data analysis module 21 is specifically configured to enter the programming mode when receiving four start communication bits STB signals.
[0095] Further, the control module 23 determines the data string to be substituted according to the preset function corresponding to the command string, and the preset function specifically includes:
[0096] receiving a command string corresponding to 0-4 bits;
[0097] analyzing the command string corresponding to the preset function by the string +1 method, and the preset function includes: starting erasing, stopping erasing, resetting address, increasing address, starting burning program, stopping burning program, writing low byte data to latch, writing high byte data to latch, setting mode, setting internal RC calibration latch, reading low byte data, and reading high byte data;
[0098] if the preset function is any one of writing low byte data to latch, writing high byte data to latch, setting mode, setting internal RC calibration latch, reading low byte data, or reading high byte data, it is determined that the data string corresponding to 0+8 bits of data needs to be substituted.
[0099] Further, the control module is further configured to:
[0100] if the command string corresponding to the preset function is writing low byte data to latch, the command string before the command string corresponding to the preset function of writing high byte data to latch must be parsed, otherwise the burning is stopped.
[0101] Further, the control module 23 is further configured to:
[0102] convert the data string after the command string corresponding to the preset function of writing high byte data to latch into program instruction data and latch the program instruction data into the corresponding high byte;
[0103] convert the data string after the command string corresponding to the preset function of writing low byte data to latch into program instruction data and latch the program instruction data into the corresponding low byte;
[0104] analyze the command string corresponding to the preset function of starting the burning program, so that the 14-bit program instruction data is burned at the same time;
[0105] analyze the command string corresponding to the preset function of stopping the burning program, and complete the burning.
[0106] In the embodiments of the present application, a burning data writing method and device are provided. For the data to be burned, the combination of a command string and a data string is used to distinguish the function mode and the data, so that new functions can be easily added or modified. Meanwhile, the 8-bit data corresponding to the data string will correspond to 7-bit program instruction data after being written into a latch, so that the program instruction data can be obtained directly according to the data string, the security of the data is improved, and the cost is low. The present application uses 14-bit program instruction data, which improves the efficiency of data burning and transmission compared with the commonly used 16-bit data.
[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0108] The terms "first", "second", "third", "fourth" and the like in the description of the present application and the above drawings, if any, are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0109] It should be understood that in the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, "A and / or B" can represent three cases of only A, only B and A and B existing at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of A, B or C can represent A, B, C, "A and B", "A and C", "B and C", or "A and B and C", where A, B and C can be single or multiple.
[0110] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. The division of the units is merely a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0111] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0112] In addition, each functional unit in the various embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0113] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art that makes a contribution or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), a magnetic disk or an optical disk, and various program code storage media.
[0114] The above-described embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A write method for writing data by burning, characterized by, The method comprises the following steps: S1, obtaining to-be-burned data; S2, parsing the to-be-burned data after entering a programming mode to obtain a command string corresponding to 0-4 bits; S3, if it is judged according to the command string that the preset function needs to be substituted into a data string, then the to-be-burned data is continuously parsed to obtain a data string corresponding to 0+8 bits of data; S4, according to 7-bit program instruction data corresponding to the data string of 8 bits of data, the data string after the command string corresponding to the preset function of writing high byte data into a latch is converted into program instruction data and burned into the corresponding high byte, and the data string after the command string corresponding to the preset function of writing low byte data into a latch is converted into program instruction data and burned into the corresponding low byte.
2. The write method of claim 1, wherein, Before the step S2, the method further comprises the following steps: If four start communication bits STB signals are received, then the programming mode is entered.
3. The write method of claim 1, wherein, The step of judging whether the preset function needs to be substituted into the data string according to the command string specifically comprises the following steps: Receiving a command string corresponding to 0-4 bits; Parsing the preset function of the command string through a string+1 method, and the preset function comprises the following functions: starting erasing, stopping erasing, resetting an address, increasing an address, starting a burning program, stopping a burning program, writing low byte data into a latch, writing high byte data into a latch, setting a mode, setting an internal RC calibration latch, reading low byte data, and reading high byte data; If the preset function is any one of writing low byte data into a latch, writing high byte data into a latch, setting a mode, setting an internal RC calibration latch, reading low byte data, or reading high byte data, then it is determined that the data string corresponding to 0+8 bits of data needs to be substituted.
4. The write method of claim 1, wherein The method further comprises the following steps: If the command string corresponds to the preset function of writing low byte data into a latch, then the command string before the command string must be parsed to correspond to the command string of the preset function of writing high byte data into a latch, otherwise, the burning is stopped.
5. The write method of claim 1, wherein, The step S4 specifically comprises the following steps: Converting the data string after the command string corresponding to the preset function of writing high byte data into a latch into program instruction data and latching the program instruction data into the corresponding high byte; Converting the data string after the command string corresponding to the preset function of writing low byte data into a latch into program instruction data and latching the program instruction data into the corresponding low byte; Parsing the command string corresponding to the preset function of starting a burning program, so that the program instruction data of 14 bits is burned at the same time; Parsing the command string corresponding to the preset function of stopping a burning program, and completing the burning.
6. A data write-once apparatus, characterized by comprising: The method comprises the following steps: A data parsing module, a buffer module, and a control module; The data parsing module is in communication connection with the buffer module; The buffer module is in communication connection with the control module; The data parsing module is used for judging whether a programming mode is entered; The buffer module is used for obtaining to-be-burned data; The control module is used for: Parsing the to-be-burned data after entering the programming mode to obtain a command string corresponding to 0-4 bits; If it is judged that the data string needs to be substituted according to the preset function corresponding to the command string, the to-be-burned data is continuously parsed to obtain the data string corresponding to 0+8-bit data; According to the 7-bit program instruction data corresponding to the data string corresponding to 8-bit data, the data string after the command string corresponding to the preset function of writing high byte data into a latch is converted into program instruction data and burned into the corresponding high byte, and the data string after the command string corresponding to the preset function of writing low byte data into a latch is converted into program instruction data and burned into the corresponding low byte.
7. The apparatus according to claim 6, wherein The data parsing module is specifically configured to enter a programming mode if 4 start communication bits STB signals are received.
8. The apparatus according to claim 6, wherein The control module judges whether the data string needs to be substituted according to the preset function corresponding to the command string, and specifically includes: receiving a command string corresponding to 0-4 bits; parsing the preset function of the command string through a string+1 method, and the preset function includes: starting erasing, stopping erasing, resetting address, increasing address, starting a burning program, stopping a burning program, writing low byte data into a latch, writing high byte data into a latch, setting mode, setting internal RC calibration latch, reading low byte data, and reading high byte data; If the preset function is any one of writing low byte data into a latch, writing high byte data into a latch, setting mode, setting internal RC calibration latch, reading low byte data, or reading high byte data, it is determined that the data string corresponding to 0+8-bit data needs to be substituted.
9. The write method of claim 6, wherein, The control module is further configured to: If the preset function corresponding to the command string is writing low byte data into a latch, the command string before the command string must be parsed to correspond to the preset function of writing high byte data into a latch, otherwise the burning is stopped.
10. The write method of claim 6, wherein, The control module is further configured to: convert the data string after the command string corresponding to the preset function of writing high byte data into a latch into program instruction data and latch it into the corresponding high byte; convert the data string after the command string corresponding to the preset function of writing low byte data into a latch into program instruction data and latch it into the corresponding low byte; parse the command string corresponding to the preset function of starting a burning program, so that the 14-bit program instruction data is burned at the same time; parse the command string corresponding to the preset function of stopping a burning program to complete the burning.
Citation Information
Patent Citations
Data burning method and system
CN103984583A
Data programming method, apparatus and device, and storage medium
CN108363579A