Chip open circuit and short circuit detection method
By using the main control module, analog switch switching module and constant current power supply module in the chip open and short circuit detection method, the chip open and short circuit test circuit is simplified, solving the problems of high cost and complexity in the existing technology, and achieving low cost , Simple circuit design, suitable for a variety of test scenarios.
Patent Information
- Application Number
- CN202411038037.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing chip open and short circuit test circuits are costly and complex, require positive and negative voltage power interfaces, take up a lot of space, and are inconvenient for transplantation.
The chip open and short circuit detection method is adopted, including the main control module, analog switch switching module and constant current power supply module. The constant current output is realized through the virtual short and virtual break principle of the op amp, which is used to conduct the internal diode of the chip and obtain the forward conduction of the diode. voltage, and obtain open and short circuit information through the AD sampling module, simplifying circuit design and eliminating the need for negative voltage power supply.
It realizes a low-cost, simple circuit and small space-occupying open and short-circuit test circuit, reduces production costs, simplifies the test acquisition circuit, and is suitable for the application of different test circuits.
Smart Images

Figure CN118777841A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of circuits, and in particular relates to a chip open-circuit and short-circuit detection method. Background Art
[0002] In the field of chip testing and mobile phone CCM, open and short circuit testing is a necessary test item. Open and short circuit testing can effectively improve test efficiency and effectively determine the open and short circuit conditions of different ends. The traditional open and short circuit test generates a forward and reverse current loop for the IO port, which requires a positive and negative voltage power supply interface, and a reverse power follower is required for the negative voltage condition. The circuit is complex and costly, and the space required for the circuit board is also large, which is not convenient for transplantation. Summary of the invention
[0003] The present invention provides a chip open-short circuit detection method, which aims to solve the problems of the open-short circuit test circuit of the existing module, such as high cost and complex circuit.
[0004] The present invention is achieved through the following technical solutions: A chip open-short circuit detection method, the detection method uses an open-short circuit detection circuit, the chip open-short circuit detection circuit includes a main control module, an analog switch switching module and a constant current power supply module; The constant current power supply module obtains a constant current source output through the virtual short and virtual break application principle of the operational amplifier, which is used to turn on the internal diode of the chip to obtain the forward conduction voltage of the diode; The main control module is used to control the analog switch and obtain the open and short circuit information through the AD sampling module; The analog switch switching module is used for testing the open and short circuit of different IOs, and respectively testing the conduction state of the upper diode and the lower diode; The AD sampling module is used in conjunction with the constant current module to sample the diode clamp pull voltage; The chip open-short circuit detection also includes a communication module and a power supply module. The communication module transmits the data information collected by the MCU to the host computer for storage; The power supply module generates different voltage values for powering different modules; The analog switch switching module is connected to the main control module, the constant current power supply module and the chip C respectively; The main control module receives the AD sampling module of the analog switch switching module, the main control module sends a control signal to the analog switch switching module, and the analog switch switching module receives the electrical signal of the constant current power supply module; The IO ports of the chip C are connected to the lower diode and the upper diode respectively, and the analog switch switching module forms a selectable switch with the lower diode and the upper diode; The I1- terminal of the analog switch switching module is connected to the IOVDD terminal of the upper diode of chip C, and the I2+ terminal of the analog switch switching module is connected to the GND terminal of the lower diode of chip C. Both the I2- terminal and the I1+ terminal of the analog switch switching module are used in conjunction with the IO port of chip C to achieve separate sampling of the upper diode and the lower diode; Further, the constant current power supply module includes an operational amplifier U11-A whose terminal No. 2 is respectively connected to one end of a resistor R32 and one end of a resistor R33, the other end of the resistor R32 is grounded, the other end of the resistor R33 is respectively connected to one end of an output resistor R36 and terminal No. 1 of the operational amplifier U11-A, terminal No. 3 of the operational amplifier U11-A is respectively connected to one end of a resistor R34 and one end of a resistor R35, the other end of the resistor R32 is connected to a 1.2V voltage, the other end of the resistor R35 is respectively connected to terminal No. 7 of the operational amplifier U11-B and terminal No. 6 of the operational amplifier U11-B, terminal No. 4 of the operational amplifier U11-A is respectively connected to a 5V voltage and one end of a capacitor C27, the other end of the capacitor C27 is grounded, and terminal No. 11 of the operational amplifier U11-A is grounded. The other end of the resistor R36 is connected to the terminal 5 and the S_MO_IUOT terminal of the operational amplifier U11-B respectively.
[0005] Further, the analog switch switching module includes a chip U3 and a chip U4, the terminal 16 of the chip U3 is respectively connected to the 3.3V voltage and one end of the capacitor C5, the other end of the capacitor C5 is grounded, the terminal 12 of the chip U3 and the terminal 3 of the chip U3 are both connected to the S_MO_IN terminal, the terminal 14 of the chip U3 is connected to the S_MO_COM terminal, the terminal 15 of the chip U3 is connected to the MO_DOVDD_OS terminal, the terminal 4 of the chip U3 is connected to the MO_GND_OS terminal, the terminal 9 of the chip U3 is respectively connected to the terminal 10 of the chip U3 and the terminal 11 of the chip U3 and then connected to the PB0_S_MO_EN terminal, and the terminal 6 of the chip U3 is connected to the PB1_S_MO_INH terminal; Terminal 13 of the chip U3, terminal 2 of the chip U3, terminal 7 of the chip U3, and terminal 8 of the chip U3 are all grounded; The No. 16 terminal of the chip U4 is connected to the 3.3V voltage and one end of the capacitor C6 respectively, and the other end of the capacitor C6 is grounded, the No. 3 terminal of the chip U4 is connected to the S_MO_COM terminal, the No. 6 terminal of the chip U4 is connected to the PB1_S_MO_INH terminal, the No. 9 terminal of the chip U4 is connected to the PB4_S_MO_C terminal, the No. 10 terminal of the chip U4 is connected to the PB4_S_MO_B terminal, the No. 11 terminal of the chip U4 is connected to the PB2_S_MO_A terminal, the No. 13 terminal of the chip U4 is connected to the CO_P01_OS terminal, and the Terminal 14 of chip U4 is connected to terminal CO_P02_OS, terminal 15 of chip U4 is connected to terminal CO_P03_OS, terminal 12 of chip U4 is connected to terminal CO_P04_OS, terminal 1 of chip U4 is connected to terminal CO_PWDN_OS, terminal 5 of chip U4 is connected to terminal CO_RST_OS, terminal 2 of chip U4 is connected to terminal CO_SCL_OS, terminal 4 of chip U4 is connected to terminal CO_SDA_OS, terminal 7 of chip U4 is connected to terminal 8 of chip U4 and then grounded; Furthermore, the main control module includes a chip U12, wherein the terminal 40 of the chip U12 is connected in series with a resistor R7 and then connected to the PC9_P_M1_C terminal, the terminal 39 of the chip U12 is connected in series with a resistor R8 and then connected to the PC8_P_M1_B terminal, the terminal 38 of the chip U12 is connected in series with a resistor R9 and then connected to the PC7_P_M1_A terminal, the terminal 37 of the chip U12 is connected in series with a resistor R10 and then connected to the PC6_P_M1_INH terminal, the terminal 25 of the chip U12 is connected in series with a resistor R11 and then connected to the PC5_P_M1_A terminal. The 24th terminal of the chip U12 is connected to the PC4_S_M1_C terminal after being connected in series with the resistor R12, the 11th terminal of the chip U12 is connected to the PC3_S_M1_B terminal after being connected in series with the resistor R13, the 10th terminal of the chip U12 is connected to the PC2_S_M1_A terminal after being connected in series with the resistor R15, the 9th terminal of the chip U12 is connected to the PC1_S_M1_INH terminal after being connected in series with the resistor R16, and the 8th terminal of the chip U12 is connected to the PC40_S_M1_EN terminal after being connected in series with the resistor R17; The terminal 6 of the chip U12 is connected to the OSC_OUT terminal, the terminal 5 of the chip U12 is connected to the OSC_IN terminal, the terminal 60 of the chip U12 is connected in series with a resistor R5 and then grounded, and the terminal 7 of the chip U12 is connected to the NRST terminal; Terminal 36 of the chip U12 is connected to the PB15_SPI2_MOSI terminal, terminal 35 of the chip U12 is connected to the PB14_SPI2_MISO terminal, terminal 34 of the chip U12 is connected to the PB13_SPI2_SCK terminal, and terminal 33 of the chip U12 is connected to the PB12_SPI2_CS terminal; The 62nd terminal of the chip U12 is connected to the PB9_P_MO_C terminal after being connected in series with the resistor R18, the 61st terminal of the chip U12 is connected to the PB8_P_MO_B terminal after being connected in series with the resistor R19, and the 59th terminal of the chip U12 is connected to the PB7_P_MO_A terminal after being connected in series with the resistor R20. Terminal 58 of the chip U12 is connected to the PB6_P_MO_INH terminal after being connected in series with resistor R21, terminal 57 of the chip U12 is connected to the PB5_P_MO_EN terminal after being connected in series with resistor R22, terminal 56 of the chip U12 is connected to the PB4_S_MO_C terminal after being connected in series with resistor R23, terminal 55 of the chip U12 is connected to the PB3_S_MO_B terminal after being connected in series with resistor R24, terminal 28 of the chip U12 is connected to the PB2_S_MO_A terminal after being connected in series with resistor R25, terminal 27 of the chip U12 is connected to the PB1_S_MO_INH terminal after being connected in series with resistor R26, and terminal 26 of the chip U12 is connected to the PBO_S_MO_EN terminal after being connected in series with resistor R27; Terminal 1 of chip U12, terminal 13 of chip U12, terminal 32 of chip U12, terminal 48 of chip U12, terminal 64 of chip U12 and terminal 19 of chip U12 are connected and grounded, and terminal 12 of chip U12, terminal 31 of chip U12, terminal 47 of chip U12, terminal 63 of chip U12 and terminal 18 of chip U12 are connected and grounded.
[0006] Further, the S_MO_IN terminal is connected to one end of a resistor R28, the other end of the resistor R28 is respectively connected to one end of a capacitor C13 and PA0_ADC12_IN0, and the other end of the capacitor C13 is grounded; The S_MO_IN terminal is connected to one end of a resistor R29, the other end of the resistor R29 is respectively connected to one end of a capacitor C24 and PA1_ADC12_IN1, and the other end of the capacitor C24 is grounded; The S_M1_IN terminal is connected to one end of the resistor R30, the other end of the resistor R30 is respectively connected to one end of the capacitor C25 and PA2_ADC12_IN2, and the other end of the capacitor C25 is grounded; The S_M1_IN terminal is connected to one end of the resistor R31, the other end of the resistor R31 is respectively connected to one end of the capacitor C26 and PA3_ADC12_IN3, and the other end of the capacitor C26 is grounded.
[0007] Further, the OSC_IN terminal is respectively connected to the terminal 1 of the chip Y1 and one end of the capacitor C15, the other end of the capacitor C15 is respectively connected to the terminal 2 of the chip Y1 and the ground terminal, the OSC_OUT terminal is respectively connected to the terminal 3 of the chip Y1 and one end of the capacitor C14, the other end of the capacitor C14 is respectively connected to the terminal 4 of the chip Y1 and the ground terminal; The NRST terminal is connected to one end of the resistor R44 and one end of the capacitor C47 respectively, the other end of the resistor R44 is connected to a 3.3V voltage, and the other end of the capacitor C47 is grounded.
[0008] Furthermore, the AD sampling is specifically that the 1.2V voltage is connected to one end of the resistor R1, the S_MO_IOUT end is connected to one end of the resistor R2, the other end of the resistor R1 is connected to one end of the resistor R2 and then connected to the S_MO_IN end; The 1.2V voltage is connected to one end of the resistor R3, the P_MO_IOUT end is connected to one end of the resistor R4, the other end of the resistor R3 is connected to one end of the resistor R4 and then connected to the P_MO_IN end; The 1.2V voltage is connected to one end of the resistor R53, the S_M1_IOUT end is connected to one end of the resistor R54, and the other end of the resistor R53 is connected to one end of the resistor R54 and then connected to the S_M1_IN end; The 1.2V voltage is connected to one end of the resistor R55, the P_M1_IOUT end is connected to one end of the resistor R56, and the other end of the resistor R55 is connected to one end of the resistor R56 and then connected to the P_M1_IN end.
[0009] A chip open-short circuit detection method, the method comprising the following steps: Step 1, debug the chip open and short circuit detection circuit; Step 2: Based on the circuit in step 1, collect the voltage of the upper diode and transmit it to the host computer; Step 3: Based on the circuit in step 1, collect the voltage of the diode and transmit it to the host computer; Step 4: Compare the voltage values in step 2 and step 3 with the open-short circuit threshold to determine whether the connection of the circuit board is intact.
[0010] Furthermore, the voltage of the upper diode collected in step 2 is transmitted to the host computer, specifically, the I1- terminal of the analog switch switching module is connected to the IOVDD terminal of the upper diode of the chip C, and the I1+ terminal of the analog switch switching module is connected to the IO port of the chip C. The current direction is from the I+ terminal to the I1+ terminal, and then passes through the IO port, the upper diode, IOVDD, I1- and I- in sequence to form a loop; In the step 3, the voltage of the lower diode is collected and transmitted to the upper computer. Specifically, the I2+ end of the analog switch switching module is connected to the GND end of the lower diode of the chip C, and the 21- end of the analog switch switching module is connected to the IO port of the chip C. The current direction is from the I+ end to the I2+ end, and then passes through GND, the lower diode, the IO port, I2- and I- to form a loop.
[0011] Furthermore, the step 4 specifically includes collecting the corresponding diode voltages respectively; When an open circuit occurs, the collected voltage value V > Vopen; When a short circuit occurs, the voltage value collected is V < Vshort; It is normal for the voltage value to be Vopen ≥ V ≥ Vshort; Among them, Vopen is the open circuit voltage and Vshort is the short circuit voltage.
[0012] The beneficial effects of the present invention are: The invention is an open-short circuit testing circuit with low cost, simple circuit and strong practicality.
[0013] The present invention can use the same power supply for power supply through different switch switching, and does not need to generate a negative voltage power supply, thereby greatly reducing the production cost and simplifying the test acquisition circuit, and does not need to convert the negative pressure into a positive pressure for acquisition.
[0014] The utility model has a simple circuit and occupies a small space, and can be applied to different test circuits with great convenience, so that the acquisition equipment can be more miniaturized. 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 an open-short circuit test diode of the module of the present invention.
[0017] Figure 3 It is a circuit diagram of the IO port of the chip C of the present invention and the analog switch switching module.
[0018] Figure 4 This is the analog switch channel selection circuit diagram A of the present invention.
[0019] Figure 5 This is the analog switch channel selection circuit diagram B of the present invention.
[0020] Figure 6 It is the AD sampling circuit diagram of the present invention.
[0021] Figure 7 It is the circuit diagram of the main control module of the present invention.
[0022] Figure 8 It is the crystal oscillator circuit diagram of the present invention.
[0023] Fig. 9 It is a constant current power supply circuit diagram of the present invention.
[0024] Fig.10 It is a constant current style circuit diagram of the present invention.
[0025] Fig.11 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0026] 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.
[0027] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0028] A chip open-short circuit detection circuit, the circuit includes a main control module, an analog switch switching module, a constant current power supply module and an AD sampling module; the constant current power supply module obtains a constant current source output through the virtual short and virtual break application principle of the operational amplifier LM324PWR, and the constant current source is mainly used to turn on the internal diode of the chip so as to obtain the forward conduction voltage of the diode; The main control module uses STM32F103RCT6 as the main control chip, controls the analog switch through the main control module, and obtains the open and short circuit information through the AD sampling module; The analog switch switching module adopts CD4051BPWR and CD4053BPWR, and switches different IOs to test the open and short circuits, and respectively tests the conduction states of the upper diode and the lower diode.
[0029] The chip open-short circuit detection circuit also includes a communication module, a sampling module and a power supply module; The communication module can transmit the data information collected by the MCU to the host computer for storage, which is convenient for tracing.
[0030] The sampling module is used in conjunction with the constant current module to sample the diode clamp voltage.
[0031] The power supply module generates different voltage values for powering different modules.
[0032] The circuit comprises a main control module, an analog switch switching module and a constant current power supply module, wherein the analog switch switching module is connected to the main control module, the constant current power supply module and the chip respectively; The main control module receives AD sampling from the analog switch switching module, the main control module sends a control signal to the analog switch switching module, and the analog switch switching module receives an electrical signal from the constant current power supply module; The IO ports of the chip C are connected to the lower diode and the upper diode respectively, and the analog switch switching module forms a selectable switch with the lower diode and the upper diode.
[0033] The analog switch is switched by the main control chip, and then the corresponding AD value is read. After the voltage is obtained, it is compared with the set value to draw an open or short circuit conclusion.
[0034] Furthermore, the I1- end of the analog switch switching module is connected to the IOVDD end of the upper diode of chip C, and the I2+ end of the analog switch switching module is connected to the GND end of the lower diode of chip C. Both the I2- end and the I1+ end of the analog switch switching module are used in conjunction with the IO port of chip C to achieve separate sampling of the upper diode and the lower diode.
[0035] Further, the constant current power supply module includes an operational amplifier U11-A whose terminal No. 2 is respectively connected to one end of a resistor R32 and one end of a resistor R33, the other end of the resistor R32 is grounded, the other end of the resistor R33 is respectively connected to one end of an output resistor R36 and terminal No. 1 of the operational amplifier U11-A, terminal No. 3 of the operational amplifier U11-A is respectively connected to one end of a resistor R34 and one end of a resistor R35, the other end of the resistor R32 is connected to a 1.2V voltage, the other end of the resistor R35 is respectively connected to terminal No. 7 of the operational amplifier U11-B and terminal No. 6 of the operational amplifier U11-B, terminal No. 4 of the operational amplifier U11-A is respectively connected to a 5V voltage and one end of a capacitor C27, the other end of the capacitor C27 is grounded, and terminal No. 11 of the operational amplifier U11-A is grounded. The other end of the resistor R36 is connected to the terminal 5 and the S_MO_IUOT terminal of the operational amplifier U11-B respectively.
[0036] The constant current power supply module also includes a terminal No. 9 of the operational amplifier U11-C connected to one end of a resistor R37 and one end of a resistor R38, the other end of the resistor R37 is grounded, the other end of the resistor R38 is connected to one end of an output resistor R41 and the terminal No. 8 of the operational amplifier U11-C, the terminal No. 10 of the operational amplifier U11-C is connected to one end of a resistor R39 and one end of a resistor R40, the other end of the resistor R39 is connected to a 1.2V voltage, and the other end of the resistor R40 is connected to the terminal No. 13 of the operational amplifier U11-D and the terminal No. 14 of the operational amplifier U11-D, respectively. The other end of the resistor R41 is connected to the terminal 12 and the P_MO_IUOT terminal of the operational amplifier U11-D respectively.
[0037] The constant current power supply module includes an operational amplifier U13-A, whose terminal No. 2 is respectively connected to one end of a resistor R42 and one end of a resistor R43, the other end of the resistor R42 is grounded, the other end of the resistor R43 is respectively connected to one end of an output terminal resistor R47 and terminal No. 1 of the operational amplifier U13-A, the terminal No. 3 of the operational amplifier U13-A is respectively connected to one end of a resistor R45 and one end of a resistor R46, the other end of the resistor R45 is connected to a 1.2V voltage, the other end of the resistor R46 is respectively connected to the terminal No. 7 of the operational amplifier U13-B and the terminal No. 6 of the operational amplifier U13-B, the terminal No. 4 of the operational amplifier U13-A is respectively connected to a 5V voltage and one end of a capacitor C28, the other end of the capacitor C28 is grounded, and the terminal No. 11 of the operational amplifier U13-A is grounded. The other end of the resistor R47 is connected to the terminal 5 and the S_MI_IUOT terminal of the operational amplifier U13-B respectively.
[0038] The constant current power supply module also includes a No. 9 terminal of an operational amplifier U13-C connected to one end of a resistor R48 and one end of a resistor R49, the other end of the resistor R48 is grounded, the other end of the resistor R49 is connected to one end of an output resistor R52 and the No. 8 terminal of the operational amplifier U13-C, the No. 10 terminal of the operational amplifier U13-C is connected to one end of a resistor R50 and one end of a resistor R51, the other end of the resistor R50 is connected to a 1.2V voltage, and the other end of the resistor R51 is connected to the No. 13 terminal of the operational amplifier U13-D and the No. 14 terminal of the operational amplifier U13-D, respectively. The other end of the resistor R52 is connected to the terminal 12 and the P_MI_IUOT terminal of the operational amplifier U13-D respectively.
[0039] Specifically, for the design circuit of the constant current source, the voltage is named after the chip pin (terminal), U1=2U2; U2=U3; U5=U6; U3=0.5U6+0.5Ui(Ui=1.2V)-->0.6=U3-0.5U5 Iout=(U1-U5) / 12K=(2U3-U5) / 12K=0.1mA; Thus a constant current source of 0.1mA is obtained.
[0040] Further, the analog switch switching module includes a chip U3 and a chip U4, the terminal 16 of the chip U3 is respectively connected to the 3.3V voltage and one end of the capacitor C5, the other end of the capacitor C5 is grounded, the terminal 12 of the chip U3 and the terminal 3 of the chip U3 are both connected to the S_MO_IN terminal, the terminal 14 of the chip U3 is connected to the S_MO_COM terminal, the terminal 15 of the chip U3 is connected to the MO_DOVDD_OS terminal, the terminal 4 of the chip U3 is connected to the MO_GND_OS terminal, the terminal 9 of the chip U3 is respectively connected to the terminal 10 of the chip U3 and the terminal 11 of the chip U3 and then connected to the PB0_S_MO_EN terminal, and the terminal 6 of the chip U3 is connected to the PB1_S_MO_INH terminal; Terminal 13 of the chip U3, terminal 2 of the chip U3, terminal 7 of the chip U3, and terminal 8 of the chip U3 are all grounded; The No. 16 terminal of the chip U4 is connected to the 3.3V voltage and one end of the capacitor C6 respectively, and the other end of the capacitor C6 is grounded, the No. 3 terminal of the chip U4 is connected to the S_MO_COM terminal, the No. 6 terminal of the chip U4 is connected to the PB1_S_MO_INH terminal, the No. 9 terminal of the chip U4 is connected to the PB4_S_MO_C terminal, the No. 10 terminal of the chip U4 is connected to the PB4_S_MO_B terminal, the No. 11 terminal of the chip U4 is connected to the PB2_S_MO_A terminal, the No. 13 terminal of the chip U4 is connected to the CO_P01_OS terminal, and the Terminal 14 of chip U4 is connected to terminal CO_P02_OS, terminal 15 of chip U4 is connected to terminal CO_P03_OS, terminal 12 of chip U4 is connected to terminal CO_P04_OS, terminal 1 of chip U4 is connected to terminal CO_PWDN_OS, terminal 5 of chip U4 is connected to terminal CO_RST_OS, terminal 2 of chip U4 is connected to terminal CO_SCL_OS, terminal 4 of chip U4 is connected to terminal CO_SDA_OS, terminal 7 of chip U4 is connected to terminal 8 of chip U4 and then grounded.
[0041] The analog switch switching module includes a chip U6 and a chip U5, the terminal 16 of the chip U6 is respectively connected to a 3.3V voltage and one end of a capacitor C8, the other end of the capacitor C8 is grounded, the terminal 12 of the chip U6 and the terminal 3 of the chip U6 are both connected to the P_MO_IN terminal, the terminal 14 of the chip U6 is connected to the P_MO_COM terminal, the terminal 15 of the chip U6 is connected to the MO_DOVDD_OS terminal, the terminal 4 of the chip U6 is connected to the MO_GND_OS terminal, the terminal 9 of the chip U6 is respectively connected to the terminal 10 of the chip U6 and the terminal 11 of the chip U6 and then connected to the PB5_P_MO_EN terminal, and the terminal 6 of the chip U6 is connected to the PB6_P_MO_INH terminal; Terminal 13 of the chip U6, terminal 2 of the chip U6, terminal 7 of the chip U6, and terminal 8 of the chip U6 are all grounded; The 16th terminal of the chip U5 is connected to the 3.3V voltage and one end of the capacitor C6 respectively, the other end of the capacitor C6 is grounded, the 3rd terminal of the chip U5 is connected to the P_MO_COM terminal, the 6th terminal of the chip U5 is connected to the PB6_P_MO_INH terminal, the 9th terminal of the chip U5 is connected to the PB9_P_MO_C terminal, the 10th terminal of the chip U5 is connected to the PB8_S_MO_B terminal, the 11th terminal of the chip U5 is connected to the PB7_P_MO _A terminal is connected, terminal 13 of the chip U5 is connected to the MO_MCLK_OS terminal, terminal 14 of the chip U5 is connected to the MO_D0VDD_OS terminal, terminal 15 of the chip U5 is connected to the MO_AFVDD_OS terminal, terminal 12 of the chip U5 is connected to the MO_AVDD_OS terminal, terminal 1 of the chip U5 is connected to the MO_DVDD_OS terminal, terminal 7 of the chip U5 is connected to terminal 8 of the chip U5 and then grounded.
[0042] The analog switch switching module includes a chip U7 and a chip U8, the terminal 16 of the chip U7 is respectively connected to the 3.3V voltage and one end of the capacitor C9, the other end of the capacitor C9 is grounded, the terminal 12 of the chip U7 and the terminal 3 of the chip U7 are both connected to the S_MO_IN terminal, the terminal 14 of the chip U7 is connected to the S_M1_COM terminal, the terminal 15 of the chip U7 is connected to the M1_DOVDD_OS terminal, the terminal 4 of the chip U7 is connected to the M1_GND_OS terminal, the terminal 9 of the chip U7 is respectively connected to the terminal 10 of the chip U7 and the terminal 11 of the chip U7 and then connected to the PC0_S_M1_EN terminal, and the terminal 6 of the chip U7 is connected to the PC1_S_M1_INH terminal; Terminal 13 of the chip U7, terminal 2 of the chip U7, terminal 7 of the chip U7, and terminal 8 of the chip U7 are all grounded; Terminal 16 of the chip U8 is connected to a 3.3V voltage and one end of a capacitor C10 respectively, the other end of the capacitor C10 is grounded, terminal 3 of the chip U8 is connected to the S_M1_COM terminal, terminal 6 of the chip U8 is connected to the PC1_S_M1_INH terminal, terminal 9 of the chip U8 is connected to the PC4_S_M1_C terminal, terminal 10 of the chip U8 is connected to the PC3_S_M1_B terminal, terminal 11 of the chip U8 is connected to the PC2_S_M1_A terminal, terminal 13 of the chip U8 is connected to the C1_P01_OS terminal, and the Terminal 14 of the chip U8 is connected to the C1_P02_OS terminal, terminal 15 of the chip U8 is connected to the C1_P03_OS terminal, terminal 12 of the chip U8 is connected to the C1_P04_OS terminal, terminal 1 of the chip U8 is connected to the C1_PWDN_OS terminal, terminal 5 of the chip U8 is connected to the C1_RST_OS terminal, terminal 2 of the chip U8 is connected to the C1_SCL_OS terminal, terminal 4 of the chip U8 is connected to the C1_SDA_OS terminal, and terminal 7 of the chip U8 is connected to terminal 8 of the chip U8 and then grounded.
[0043] The analog switch switching module includes a chip U10 and a chip U9, a terminal 16 of the chip U10 is respectively connected to a 3.3V voltage and one end of a capacitor C12, the other end of the capacitor C12 is grounded, a terminal 12 of the chip U10 and a terminal 3 of the chip U10 are both connected to a P_M1_IN terminal, a terminal 14 of the chip U10 is connected to a P_M1_COM terminal, a terminal 15 of the chip U10 is connected to an M1_DOVDD_OS terminal, a terminal 4 of the chip U10 is connected to an M1_GND_OS terminal, a terminal 9 of the chip U10 is respectively connected to a terminal 10 of the chip U10 and a terminal 11 of the chip U10 and then to a PC5_P_M1_EN terminal, and a terminal 6 of the chip U10 is connected to a PC6_P_M1_INH terminal; Terminal 13 of the chip U10, terminal 2 of the chip U10, terminal 7 of the chip U10, and terminal 8 of the chip U10 are all grounded; The 16th terminal of the chip U9 is connected to the 3.3V voltage and one end of the capacitor C11 respectively, the other end of the capacitor C11 is grounded, the 3rd terminal of the chip U9 is connected to the P_M1_COM terminal, the 6th terminal of the chip U9 is connected to the PC6_P_M1_INH terminal, the 9th terminal of the chip U9 is connected to the PC9_P_M1_C terminal, the 10th terminal of the chip U9 is connected to the PC8_P_M1_B terminal, the 11th terminal of the chip U9 is connected to the PC7_P_M1_C terminal, and the 12th terminal of the chip U9 is connected to the PC8_P_M1_B terminal. 1_A terminal of the chip U9, terminal 13 of the chip U9 is connected to the M1_MCLK_OS terminal, terminal 14 of the chip U9 is connected to the M1_D0VDD_OS terminal, terminal 15 of the chip U9 is connected to the M1_AFVDD_OS terminal, terminal 12 of the chip U9 is connected to the M1_AVDD_OS terminal, terminal 1 of the chip U9 is connected to the M1_DVDD_OS terminal, terminal 7 of the chip U9 is connected to terminal 8 of the chip U9 and then grounded.
[0044] Furthermore, the main control module includes a chip U12, wherein the terminal 40 of the chip U12 is connected in series with a resistor R7 and then connected to the PC9_P_M1_C terminal, the terminal 39 of the chip U12 is connected in series with a resistor R8 and then connected to the PC8_P_M1_B terminal, the terminal 38 of the chip U12 is connected in series with a resistor R9 and then connected to the PC7_P_M1_A terminal, the terminal 37 of the chip U12 is connected in series with a resistor R10 and then connected to the PC6_P_M1_INH terminal, the terminal 25 of the chip U12 is connected in series with a resistor R11 and then connected to the PC5_P_M1_A terminal. The 24th terminal of the chip U12 is connected to the PC4_S_M1_C terminal after being connected in series with the resistor R12, the 11th terminal of the chip U12 is connected to the PC3_S_M1_B terminal after being connected in series with the resistor R13, the 10th terminal of the chip U12 is connected to the PC2_S_M1_A terminal after being connected in series with the resistor R15, the 9th terminal of the chip U12 is connected to the PC1_S_M1_INH terminal after being connected in series with the resistor R16, and the 8th terminal of the chip U12 is connected to the PC40_S_M1_EN terminal after being connected in series with the resistor R17; The terminal 6 of the chip U12 is connected to the OSC_OUT terminal, the terminal 5 of the chip U12 is connected to the OSC_IN terminal, the terminal 60 of the chip U12 is connected in series with a resistor R5 and then grounded, and the terminal 7 of the chip U12 is connected to the NRST terminal; Terminal 36 of the chip U12 is connected to the PB15_SPI2_MOSI terminal, terminal 35 of the chip U12 is connected to the PB14_SPI2_MISO terminal, terminal 34 of the chip U12 is connected to the PB13_SPI2_SCK terminal, and terminal 33 of the chip U12 is connected to the PB12_SPI2_CS terminal; The 62nd terminal of the chip U12 is connected to the PB9_P_MO_C terminal after being connected in series with the resistor R18, the 61st terminal of the chip U12 is connected to the PB8_P_MO_B terminal after being connected in series with the resistor R19, and the 59th terminal of the chip U12 is connected to the PB7_P_MO_A terminal after being connected in series with the resistor R20. Terminal 58 of the chip U12 is connected to the PB6_P_MO_INH terminal after being connected in series with resistor R21, terminal 57 of the chip U12 is connected to the PB5_P_MO_EN terminal after being connected in series with resistor R22, terminal 56 of the chip U12 is connected to the PB4_S_MO_C terminal after being connected in series with resistor R23, terminal 55 of the chip U12 is connected to the PB3_S_MO_B terminal after being connected in series with resistor R24, terminal 28 of the chip U12 is connected to the PB2_S_MO_A terminal after being connected in series with resistor R25, terminal 27 of the chip U12 is connected to the PB1_S_MO_INH terminal after being connected in series with resistor R26, and terminal 26 of the chip U12 is connected to the PBO_S_MO_EN terminal after being connected in series with resistor R27; Terminal 1 of chip U12, terminal 13 of chip U12, terminal 32 of chip U12, terminal 48 of chip U12, terminal 64 of chip U12 and terminal 19 of chip U12 are connected and grounded, and terminal 12 of chip U12, terminal 31 of chip U12, terminal 47 of chip U12, terminal 63 of chip U12 and terminal 18 of chip U12 are connected and grounded.
[0045] Because Iout is the current flowing through the chip diode, and the cathode of the diode is connected to GND, the anode of the diode can be obtained as the voltage value to be collected, and the voltage of the chip anode is collected through the AD pin of the MCU.
[0046] Further, the S_MO_IN terminal is connected to one end of a resistor R28, the other end of the resistor R28 is respectively connected to one end of a capacitor C13 and PA0_ADC12_IN0, and the other end of the capacitor C13 is grounded; The S_MO_IN terminal is connected to one end of a resistor R29, the other end of the resistor R29 is respectively connected to one end of a capacitor C24 and PA1_ADC12_IN1, and the other end of the capacitor C24 is grounded; The S_M1_IN terminal is connected to one end of the resistor R30, the other end of the resistor R30 is respectively connected to one end of the capacitor C25 and PA2_ADC12_IN2, and the other end of the capacitor C25 is grounded; The S_M1_IN terminal is connected to one end of the resistor R31, the other end of the resistor R31 is respectively connected to one end of the capacitor C26 and PA3_ADC12_IN3, and the other end of the capacitor C26 is grounded.
[0047] Further, the OSC_IN terminal is respectively connected to the terminal 1 of the chip Y1 and one end of the capacitor C15, the other end of the capacitor C15 is respectively connected to the terminal 2 of the chip Y1 and the ground terminal, the OSC_OUT terminal is respectively connected to the terminal 3 of the chip Y1 and one end of the capacitor C14, the other end of the capacitor C14 is respectively connected to the terminal 4 of the chip Y1 and the ground terminal; The NRST terminal is connected to one end of the resistor R44 and one end of the capacitor C47 respectively, the other end of the resistor R44 is connected to a 3.3V voltage, and the other end of the capacitor C47 is grounded.
[0048] Furthermore, the main control chip adopts STM32F103RCT6.
[0049] Furthermore, the AD sampling is specifically that the 1.2V voltage is connected to one end of the resistor R1, the S_MO_IOUT end is connected to one end of the resistor R2, the other end of the resistor R1 is connected to one end of the resistor R2 and then connected to the S_MO_IN end; The 1.2V voltage is connected to one end of the resistor R3, the P_MO_IOUT end is connected to one end of the resistor R4, the other end of the resistor R3 is connected to one end of the resistor R4 and then connected to the P_MO_IN end; The 1.2V voltage is connected to one end of the resistor R53, the S_M1_IOUT end is connected to one end of the resistor R54, and the other end of the resistor R53 is connected to one end of the resistor R54 and then connected to the S_M1_IN end; The 1.2V voltage is connected to one end of the resistor R55, the P_M1_IOUT end is connected to one end of the resistor R56, and the other end of the resistor R55 is connected to one end of the resistor R56 and then connected to the P_M1_IN end.
[0050] A chip open-short circuit detection method, the method comprising the following steps: Step 1, debug the chip open and short circuit detection circuit; Step 2: Based on the circuit in step 1, collect the voltage of the upper diode and transmit it to the host computer; Step 3: Based on the circuit in step 1, collect the voltage of the diode and transmit it to the host computer; Step 4: Compare the voltage values in step 2 and step 3 with the open-short circuit threshold to determine whether the connection of the circuit board is intact.
[0051] Furthermore, the voltage of the upper diode collected in step 2 is transmitted to the host computer, specifically, the I1- terminal of the analog switch switching module is connected to the IOVDD terminal of the upper diode of the chip C, and the I1+ terminal of the analog switch switching module is connected to the IO port of the chip C, and the current direction is from the I+ terminal to the I1+ terminal, and then passes through the IO port, the upper diode, IOVDD, I1- and I- in sequence to form a loop; In the step 3, the voltage of the lower diode is collected and transmitted to the upper computer. Specifically, the I2+ end of the analog switch switching module is connected to the GND end of the lower diode of the chip C, and the 21- end of the analog switch switching module is connected to the IO port of the chip C. The current direction is from the I+ end to the I2+ end, and then passes through GND, the lower diode, the IO port, I2- and I- to form a loop.
[0052] Furthermore, the step 4 specifically includes collecting the corresponding diode voltages respectively; When an open circuit occurs, the collected voltage value V > Vopen; When a short circuit occurs, the voltage value collected is V < Vshort; It is normal for the voltage value to be Vopen ≥ V ≥ Vshort; Among them, Vopen is the open circuit voltage and Vshort is the short circuit voltage.
[0053] Specifically, the analog switch switching module performs channel selection, and the MCU switches. When measuring the upper diode, the PB0_S_M0_EN of the 9th, 10th, and 11th terminals of U5 are set to a high level, and the PB1_S_M0_INH of the 6th terminal of U5 is set to a low level. As a result, the 14th terminal of U5 is connected to the 12th terminal of U5, the 15th terminal of U5 is connected to the 2nd terminal of U5, and the 14th terminal of U5 is connected to the 3rd terminal of U4. By switching the level states of the 6th, 9th, 10th, and 11th terminals of U4, different IO ports can be switched for testing.
[0054] On the contrary, when the PB0_S_M0_EN of terminals 9, 10, and 11 of U5 is set to a low level, the open and short circuit states of the diode can be tested.
[0055] Design circuit for constant current source, name the voltage according to the chip pin (end), U1=2U2; U2=U3; U5=U6; U3=0.5U6+0.5Ui(Ui=1.2V)-->0.6=U3-0.5U5 Iout=(U1-U5) / 12K=(2U3-U5) / 12K=0.1mA; Thus a constant current source of 0.1mA is obtained.
[0056] 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 chip open and short circuit detection method, characterized in that: The detection method uses an open-short circuit detection circuit, and the chip open-short circuit detection circuit includes a main control module, an analog switch switching module and a constant current power supply module; The constant current power supply module obtains a constant current source output through the virtual short and virtual break application principle of the operational amplifier, which is used to turn on the internal diode of the chip to obtain the forward conduction voltage of the diode; The main control module is used to control the analog switch and obtain the open and short circuit information through the AD sampling module; The analog switch switching module is used for testing the open and short circuit of different IOs, and respectively testing the conduction state of the upper diode and the lower diode; The AD sampling module is used in conjunction with the constant current module to sample the diode clamp pull voltage; The chip open-short circuit detection also includes a communication module and a power supply module. The communication module transmits the data information collected by the MCU to the host computer for storage; The power supply module generates different voltage values for powering different modules; The analog switch switching module is connected to the main control module, the constant current power supply module and the chip C respectively; The main control module receives the AD sampling module of the analog switch switching module, the main control module sends a control signal to the analog switch switching module, and the analog switch switching module receives the electrical signal of the constant current power supply module; The IO ports of the chip C are connected to the lower diode and the upper diode respectively, and the analog switch switching module forms a selectable switch with the lower diode and the upper diode; The I1- end of the analog switch switching module is connected to the IOVDD end of the upper diode of chip C, and the I2+ end of the analog switch switching module is connected to the GND end of the lower diode of chip C. Both the I2- end and the I1+ end of the analog switch switching module are used in conjunction with the IO port of chip C to achieve separate sampling of the upper diode and the lower diode.
2. A chip open and short circuit detection method according to claim 1, characterized in that: The constant current power supply module includes an operational amplifier U11-A, whose terminal No. 2 is respectively connected to one end of a resistor R32 and one end of a resistor R33, the other end of the resistor R32 is grounded, the other end of the resistor R33 is respectively connected to one end of an output resistor R36 and terminal No. 1 of the operational amplifier U11-A, terminal No. 3 of the operational amplifier U11-A is respectively connected to one end of a resistor R34 and one end of a resistor R35, the other end of the resistor R32 is connected to a 1.2V voltage, the other end of the resistor R35 is respectively connected to terminal No. 7 of the operational amplifier U11-B and terminal No. 6 of the operational amplifier U11-B, terminal No. 4 of the operational amplifier U11-A is respectively connected to a 5V voltage and one end of a capacitor C27, the other end of the capacitor C27 is grounded, and terminal No. 11 of the operational amplifier U11-A is grounded. The other end of the resistor R36 is connected to the terminal 5 and the S_MO_IUOT terminal of the operational amplifier U11-B respectively.
3. A chip open and short circuit detection method according to claim 1, characterized in that: The analog switch switching module includes a chip U3 and a chip U4, the terminal 16 of the chip U3 is respectively connected to a 3.3V voltage and one end of a capacitor C5, the other end of the capacitor C5 is grounded, the terminal 12 of the chip U3 and the terminal 3 of the chip U3 are both connected to the S_MO_IN terminal, the terminal 14 of the chip U3 is connected to the S_MO_COM terminal, the terminal 15 of the chip U3 is connected to the MO_DOVDD_OS terminal, the terminal 4 of the chip U3 is connected to the MO_GND_OS terminal, the terminal 9 of the chip U3 is respectively connected to the terminal 10 of the chip U3 and the terminal 11 of the chip U3 and then connected to the PB0_S_MO_EN terminal, and the terminal 6 of the chip U3 is connected to the PB1_S_MO_INH terminal; Terminal 13 of the chip U3, terminal 2 of the chip U3, terminal 7 of the chip U3, and terminal 8 of the chip U3 are all grounded; The No. 16 terminal of the chip U4 is connected to the 3.3V voltage and one end of the capacitor C6 respectively, and the other end of the capacitor C6 is grounded, the No. 3 terminal of the chip U4 is connected to the S_MO_COM terminal, the No. 6 terminal of the chip U4 is connected to the PB1_S_MO_INH terminal, the No. 9 terminal of the chip U4 is connected to the PB4_S_MO_C terminal, the No. 10 terminal of the chip U4 is connected to the PB4_S_MO_B terminal, the No. 11 terminal of the chip U4 is connected to the PB2_S_MO_A terminal, the No. 13 terminal of the chip U4 is connected to the CO_P01_OS terminal, and the Terminal 14 of chip U4 is connected to terminal CO_P02_OS, terminal 15 of chip U4 is connected to terminal CO_P03_OS, terminal 12 of chip U4 is connected to terminal CO_P04_OS, terminal 1 of chip U4 is connected to terminal CO_PWDN_OS, terminal 5 of chip U4 is connected to terminal CO_RST_OS, terminal 2 of chip U4 is connected to terminal CO_SCL_OS, terminal 4 of chip U4 is connected to terminal CO_SDA_OS, terminal 7 of chip U4 is connected to terminal 8 of chip U4 and then grounded.
4. A chip open and short circuit detection method according to claim 1, characterized in that: The main control module includes a chip U12, wherein the terminal 40 of the chip U12 is connected in series with a resistor R7 and then connected to the PC9_P_M1_C terminal, the terminal 39 of the chip U12 is connected in series with a resistor R8 and then connected to the PC8_P_M1_B terminal, the terminal 38 of the chip U12 is connected in series with a resistor R9 and then connected to the PC7_P_M1_A terminal, the terminal 37 of the chip U12 is connected in series with a resistor R10 and then connected to the PC6_P_M1_INH terminal, the terminal 25 of the chip U12 is connected in series with a resistor R11 and then connected to the PC5_P_M1_E terminal. N terminal is connected, terminal 24 of the chip U12 is connected to PC4_S_M1_C terminal after being connected in series with resistor R12, terminal 11 of the chip U12 is connected to PC3_S_M1_B terminal after being connected in series with resistor R13, terminal 10 of the chip U12 is connected to PC2_S_M1_A terminal after being connected in series with resistor R15, terminal 9 of the chip U12 is connected to PC1_S_M1_INH terminal after being connected in series with resistor R16, and terminal 8 of the chip U12 is connected to PC40_S_M1_EN terminal after being connected in series with resistor R17; The terminal 6 of the chip U12 is connected to the OSC_OUT terminal, the terminal 5 of the chip U12 is connected to the OSC_IN terminal, the terminal 60 of the chip U12 is connected in series with a resistor R5 and then grounded, and the terminal 7 of the chip U12 is connected to the NRST terminal; Terminal 36 of the chip U12 is connected to the PB15_SPI2_MOSI terminal, terminal 35 of the chip U12 is connected to the PB14_SPI2_MISO terminal, terminal 34 of the chip U12 is connected to the PB13_SPI2_SCK terminal, and terminal 33 of the chip U12 is connected to the PB12_SPI2_CS terminal; The 62nd terminal of the chip U12 is connected to the PB9_P_MO_C terminal after being connected in series with the resistor R18, the 61st terminal of the chip U12 is connected to the PB8_P_MO_B terminal after being connected in series with the resistor R19, and the 59th terminal of the chip U12 is connected to the PB7_P_MO_A terminal after being connected in series with the resistor R20; Terminal 58 of the chip U12 is connected to the PB6_P_MO_INH terminal after being connected in series with resistor R21, terminal 57 of the chip U12 is connected to the PB5_P_MO_EN terminal after being connected in series with resistor R22, terminal 56 of the chip U12 is connected to the PB4_S_MO_C terminal after being connected in series with resistor R23, terminal 55 of the chip U12 is connected to the PB3_S_MO_B terminal after being connected in series with resistor R24, terminal 28 of the chip U12 is connected to the PB2_S_MO_A terminal after being connected in series with resistor R25, terminal 27 of the chip U12 is connected to the PB1_S_MO_INH terminal after being connected in series with resistor R26, and terminal 26 of the chip U12 is connected to the PBO_S_MO_EN terminal after being connected in series with resistor R27; Terminal 1 of chip U12, terminal 13 of chip U12, terminal 32 of chip U12, terminal 48 of chip U12, terminal 64 of chip U12 and terminal 19 of chip U12 are connected and grounded, and terminal 12 of chip U12, terminal 31 of chip U12, terminal 47 of chip U12, terminal 63 of chip U12 and terminal 18 of chip U12 are connected and grounded.
5. A chip open and short circuit detection method according to claim 1, characterized in that: The S_MO_IN terminal is connected to one end of the resistor R28, the other end of the resistor R28 is respectively connected to one end of the capacitor C13 and PA0_ADC12_IN0, and the other end of the capacitor C13 is grounded; The S_MO_IN terminal is connected to one end of a resistor R29, the other end of the resistor R29 is respectively connected to one end of a capacitor C24 and PA1_ADC12_IN1, and the other end of the capacitor C24 is grounded; The S_M1_IN terminal is connected to one end of the resistor R30, the other end of the resistor R30 is respectively connected to one end of the capacitor C25 and PA2_ADC12_IN2, and the other end of the capacitor C25 is grounded; The S_M1_IN terminal is connected to one end of the resistor R31, the other end of the resistor R31 is respectively connected to one end of the capacitor C26 and PA3_ADC12_IN3, and the other end of the capacitor C26 is grounded.
6. A chip open and short circuit detection method according to claim 5, characterized in that: The OSC_IN terminal is connected to the terminal 1 of the chip Y1 and one end of the capacitor C15 respectively, the other end of the capacitor C15 is connected to the terminal 2 of the chip Y1 and the ground terminal respectively, the OSC_OUT terminal is connected to the terminal 3 of the chip Y1 and one end of the capacitor C14 respectively, the other end of the capacitor C14 is connected to the terminal 4 of the chip Y1 and the ground terminal respectively; The NRST terminal is connected to one end of the resistor R44 and one end of the capacitor C47 respectively, the other end of the resistor R44 is connected to a 3.3V voltage, and the other end of the capacitor C47 is grounded.
7. A chip open and short circuit detection method according to claim 6, characterized in that: The AD sampling is specifically as follows: 1.2V voltage is connected to one end of the resistor R1, the S_MO_IOUT end is connected to one end of the resistor R2, the other end of the resistor R1 is connected to one end of the resistor R2 and then connected to the S_MO_IN end; The 1.2V voltage is connected to one end of the resistor R3, the P_MO_IOUT end is connected to one end of the resistor R4, the other end of the resistor R3 is connected to one end of the resistor R4 and then connected to the P_MO_IN end; The 1.2V voltage is connected to one end of the resistor R53, the S_M1_IOUT end is connected to one end of the resistor R54, and the other end of the resistor R53 is connected to one end of the resistor R54 and then connected to the S_M1_IN end; The 1.2V voltage is connected to one end of the resistor R55, the P_M1_IOUT end is connected to one end of the resistor R56, and the other end of the resistor R55 is connected to one end of the resistor R56 and then connected to the P_M1_IN end.
8. A chip open and short circuit detection method, characterized in that: The method comprises the following steps: Step 1, debug the chip open and short circuit detection circuit; Step 2: Based on the circuit in step 1, collect the voltage of the upper diode and transmit it to the host computer; Step 3: Based on the circuit in step 1, collect the voltage of the diode and transmit it to the host computer; Step 4: Compare the voltage values in step 2 and step 3 with the open-short circuit threshold to determine whether the connection of the circuit board is intact.
9. A chip open and short circuit detection method according to claim 8, characterized in that: The voltage of the upper diode collected in step 2 is transmitted to the host computer, specifically, the I1- end of the analog switch switching module is connected to the IOVDD end of the upper diode of chip C, and the I1+ end of the analog switch switching module is connected to the IO port of chip C. The current direction is from the I+ end to the I1+ end, and then passes through the IO port, the upper diode, IOVDD, I1- and I- in sequence to form a loop; In the step 3, the voltage of the lower diode is collected and transmitted to the upper computer. Specifically, the I2+ end of the analog switch switching module is connected to the GND end of the lower diode of the chip C, and the 21- end of the analog switch switching module is connected to the IO port of the chip C. The current direction is from the I+ end to the I2+ end, and then passes through GND, the lower diode, the IO port, I2- and I- to form a loop.
10. A chip open and short circuit detection method according to claim 9, characterized in that: The step 4 specifically includes collecting the corresponding diode voltages respectively; When an open circuit occurs, the collected voltage value V > Vopen; When a short circuit occurs, the voltage value collected is V < Vshort; It is normal for the voltage value to be Vopen ≥ V ≥ Vshort; Among them, Vopen is the open circuit voltage and Vshort is the short circuit voltage.
Citation Information
Cited By
Device and method for automatically detecting open circuit and short circuit of chip
CN119902055A
