Test circuit and test board

By designing a test circuit including level shift module and current detection module, the problem of poor compatibility of traditional development boards is solved, and compatibility testing of multiple sensors is achieved, reducing development costs and improving testing efficiency.

CN221960237UActive Publication Date: 2024-11-05SHENZHEN ADAPS PHOTONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420290378.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-08
Publication Date
2024-11-05
Estimated Expiration
2034-02-08

AI Technical Summary

Technical Problem

Traditional development boards have poor compatibility when testing consumer electronic products, resulting in the need to design multiple development boards for different functional devices, which increases costs and affects product promotion.

Method used

Design a test circuit, including a controller, level shift module and current detection module, connects with the automated test system through multiple sets of I2C/SPI interfaces and GPIO interfaces, which can convert 3.3V voltage into multiple voltages and detect sensors Operating current, adapted to a variety of sensors and power supplies, improve compatibility.

Benefits of technology

Compatibility testing for multiple sensors is achieved, development costs are reduced, testing process is simplified, suitable for development, demo verification and mass production testing, improving testing efficiency and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221960237U_ABST
    Figure CN221960237U_ABST
Patent Text Reader

Abstract

The utility model discloses a test circuit and a test board, the test circuit comprises a controller, a level shift module and a plurality of current detection modules, the controller provides a plurality of groups of I2C / SPI interfaces and a plurality of GPIO interfaces, the test circuit can be in butt joint with an automatic test system, batch test of products is satisfied, and the test efficiency is improved. During testing, the 3.3 v voltage of the controller interface is converted into various other voltages by the level shift module so as to adapt to anti-interference detection of multiple groups of sensors to be tested and / or adapt to testing of the sensors to be tested of various power supplies, and during testing, the current detection module communicates with the controller. According to the utility model, the plurality of sensors to be tested are used for detecting the working current of the plurality of sensors to be tested and feeding the working current back to the controller, so that the compatibility of the test circuit is improved, and the test circuit can be used for a developer to research and develop an internal modem verification test, can also be used for a client modem sample sending test, and can also be used for producing an ATE test machine for batch test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of electronic device testing, in particular to a testing circuit and a testing board. Background Art

[0002] In the development process of consumer electronic products, developers usually need to fully develop the relevant functions of the development board in advance and then transplant them to the product platform. Traditional development boards are mostly used to test a certain electronic device, and their compatibility is poor. It is necessary to design a development board for devices with different functions (such as different types of sensors), resulting in a large number of types and quantities of development boards. Therefore, the traditional development method will be costly and each new product needs to develop and design a test board, which will affect the promotion of development and testing systems and product testing. Utility Model Content

[0003] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a test circuit and a test board to solve the problem of poor compatibility of the prior test circuit.

[0004] In order to solve the above technical problems, the utility model adopts the following technical solutions:

[0005] A test circuit comprising:

[0006] A controller including multiple groups of I2C / SPI interfaces and multiple GPIO interfaces;

[0007] A level shift module, used to convert the 3.3V voltage of the GPIO interface into a variety of other voltages, so as to adapt to anti-interference detection of multiple groups of sensors to be tested and / or to test sensors to be tested with multiple power supplies;

[0008] A plurality of current detection modules are used to communicate with the controller through the output of the level shift module to detect the operating current of a plurality of sensors to be tested and feed back the current to the controller.

[0009] In the test circuit, the level shift module includes a first switching unit, a level conversion unit and a second switching unit, the input end of the first switching unit is connected to a GPIO port of the controller, the first output end of the first switching unit is connected to the first input end of the second switching unit, and is used to output a first voltage, and the second output end of the first switching unit is connected to the second input end of the second switching unit through the level conversion unit, and is used to convert the first voltage output by the controller into a second voltage, a third voltage and / or a fourth voltage, and the second switching unit switches it to the first voltage, the second voltage, the third voltage or the fourth voltage to communicate with the sensor to be tested.

[0010] In the test circuit, the first voltage is 3.3V, the second voltage is 1.2V, the third voltage is 1.5V, and the fourth voltage is 1.8V.

[0011] In the test circuit, the controller also includes multiple groups of ADC interfaces and DAC interfaces.

[0012] The test circuit also includes multiple DC-DC modules, which are used to provide bias voltage and power supply for multiple groups of sensors to be tested, and communicate with the controller through the ADC interface and DAC interface of the controller. The controller reads the output voltage provided by the DC-DC module for the sensor to be tested through the ADC interface, and adjusts the output voltage of the DC-DC module through the DAC interface.

[0013] In the test circuit, the controller also includes a serial port and / or a USB interface for communicating with a host computer.

[0014] In the test circuit, the controller further comprises an ATE interface for connecting to an ATE test machine and a JTAG interface for communicating with an internal module of the sensor to be tested.

[0015] In the test circuit, the sensor to be tested is one or more of a DTOF sensor, a fingerprint collector, an acceleration sensor, a gyroscope, an air pressure sensor, and a compass sensor.

[0016] In the test circuit, the controller is an MCU main control chip.

[0017] The utility model also provides a test board, on which a plurality of sensor mounting positions and the test circuit as described above are arranged, wherein the sensor mounting positions are electrically connected to a level shifting module of the test circuit and to a plurality of current detection modules.

[0018] Compared with the prior art, the test circuit and test board provided by the utility model include a controller, a level shifting module and multiple current detection modules. The controller provides multiple groups of I2C / SPI interfaces and multiple GPIO interfaces, which can be connected to the automated test system to meet the needs of product batch testing. During the test, the level shifting module converts the 3.3v voltage of the controller interface into multiple other voltages to adapt to anti-interference detection of multiple groups of sensors to be tested and / or adapt to the test of sensors to be tested with multiple power supplies. During the test, the current detection module communicates with the controller to detect the working current of multiple sensors to be tested and feeds back to the controller, thereby improving the compatibility of the test circuit. It can be used for developers to develop internal demo verification tests, for customer demo sample testing, and for production of ATE test machines for batch testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a structural block diagram of the test circuit provided by the utility model.

[0020] Figure 2 A schematic diagram of an application embodiment of the test circuit provided by the utility model.

[0021] Description of Reference Numerals

[0022] Controller 10, level shift module 20, first switching unit 21, level conversion unit 22, second switching unit 23, current detection module 30, I 2 C interface 11, SPI interface 12, GPIO interface 13, ATE interface 14, JTAG interface 15, serial port 16, USB interface 17, ADC interface 18, DAC interface 19, DC-DC module 40 DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the utility model more clear, the utility model is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the utility model and are not used to limit the utility model.

[0024] The test circuit of the utility model includes necessary functional circuit components and peripheral connectors, and can realize a low-cost, multi-functional development board system by means of external expansion boards or wiring. The test circuit can be applied to many consumer products, such as: DTOF sensors, fingerprint collectors, acceleration sensors, gyroscopes, air pressure sensors, compass sensors, etc.

[0025] See also Figure 1 and Figure 2 The test circuit provided by the utility model includes a controller 10 , a level shift module 20 and a plurality of current detection modules 30 , wherein the level shift module 20 is connected to the controller 10 and each current detection module 30 .

[0026] The controller 10 includes a plurality of groups I 2 C / SPI interface 12 and multiple GPIO interfaces 13 can be connected to the automated test system to meet the product batch testing requirements. Optionally, the controller 10 is an MCU main control chip, which can adopt the main control chip of the STM32 system, such as a microcontroller with model STM32G474CB, whose main frequency, storage space, number of GPIO interfaces 13, number of SPI interfaces 12, number of I2C interfaces 11, number of ADC / DAC ports, number of serial ports 16, etc. meet the test requirements of the sensor.

[0027] The test is carried out by the level shift module 20, which converts the 3.3V voltage of the controller 10 interface into a variety of other voltages (such as DC voltage of 3.3V and below) to adapt to anti-interference detection of multiple groups of sensors to be tested, or testing of sensors to be tested with multiple power supplies, as well as anti-interference detection of multiple groups of sensors to be tested and testing of sensors to be tested with multiple power supplies, without interfering with each other.

[0028] Each current detection module 30 is used to communicate with the controller 10 through the output of the level shift module 20 to detect the working current of multiple sensors to be tested and feed it back to the controller 10, thereby realizing real-time monitoring of the working current of the sensors to be tested and performing functional tests on the sensors to be tested. The controller 10 can obtain the product power consumption test requirements based on the working circuit and working current of the sensors to be tested.

[0029] The utility model provides multiple groups of I through the controller 10 2 The C interface 11, the SPI interface 12, the multiple GPIO interfaces 13 and other interfaces communicate with the automated test system to perform data reading and writing operations, and provide a variety of voltages and working current detection through the level shift module 20, thereby improving the compatibility of the test circuit. It can be used for developers to develop internal demo (which can be understood as the testing and verification of samples for display) verification tests, and can also be used for customer demo sample testing (which can be understood as the sample delivery function), and can also be used for batch testing of the function and electrical performance testing of production ATE test machines. From development to product delivery, there is no need for additional development of control boards and software algorithm programming, thus saving testing costs.

[0030] Furthermore, by providing a variety of voltages through the level shift module 20 and testing the current through the multiple current detection modules 30, it is possible to test a plurality of sensor products at the same time, or to test different sensor products, thereby improving the test efficiency.

[0031] In an optional embodiment, the level shift module 20 includes a first switching unit 21, a level conversion unit 22 and a second switching unit 23, the input end of the first switching unit 21 is connected to a GPIO port of the controller 10, and the first output end of the first switching unit 21 is connected to the first input end of the second switching unit 23, for outputting a first voltage. For example, when the GPIO interface 13 outputs 3.3V, the voltage output by the second switching unit 23 is 3.3V.

[0032] The level conversion unit 22 is used to convert the 3.3V of the GPIO interface 13 into other voltages, such as 1.8V, 1.2V, etc. The second output end of the first switching unit 21 is connected to the second input end of the second switching unit 23 through the level conversion unit 22, and is used to convert the first voltage output by the controller 10 into a second voltage, a third voltage and / or a fourth voltage, and the second switching unit 23 switches to the first voltage, the second voltage, the third voltage or the fourth voltage to communicate with the sensor to be tested.

[0033] Optionally, the first voltage is 3.3V, the second voltage is 1.2V, the third voltage is 1.5V, and the fourth voltage is 1.8V to meet the power supply requirements of different sensors. The level conversion unit 22 is used to convert 3.3V to voltages such as 1.8V, 1.5V, and 1.2V. Both the first switching unit 21 and the second switching unit 23 can use analog switches to realize arbitrary switching between GPIO interface 133.3V and 1.8V / 1.5V / 1.2 to meet the requirements of working circuits of different types of sensors.

[0034] Please continue reading Figure 1 and Figure 2 In the test circuit of the utility model, the controller 10 also includes an ATE (Automatic Test Equipment) interface 14 and a JTAG (Joint Test Action Group, mainly used for internal chip testing) interface 15. The ATE interface 14 is used to connect to an ATE test machine, and can realize performance tests such as disconnection and short circuit detection of each pin of the sensor, and can meet product batch testing without the need to develop additional ATE machine test boards. The JTAG interface 15 is used to communicate with the internal module of the sensor to be tested, that is, to test the internal module of the sensor to be tested, such as programming devices such as flash.

[0035] Optionally, the sensor to be tested is one or more sensors used in consumer electronic products such as DTOF sensors, fingerprint collectors, acceleration sensors, gyroscopes, air pressure sensors, compass sensors, etc. These sensors can all use the test circuit of the utility model to perform functional tests, and there is no need to design test circuits for each sensor one by one, thereby reducing the research and development and procurement costs of the test board, saving warehouse space, and shortening the research and development and production cycle.

[0036] Furthermore, in the test circuit of the present invention, the controller 10 further includes a serial port 16 and / or a USB interface 17 for communicating with a host computer, and communicates with different types of host computers through the serial port 16 or the USB interface 17, thereby improving its compatibility with the host computer. The USB interface 17 can adopt a Type C interface, etc., and communicate with an external host computer through USB2.0, with a fast communication speed and compatible with most host computers.

[0037] Furthermore, the controller 10 also includes multiple groups of ADC (analog-to-digital converter) interfaces and DAC (digital-to-analog converter) interfaces. The test circuit of the utility model also includes multiple DC-DC modules 40. One end of the ADC interface 18 is connected to the second switching unit 23, and the other end of the ADC interface 18 is connected to the current detection module 30 and the DC-DC module 40. One end of the DAC interface 19 is connected to the second switching unit 23, and the other end of the DAC interface 19 is connected.

[0038] The DC-DC module 40 (DC-to-DC Converter, also known as a DC-DC converter, is a circuit for converting electric energy) can convert a DC power supply into a DC (or approximate DC) power supply of different voltages. It is mainly used to provide bias voltage and power supply for multiple groups of sensors to be tested, and communicate with the controller 10 through the ADC interface 18 and DAC interface 19 of the controller 10.

[0039] In this practical example, the controller 10 can read the output voltage provided by the DC-DC module 40 for the sensor to be tested through the ADC interface 18, which can be used to detect the voltage accuracy, and adjust the output voltage of the DC-DC module 40 through the DAC interface 19 to achieve the required voltage value, so as to control multiple voltages of the sensor to be tested, thereby satisfying the test circuit to test the same or different types of sensors at the same time.

[0040] In the test circuit of the present invention, the current detection module 30, the DC-DC module 40, the ADC interface 18 and the DAC interface 19 can be set according to the number of sensors to be tested, such as Figure 2 As shown, I 2 C1 interface, ADC1 interface, DAC1 interface, current detection module 301, DC-DC module 401 are mainly used for testing the DTOF sensor. 2 The C2 interface, ADC2 interface, DAC2 interface, current detection module 302 and DC-DC module 402 can be used to test other sensors at the same time.

[0041] The utility model also provides a test board, on which a plurality of sensor mounting positions and a test circuit are arranged, wherein the sensor mounting position is electrically connected to a level shift module of the test circuit and to a plurality of current detection modules. Since the test circuit of the test circuit has been described in detail above, it will not be repeated here.

[0042] To summarize, during testing, the utility model uses a level shifting module to convert the 3.3v voltage of the controller interface into a variety of other voltages to adapt to anti-interference detection of multiple groups of sensors to be tested and / or to adapt to the testing of sensors to be tested with multiple power supplies. During the test, the current detection module communicates with the controller to detect the working current of multiple sensors to be tested and feeds back to the controller, thereby improving the compatibility of the test circuit. It can be used for developers to develop internal demo verification tests, for customer demo sample testing, and for batch testing on production ATE test machines.

[0043] The level shift module converts 3.3V into voltages such as 1.8V, 1.5V, and 1.2V, achieving compatible design of multiple IO port levels and improving the compatibility of the test circuit.

[0044] At the same time, a DC-DC module is used to read the output voltage provided by the DC-DC module for the sensor to be tested through the ADC interface, thereby realizing power supply testing of sensor products requiring different voltages. The output voltage of the DC-DC module is adjusted through the DAC interface to achieve the required voltage value, thereby meeting different voltage requirements and voltage accuracy of the product.

[0045] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and utility model concept of the utility model, and all these changes or substitutions should fall within the protection scope of the claims attached to the utility model.

Claims

1. A test circuit, characterized in that: include: A controller comprising a plurality of groups of I 2 C / SPI interface and multiple GPIO interfaces; A level shift module, used to convert the 3.3V voltage of the GPIO interface into a variety of other voltages, so as to adapt to anti-interference detection of multiple groups of sensors to be tested and / or to test sensors to be tested with multiple power supplies; A plurality of current detection modules are used to communicate with the controller through the output of the level shift module to detect the operating current of a plurality of sensors to be tested and feed back the current to the controller.

2. The test circuit according to claim 1, characterized in that: The level shift module includes a first switching unit, a level conversion unit, and a second switching unit. The input end of the first switching unit is connected to a GPIO port of the controller, the first output end of the first switching unit is connected to the first input end of the second switching unit, and is used to output a first voltage. The second output end of the first switching unit is connected to the second input end of the second switching unit through the level conversion unit, and is used to convert the first voltage output by the controller into a second voltage, a third voltage and / or a fourth voltage, and the second switching unit switches the first voltage to the second voltage, the third voltage or the fourth voltage to communicate with the sensor to be tested.

3. The test circuit according to claim 2, characterized in that: The first voltage is 3.3V, the second voltage is 1.2V, the third voltage is 1.5V, and the fourth voltage is 1.8V.

4. The test circuit according to claim 1, characterized in that: The controller also includes multiple groups of ADC interfaces and DAC interfaces.

5. The test circuit according to claim 4, characterized in that: It also includes multiple DC-DC modules, which are used to provide bias voltage and power supply for multiple groups of sensors to be tested, and communicate with the controller through the ADC interface and DAC interface of the controller. The controller reads the output voltage provided by the DC-DC module for the sensor to be tested through the ADC interface, and adjusts the output voltage of the DC-DC module through the DAC interface.

6. The test circuit according to claim 1, characterized in that: The controller also includes a serial port and / or a USB interface for communicating with a host computer.

7. The test circuit according to claim 1, characterized in that: The controller also includes an ATE interface for connecting to an ATE tester and a JTAG interface for communicating with an internal module of the sensor to be tested.

8. The test circuit according to claim 1, characterized in that: The sensor to be tested is one or more of a DTOF sensor, a fingerprint collector, an acceleration sensor, a gyroscope, an air pressure sensor, and a compass sensor.

9. The test circuit according to claim 1, characterized in that: The controller is an MCU main control chip.

10. A test board, characterized in that: The test board is provided with a plurality of sensor mounting positions and a test circuit as described in any one of claims 1 to 9, wherein the sensor mounting position is electrically connected to a level shifting module of the test circuit and to a plurality of current detection modules.