Detection method of module test circuit

Through the combination of digital potentiometer, LDO and ADC, low-cost and high-precision detection of module test circuits is realized, which solves the problems of high cost and insufficient accuracy of module test circuits in the existing technology, and provides real-time detection and abnormal records. Function.

CN118731653APending Publication Date: 2024-10-01广东涌固科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411076686.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing module test circuits have high costs and insufficient accuracy, making it difficult to meet high-precision detection requirements.

Method used

Digital potentiometers, LDOs and ADCs are used to achieve closed-loop voltage output, and module control and data collection are implemented through communication protocols. Current and voltage sampling points are set, and voltage output accuracy is improved through differential amplification circuits and multiple amplification technology to realize module Real-time detection and anomaly recording.

Benefits of technology

It reduces the circuit cost, improves the test accuracy and work efficiency, realizes low-cost, high-precision module testing, and can actively cut off power to protect the module and ensure safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118731653A_ABST
    Figure CN118731653A_ABST
Patent Text Reader

Abstract

The invention provides a detection method of a module test circuit. The detection method comprises the following steps: step 1, connecting a test board with a module and a PC (Personal Computer); 2, connecting an ADC sampling module and an operational amplifier in parallel between the MCU and the module, and setting a voltage or current sampling point between two input ends of the operational amplifier; 3, on the basis of the step 2, a voltage stabilizer LDO is connected between the ADC sampling module and the operational amplifier through an electric wire, the voltage stabilizer LDO is connected to the output end of the operational amplifier, and an output voltage sampling point of the voltage stabilizer LDO is arranged on the electric wire; 4, current or voltage sampling is carried out on the sampling points in the step 2, whether the value of the sampled voltage or current exceeds a threshold value or not is judged, and if the value exceeds the threshold value, the step 5 is carried out; 5, actively cutting off power, recording abnormal information and feeding back the abnormal information to the PC; and step 6, carrying out closed-loop switching sampling on the output voltage of the LDO on the sampling point in the step 3, judging whether the numerical value of the sampling voltage or current exceeds a threshold value or not, and if the numerical value of the sampling voltage or current exceeds the threshold value, recording abnormity and adjusting the LDO. The problems that an existing module testing circuit is high in cost, complex in circuit and the like are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of circuits, and in particular relates to a detection method for a module test circuit. Background Art

[0002] With the development of science and technology, mobile phones have become a necessity in life, and module applications are becoming more and more common, such as camera modules, fingerprint modules, photosensitive modules, etc. For module detection, the traditional method uses DAC+op amp+ADC to achieve closed-loop voltage output. The cost of high-precision DAC is generally high, and high-voltage and high-current op amps also have the problem of high cost. Therefore, this field urgently needs to solve the high-cost test circuit and improve the accuracy of existing detection circuits. Summary of the invention

[0003] The present invention provides a detection method for a module test circuit, which aims to solve the problems of high cost and complex circuit of the existing module test circuit and improves the accuracy of the existing test circuit.

[0004] The present invention is achieved through the following technical solutions: A detection method for a module test circuit, the detection method comprising the following steps: Step 1: Connect the test board to the module and PC; Step 2: Connect the ADC sampling module and the op amp in parallel between the MCU and the module, set the current sampling point between the two input terminals of the op amp, and set the voltage sampling point at the output terminal of the regulator LDO; Step 3: Based on step 2, the output end of the voltage regulator LDO is connected to the module end through the resistor sampling point. The operational amplifier samples the voltage across the resistor through the differential amplifier circuit and amplifies it by multiples, thereby obtaining a large output voltage value. Step 4: Perform current sampling at the sampling point of step 2 to determine whether the current sampling value exceeds the threshold. If it exceeds the threshold, proceed to step 5; if it does not exceed the threshold, continue sampling; Step 5: Actively cut off the power supply and record the abnormal information and feed it back to the PC; Step 6: Perform closed-loop sampling of the output voltage of the voltage regulator LDO at the voltage sampling point in step 2 to determine whether the value of the sampled voltage exceeds a threshold. If it exceeds the threshold, record the abnormality and adjust the output voltage of the LDO.

[0005] Furthermore, the step 1 is specifically: The module is connected to the module power module of the test board through the POWER terminal. The module is connected to the clock module of the test board via the CLK terminal. The module is connected to the level conversion module of the test board through the I2C terminal. The module is connected to the level conversion module of the test board through the RST terminal. The module is connected to the level conversion module of the test board through the SIGNAL terminal. The test board is connected to the PC via RJ45 or USB.

[0006] Furthermore, the test board includes an MCU, a module power module, a clock module, a level conversion module, a DCDC voltage regulator module, a display screen, a programmable crystal oscillator module and a voltage regulator LDO. The MCU is respectively connected to the voltage regulator LDO, the module power module, the clock module, the DCDC voltage regulator module, the display screen, the programmable crystal oscillator module and the RJ45; the voltage regulator LDO is connected to the DCDC voltage regulator module, the DCDC voltage regulator module is connected to the module power module, the programmable crystal oscillator module is connected to the level conversion module, and the level conversion module, the clock module and the module power module are all connected to the module.

[0007] Furthermore, a digital potentiometer is arranged between the MCU and the voltage regulator LDO, and the digital potentiometer and the MCU transmit signals to each other via an I2C terminal or an SPI communication protocol.

[0008] Furthermore, an input end of an operational amplifier is connected in parallel between the voltage regulator LDO and the module, an output end of the operational amplifier is connected to an ADC sampling module, and the ADC sampling module is connected to an MCU.

[0009] Furthermore, the step 4 is specifically that the MCU performs voltage output adjustment and current detection through ADC sampling. When the current exceeds the threshold, it indicates that the module is abnormal and actively performs power-off protection.

[0010] Furthermore, a voltage sampling point and a resistance sampling point are set between the voltage regulator LDO and the digital potentiometer in the test board; the resistance sampling point needs to be connected to a grounding resistor when sampling the resistance value.

[0011] Furthermore, the digital potentiometer is to output a 5V voltage, the voltage sampling point is the FB pin of the LDO, the voltage is 0.5V, a 10-bit digital potentiometer is used, and the resistance value is 5.55K. At this time, the total range of the digital potentiometer is 50K, and the calculation method is as follows: 0.5*((50*D / 1024)+5.55) / 5.55 Among them, D is the setting value of the digital potentiometer. The maximum output voltage of the digital potentiometer is 5.004V, the minimum output voltage is 0.5044V, and the minimum resolution is less than 5mV. Therefore, the voltage accuracy with a step of 10mV can be obtained by adjusting the specification parameters of the resistor.

[0012] The beneficial effects of the present invention are: The load capacity and working efficiency of the power supply are improved, while the cost of the entire circuit is reduced.

[0013] The invention is a module testing circuit with low cost, simple circuit and strong practicality.

[0014] The present invention uses a digital potentiometer + LDO + ADC to achieve closed-loop voltage output, and at the same time realizes module control and data acquisition through communication, and detects the current working current of the module in real time, thereby ensuring excellent test accuracy and greatly reducing the application cost of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a block diagram of the present invention.

[0016] Figure 2 It is a schematic diagram of the connection position of the digital potentiometer of the present invention in the circuit.

[0017] Figure 3 It is a schematic diagram of the sampling points of the digital potentiometer of the present invention.

[0018] Figure 4 It is a schematic diagram of the position relationship of the programmable crystal oscillator of the present invention.

[0019] Figure 5 It is a schematic diagram of the connection relationship of the level conversion module of the present invention.

[0020] Figure 6 It is a schematic diagram of the position relationship of the AD sampling circuit of the present invention.

[0021] Figure 7 It is the internal circuit diagram of the test board of the present invention.

[0022] Figure 8 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0024] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. Implementation Method 1

[0025] This embodiment provides a module test circuit, which includes a module, a test board and a PC. The module is connected to a module power module of the test board through a POWER terminal. The module is connected to the clock module of the test board via the CLK terminal. The module is connected to the level conversion module of the test board through the I2C terminal. The module is connected to the level conversion module of the test board through the RST terminal. The module is connected to the level conversion module of the test board through the SIGNAL terminal. The test board is connected to the PC via RJ45 or USB.

[0026] Furthermore, the test board includes an MCU, a module power module, a clock module, a level conversion module, a DCDC voltage regulator module, a display screen, a programmable crystal oscillator module and a voltage regulator LDO. The MCU is respectively connected to the voltage regulator LDO, the module power module, the clock module, the DCDC voltage regulator module, the display screen, the programmable crystal oscillator module and the RJ45; the voltage regulator LDO is connected to the DCDC voltage regulator module, the DCDC voltage regulator module is connected to the module power module, the programmable crystal oscillator module is connected to the level conversion module, and the level conversion module, the clock module and the module power module are all connected to the module.

[0027] Specifically, the MCU can set the oscillation frequency through I2C. Different oscillation frequencies are generated according to different products. The frequency range is between 1K-68M. The programmable crystal oscillator uses ADI manufacturer LTC6903. The specific frequency setting formula is: F=2otc *2078(2-D / 1024), where D and OTC flags can be configured by MCU.

[0028] MCU sends relevant instructions through RST and I2C to initialize the module and set parameters; and can obtain information such as shutter and synchronization signal through signal.

[0029] Furthermore, a digital potentiometer is arranged between the MCU and the voltage regulator LDO, and the digital potentiometer and the MCU transmit signals to each other via an I2C terminal or an SPI communication protocol.

[0030] Furthermore, an input end of an operational amplifier is connected in parallel between the voltage regulator LDO and the module, an output end of the operational amplifier is connected to an ADC sampling module, and the ADC sampling module is connected to an MCU.

[0031] Specifically, ① is a digital potentiometer, using ADI manufacturer AD5272BRMZ; ② For LDO, TI manufacturer TPS7A7002DDAR is used. The MCU sends a signal to the digital potentiometer through SPI. After receiving the MCU information, the digital potentiometer switches to resistors of different resistance values ​​to obtain different voltages.

[0032] ⑤It uses a TFT screen to display address and other information; ⑥ The network port is used to communicate with the PC. The MCU uses internal RMII, which is connected to HR911105A through LAN8720, and then communicates with the PC; ⑦ AP64350SP-13 is used. The input power of the test board is 12V / 2A. The maximum input voltage of AP64350SP-13 can be up to 40V. The 12V voltage is converted into 5V, which is used for the module LDO and the internal power supply of the test board.

[0033] ⑧Use AMS1117 to convert 5V into 3.3V to power the chip; ⑨Adopt STM32F767ZGT6, support DSP function and powerful floating-point unit. Implementation Method 2

[0034] This embodiment provides a detection method for a module test circuit. This embodiment uses a circuit as in Embodiment 1. The detection method includes the following steps: Step 1: Connect the test board to the module and PC; Step 2: Connect the ADC sampling module and the op amp in parallel between the MCU and the module, set the current sampling point between the two input terminals of the op amp, and set the voltage sampling point at the output terminal of the voltage regulator LDO; Step 3: Based on step 2, the output end of the voltage regulator LDO is connected to the module end through the resistor sampling point. The operational amplifier samples the voltage across the resistor through the differential amplifier circuit and amplifies it by multiples, thereby obtaining a large output voltage value. Step 4: Perform current sampling at the sampling point in step 2 to determine whether the current sampling value exceeds the threshold. If it exceeds the threshold, proceed to step 5. If it does not exceed the threshold, continue sampling to ensure that the product can operate normally. Step 5: Actively cut off the power supply and record the abnormal information and feed it back to the PC; Step 6: Perform closed-loop sampling of the output voltage of the voltage regulator LDO at the voltage sampling point in step 2 to determine whether the value of the sampled voltage exceeds a threshold. If it exceeds the threshold, record the abnormality and adjust the output voltage of the LDO.

[0035] Specifically, the adjustment of LDO is to adjust the output resistance R of the digital potentiometer through the I2C terminal, connect the feedback terminal resistor Rf to the GND position, and obtain the output voltage value through the output voltage calculation formula of the voltage regulator LDO, Vout=0.5*(1+R / Rf). By adjusting the value of the output resistance R of the digital potentiometer, a suitable voltage value can be obtained.

[0036] Furthermore, the step 4 is specifically that the MCU performs voltage output adjustment and current detection through ADC sampling. When the current exceeds the threshold, it indicates that the module is abnormal and actively performs power-off protection.

[0037] Furthermore, a voltage sampling point and a resistance sampling point are set between the voltage regulator LDO and the digital potentiometer in the test board; the resistance sampling point needs to be connected to a grounding resistor when sampling the resistance value.

[0038] Furthermore, the digital potentiometer is to output a 5V voltage, the voltage sampling point is the FB pin of the LDO, the voltage is 0.5V, a 10-bit digital potentiometer is used, and the resistance value is 5.55K. At this time, the total range of the digital potentiometer is 50K, and the calculation method is as follows: 0.5*((50*D / 1024)+5.55) / 5.55 Among them, D is the setting value of the digital potentiometer. The maximum output voltage of the digital potentiometer is 5.004V, the minimum output voltage is 0.5044V, and the minimum resolution is less than 5mV. Therefore, the voltage accuracy with a step of 10mV can be obtained by adjusting the specification parameters of the resistor.

[0039] Specifically, the traditional DAC solution also uses 10 bits, and its resolution is calculated as follows: 5V / 1024=0.0048V.

[0040] The closed-loop voltage output is achieved by using a digital potentiometer + LDO + ADC, and the resolution can reach 0.0044V.

[0041] When achieving the same resolution, the overall cost of the DAC+op amp+ADC closed-loop detection solution is higher than that of the digital potentiometer+LDO+ADC solution.

[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A detection method for a module test circuit, characterized in that: The detection method comprises the following steps: Step 1: Connect the test board to the module and PC; Step 2: Connect the ADC sampling module and the op amp in parallel between the MCU and the module, set the current sampling point between the two input terminals of the op amp, and set the voltage sampling point at the output terminal of the regulator LDO; Step 3: Based on step 2, the output end of the voltage regulator LDO is connected to the module end through the resistor sampling point. The operational amplifier samples the voltage across the resistor through the differential amplifier circuit and amplifies it by multiples, thereby obtaining a large output voltage value. Step 4: Perform current sampling at the sampling point of step 2 to determine whether the current sampling value exceeds the threshold. If it exceeds the threshold, proceed to step 5; if it does not exceed the threshold, continue sampling; Step 5: Actively cut off the power supply and record the abnormal information and feed it back to the PC; Step 6: Perform closed-loop sampling of the output voltage of the voltage regulator LDO at the voltage sampling point in step 2 to determine whether the value of the sampled voltage exceeds a threshold. If it exceeds the threshold, record the abnormality and adjust the output voltage of the LDO.

2. A detection method for a module test circuit according to claim 1, characterized in that: The step 1 specifically comprises: The module is connected to the module power module of the test board through the POWER terminal. The module is connected to the clock module of the test board via the CLK terminal. The module is connected to the level conversion module of the test board through the I2C terminal. The module is connected to the level conversion module of the test board through the RST terminal. The module is connected to the level conversion module of the test board through the SIGNAL terminal. The test board is connected to the PC via RJ45 or USB.

3. The detection method of a module test circuit according to claim 1, characterized in that: The test board includes an MCU, a module power module, a clock module, a level conversion module, a DCDC voltage regulator module, a display screen, a programmable crystal oscillator module and a voltage regulator LDO; The MCU is respectively connected to the voltage regulator LDO, the module power module, the clock module, the DCDC voltage regulator module, the display screen, the programmable crystal oscillator module and the RJ45; the voltage regulator LDO is connected to the DCDC voltage regulator module, the DCDC voltage regulator module is connected to the module power module, the programmable crystal oscillator module is connected to the level conversion module, and the level conversion module, the clock module and the module power module are all connected to the module.

4. A detection method for a module test circuit according to claim 3, characterized in that: A digital potentiometer is arranged between the MCU and the voltage stabilizer LDO, and the digital potentiometer and the MCU transmit signals to each other through an I2C terminal or an SPI communication protocol.

5. The detection method of a module test circuit according to claim 3, characterized in that: The voltage regulator LDO is connected in parallel with the input end of the operational amplifier between the module, the output end of the operational amplifier is connected to the ADC sampling module, and the ADC sampling module is connected to the MCU.

6. The detection method of a module test circuit according to claim 1, characterized in that: Specifically, the step 4 is that the MCU performs voltage output adjustment and current detection through ADC sampling. When the current exceeds the threshold, it indicates that the module is abnormal and actively performs power-off protection.

7. A method for detecting a module test circuit according to claim 1, characterized in that: A voltage sampling point and a resistance sampling point are also set between the voltage regulator LDO and the digital potentiometer in the test board; the resistance sampling point needs to be connected to a grounding resistor when sampling the resistance value.

8. A method for detecting a module test circuit according to claim 7, characterized in that: The digital potentiometer is to output a 5V voltage, the voltage sampling point is the FB pin of the LDO, the voltage is 0.5V, a 10-bit digital potentiometer is used, the resistance value is 5.55K, and the total range of the digital potentiometer is 50K. The calculation method is as follows: 0.5*((50*D / 1024)+5.55) / 5.55 Among them, D is the setting value of the digital potentiometer. The maximum output voltage of the digital potentiometer is 5.004V, the minimum output voltage is 0.5044V, and the minimum resolution is less than 5mV. Therefore, the voltage accuracy with a step of 10mV can be obtained by adjusting the specification parameters of the resistor.