Chip burning method and burner

By using a pin adapter unit in conjunction with a DIP socket, the chip can be automatically detected and adapted to chips with different package types, solving the problems of high hardware cost and complex operation in existing technologies, and achieving an efficient and stable chip programming process.

CN120145980BActive Publication Date: 2025-11-25ZHUHAI HUGE IC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510232252.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-11-25
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

In the existing technology, the hardware cost is high, the management complexity is high and the operation is inconvenient when programming chips with various packaging forms, and special jumper boards need to be designed for each packaging form.

Method used

It adopts a pin adapter unit that includes DIP sockets and a main control chip. By automatically detecting the chip model and package type, it can flexibly adapt to the programming of chips with different package forms. Only the IC socket needs to be replaced to connect the programmer, reducing the use of jumper boards.

Benefits of technology

It simplifies the operation process, reduces production costs and management complexity, improves programming efficiency and stability, reduces the complexity and error rate of manual operation, and ensures the accurate transmission of programming data and the correct implementation of chip functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120145980B_ABST
    Figure CN120145980B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a chip burning method and a burner, and relates to the field of chip burning. The embodiment of the application realizes flexible adaptation to chips with different packaging forms by designing a pin adapter unit cooperating with a DIP socket and an IC socket. Without specially designing a jumper board for each chip packaging, the burner can be connected by only replacing the corresponding IC socket, thereby greatly simplifying the operation process, reducing production cost and management complexity. The pin adapter unit can automatically detect the chip and configure burning parameters, thereby reducing the complexity and error rate of manual operation and avoiding potential risks caused by jumper board problems. By accurately matching the chip pins and metal pin jacks and transmitting data based on a burning protocol, the embodiment of the application ensures accurate transmission of burning data and correct implementation of chip functions, thereby improving burning efficiency and stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of chip programming, and more particularly to a chip programming method and a programmer. Background Technology

[0002] In the integrated circuit industry, chip programming is an indispensable part of the electronic product manufacturing process. It involves downloading pre-written program code or data into the chip to give it specific functions or instructions. The traditional chip programming process typically includes the following key steps: First, the chip to be programmed needs to be accurately placed in a dedicated chip socket. This step ensures stable and reliable electrical contact between the chip and subsequent connecting components. Then, the chip socket is inserted into a dual in-line package (DIP) socket. DIP sockets, as a widely used interface standard, facilitate the connection between the chip and the programmer.

[0003] To achieve effective communication between the chip's programming port and the programmer's download port, a jumper board is typically used to connect the DIP connector to the programmer's download interface. As a flexible connection solution, the jumper board can be customized to achieve electrical signal transmission and conversion based on specific hardware layout and signal transmission requirements. This design not only enhances system flexibility but also facilitates switching between different chip models, adapting to diverse application scenarios.

[0004] However, with the rapid development of semiconductor technology, chips of the same model often adopt multiple package forms to meet the design requirements of different electronic devices, such as BGA (Ball Grid Array), QFP (Quad Flat Package), and SOP (Small Outline Package). Each package form differs in physical size, pin arrangement, and electrical characteristics. This requires the jumper board between the DIP socket and the programmer's download port to be specially designed according to the chip's package type to ensure the accuracy and efficiency of signal transmission. Therefore, if a chip model has multiple package forms, it means that a corresponding number of jumper boards are needed to adapt to different packages, which undoubtedly increases production costs, management complexity, and operational inconvenience. Summary of the Invention

[0005] This application provides a chip programming method and programmer, which can solve the problem of high hardware costs when programming chips with various packaging forms in the prior art. The technical solution is as follows:

[0006] In a first aspect, embodiments of this application provide a chip programming method applied to a chip programmer, the chip programmer comprising: a programming unit and a pin adapter unit; the pin adapter unit comprises a DIP socket and a main control chip, the DIP socket comprising two rows of distributed metal pin sockets, each pin socket being connected to a metal terminal, each metal terminal being connected to each IO pin of the main control chip, and the main control chip being connected to the programming unit;

[0007] The target chip to be programmed has N chip pins. The target chip is inserted into the DIP socket through an IC socket. The IC socket includes a socket body and N chip pin sockets. The N chip pins are connected one-to-one with the N chip pin sockets. Each chip pin socket is connected to a test terminal. Each test terminal is matched and connected to a corresponding metal pin socket in the DIP socket. The number of metal pin sockets in the DIP socket is greater than or equal to N, where N is an integer greater than 1.

[0008] When the pin adapter unit detects that the target chip is inserted into the DIP socket through the IC socket, it queries the occupied metal pin sockets in the DIP socket and obtains the chip model of the target chip, and sends the set of socket IDs of the occupied metal pin sockets and the chip model to the programming unit.

[0009] The programming unit determines the package type and programming protocol of the target chip according to the chip model, and determines the chip pins in the target chip that perform the programming function according to the package type, and filters out the corresponding socket ID subset from the socket ID set according to the metal pin sockets connected to the chip pins of the programming function in the DIP socket, and notifies the pin conversion unit of the programming protocol and the socket ID subset.

[0010] The programming unit acquires programming data and sends the programming data to the pin conversion unit;

[0011] The pin adapter unit receives programming data from the programming unit and transmits the programming data to the target chip through the metal pin socket indicated by the socket ID subset based on the programming protocol.

[0012] Secondly, embodiments of this application provide a programming unit and a pin conversion unit;

[0013] The pin adapter unit includes a DIP socket and a main control chip. The DIP socket includes two rows of multiple metal pin sockets, each pin socket is connected to a metal terminal, and each metal terminal is connected to each IO pin of the main control chip. The main control chip is connected to the programming unit.

[0014] The target chip to be programmed has N chip pins, and the target chip is inserted into the DIP socket through an IC socket; the IC socket includes a socket body and N chip pin sockets, and the N chip pins are connected one-to-one with the N chip pin sockets; each chip pin socket is connected to a test terminal, and each test terminal is matched and connected to a corresponding metal pin socket in the DIP socket; the number of metal pin sockets included in the DIP socket is greater than or equal to N, where N is an integer greater than 1;

[0015] The pin adapter unit is used to detect when the target chip is inserted into the DIP socket through the IC socket, query the occupied metal pin sockets in the DIP socket and obtain the chip model of the target chip, and send the set of socket IDs of the occupied metal pin sockets and the chip model to the programming unit.

[0016] The programming unit is used to determine the package type and programming protocol of the target chip according to the chip model, and to determine the chip pins in the target chip that perform the programming function according to the package type, and to filter out the corresponding socket ID subset from the socket ID set according to the metal pin sockets connected to the chip pins of the programming function in the DIP socket, and to notify the pin conversion unit of the programming protocol and the socket ID subset.

[0017] The pin adapter unit is also used to receive programming data from the programming unit and transmit the programming data to the target chip through the metal pin socket indicated by the socket ID subset based on the programming protocol.

[0018] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.

[0019] Fourthly, embodiments of this application provide a programmer, which may include: a processor and a memory; wherein the memory stores a computer program, the computer program being adapted to be loaded by the processor and to execute the above-described method steps.

[0020] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:

[0021] By designing a pin adapter unit that works in conjunction with DIP and IC sockets, flexible compatibility with chips in different packages is achieved. No jumper boards need to be designed specifically for each chip package; simply replacing the corresponding IC socket connects the programmer, greatly simplifying the operation process and reducing production costs and management complexity. The pin adapter unit can automatically detect the chip and configure programming parameters, reducing the complexity and error rate of manual operation, while avoiding potential risks caused by jumper board issues. By precisely matching chip pins with metal pin sockets and transmitting data based on the programming protocol, accurate transmission of programming data and correct implementation of chip functions are ensured, improving programming efficiency and stability. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of the programmer provided in the embodiments of this application;

[0024] Figure 2 This is a schematic flowchart of the chip programming method provided in the embodiments of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0026] like Figure 1 The diagram shown is a schematic diagram of the programmer provided in the embodiment of this application. The programmer includes a programming unit 1 and a pin adapter unit 2.

[0027] The programming unit is the core processing module of the chip programmer. It is responsible for receiving externally input programming data and selecting an appropriate programming protocol for data transmission based on the target chip's model and characteristics. The programming unit is connected to the main control chip in the pin adapter unit, which obtains information about the target chip and controls the transmission of programming data.

[0028] The pin adapter unit 2 consists of two parts: a DIP socket 22 and a main control chip 21.

[0029] The DIP socket has two rows of multiple metal pin holes, each connected to the I / O pins of the main control chip via metal terminals. These holes are used to match the pins of the target chip to achieve signal transmission. The main control chip is responsible for detecting the insertion status of the target chip, obtaining the target chip's model information, and communicating with the programming unit. The main control chip is connected to the programming unit, while the DIP socket is connected to the metal pins of the target chip (inserted through an IC socket) via test terminals.

[0030] The target chip has N chip pins, where N is an integer greater than 1. These pins are used for communication and data transmission with the programmer. The IC socket includes a socket body and N chip pin sockets, each socket being connected one-to-one with a pin of the target chip. The IC socket is used to secure and insert the target chip into the DIP socket.

[0031] The following will be combined with the appendix Figure 2 This application provides a detailed description of the chip programming method provided in its embodiments, with the execution entity being... Figure 1 The programmer in the middle.

[0032] Please see Figure 2 This is a schematic flowchart illustrating a chip programming method provided in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:

[0033] S201. When the pin conversion unit detects that the target chip is inserted into the DIP socket through the IC socket, it queries the occupied metal pin sockets in the DIP socket and obtains the chip model of the target chip, and sends the set of socket IDs of the occupied metal pin sockets and the chip model to the programming unit.

[0034] When the target chip is correctly inserted into a DIP (Dual In-line Package) socket via an IC socket, the key lies in the precise alignment and tight contact between the metal pin sockets within the socket and the pins of the target chip. This contact ensures the continuity and reliability of electrical signals. The metal pin sockets are typically made of conductive materials, such as copper alloys, which possess excellent conductivity and corrosion resistance. When the pins are inserted into the sockets, the minute gaps between them are filled, forming a stable electrical connection. This connection allows current and signals to flow freely between the pin adapter unit and the target chip.

[0035] The main control chip detects changes in these electrical connection states through built-in monitoring circuitry. This monitoring circuitry may include analog comparators, digital input pins, or dedicated interface circuitry. When a pin of the target chip establishes a connection with the pinhole of the DIP socket, it causes a change in voltage or current on the corresponding input pin of the main control chip. The main control chip uses these changes to detect the insertion of the target chip. Furthermore, the main control chip may also have debouncing capabilities to eliminate false detections caused by transient interference during pin insertion.

[0036] Once the insertion of the target chip is detected, the master control chip initiates a scanning process to identify which DIP sockets have established valid electrical connections with the target chip's pins. For example, if a high voltage is detected on a metal pin, it is determined to be occupied; if a low voltage is detected, it is determined to be idle. This process typically involves checking all relevant input pins of the master control chip one by one. The master control chip may have an array of registers or a state machine internally to record the occupancy status of each pin. By comparing these states with a preset pin layout pattern, the master control chip can infer the actual pin layout of the target chip.

[0037] To determine the model of the target chip, the main control chip attempts to read specific hardware identifiers on the chip. These identifiers may include specific pin combinations on the chip (such as model identification pins, configuration pins, etc.) or information stored in the chip's internal EEPROM (Electrically Erasable Programmable Read-Only Memory). For pin combinations, the main control chip checks the voltage level of specific pins; for EEPROM information, the main control chip may interact with the EEPROM via communication protocols such as I2C or SPI. After decoding, the read identifier information is matched against the chip database stored internally by the main control chip to identify the chip's model and specifications.

[0038] Once the occupied metal pin sockets and the target chip model are determined, the main control chip packages this information into a data structure. This data structure may include the chip model, pin layout, and other relevant configuration information. Then, the main control chip sends this information to the programming unit via an appropriate communication interface (such as UART, USB, Ethernet, etc.). Based on the received information, the programming unit can perform corresponding operations, such as writing program code to the target chip and verifying the writing results.

[0039] S202, the programming unit determines the package type and programming protocol of the target chip according to the chip model, and determines the chip pins in the target chip that perform the programming function according to the package type, and filters out the corresponding socket ID subset from the socket ID set according to the metal pin sockets connected to the chip pins of the programming function in the DIP socket, and notifies the pin conversion unit of the programming protocol and the socket ID subset.

[0040] When the programming unit receives the target chip's model information, it first consults its internal database or reference documentation. This database typically contains detailed information about various chip models, including package type, pin functions, and applicable programming protocols. The package type refers to the chip's physical packaging, which determines parameters such as chip size, pin arrangement, and pin spacing. Different package types have different requirements for the programming operation.

[0041] The programming protocol defines how data is transferred to the chip, typically including the data transfer format, rate, timing, and verification mechanisms. Different chip models may use different programming protocols; therefore, the programming unit needs to determine the applicable programming protocol based on the target chip's model information. These protocols may be provided by the chip manufacturer or defined by industry standards organizations.

[0042] Once the package type and programming protocol are determined, the programming unit can identify which pins on the target chip are used to perform the programming function. These pins typically include data transfer pins (for transmitting programming data), clock pins (for providing a clock signal to synchronize data transmission), and reset pins (for resetting the chip to its initial state to begin the programming process). These pins play a crucial role in the programming process, and their state changes directly affect the success or failure of the programming operation.

[0043] The programming unit filters out a subset of socket IDs from the known occupied metal pin sockets, selecting those corresponding to the pins used for programming. These socket IDs are unique identifiers for the metal pin sockets in the pin adapter unit, and they have a one-to-one correspondence with the pins of the target chip. By filtering these socket IDs, the programming unit can determine which sockets will be used for subsequent programming data transmission.

[0044] Next, the programming unit sends the selected subset of socket IDs and programming protocol to the main control chip of the pin adapter unit via the communication interface. This communication interface may be a wired interface (such as UART, USB, Ethernet, etc.) or a wireless interface (such as Bluetooth, Wi-Fi, etc.), depending on the physical connection method and communication protocol between the programming unit and the pin adapter unit.

[0045] After receiving information from the programming unit, the main control chip uses this information to configure its internal data transmission channels. This typically includes setting parameters such as data transmission format, rate, and timing to ensure they match the programming protocol. Furthermore, the main control chip needs to activate the corresponding pin adapter circuitry based on a subset of socket IDs to transmit programming data from the programming unit to the appropriate pins on the target chip.

[0046] During the configuration process, the main control chip may also need to perform a series of verification and testing operations to ensure the correctness and reliability of the data transmission channel. These verification and testing operations may include pin connectivity testing, data transmission rate testing, timing consistency testing, etc.

[0047] S203, the programming unit acquires programming data and sends the programming data to the pin conversion unit.

[0048] The programming unit typically obtains the programming data to be written to the target chip from an external source. These external sources may include computers, storage devices (such as hard drives, flash drives, SD cards, etc.), or networks. The method of data acquisition depends on the specific design of the programming unit and the availability of the external source. The programming unit may connect to a computer via USB, Ethernet, or other wired / wireless interfaces to read programming data from the computer's file system. The programming unit may have a built-in card reader or storage device interface (such as an SD card slot, USB interface, etc.) to read programming data directly from the storage device. The programming unit may support network communication protocols (such as FTP, HTTP, SCP, etc.) to download programming data from a remote server over a network.

[0049] Before sending the programming data to the pin adapter unit, the programming unit may need to perform a series of processing steps to ensure data integrity and accuracy. Programming data may be stored in various formats, such as text files, binary files, compressed packages, etc. The programming unit needs to convert this data into a format suitable for transmission and programming. For binary data, bit manipulation or byte alignment may be required. To ensure data integrity, the programming unit generates a checksum (such as a CRC checksum, hash value, etc.) and appends it to the end of the data packet. During transmission, the receiver (pin adapter unit) can use the same algorithm to verify that the received data matches the original data. The programming data may be encapsulated into multiple data packets, each containing a portion of the programming data and a corresponding checksum. This method helps with error detection and recovery during transmission.

[0050] After format conversion and verification, the programming unit sends the programming data to the main control chip of the pin adapter unit via a communication interface. This communication interface may be a wired interface (such as UART, SPI, I2C, USB, etc.) or a wireless interface (such as Bluetooth, Wi-Fi, etc.). The programming unit and the pin adapter unit need to follow specific communication protocols to ensure correct data transmission. These protocols may include data transmission format, rate, timing, and verification mechanisms. The programming unit sends data packets one by one to the main control chip of the pin adapter unit according to the requirements of the communication protocol. During transmission, the programming unit and the pin adapter unit perform a handshake operation to ensure that both are ready to receive / send data. If an error occurs during transmission (such as data packet loss, verification failure, etc.), the programming unit and the pin adapter unit will take appropriate error handling measures, such as retransmitting data packets or requesting a checksum.

[0051] After receiving the programming data, the main control chip, based on the subset of socket IDs and programming protocol information previously received from the programming unit, transmits the data to the target chip through the metal pin sockets in the DIP connector. The main control chip configures the corresponding pins to perform operations such as data transmission, clock signal provision, and reset, according to the programming protocol requirements. After pin configuration, the main control chip transmits the programming data to the target chip through the pins according to the timing and data format requirements of the programming protocol. This process may involve the transmission and verification of multiple data packets. Once all programming data has been successfully transmitted to the target chip, the main control chip sends an acknowledgment signal to the programming unit, indicating that the programming process is complete. At this point, the programming unit may perform additional verification operations to confirm the correctness of the programming result.

[0052] S204 The pin transfer unit receives programming data from the programming unit and transmits the programming data to the target chip through the metal pin socket indicated by the socket ID subset based on the programming protocol.

[0053] The main control chip parses the received data packets according to the communication protocol agreed upon with the programming unit. This includes identifying the start and end markers of the data packets, extracting the programming data and checksum from the data packets, etc. To ensure the correctness of the data, the main control chip uses the same verification algorithm as the programming unit to verify the received data. This typically involves calculating the checksum of the received data and comparing it with the checksum in the data packet. If they match, the data is considered correct; if they do not match, it may be necessary to request the programming unit to retransmit the data packet. After confirming that the data is correct, the main control chip transmits the programming data to the target chip through the metal pin sockets in the DIP socket, according to the programming protocol and pin configuration information, using a specific timing and signal format.

[0054] For many chips, programming data is transmitted via a serial interface (such as SPI, I2C, etc.). In this case, the master chip sends the data bit by bit to the target chip according to the timing specified by the protocol. To ensure correct data transmission, the master chip provides a clock signal to the target chip. This clock signal controls the data transmission rate and timing. The target chip receives data synchronously according to this clock signal. Before starting data transmission, the master chip may send a reset signal to the target chip to reset it to its initial state. This helps ensure that the target chip is in the correct state when receiving data.

[0055] After receiving the programming data, the target chip writes the data to the designated memory area according to its internal logic circuits and storage mechanisms. The target chip first decodes the received data, converting it from serial to parallel format (if necessary), and identifies information such as the data type and address. Based on the data type and address information, the target chip calculates which memory area the data should be written to. This typically involves parsing and calculating the chip's internal memory structure. Once the data storage location is determined, the target chip writes the data to the corresponding memory cell. This process may involve multiple steps, such as data buffering, execution of the write operation, and confirmation of write completion. Once all programming data has been successfully transmitted and written to the target chip, the programming process is complete. At this point, the target chip contains the required program code or data and is ready for subsequent testing, verification, or deployment.

[0056] After programming, the target chip is typically tested and verified to ensure its functionality and performance meet expectations. This may include functional testing, performance testing, and stability testing. If the tests and verifications pass, the target chip can then be deployed in real-world applications.

[0057] For example, chip model: Suppose the target microcontroller chip is model MCU_008.

[0058] Number of pins: 8, arranged in a 2×4 pattern, i.e., two rows and four columns. This means that there are two rows of pins on the top of the chip, with 4 pins in each row, for a total of 8 pins used for communication with external devices (such as programmers).

[0059] Number of metal pin sockets: 28, arranged in a 2×14 configuration (two rows and fourteen columns). This configuration provides enough sockets to accommodate chips with varying pin counts while ensuring compatibility with the target chip (MCU_008), even if the target chip has a smaller pin count. The DIP socket design allows the target chip's pins to be inserted one-to-one into the corresponding sockets. In this example, although the target chip has only 8 pins, a portion of the 28 DIP sockets (specifically those corresponding to the target chip's pin positions) will be used.

[0060] The target chip MCU_008 is correctly aligned with its pins and inserted into the DIP socket. Since the chip pins are arranged in a 2×4 configuration, the corresponding two rows and four columns of sockets will be occupied. The main control chip of the pin adapter unit detects the insertion of the MCU_008 chip and begins to identify the chip model and the occupied metal pin sockets. The main control chip identifies the MCU_008 chip model and determines that the chip has 8 pins arranged in a 2×4 configuration. The main control chip sends the set of IDs of the occupied metal pin sockets (in this example, possibly the set of IDs representing the positions of the two rows and four columns of sockets) and the chip model to the programming unit. The programming unit determines the package type and applicable programming protocol (e.g., SPI, I2C, or proprietary protocol) based on the MCU_008 chip model. The programming unit further identifies the chip pins that perform the programming function (e.g., pins used for data transmission, such as MOSI, MISO, SCK, etc.) and finds the corresponding socket IDs for these pins in the DIP socket. The programming unit notifies the master control chip of the pin conversion unit of the programming protocol and a subset of DIP socket IDs corresponding to the programming function pins of the target chip. Based on the received information, the master control chip prepares to receive programming data from the programming unit. The programming data is transmitted to the programming function pins of the MCU_008 chip through the corresponding metal pin sockets in the DIP sockets, according to the defined programming protocol. Once all programming data has been successfully transmitted to the MCU_008 chip, the programming process is complete. At this point, the target chip contains the required program code or data.

[0061] Through the examples above, we can clearly see that even if the target chip has a small number of pins (such as 8 in this example), the chip programmer can still work efficiently. The DIP socket provides enough holes to accommodate chips of different sizes, while the programming unit and pin conversion unit can intelligently identify the chip model, determine the programming protocol and pins, and safely and accurately transmit the programming data to the target chip.

[0062] This application specifically includes the following beneficial effects:

[0063] By designing a pin adapter unit that includes DIP sockets and a main control chip, along with an IC socket for use with it, this solution can flexibly adapt to chips with different package types. The one-to-one connection design between the IC socket and the DIP socket allows chips of different package types to be connected to the programmer simply by changing the corresponding IC socket, eliminating the need to design jumper boards specifically for each package type.

[0064] The pin-adapter unit can automatically detect when a target chip is inserted into a DIP socket, query the occupied metal pin sockets, and obtain the chip model. The programming unit determines the package type and programming protocol based on the chip model, further identifies the chip pins for the programming function, and selects the corresponding metal pin sockets. This process automates identification and configuration, reducing the complexity and error rate of manual operation.

[0065] This solution significantly simplifies the operation process and reduces production costs and management complexity by eliminating the need for dedicated jumper boards for each chip package type. Furthermore, reducing the use of jumper boards also mitigates potential risks arising from improper jumper board design or damage.

[0066] By precisely matching the connection between the chip pins and the metal pin sockets, and through data transmission based on the programming protocol, this solution ensures accurate transmission of programming data and correct implementation of chip functions. This not only improves programming efficiency but also enhances the stability and reliability of the programming process.

[0067] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0068] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A chip programming method, characterized in that, This is applied to a chip programmer, which includes a programming unit and a pin adapter unit. The pin adapter unit includes a DIP socket and a main control chip. The DIP socket includes multiple metal pin holes arranged in two rows. Each pin hole is connected to a metal terminal. Each metal terminal is connected to each IO pin of the main control chip. The main control chip is connected to the programming unit. The target chip to be programmed has N chip pins. The target chip is inserted into the DIP socket through an IC socket. The IC socket includes a socket body and N chip pin sockets. The N chip pins are connected one-to-one with the N chip pin sockets. Each chip pin socket is connected to a test terminal. Each test terminal is matched and connected to a corresponding metal pin socket in the DIP socket. The number of metal pin sockets in the DIP socket is greater than or equal to N, where N is an integer greater than 1. When the pin adapter unit detects that the target chip is inserted into the DIP socket through the IC socket, it queries the occupied metal pin sockets in the DIP socket and obtains the chip model of the target chip, and sends the set of socket IDs of the occupied metal pin sockets and the chip model to the programming unit. The programming unit determines the package type and programming protocol of the target chip according to the chip model, and determines the chip pins in the target chip that perform the programming function according to the package type, and filters out the corresponding socket ID subset from the socket ID set according to the metal pin sockets connected to the chip pins of the programming function in the DIP socket, and notifies the pin conversion unit of the programming protocol and the socket ID subset. The programming unit acquires programming data and sends the programming data to the pin conversion unit; The pin adapter unit receives programming data from the programming unit and transmits the programming data to the target chip through the metal pin socket indicated by the socket ID subset based on the programming protocol.

2. The method according to claim 1, characterized in that, When the pin adapter unit detects that the voltage level on a certain metal pin socket in the DIP socket is high, it determines that the metal pin socket is occupied.

3. The method according to claim 1 or 2, characterized in that, The step of obtaining the chip model of the target chip includes: The chip model can be read from the EEPROM of the target chip via the I2C or SPI protocol.

4. The method according to claim 3, characterized in that, The programming unit uses a verification algorithm to generate a verification code corresponding to the programming data, and adds the verification code to the programming data and sends it to the pin conversion unit. The pin conversion unit parses the received programming data to obtain a check code, and uses the verification algorithm to calculate the check code corresponding to the received programming data. It compares whether the parsed check code and the calculated check code are the same. If they are the same, the received programming data is transmitted to the target chip.

5. The method according to claim 1, 2, or 4, characterized in that, The programming protocol is either the IIC protocol or the SPI protocol.

6. A programmer, characterized in that, include: Programming unit and pin adapter unit; The pin adapter unit includes a DIP socket and a main control chip. The DIP socket includes two rows of multiple metal pin sockets, each pin socket is connected to a metal terminal, and each metal terminal is connected to each IO pin of the main control chip. The main control chip is connected to the programming unit. The target chip to be programmed has N chip pins, and the target chip is inserted into the DIP socket through an IC socket; the IC socket includes a socket body and N chip pin sockets, and the N chip pins are connected one-to-one with the N chip pin sockets; each chip pin socket is connected to a test terminal, and each test terminal is matched and connected to a corresponding metal pin socket in the DIP socket; the number of metal pin sockets included in the DIP socket is greater than or equal to N, where N is an integer greater than 1; The pin adapter unit is used to detect when the target chip is inserted into the DIP socket through the IC socket, query the occupied metal pin sockets in the DIP socket and obtain the chip model of the target chip, and send the set of socket IDs of the occupied metal pin sockets and the chip model to the programming unit. The programming unit is used to determine the package type and programming protocol of the target chip according to the chip model, and to determine the chip pins in the target chip that perform the programming function according to the package type, and to filter out the corresponding socket ID subset from the socket ID set according to the metal pin sockets connected to the chip pins of the programming function in the DIP socket, and to notify the pin conversion unit of the programming protocol and the socket ID subset. The pin adapter unit is also used to receive programming data from the programming unit and transmit the programming data to the target chip through the metal pin socket indicated by the socket ID subset based on the programming protocol.

7. The programmer according to claim 6, characterized in that, The main control chip has a built-in monitoring circuit, which is used to determine that the metal pin socket is occupied when the level of the metal pin socket is high.

Citation Information

Patent Citations

  • Burner with chip test function and burning method thereof

    CN102568580A

  • Multifunctional simple ox horn burning packaging adapter plate

    CN218163025U