PCBA (Printed Circuit Board Assembly) program burning and checking integrated device and method

By designing a PCBA integrated device with integrated recording and inspection functions, and using components such as main control microcontrollers to achieve automated recording and inspection, the problems of low efficiency and low accuracy in the existing technology are solved, and production efficiency is improved and costs are reduced.

CN119780658APending Publication Date: 2025-04-08CASHWAY FINTECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311283508.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The existing PCBA burning and inspection methods are inefficient, low in accuracy, and frequent manual interventions, resulting in high production efficiency and cost.

Method used

Design an integrated device for PCBA program recording and inspection, and use the main control microcontroller, improved recorder, electronic switch, USB transmission circuit, voltage acquisition circuit, signal transmission circuit and other components to achieve automatic identification, fast and accurate program recording and comprehensive and accurate quality inspection, and reduce manual intervention.

Benefits of technology

It realizes automatic recording and inspection of PCBA, improves production efficiency, reduces labor costs, and ensures the accuracy and consistency of inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119780658A_ABST
    Figure CN119780658A_ABST
Patent Text Reader

Abstract

The invention provides a PCBA program burning and checking integrated device and method. The integrated device is used for checking and burning a PCBA to be tested. A preset communication protocol is built in the master control single-chip microcomputer and is used for checking and burning the PCBA to be tested; wherein the inspection comprises voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; the integrated device communicates with the PCBA to be tested through the USB transmission circuit, the voltage acquisition circuit and the signal transmission circuit. According to the technology, the program can be automatically identified, quickly and accurately burnt, meanwhile, whether the PCBA has quality problems or not is comprehensively and accurately checked, and manual intervention, working hours and cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip detection, and in particular to an integrated device and method for PCBA program burning and inspection. Background Art

[0002] At present, the burning and inspection of PCBA are generally based on the following three methods, and each has its own disadvantages.

[0003] First, manually test the PCBA for function and burn the program. The disadvantage of this method is that workers need to frequently plug in and out, observe and compare the output waveforms one by one with the naked eye, and check the computer output results, which makes the production and assembly efficiency of the product low. In addition, manual burning and inspection often result in false detection and missed detection. This method is not only time-consuming and labor-intensive, but also has very high labor costs.

[0004] Second: Another way to inspect PCBA is automated assembly line inspection, which is fast and efficient, but expensive.

[0005] Third: Most of the popular PCBA inspection devices on the market are simple probe contact type. Although this method replaces the cumbersome plug-in process, it is still just a structural part and still requires manual inspection and burning. Moreover, the inspection efficiency and accuracy are still not high. Summary of the invention

[0006] Based on this, the purpose of the present invention is to provide an integrated device and method for PCBA program burning and inspection. The technology can automatically identify, quickly and accurately burn the program, and comprehensively and accurately inspect whether the PCBA has quality problems, and reduce manual intervention, reduce working hours and reduce costs.

[0007] In a first aspect, an embodiment of the present invention provides an integrated device for PCBA program burning and inspection, wherein the integrated device is used to inspect and burn a PCBA to be tested; the integrated device comprises: a main control microcontroller, and also comprises an improved burner, a main switch, a first electronic switch, a second electronic switch, a USB transmission circuit, a voltage acquisition circuit, a signal transmission circuit, a digital tube, a buzzer, a burning start button and a first indicator light respectively connected to the main control microcontroller; the main control microcontroller has a preset communication protocol built in, which is used to inspect and burn the PCBA to be tested; wherein the inspection comprises voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; the integrated device communicates with the PCBA to be tested through the USB transmission circuit, the voltage acquisition circuit and the signal transmission circuit.

[0008] Furthermore, the main control microcontroller includes: a GPIO interface, an ADC, an STLINK interface, a TIME timer, and an OTG interface, and the GPIO interface includes a first pin, a second pin, a pin A27, and a pin A28.

[0009] Furthermore, the PCBA to be tested includes multiple chips, a DC motor, a photoelectric sensor, a program indicator light, a USB interface, a motor interface, and a power supply interface.

[0010] Furthermore, the voltage acquisition circuit is respectively connected to the power supply interface and the ADC, and the ADC is also connected to the first electronic switch; the ADC is used to check whether the voltage of the important voltage point of the PCBA to be tested is qualified through the voltage acquisition circuit; if the ADC detects that the voltage does not meet the requirements, the ADC notifies the first electronic switch to disconnect to protect the PCBA to be tested from being burned.

[0011] Furthermore, the signal transmission circuit is connected to the TIME timer and the motor interface respectively; the TIME timer is used to obtain the digital pulse signal of the PCBA to be tested through the signal transmission circuit and the motor interface to check the correctness of the digital pulse signal; if the digital pulse signal is incorrect, the main control microcontroller is used to prompt the fault code through the digital tube and prompt the operator through the buzzer.

[0012] Furthermore, the USB transmission circuit is connected to the OTG interface and the USB interface respectively; the main control microcontroller is used to query the version number of the burned program through the OTG interface, the USB transmission circuit and the USB interface; if the version number of the burned program is consistent with the target version number, it is considered qualified, otherwise the erroneous program is deleted and re-burned.

[0013] Furthermore, the signal transmission circuit is connected to the photoelectric sensor and the OTG interface respectively; the main control microcontroller is used to input a signal to the photoelectric sensor of the PCBA to be tested through the OTG interface and the signal transmission circuit, so that the photoelectric sensor performs a first action specified in the input signal to check whether the function of the PCBA to be tested is normal.

[0014] Furthermore, the USB transmission circuit is connected to the OTG interface and the USB interface respectively, and the USB interface is also connected to the DC motor; the main control microcontroller is used to send a specific dedicated communication protocol to the DC motor through the OTG interface, the USB transmission circuit and the USB interface, so that the DC motor performs the second action according to the content of the dedicated communication protocol.

[0015] Furthermore, the USB interface is also connected to the chip; the main control microcontroller is used to send an acquisition instruction to the chip through the OTG interface, the USB transmission circuit and the USB interface, so that each chip returns the return value to the main control microcontroller.

[0016] In a second aspect, an embodiment of the present invention provides a method for burning and inspecting a PCBA program, which is applied to the integrated device, and includes: S1: if the main control microcontroller detects that the PCBA to be tested is correctly connected to the integrated device, then detect whether the internal circuit of the PCBA to be tested is abnormal; S2: the main control microcontroller calls the first electronic switch to realize power supply or power-off protection of the PCBA according to the internal circuit of the PCBA; S3: the main control microcontroller automatically identifies whether the PCBA to be tested has been burned with a program, if not, the program is automatically burned by an improved burner, and if the program has been burned, S4 is executed; S4: the main control microcontroller realizes qualified detection of the PCBA to be tested based on ADC, TIME timer, and OTG interface, wherein the above qualified detection is divided into six types: voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; S5: the main control microcontroller displays the result of the PCBA to be tested through a digital tube, and ends the prompt through a buzzer.

[0017] The beneficial effects of the embodiments of the present invention are as follows: 1. This application conducts qualification testing on PCBA through ADC, TIME timer, USB OTG interface, GPIO interface, signal transmission circuit, electronic switch, and formulation of special communication protocol of single-chip microcomputer. Qualification testing includes voltage detection, signal detection, program detection, first action detection, second action detection and return value detection.

[0018] 2. The integrated device of this application uses the single-chip microcomputer GD32F105ZET6 with USBOTG function. OTG means data exchange between USB devices without computer operation. The addition of USB OTG function in this application is separated from the computer and liberated from the operator. At the same time, through the customized dedicated communication protocol, it solves the data communication problem between the integrated device and PCBA.

[0019] 3. The present invention makes innovative improvements to the popular atomic offline burner on the market. The main control microcontroller can automatically identify whether the PCBA has been burned and automatically burn the problem through technical means such as STLINK interface and protocol, electronic switch, signal detection, etc.

[0020] Other features and advantages of the present invention will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present invention.

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic diagram of an integrated device for PCBA program burning and testing provided by an embodiment of the present invention; Figure 2 A schematic diagram of another integrated device for PCBA program burning and testing provided by an embodiment of the present invention; Figure 3 A block diagram of the internal working principle of a PCBA program burning and inspection integrated device provided by an embodiment of the present invention; Figure 4 A flowchart of a method for burning and testing a PCBA program provided by an embodiment of the present invention; Figure 5 A circuit schematic diagram of a first electronic switch provided in an embodiment of the present invention; Figure 6 A circuit schematic diagram of a main control microcontroller provided in an embodiment of the present invention; Figure 7 A schematic diagram of an ADC detection circuit provided by an embodiment of the present invention; Figure 8 A circuit schematic diagram of a USB provided by an embodiment of the present invention. Implementation

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example

[0026] The present embodiment provides an integrated device for PCBA program burning and inspection, and the integrated device is used to inspect and burn the PCBA to be tested; the integrated device includes: a main control microcontroller, and also includes an improved burner, a main switch, a first electronic switch, a second electronic switch, a USB transmission circuit, a voltage acquisition circuit, a signal transmission circuit, a digital tube, a buzzer, a burning start button and a first indicator light respectively connected to the main control microcontroller; the main control microcontroller is built with a preset communication protocol, which is used to inspect and burn the PCBA to be tested; wherein the inspection includes voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; the integrated device communicates with the PCBA to be tested through the USB transmission circuit, the voltage acquisition circuit and the signal transmission circuit.

[0027] The above-mentioned master microcontroller includes: a GPIO interface, an ADC, an STLINK interface, a TIME timer, and an OTG interface. The above-mentioned GPIO interface includes a first pin, a second pin, a pin A27, and a pin A28.

[0028] The PCBA to be tested includes multiple chips, a DC motor, a photoelectric sensor, a program indicator light, a USB interface, a motor interface, and a power supply interface.

[0029] The voltage acquisition circuit is respectively connected to the power supply interface and the ADC, and the ADC is also connected to the first electronic switch; the ADC is used to check whether the voltage of the important voltage point of the PCBA to be tested is qualified through the voltage acquisition circuit; if the ADC detects that the voltage does not meet the requirements, the ADC notifies the first electronic switch to disconnect, so as to protect the PCBA to be tested from being burned.

[0030] The signal transmission circuit is connected to the TIME timer and the motor interface respectively; the TIME timer is used to obtain the digital pulse signal of the PCBA to be tested through the signal transmission circuit and the motor interface to check the correctness of the digital pulse signal; if the digital pulse signal is incorrect, the main control microcontroller is used to prompt the fault code through the digital tube and prompt the operator through the buzzer.

[0031] The USB transmission circuit is connected to the OTG interface and the USB interface respectively; the main control microcontroller is used to query the version number of the burned program through the OTG interface, the USB transmission circuit and the USB interface; if the version number of the burned program is consistent with the target version number, it is considered qualified, otherwise the erroneous program is deleted and burned again.

[0032] The present application makes the following improvements to the existing programmer: Improvement 1: Connect the second electronic switch 12 to the power supply inside the improved programmer 11. Improvement 2: Connect the programming start button 8 to the improved programmer 11. Improvement 3: Connect the STLINK interface 16 to the improved programmer 11. Improvement 4: Connect the A28 pin and the C27 pin to the improved programmer 11. The signal transmission circuit is connected to the photoelectric sensor and the OTG interface respectively; the main control microcontroller is used to input a signal to the photoelectric sensor of the PCBA to be tested through the OTG interface and the signal transmission circuit, so that the photoelectric sensor performs the first action specified in the above input signal to check whether the function of the PCBA to be tested is normal.

[0033] The USB transmission circuit is connected to the OTG interface and the USB interface respectively, and the USB interface is also connected to the DC motor; the main control microcontroller is used to send a specific dedicated communication protocol to the DC motor through the OTG interface, the USB transmission circuit and the USB interface, so that the DC motor performs the second action according to the content of the dedicated communication protocol.

[0034] The USB interface is also connected to the chip; the main control microcontroller is used to send an acquisition instruction to the chip through the OTG interface, the USB transmission circuit and the USB interface, so that each chip returns the above return value to the main control microcontroller.

[0035] Finally, let's reiterate the specific technical problems and beneficial effects that this application can solve: How to automatically identify, quickly and accurately burn the program, and comprehensively and accurately check whether the PCBA has quality problems, and reduce manual intervention, reduce working hours and costs.

[0036] The first problem to be solved in this application is how to automatically inspect PCBA. In order to solve this problem, the present invention uses a single-chip microcomputer, and the selected main control single-chip microcomputer model is GD32F105ZET6. The single-chip microcomputer is selected because it has a fast processing speed, rich interface resources, and low cost, which can meet the needs without wasting resources.

[0037] The second problem to be solved in this application is how to implement the qualification test of PCBA. The technical means used are: this application performs qualification test on PCBA through ADC, TIME timer, USB OTG interface, GPIO interface, signal transmission circuit, electronic switch, formulation of special communication protocol, etc. of single-chip microcomputer. Qualification test includes voltage detection, signal detection, program detection, first action detection, second action detection and return value detection.

[0038] The third problem to be solved in this application is how to make the PCBA and the main control microcontroller of the integrated device of this application exchange data while being free from the constraints of the computer. Considering that the PCBA has a common USB interface, the integrated device of this application chooses to use the microcontroller GD32F105ZET6 with USBOTG function. OTG means data exchange between USB devices without computer operation. The addition of USB OTG function in this application is free from the computer and liberates the operator. At the same time, through the customized special communication protocol, it solves the data communication problem between the integrated device and PCBA.

[0039] The fourth problem to be solved in this application is how to automatically identify whether the PCBA has been burned and how to burn it. Under the current technology, most PCBAs are equipped with single-chip microcomputers, ARM, FPGA devices, etc. The production of PCBAs needs to solve the burning problem, and most of them are burned manually, which requires a computer to be configured for burning, and it is impossible to automatically identify whether it has been burned, and the labor cost is huge. Based on this, the present invention has made innovative improvements to the popular atomic offline burner on the market. The main control microcontroller can realize automatic identification of whether the PCBA has been burned and automatic burning through technical means such as STLINK interface and protocol, electronic switch, signal detection, etc.

[0040] The fifth problem to be solved in this application is how to display the test results. The present invention uses a digital tube + buzzer method, which is low-cost, easy to identify, and greatly reduces the complexity of manual operation.

[0041] Beneficial effects of this embodiment: The integrated device of the present application takes about 30 seconds to fully inspect and burn a PCBA. Taking human body functions into consideration, if one unit is inspected in one minute, one person can inspect at least 400-480 units in an 8-hour workday, which greatly improves work efficiency and significantly reduces labor costs. Example

[0042] based on Figure 1 The present application provides a method for burning and testing a PCBA program, such as Figure 4 is a flow chart of a method, the method comprising: S1: If the main control microcontroller 100 detects that the PCBA 200 to be tested is correctly connected to the integrated device, it detects whether the internal circuit of the PCBA 200 to be tested is abnormal.

[0043] Here, the operator needs to connect the PCBA 200 to be tested to the integrated device through the probe, and turn on the main switch 7 (only required for the first use). Regardless of whether the operator correctly connects the PCBA 200 to be tested to the integrated device, as long as the main switch 7 is turned on, the main control microcontroller 100 starts the "automatic detection mode".

[0044] Specifically, in the S1 process, 1) if the operator makes an error when inserting the PCBA 200 to be tested into the integrated device (in layman's terms, the probe is not inserted into the corresponding position or is inserted into the wrong position), the preset recognition program in the main control microcontroller 100 can determine that a "position access" error has occurred. At this time, the operator is prompted to make corrections through the first indicator light 17, the digital tube 9 and the buzzer 10. In this state, the integrated device does not supply power to the PCBA 200 to be tested to avoid operating errors and human damage to the PCBA 200 to be tested.

[0045] 2) After turning on the main switch 7, the main control microcontroller 100 will start the "automatic detection mode", that is, continuously identify the PCBA 200 to be tested. If the main control microcontroller 100 detects that the operator has not placed the PCBA 200 to be tested, it will not perform any operation and continue to wait. In this state, the integrated device does not supply power to the PCBA 200 to be tested until the operator connects the PCBA 200 to be tested to the integrated device and then executes S2. The connection relationship is: the power supply 6 is connected to the main control microcontroller 100 and the first electronic switch 5 respectively, and the main control microcontroller 100 can control the closing of the first electronic switch 5, thereby realizing power-off protection for the PCBA 200 to be tested.

[0046] In S1, the step of detecting whether the internal circuit of the PCBA 200 to be tested has an abnormality includes: the ADC2 of the main control microcontroller 100 obtains the status of the internal circuit of the PCBA 200 through the voltage acquisition circuit 14 and the power supply interface 24, and determines whether the internal circuit has an abnormality based on the status.

[0047] S2: The main control microcontroller 100 calls the first electronic switch 5 to implement power supply or power-off protection for the PCBA 200 according to the internal circuit conditions of the PCBA 200.

[0048] 2-1: If the internal circuit of the PCBA 200 to be tested has no abnormality (no open circuit, short circuit, etc.), the main control microcontroller 100 controls the first electronic switch 5 to be turned on through the GPIO interface 1, so that the power supply 6 supplies power to the PCBA 200 to be tested. Connection relationship: The GPIO interface 1 is connected to the first electronic switch 5.

[0049] 2-2: If an abnormality occurs in the internal circuit of the PCBA 200 to be tested during the operation, the main control microcontroller 100 controls the first electronic switch 5 to be turned off through the GPIO interface 1, thereby realizing power-off protection for the PCBA 200 to be tested.

[0050] The use of the first electronic switch 5 eliminates manual intervention and enables power on or off to be completed automatically. This technology also well protects the PCBA 200 to be tested, thereby preventing the PCBA 200 to be tested from being burned and causing secondary damage.

[0051] S3: The main control microcontroller 100 automatically identifies whether the PCBA 200 to be tested has been programmed. If not, the program is automatically programmed by the improved programmer 11. If it has been programmed, S4 is executed.

[0052] Here, the present application makes the following improvements to the existing programmer: Improvement 1: Connect the second electronic switch 12 to the power supply inside the improved burner 11.

[0053] Improvement 2: Connect the burning start button 8 to the improved burner 11.

[0054] Improvement 3: Connect the STLINK interface 16 to the improved burner 11.

[0055] Improvement 4: A28 pin and C27 pin are connected to the improved burner 11.

[0056] Here, the integrated device controls the STLINK interface 16 and the protocol therein for burning through the burning start button 8, the second electronic switch 12, the pin A28 and the pin C27, and the STLINK interface 16 is connected to the improved burner 11, and is also connected to the PCBA 200 to be tested. The program files required for burning are saved in advance by the R&D technicians in the internal ROM of the improved burner 11.

[0057] Specifically, S3 includes: 3-1: The main control microcontroller 100 detects whether the level of the program running indicator light 27 of the PCBA 200 to be tested has changed compared with the preset level through the first pin 101 and the second pin 102 (i.e., APP_CHECK_RED, APP_CHECK_GREEN) on the GIPO interface 1. If the level has changed, it means that the program has been burned, otherwise it is determined that the program has not been burned. Connection relationship: The first pin 101 and the second pin 102 are connected to the program running indicator light 27.

[0058] Specifically, a program status value is preset inside the main control microcontroller 100, and the sampling status value of the program indicator light 27 of the PCBA 200 to be tested can be compared with the preset program status value to check whether the current PCBA 200 to be tested has been burned with the program.

[0059] 3-2: If the PCBA 200 to be tested does not have a burning program, the main control microcontroller 100 prompts the operator to press the burning start button 8 through the digital tube 9 and the buzzer 10.

[0060] 3-3: After the main control microcontroller 100 receives the information of pressing the burn start button 8, it turns on the second electronic switch 12, so that the power supply 6 supplies power to the improved burner 11. After power is turned on, the improved burner 11 will automatically burn the program to the chip 21. Connection relationship: The second electronic switch 12 is respectively connected to the main control microcontroller 100 and the improved burner 11, and the improved burner 11 is connected to the chip 21.

[0061] 3-4: During the programming process, the main control microcontroller 100 determines whether the programming process is completed by real-time detection of the electrical levels of pins A28 and C27.

[0062] Specifically, if the A28 display pin level is low, it means that the programming is faulty, and if the C27 display pin level is low, it means that the programming is completed correctly. If the pin A28 and the pin C27 levels are both high, it means that the programming is in progress.

[0063] 3-5: If the burning is completed, the main control microcontroller 100 displays the burning result through the digital tube 9 and automatically enters the next detection step.

[0064] S4: The main control microcontroller 100 implements a qualified detection of the PCBA 200 to be tested based on the ADC 2, the TIME timer 3 and the OTG interface 4, wherein the qualified detection is divided into six types: voltage detection, signal detection, program detection, first action detection, second action detection and return value detection.

[0065] The qualification test of S4 is one of the innovative points of this application.

[0066] The first type, voltage detection: ADC2 checks whether the voltage of important voltage points of the PCBA200 to be tested is qualified through the voltage acquisition circuit 14, such as 24V, 5V, 3.3V and other important voltage points. Once ADC12 detects that the voltage does not meet the requirements, ADC12 notifies the first electronic switch 5 to disconnect to protect the PCBA200 to be tested from being burned.

[0067] Similarly, a voltage threshold is preset in the main control microcontroller 100 to determine whether the voltage is qualified.

[0068] Second, signal detection: The TIME timer 3 obtains the digital pulse signal of the PCBA 200 to be tested through the signal transmission circuit 15 and the motor interface 23 to check the correctness of the digital pulse signal. Specifically, the correctness of the frequency and amplitude of the digital pulse signal is checked.

[0069] If the digital pulse signal is incorrect, the main control microcontroller 100 prompts the fault code through the digital tube 9 and prompts the operator through the buzzer 10.

[0070] The beneficial effect of this technology is that it avoids false detection and missed detection during manual inspection.

[0071] The third type, program detection: The main control microcontroller 100 queries the version number of the burned program through the OTG interface 4, the USB transmission circuit 10 and the USB interface 22. If the version number of the burned program is consistent with the target version number, it is considered qualified, otherwise the wrong program is deleted and burned again.

[0072] Fourth, first motion detection: The main control microcontroller 100 inputs a signal to the photoelectric sensor 26 of the PCBA 200 to be tested through the OTG interface 4 and the signal transmission circuit 15, so that the photoelectric sensor 26 performs the first action specified in the input signal, so as to achieve the purpose of checking whether the function of the PCBA 200 to be tested is normal.

[0073] Specifically, if the photoelectric sensor 26 performs the action specified in the input signal, the first action detection result is qualified.

[0074] Fifth, second motion detection: The main control microcontroller 100 sends a specific dedicated communication protocol to the DC motor 25 through the OTG interface 4, the USB transmission circuit 10 and the USB interface 22, so that the DC motor 25 performs the second action according to the content of the dedicated communication protocol.

[0075] For example, a command may be sent to instruct the DC motor 25 to reverse to perform a qualified detection of the second action.

[0076] Sixth, return value detection: The main control microcontroller 100 sends an acquisition instruction to the chip 21 through the OTG interface 4 , the USB transmission circuit 10 and the USB interface 22 , so that each chip 21 returns the required data (ie, the return value) to the main control microcontroller 100 .

[0077] For example: an instruction to obtain certain specific data (for example, the state of a specified pin of chip 21) is sent to chip 21, and chip 21 will return corresponding data (i.e., return value) according to the acquisition instruction, and the preset program in the main control microcontroller 100 can determine the correctness of the return value.

[0078] Here, for the four items of program detection, first action detection, second action detection and return value detection, it is necessary to realize the communication between the main control microcontroller 100 and the PCBA 200 to be tested through the OTG interface 4. The dedicated communication protocol used by the OTG interface 4 is stored inside the main control microcontroller 100, and the dedicated communication protocol of the present application is customizable and dedicated. In layman's terms, for different needs, we need to formulate different communication protocols to achieve different detection purposes.

[0079] For example, the information in different dedicated communication protocols is shown in the following table:

[0080] S5: The main control microcontroller 100 displays the test result of the PCBA 200 to be tested through the digital tube 9, and prompts the end through the buzzer 10.

[0081] This step can prompt the operator to complete the inspection, count the inspection quantity and inspection results, and record the fault code to facilitate the repair of the faulty PCBA200 to be tested.

[0082] Supplement: If the PCBA 200 to be tested is unplugged by human error before the burning is completed or the qualified test is completed, then the integrated device of the present application will automatically disconnect the external power supply (to protect the PCBA 200 to be tested from secondary damage) and enter the automatic detection mode. After the two are connected again, the burning or detection process will automatically restart from step S2 without turning on the main switch 7 again.

[0083] Considering that the complete burning and testing time of a PCBA200 to be tested does not exceed 30 seconds, the testing time of each step is less than 5-6 seconds, and the testing time of some steps is even less than 1 second, so in special circumstances (the PCBA200 to be tested is unplugged before the burning is completed or the qualified test is completed), repeated testing of the same PCBA will not affect the overall work efficiency.

[0084] The implementation principle and technical effects of the method for PCBA program burning and inspection provided in the embodiment of the present invention are the same as those of the aforementioned integrated device embodiment for PCBA program burning and inspection. For the sake of brief description, for matters not mentioned in the method embodiment, reference may be made to the corresponding contents in the aforementioned integrated device embodiment.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An integrated device for PCBA program burning and inspection, characterized in that: The integrated device is used to inspect and burn the PCBA to be tested; The integrated device comprises: a main control single chip microcomputer, and also comprises an improved burner, a main switch, a first electronic switch, a second electronic switch, a USB transmission circuit, a voltage acquisition circuit, a signal transmission circuit, a digital tube, a buzzer, a burn start button and a first indicator light respectively connected to the main control single chip microcomputer; The master control microcontroller has a built-in preset communication protocol for testing and burning the PCBA to be tested; wherein the test includes voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; The integrated device communicates with the PCBA to be tested through the USB transmission circuit, the voltage acquisition circuit, and the signal transmission circuit.

2. The integrated device for PCBA program burning and inspection according to claim 1, characterized in that: The main control microcontroller includes: a GPIO interface, an ADC, an STLINK interface, a TIME timer, and an OTG interface. The GPIO interface includes a first pin, a second pin, a pin A27, and a pin A28.

3. The integrated device for PCBA program burning and inspection according to claim 2, characterized in that: The PCBA to be tested includes multiple chips, a DC motor, a photoelectric sensor, a program indicator light, a USB interface, a motor interface, and a power supply interface.

4. The integrated device for PCBA program burning and inspection according to claim 3, characterized in that: The voltage acquisition circuit is connected to the power supply interface and the ADC respectively, and the ADC is also connected to the first electronic switch; The ADC is used to check whether the voltage of the important voltage point of the PCBA to be tested is qualified through the voltage acquisition circuit; if the ADC detects that the voltage does not meet the requirements, the ADC notifies the first electronic switch to disconnect to protect the PCBA to be tested from being burned.

5. The integrated device for PCBA program burning and inspection according to claim 4, characterized in that: The signal transmission circuit is connected with the TIME timer and the motor interface respectively; The TIME timer is used to obtain the digital pulse signal of the PCBA to be tested through the signal transmission circuit and the motor interface to check the correctness of the digital pulse signal; If the digital pulse signal is incorrect, the main control microcontroller is used to prompt the fault code through the digital tube and prompt the operator through the buzzer.

6. The integrated device for PCBA program burning and inspection according to claim 5, characterized in that: The USB transmission circuit is connected to the OTG interface and the USB interface respectively; The main control microcontroller is used to query the version number of the burned program through the OTG interface, USB transmission circuit and USB interface; If the version number of the burned program is consistent with the target version number, it is considered qualified. Otherwise, delete the wrong program and burn it again.

7. The integrated device for PCBA program burning and inspection according to claim 6, characterized in that: The signal transmission circuit is connected with the photoelectric sensor and the OTG interface respectively; The main control microcontroller is used to input a signal to the photoelectric sensor of the PCBA to be tested through the OTG interface and the signal transmission circuit, so that the photoelectric sensor performs the first action specified in the input signal to check whether the function of the PCBA to be tested is normal.

8. The integrated device for PCBA program burning and inspection according to claim 7, characterized in that: The USB transmission circuit is connected to the OTG interface and the USB interface respectively, and the USB interface is also connected to the DC motor; The main control microcontroller is used to send a specific dedicated communication protocol to the DC motor through the OTG interface, the USB transmission circuit and the USB interface, so that the DC motor performs the second action according to the content of the dedicated communication protocol.

9. The integrated device for PCBA program burning and inspection according to claim 8, characterized in that: The USB interface is also connected to the chip; The main control microcontroller is used to send an acquisition instruction to the chip through the OTG interface, the USB transmission circuit and the USB interface, so that each chip returns the return value to the main control microcontroller.

10. A method for burning and testing a PCBA program, characterized in that: The method is applied to the integrated device, and the method comprises: S1: If the main control microcontroller detects that the PCBA to be tested is correctly connected to the integrated device, it detects whether the internal circuit of the PCBA to be tested is abnormal; S2: The main control microcontroller calls the first electronic switch to realize power supply or power-off protection for the PCBA according to the internal circuit of the PCBA; S3: The main control microcontroller automatically identifies whether the PCBA to be tested has been programmed. If not, the program is automatically programmed by improving the programmer. If it has been programmed, S4 is executed. S4: The main control microcontroller implements qualified detection of the PCBA to be tested based on ADC, TIME timer and OTG interface. The qualified detection is divided into six types: voltage detection, signal detection, program detection, first action detection, second action detection and return value detection; S5: The main control microcontroller displays the test result of the PCBA to be tested through the digital tube and prompts the end through the buzzer.

Citation Information

Cited By

  • Automatic testing and burning integrated equipment

    CN120801981A