MEMS chip test method and system, and storage medium

Through parallel transmission and calibration between the FPGA board and MCU and MEMS chips, the problem of low testing efficiency of MEMS chips is solved, efficient testing and calibration are achieved, and the best performance of each chip is ensured.

CN118837726AActive Publication Date: 2024-10-25SHAOXING YUANFANG SEMICON CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202411310362.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-10-25
Estimated Expiration
2044-09-20

AI Technical Summary

Technical Problem

The testing efficiency of MEMS chips in the existing technology is low, and the serial transmission method results in a long testing time for each MEMS chip, affecting testing and factory efficiency.

Method used

Connect the MCU through the FPGA board and perform parallel transmission with multiple MEMS chips to receive and send test data to achieve efficient data transmission and calibration and reduce test time.

Benefits of technology

It improves the testing efficiency of MEMS chips, reduces the testing time, ensures the best performance of each MEMS chip, and adapts to the differences of each chip through the automatic calibration function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118837726A_ABST
    Figure CN118837726A_ABST
Patent Text Reader

Abstract

The invention provides an MEMS chip test method and system, and a storage medium. The method comprises the steps that an FPGA board is connected with an MCU and connected with a plurality of MEMS chips through a plurality of interfaces of the FPGA board, each interface is connected with one MEMS chip, and the MCU is further connected with an upper computer; the FPGA board transmits a control instruction received from an upper computer to each MEMS chip in parallel; the FPGA board receives test data transmitted by each MEMS chip in parallel; and the FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends an analysis result to the upper computer, or the FPGA board analyzes the test data and sends the analysis result to the MCU, so that the MCU sends the analysis result to the upper computer. According to the invention, the chip test time can be shortened, the test efficiency can be improved, and targeted automatic calibration can be realized according to the difference of each MEMS chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip testing, and specifically to a testing method and system for a MEMS (Micro Electro Mechanical System) chip, and a storage medium. Background Art

[0002] Currently, MEMS chips used to control IMUs (Inertial Measurement Units) or gyroscopes require testing before they ship to ensure the performance of the final MEMS chips. Existing technology typically uses a test machine's MCU (Micro-controller Unit) to collect data generated by the MEMS chip, referred to as "test data," and uses this test data to determine whether the MEMS chip meets factory requirements. Serial transmission is used between the MCU and each MEMS chip to transmit test data, but this method is inefficient. Generally, inertial angle testing and calibration takes about 20 minutes per MEMS chip. If there are a large number of MEMS chips to be tested, the test time will be even longer, which will undoubtedly seriously affect the testing efficiency and delivery efficiency of the MEMS chips. Summary of the Invention

[0003] In view of this, the present application provides a MEMS chip testing method and system, and a storage medium, which can at least improve the problem of low efficiency in existing MEMS chip testing.

[0004] The present application provides a method for testing a MEMS chip, wherein the MEMS chip is used to control multiple axes of an IMU or a gyroscope, and the method includes: The FPGA (Field Programmable Gate Array) board is connected to the MCU and several MEMS chips through its own multiple interfaces, with each interface connected to a MEMS chip. The MCU is also connected to the host computer. The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel; The FPGA board receives test data transmitted in parallel by each MEMS chip; The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer.

[0005] Optionally, each MEMS chip is provided on the FPGA board; and the method further includes: The FPGA board is provided with a temperature sensor to detect the current temperature of each MEMS chip; The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature; In response to receiving the trigger instruction from the MCU, the FPGA board executes the step of transmitting the control instruction received from the host computer to each MEMS chip in parallel.

[0006] Optionally, the method further includes: The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on; The FPGA board converts the collected analog signal into a digital signal; The FPGA board calibrates each MEMS chip according to the digital signal.

[0007] Optionally, the test data is obtained by testing each axis of the IMU or gyroscope at a plurality of parameter locations; the FPGA board calibrates each MEMS chip according to the digital signal, including: For two adjacent parameter sites, before outputting an analog signal to the latter parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the former parameter site.

[0008] Optionally, the test data is presented as a package, the package including a data header, a data type, a source number, a data length, and data content, wherein the source number indicates the MEMS chip from which the test data comes; the method further includes: The FPGA board obtains data of each axis from the test data; Create a storage queue for each axis that obtains data and store the corresponding data; According to the source number and the number of the storage queues, it is determined whether the test data of all MEMS chips are received; and, if so, it is determined that the collection of the test data is completed; if not, the test data transmitted in parallel by each MEMS chip is continued to be received.

[0009] Optionally, the method further includes: S11: Connecting the multiple interfaces, selecting one of the MEMS chips to send an inquiry packet containing its own identification and the number of storage queues, wherein the storage queues are created when data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis; S12: After receiving the query packet, the remaining MEMS chips compare the number of their current storage queues with the number of the storage queue of the one MEMS chip; S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of one of the MEMS chips, a query packet is sent; S14: For any of the remaining MEMS chips, if the current storage queue quantity is greater than or equal to the storage queue quantity of one of the MEMS chips, no query packet is sent; Repeating S11 to S14 until only one MEMS chip remains; In response to receiving the package package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips have been received, and it is determined that the collection of the test data is completed.

[0010] Optionally, the package includes a data header, a data type, a source number, a data length, and data content, wherein the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the method further includes: The FPGA board determines that there is only one remaining MEMS chip based on the source number.

[0011] Optionally, the method further includes: Get the maximum time it takes for an inquiry packet to be sent from one MEMS chip to be received by another MEMS chip; When the time interval from the last detection of the inquiry packet exceeds the maximum length and no inquiry packet is received, it is determined that there is only one MEMS chip left.

[0012] The present application provides a MEMS chip testing system, comprising a host computer, an MCU, and an FPGA board, wherein the FPGA board is connected to the MCU, the FPGA board is provided with multiple interfaces for connecting to a number of MEMS chips, each of the interfaces being connected to one MEMS chip, and the MCU being connected to the host computer; wherein the FPGA board, the host computer, and the MCU perform the test of the MEMS chip by using the method described in any one of the above items.

[0013] The present application provides a storage medium storing a test program, which, when executed by a processor, implements the corresponding steps of the MEMS chip testing method as described in any one of the above items.

[0014] As described above, the present application receives the test data generated by each MEMS chip through the FPGA board, and transmits the test data between the FPGA board and each MEMS chip through parallel transmission. The parallel transmission method enables the test data to be transmitted simultaneously through multiple lines. More test data can be transmitted in the same time, thereby reducing the test time of the MEMS chip and improving the test efficiency.

[0015] In addition, the present application can collect the analog signals transmitted in parallel when each MEMS chip is powered on through the FPGA board, and calibrate each MEMS chip accordingly. In this way, targeted automatic calibration can be achieved according to the differences between each MEMS chip to ensure the optimal performance of each MEMS chip.

[0016] Furthermore, the present application can obtain the data of each axis of the IMU or gyroscope from the test data through the FPGA board, and create a storage queue every time the data of one axis is obtained, and store the corresponding data. Then, based on the source number and the number of storage queues carried in the test data, it is determined whether the test data of all MEMS chips has been received, thereby automatically determining whether the test data collection has been completed.

[0017] The present application can also connect multiple interfaces through an FPGA board to interconnect multiple MEMS chips. These MEMS chips determine whether to send an inquiry packet by comparing the number of storage queues, and thereby determine whether it is the last MEMS chip to send an inquiry packet. Based on this, the present application can automatically determine whether the test data has been collected through the interconnection between these MEMS chips, without the need for any of the FPGA board, MCU, and host computer to execute it, which can reduce the amount of calculation of any of the FPGA board, MCU, and host computer. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Schematic diagram of a flow chart of a method for testing a MEMS chip according to an embodiment of the present application; Figure 2 A schematic structural diagram of a MEMS chip testing system according to an embodiment of the present application; Figure 3 A schematic diagram of the interaction between a MEMS chip, an FPGA board, an MCU, and a host computer during a test process provided in an embodiment of the present application; Figure 4 A schematic diagram of the interaction between another MEMS chip, FPGA board, MCU and host computer during the test process provided in an embodiment of the present application; Figure 5 This is a flowchart of detecting whether test data collection is completed according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] To address the aforementioned issues in the prior art, this application provides a MEMS chip testing method and system, as well as a storage medium. These several protected themes are based on the same concept and solve the same or similar problems. The implementation methods of each protected theme can be referenced across them, and any repetitions will not be repeated here.

[0020] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly described below in conjunction with specific embodiments and corresponding drawings. Obviously, the embodiments described below are only some of the embodiments of this application, not all of them. Unless there is a conflict, the following embodiments and their technical features can be combined with each other and also belong to the technical solutions of this application.

[0021] Figure 1 The following is a flow chart of a method for testing a MEMS chip according to an embodiment of the present application. The method for testing a MEMS chip can be referred to as a "method" or "test method," and its execution entity can be an FPGA board, which is a test board integrated with an FPGA. The MEMS chip is used to control multiple axes of an IMU or gyroscope. Taking an IMU as an example, the MEMS chip is used to control three-axis accelerometers and three-axis gyroscopes to perform corresponding operations. The method of the present application tests the results of the MEMS chip controlling these six axes to perform corresponding operations, thereby ensuring the performance of the MEMS chip.

[0022] like Figure 1 As shown, the method at least includes the following steps S1 to S4.

[0023] S1: The FPGA board is connected to the MCU and several MEMS chips through its own multiple interfaces. Each interface is connected to a MEMS chip. The MCU is also connected to the host computer.

[0024] Combine Figure 2 In the scenario shown, the host computer is connected to the MCU, for example, a connection is established between the two through a slip ring, and the MCU is connected to multiple MEMS chips through a single FPGA board; a single FPGA board is provided with multiple interfaces, so a single FPGA board can realize the connection with the same number or less than the number of MEMS chips. The figure only shows six MEMS chips for example, and they are numbered 1 to n respectively. The corresponding eight interfaces can be numbered 1 to n respectively, and the MEMS chips with the same number are connected to the interfaces one by one. It should be understood that other examples can set a single or more than two FPGA boards of other numbers to connect to an MCU, so as to adapt to the test scenario requirements of other numbers of MEMS chips. The structures of each FPGA board can be exactly the same or different, and this application does not limit them. The FPGA boards are interconnected, and data transmission and synchronous control are achieved accordingly.

[0025] In this application, the interface connected to the MEMS chip is referred to as the first interface, and the interface connected to the MCU is referred to as the second interface. Figure 2 In the example shown, the FPGA board is a test board with independent data processing and computing capabilities. Its first interface can be an LPT interface or other interface, which has a wide range of usage scenarios. The second interface includes but is not limited to a TCP / UDP port, TCP is the Transmission Control Protocol, and UDP is the User Datagram Protocol. Corresponding data can also be transmitted in parallel between the FPGA board and the MCU, such as simultaneously transmitting log data and instruction data, thereby improving transmission efficiency.

[0026] The MEMS chip connected to the FPGA board can be called a chip to be tested. Here, a test connection is established between the host computer, the MCU and each chip to be tested through the FPGA board.

[0027] S2: The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel.

[0028] S3: The FPGA board receives the test data transmitted in parallel by each MEMS chip.

[0029] S4: The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer. Alternatively, the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer.

[0030] After step S1 and before step S2, refer to Figure 3 and Figure 4 As shown, the host computer (e.g., through its test management program) issues a control instruction to the MCU, which then forwards it to the FPGA board. This control instruction is used to test one or more MEMS chips connected to the FPGA board. Specifically, the control instruction can be distinguished based on the identifiers of the first interfaces carried by each device to determine which MEMS chip or chips the control instruction is issued to. This control instruction can include instruction data but not log data.

[0031] Each MEMS chip performs a corresponding test according to the control instructions it receives, and generates corresponding test data, which includes but is not limited to the acceleration and angular velocity values ​​of each axis of the IMU; the test data can be expressed as log data, and then each MEMS chip transmits the test data to the FPGA board through the corresponding first interface. Step S2 can be regarded as a step for the FPGA board to collect test data. In one example, each first interface can have a cache function to cache the test data transmitted by the corresponding MEMS chip. When the cached data is formed, the first interface sends a reminder to the FPGA board. After detecting the reminder, the FPGA board reads the cached data, thereby realizing parallel transmission between each MEMS chip and the FPGA board. The FPGA board can distinguish the corresponding MEMS chip by the label of the first interface. Figure 2 Taking the scenario shown as an example, the test data transmitted through the first interface labeled 3 is the test data generated and transmitted by the MEMS chip labeled 3.

[0032] In one example of step S4, after the test data of all MEMS chips are transmitted to the FPGA board, the FPGA board packages the test data and sends them to the MCU; in another example, the FPGA board can send the test data of each MEMS chip to the MCU after receiving it.

[0033] As described above, the present application receives the test data generated by each MEMS chip through the FPGA board, and the test data is transmitted between the FPGA board and each MEMS chip through parallel transmission. Each MEMS chip and the corresponding first interface can be regarded as a data channel in parallel transmission. The parallel transmission method enables the test data to be transmitted simultaneously through multiple channels. More test data can be transmitted in the same time, thereby reducing the test time of the MEMS chip and improving the test efficiency.

[0034] This application can be Figure 3 As shown, the FPGA board sends the test data to the MCU for analysis, or as shown in Figure 4 As shown, the test data is analyzed by the FPGA board. The specific process and principles of test data analysis by the MCU or FPGA board can be found in the prior art and will not be elaborated here. For example, the collected test data is compared with the theoretically calculated data. If the difference between the two exceeds a preset threshold, the current axis is considered to have failed the test. The host computer can record the test data and analysis results to form test-related log data.

[0035] The temperature of the environment where the MEMS chip is located is more sensitive to the test results. Therefore, testing the MEMS chip can be understood as confirming whether the operating data of each axis of the IMU at different temperatures meets the preset requirements. Therefore, this application needs to detect whether the current temperature reaches the preset temperature before collecting test data. Figure 3 and Figure 4 As shown, the method further includes: S101: The FPGA board is provided with a temperature sensor. Each MEMS chip is provided on the FPGA board. The current temperature of each MEMS chip is detected by the temperature sensor.

[0036] S102: The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature.

[0037] The MCU can read the temperature of the FPGA board in real time. When the temperature reaches the preset temperature required for the test, the test can be performed. If the current temperature does not reach the preset temperature, no trigger instruction is generated and S101 is continued.

[0038] S103: The FPGA board detects whether a trigger instruction is received from the MCU.

[0039] In response to receiving the trigger instruction from the MCU, the FPGA board executes step S2, that is, transmitting the control instruction received from the host computer to each MEMS chip in parallel.

[0040] In existing technologies, temperature sensors are placed on the platform where the MCU is located. The temperature obtained during actual testing may differ from the temperature at the actual location of the MEMS chip, which can adversely affect the test results. This application example places the temperature sensor on the FPGA board. The FPGA board can directly read the real-time temperature closest to each MEMS chip in real time, thereby accurately compensating the real-time temperature to achieve the theoretical preset temperature, thereby ensuring the accuracy of the test data.

[0041] Please continue reading Figure 3 and Figure 4 As shown, the method further includes: S104: The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on.

[0042] S105: The FPGA board converts the collected analog signal into a digital signal.

[0043] S106: The FPGA board calibrates each MEMS chip according to the digital signal.

[0044] Before testing, this example uses the FPGA board to calibrate each MEMS chip. During design, the MEMS chip can configure its internal register to output analog signals through the pin. Figure 2 In the example shown, an ADC (Analog-to-Digital Converter) sampling chip can be added to the FPGA board. After each MEMS chip is connected to the FPGA board and powered on, it outputs a different analog signal. The ADC sampling chip performs sampling and sends the sampled data to the FPGA board. The FPGA board performs real-time data analysis and then configures the calibration registers inside the MEMS chip through the FPGA board for calibration. The calibration of the MEMS chip is confirmed by comparing the sampled data. In this way, the optimal calibration parameters can be input for each MEMS chip. In one example, the present application can pre-load empirical values ​​into the MEMS chip to reduce automatic calibration time and improve automatic calibration efficiency. The empirical values ​​can be historical calibration parameters from previous calibrations of various types of MEMS chips.

[0045] The existing technology uses an MCU to uniformly load pre-debugged calibration parameters onto all MEMS chips. That is, the calibration parameters loaded onto all MEMS chips are identical. However, the existing technology cannot achieve targeted automatic calibration based on the differences between individual MEMS chips, making it difficult to ensure the optimal performance of each MEMS chip. This application uses an FPGA board to collect the analog signals transmitted in parallel by each MEMS chip when it is powered on, and calibrates each MEMS chip accordingly. This allows for targeted automatic calibration based on the differences between each MEMS chip, ensuring the optimal performance of each MEMS chip.

[0046] In the actual scenario of testing each MEMS chip, the present application can only select a number of parameter sites (also called "test points") to test each axis of the IMU or gyroscope, that is, the test data is obtained by testing each axis at a number of parameter sites. Based on this, in the process of the FPGA board calibrating each MEMS chip according to the digital signal, for two adjacent parameter sites, in chronological order, the previous parameter site is called the "previous parameter site" and the next parameter site is called the "next parameter site". Before outputting the analog signal to the next parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the previous parameter site. Here, the FPGA board can judge the status of the MEMS chip in real time and adjust the calibration parameters in real time. When it reaches the fixed test point, the calibration has been completed, thereby ensuring that the data collected at the test point is relatively accurate.

[0047] Before the FPGA board sends test data to the MCU, or before the FPGA board analyzes the test data, the present application can detect whether the test data collection is complete, that is, whether the test data collection for all axes of all MEMS chips is complete. If so, the aforementioned step S4 is executed; if not, the test data collection continues until the collection is complete.

[0048] In one example, the FPGA board can detect whether the test data collection is complete based on the test data and its storage method. Specifically, in an actual scenario, the test data can be expressed as a package, which includes a data header, a data type, a source number, a data length, and data content, wherein the source number indicates the MEMS chip from which the test data comes; here, the FPGA board can first parse the package to obtain the data corresponding to each axis from the test data, and then create a storage queue for each axis for which data is obtained and store the corresponding data; based on the source number and the number of storage queues, it is determined whether the test data of all MEMS chips has been received.

[0049] If the data of axis 1 is parsed from the package, storage queue 1 is created. If the data of axis 2 is parsed, storage queue 2 is created, and so on. Taking the MEMS chip used to control the IMU as an example, first determine whether the test data comes from all MEMS chips based on the source number. If not, it is determined that the test data of all MEMS chips has not been received. If so, check whether the number of storage queues is equal to the total number of axes of the IMU. If they are equal, it is determined that the test data of all MEMS chips has been received. If they are not equal, for example, the data of axes 1 to 5 are currently parsed and storage queues 1 to 5 are created, then the number of storage queues is five, which is less than the total number of axes of the IMU (the total number of axes of the IMU is six), then it is determined that the test data of all MEMS chips has not been received.

[0050] That is to say, the present application can obtain the data of each axis from the test data through the FPGA board, and create a storage queue each time the data of an axis is obtained, and store the corresponding data, and then judge whether the test data of all MEMS chips is received based on the source number and the number of storage queues carried in the test data, thereby automatically determining whether the test data collection is completed.

[0051] In other examples, the present application can automatically determine whether the test data has been collected through the interconnection between the connected MEMS chips, without the need for any of the FPGA board, MCU and host computer to execute. Figure 5 As shown, the method further includes the following steps: S11: Connect multiple interfaces, select one of the MEMS chips and send a query packet containing its own identification and the number of storage queues, wherein the storage queue is created when the data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis; S12: After receiving the query packet, the remaining MEMS chips compare their current storage queue quantities with the storage queue quantity of the one MEMS chip; For any of the remaining MEMS chips, it is detected whether the current storage queue quantity of the chip is less than the preset storage queue quantity (which may be referred to as the “preset storage queue quantity”).

[0052] S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of the one MEMS chip, a query packet is sent; S14: For any of the remaining MEMS chips, if the current storage queue number is greater than or equal to the storage queue number of the one MEMS chip, no query packet is sent; Repeating S11 to S14 until only one MEMS chip remains; and S15: In response to receiving the package package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips are received, and the collection of the test data is completed.

[0053] One of the MEMS chips can be regarded as a MEMS chip that has completed data collection for all its axes. The current storage queue number of any other MEMS chip is less than its storage queue number, indicating that any other MEMS chip has not completed data collection for all axes.

[0054] This example interconnects multiple MEMS chips through an FPGA board. These MEMS chips determine whether to issue an inquiry packet by comparing the number of storage queues. This determines the last MEMS chip to issue an inquiry packet. Once the package packet (i.e., test data) from the last MEMS chip is detected, data collection is complete without requiring execution by the FPGA board, MCU, or host computer. This reduces the computational effort required by any of these devices.

[0055] The method for determining that there is only one remaining MEMS chip in this application includes but is not limited to the following: Method 1: Based on the fact that the test data is presented as a package, and the package includes a data header, a data type, a source number, a data length, and data content, this example can set the byte of the source number so that the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the FPGA board determines that there is only one remaining MEMS chip based on the source number.

[0056] Method 2: Before step S15, the FPGA board obtains the maximum time it takes for an inquiry packet to be sent from one MEMS chip to be received by another MEMS chip; and if no inquiry packet is received when the time since the last time an inquiry packet was detected exceeds the maximum time, it is determined that there is only one MEMS chip left.

[0057] The present application also provides a MEMS chip test system, including a host computer, an MCU, and an FPGA board; the FPGA board is connected to the MCU, and the FPGA board is provided with multiple interfaces for connecting to a plurality of MEMS chips, each interface being connected to a MEMS chip, and the MCU is connected to the host computer; the structure of the test system can be referred to Figure 2 The FPGA board, the host computer and the MCU perform the test of the MEMS chip by using any of the above examples.

[0058] An embodiment of the present application further provides a storage medium storing a test program, which, when executed by a processor, implements the steps corresponding to the test method of the MEMS chip as described in any of the above examples.

[0059] The storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), a magnetic disk or an optical disk, etc.

[0060] Since the program stored in the storage medium can execute the steps in any MEMS chip testing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any MEMS chip testing method provided in the embodiments of the present application can be achieved. See the previous embodiments for details.

[0061] In addition, the FPGA board, communication board, host computer and storage medium provided in the embodiments of the present application are complete devices, and also have the corresponding structures of known devices. This application only provides an exemplary description of some structural elements related to chip testing, and does not list other structural elements one by one. For example, the FPGA board can be provided with the following Figure 2The data packaging module, detection module, acceleration calculation module, angular velocity calculation module, and automatic calibration module shown are: the data packaging module can send test data or analysis results to the MCU; the detection module can be used to analyze the test data, etc.; the acceleration calculation module is used to test and obtain the acceleration values ​​of each axis of the MEMS chip; the angular velocity calculation module is used to test and obtain the angular velocity values ​​of each axis of the MEMS chip; and the automatic calibration module is used to calibrate each MEMS chip. These modules can be implemented by adapting the hardware in actual scenarios. For example, two or more modules can be implemented as one hardware, and one module can be implemented by two or more hardware.

[0062] The above descriptions are only some embodiments of the present application and do not limit the patent scope of the present application. For ordinary technicians in this field, any equivalent structural changes made using the contents of this specification and drawings are also included in the patent protection scope of the present application.

[0063] This document uses step codes such as S1 and S2 for the purpose of expressing the corresponding content more clearly and concisely, and does not constitute a substantial limitation on the order. Those skilled in the art may execute S2 first and then S1 during specific implementation, but these should all be within the scope of protection of this application.

[0064] Although the terms "first," "second," and the like are used herein to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. In addition, the singular forms "a," "an," and "the" are intended to include the plural forms as well. The terms "or" and "and / or" are to be interpreted as inclusive, meaning any one or any combination. Exceptions to this definition occur only when a combination of elements, functions, steps, or operations is inherently mutually exclusive in some manner.

Claims

1. A method for testing a MEMS chip. It is characterized in that The MEMS chip is used to control multiple axes of an inertial measurement unit (IMU) or a gyroscope, and the method includes: The FPGA board is connected to the MCU and is connected to several MEMS chips through its own multiple interfaces, each interface is connected to a MEMS chip, and the MCU is also connected to the host computer; The FPGA board transmits the control instructions received from the host computer to each MEMS chip in parallel; The FPGA board receives test data transmitted in parallel by each MEMS chip; The FPGA board sends the test data to the MCU, so that the MCU analyzes the test data and sends the analysis results to the host computer, or the FPGA board analyzes the test data and sends the analysis results to the MCU, so that the MCU sends them to the host computer.

2. The method according to claim 1, It is characterized in that Each MEMS chip is arranged on the FPGA board; the method further comprises: The FPGA board is provided with a temperature sensor to detect the current temperature of each MEMS chip; The FPGA board sends the current temperature to the MCU, so that the MCU determines whether the preset temperature is reached, and generates a trigger instruction when it is determined that the current temperature reaches the preset temperature; In response to receiving the trigger instruction from the MCU, the FPGA board executes the step of transmitting the control instruction received from the host computer to each MEMS chip in parallel.

3. The method according to claim 1, It is characterized in that The method further comprises: The FPGA board collects analog signals transmitted in parallel when each MEMS chip is powered on; The FPGA board converts the collected analog signal into a digital signal; The FPGA board calibrates each MEMS chip according to the digital signal.

4. The method according to claim 3, It is characterized in that The test data is obtained by testing each axis of the IMU or gyroscope at several parameter locations; The FPGA board calibrates each MEMS chip according to the digital signal, including: For two adjacent parameter sites, before outputting an analog signal to the latter parameter site, the calibration of the corresponding MEMS chip is completed according to the digital signal generated by the former parameter site.

5. The method according to any one of claims 1 to 4, It is characterized in that The test data is in the form of a package, which includes a data header, a data type, a source number, a data length, and data content. The source number indicates the MEMS chip from which the test data comes; The method further comprises: The FPGA board acquires data of each axis from the test data; Create a storage queue for each axis that obtains data and store the corresponding data; According to the source number and the number of the storage queues, it is determined whether the test data of all MEMS chips are received; and if so, it is determined that the collection of the test data is completed.

6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: S11: connecting the multiple interfaces, selecting one of the MEMS chips to send an inquiry packet containing its own identification and the number of storage queues, wherein the storage queue is created when the data corresponding to each axis is obtained from the test data, and a storage queue is created for each axis; S12: After receiving the inquiry packet, the remaining MEMS chips compare their current storage queue quantities with the storage queue quantity of one of the MEMS chips; S13: For any of the remaining MEMS chips, if the current storage queue quantity is less than the storage queue quantity of one of the MEMS chips, an inquiry packet is issued; S14: For any of the remaining MEMS chips, if the current storage queue quantity is greater than or equal to the storage queue quantity of one of the MEMS chips, no inquiry packet is sent; Repeating S11 to S14 until only one MEMS chip remains; In response to receiving the packaging package transmitted by the last remaining MEMS chip, it is determined that the test data of all MEMS chips are received, and it is determined that the collection of the test data is completed.

7. The method according to claim 6, It is characterized in that The package includes a data header, a data type, a source number, a data length, and data content, wherein the source number indicates the MEMS chip from which the test data comes and identifies the last remaining MEMS chip; the method further includes: The FPGA board determines that there is only one remaining MEMS chip based on the source number.

8. The method according to claim 6, It is characterized in that The method further comprises: Obtain the maximum time duration from when an inquiry packet is sent from one MEMS chip to when it is received by another MEMS chip; When the time from the last detection of the inquiry packet exceeds the maximum time length, no inquiry packet is received, and it is determined that there is only one MEMS chip left.

9. A MEMS chip testing system, It is characterized in that It comprises a host computer, an MCU and an FPGA board, wherein the FPGA board is connected to the MCU, the FPGA board is provided with a plurality of interfaces for connecting to a plurality of MEMS chips, each of the interfaces is connected to a MEMS chip, and the MCU is connected to the host computer; wherein the FPGA board, the host computer and the MCU perform the test of the MEMS chip by the method described in any one of claims 1 to 8.

10. A storage medium, It is characterized in that The storage medium stores a test program, which, when executed by the processor, implements the test method for the MEMS chip according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Media access control method and system of nodes in full duplex wireless local area network

    CN105681277A

  • Real-time testing system and testing method for inertial platform

    CN107621271A

  • Automatic calibration method and automatic calibration system for inertia measurement unit

    CN110595504A

  • Optical chip testing device and method based on FPGA

    CN113589142A

  • Parallel test method and device for FPGA (Field Programmable Gate Array) multiple chips and computer equipment

    CN115656769A