Test mode interface circuit suitable for multi-power system and control method thereof
By designing a test mode interface circuit including reference current source and multiple logic gates in a multi-power system, using voltage control signal management, the problem that traditional test mode interface circuits are prone to misent into the test mode is achieved, and more safe and stable normal working mode and flexible testing mode management.
Patent Information
- Application Number
- CN202411419357.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-10-12
AI Technical Summary
Traditional test mode interface circuits are prone to incorrectly entering the test mode due to unreasonable levels, and some test parameters cannot be tested under high power supply voltage conditions.
A test mode interface circuit suitable for multi-power system is designed, including reference current source, NMOS and PMOS tubes, Schmitt flip-flops, inverter N/A gates and RS flip-flops, through voltage control signals VDD1, VDD2 and The management of VDD3 ensures that the chip is not prone to trigger the test mode in normal working mode, and allows flexible power changes after entering the test mode.
It improves the safety and stability of the chip in normal operating mode, reduces the probability of mistakenly entering the test mode, and allows more flexible power management in the test mode, making it easier to test more parameters.
Smart Images

Figure CN118971866A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a test mode interface circuit and a control method thereof, in particular to a test mode interface circuit and a control method thereof suitable for a multi-power supply system, belonging to the technical field of semiconductor integrated circuits. Background Art
[0002] In integrated circuit design, due to fluctuations in process angles, circuit component parameters will change within a certain range, which may cause some circuit parameters to change. Usually, a trimming step is added during chip testing to adjust the parameters.
[0003] However, most of the internal parameters, such as reference voltage, reference current, internal clock frequency, etc., are usually difficult to test directly through the limited pins of the chip, so it is necessary to make the chip work in a special mode so that the pins that work normally can also output the internal electrical parameters. The most commonly used mode is the test mode. The characteristics of the test mode are: under normal operation, the chip will not enter this mode, and the test mode will only be triggered when specific signal loading conditions are met.
[0004] Traditional test mode interface circuit such as Figure 3 As shown, it uses the voltage difference between VC1 and VC2 to open the PM1 tube, and the resistance and capacitance nodes will eventually be raised to the VC2 potential. If VC2 continues to be stable at a high level, the TestMode signal will continue to output a high-level signal. The circuit will work in test mode. Usually, VC1 of this structure will use the power supply voltage, and VC2 will use IO signals, such as the chip enable pin. That is to say, when customers use this chip normally, it is possible that the chip will enter the test mode by mistake due to unreasonable VC1 and VC2 levels, causing the chip to work abnormally; in addition, in this mode, the working level of VC1 (when VC1 is the power supply voltage) is limited, resulting in the inability to perform some test items that require high power supply voltage conditions for some test parameters. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a test mode interface circuit and a control method thereof suitable for a multi-power supply system, in which the test mode is not easily triggered during normal operation.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: A test mode interface circuit suitable for a multi-power supply system comprises a reference current source I0, an NMOS tube NM1, an NMOS tube NM2, an NMOS tube NM3, an NMOS tube NM4, an NMOS tube NM5, a PMOS tube PM1, a PMOS tube PM2, a Schmitt trigger SMT1, a Schmitt trigger SMT2, an inverter INV1, an inverter INV2, an inverter INV3, a NAND gate NAND1 and an RS trigger Q1, one end of the reference current source I0 is connected to a power supply VCC, and the other end of the reference current source I0 is connected to the NMOS tube PM1, a PMOS tube PM2, a Schmitt trigger SMT1, a Schmitt trigger SMT2, an inverter INV1, an inverter INV2, an inverter INV3, a NAND gate NAND1 and an RS trigger Q1, wherein one end of the reference current source I0 is connected to a power supply VCC, and the other end of the reference current source I0 is connected to the NMOS tube PM1, a PMOS tube PM2, a Schmitt trigger SMT1, a Schmitt trigger SMT2, an inverter INV1, an inverter INV2, an inverter INV3, a NAND gate NAND1 and an RS trigger Q1. The drain of the NMOS tube NM1, the gate of the NMOS tube NM2, and the gate of the NMOS tube NM3 are connected, the source of the NMOS tube NM1, the source of the NMOS tube NM2, and the source of the NMOS tube NM3 are grounded, the drain of the NMOS tube NM2, the drain of the PMOS tube PM1, the drain of the NMNOS tube NM4, and the input end of the Schmitt trigger SMT2 are connected to the node B, the drain of the NMNOS tube NM3, the drain of the PMOS tube PM2, and the drain of the NMNOS tube NM5 are connected to the node B, and the drain of the NMOS tube NM2, the drain of the NMNOS tube NM4, and the input end of the Schmitt trigger SMT2 are connected to the node B. The gate of the PMOS tube PM1 and the input end of the Schmitt trigger SMT1 are connected to the node A, the gate of the PMOS tube PM1 and the gate of the PMOS tube PM2 are connected to the voltage control signal VDD1, the source of the PMOS tube PM1 is connected to the voltage control signal VDD2, the source of the PMOS tube PM2 is connected to the voltage control signal VDD3, the output end of the Schmitt trigger SMT1 is connected to the input end of the inverter INV1, the output end of the Schmitt trigger SMT2 is connected to the input end of the inverter INV3, the output end of the inverter INV1 is connected to the first end of the NAND gate NAND1 The input end is connected, the output end of the inverter INV3 is connected to the second input end of the NAND gate NAND1, the output end of the NAND gate NAND1 is connected to the input end of the inverter INV2, the output end of the inverter INV2 is connected to the S end of the RS trigger Q1, the Q end of the RS trigger Q1 generates an output signal TestMode, the gate of the NMOS tube NM4 is connected to the gate of the NMOS tube NM5 and the R end of the RS trigger Q1 and connected to the reset signal Reset, and the source of the NMOS tube NM4 and the source of the NMOS tube NM5 are grounded; Furthermore, the voltage control signal VDD1 is a power supply voltage of the multi-power supply system. During normal operation, the voltage control signal VDD1 is greater than the voltage control signal VDD2 and the voltage control signal VDD3.
[0007] Furthermore, the NMOS transistor NM1, the NMOS transistor NM2 and the NMOS transistor NM3 form a current mirror circuit.
[0008] Furthermore, the size ratio of the NMOS transistor NM1, the NMOS transistor NM2 and the NMOS transistor NM3 is 1:N2:N3, wherein N2≥1, N3≥1.
[0009] Furthermore, the reference current source I0 is generated inside the multi-power system and does not depend on the test mode conditions to work.
[0010] Furthermore, the reset signal Reset appears at the power-on moment of the voltage control signal VDD1.
[0011] A control method for a test mode interface circuit applicable to a multi-power system comprises the following steps: When the voltage control signal VDD1 is initially powered on, the reset signal Reset generates a high pulse to clear the nodes A and B and the output signal TestMode; After the voltage control signal VDD1 is powered on, the voltage of node A will follow the voltage control signal VDD2, and the voltage of node B will follow the voltage control signal VDD3. At this time, the voltage control signal VDD2 and the voltage control signal VDD3 are at least one threshold voltage higher than the voltage control signal VDD1. When the nodes A and B are both at high level, the output signal TestMode of the RS trigger Q1 becomes high level and is latched by the RS trigger Q1, and the system enters the test mode. The output signal TestMode will not change with the power-off of the voltage control signal VDD2 and the voltage control signal VDD3. When the voltage control signal VDD1 is powered off, the output signal TestMode is reset to zero and the system exits the test mode.
[0012] Compared with the prior art, the present invention has the following advantages and effects: the present invention provides a test mode interface circuit and a control method thereof suitable for a multi-power supply system, the circuit structure is simple, the test mode is not easily triggered in the normal working mode, the circuit operation is safer and more stable, and the test mode can be internally locked, and the working conditions are more flexible; the voltage control signal VDD1 of the present invention is the highest voltage for normal working, and in the normal working mode, the voltage control signal VDD2 and the voltage control signal VDD3 will not be higher than VDD1, so that the test mode will not be mistakenly entered in the normal mode, and even if one of the voltage control signal VDD2 and the voltage control signal VDD3 is instantaneously higher than the voltage control signal VDD1, resulting in a high level at the node A or the node B, the chip will not enter the test mode, unless the voltage control signal VDD2 and the voltage control signal VDD3 are simultaneously higher than the threshold voltage of a PMOS tube of the voltage control signal VDD1, the test mode can be entered, and the probability of mistakenly entering the test mode is greatly reduced; after the chip of the present invention enters the test mode, the voltage control signal VDD1, the voltage control signal VDD2 and the voltage control signal VDD3 are not required to continue to maintain the working state of entering the test mode, and the chip can flexibly change the power supply, so as to facilitate the testing of more parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a schematic diagram of a test mode interface circuit suitable for a multi-power supply system of the present invention.
[0014] Figure 2 The present invention is a schematic diagram of working waveforms of a test mode interface circuit suitable for a multi-power supply system.
[0015] Figure 3 is a schematic diagram of a test mode interface circuit in the prior art. DETAILED DESCRIPTION
[0016] In order to elaborate on the technical scheme adopted by the present invention to achieve the predetermined technical purpose, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only partial embodiments of the present invention, rather than all embodiments, and the technical means or technical features in the embodiments of the present invention can be replaced without paying creative work. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0017] like Figure 1As shown, a test mode interface circuit suitable for a multi-power supply system of the present invention comprises a reference current source I0, an NMOS tube NM1, an NMOS tube NM2, an NMOS tube NM3, an NMOS tube NM4, an NMOS tube NM5, a PMOS tube PM1, a PMOS tube PM2, a Schmitt trigger SMT1, a Schmitt trigger SMT2, an inverter INV1, an inverter INV2, an inverter INV3, a NAND gate NAND1 and an RS trigger Q1, one end of the reference current source I0 is connected to a power supply VCC, and the reference current source I0 is connected to a power supply VCC. The other end is connected to the drain of NMNOS tube NM1, the gate of NMNOS tube NM2, and the gate of NMNOS tube NM3. The source of NMOS tube NM1, the source of NMNOS tube NM2, and the source of NMNOS tube NM3 are grounded. The drain of NMNOS tube NM2, the drain of PMOS tube PM1, the drain of NMNOS tube NM4, and the input end of Schmitt trigger SMT2 are connected to node B. The drain of NMNOS tube NM3, the drain of PMOS tube PM2, and the drain of NMNOS tube NM4 are connected to node B. The drain of the PMOS transistor PM1 and the input end of the Schmitt trigger SMT1 are connected to the node A, the gate of the PMOS transistor PM1 and the gate of the PMOS transistor PM2 are connected to the voltage control signal VDD1, the source of the PMOS transistor PM1 is connected to the voltage control signal VDD2, the source of the PMOS transistor PM2 is connected to the voltage control signal VDD3, the output end of the Schmitt trigger SMT1 is connected to the input end of the inverter INV1, the output end of the Schmitt trigger SMT2 is connected to the input end of the inverter INV3, the output end of the inverter INV1 is connected to the input end of the NAND gate NAND1 The first input terminal is connected, the output terminal of the inverter INV3 is connected to the second input terminal of the NAND gate NAND1, the output terminal of the NAND gate NAND1 is connected to the input terminal of the inverter INV2, the output terminal of the inverter INV2 is connected to the S terminal of the RS trigger Q1, the Q terminal of the RS trigger Q1 generates an output signal TestMode, the gate of the NMOS tube NM4 is connected to the gate of the NMOS tube NM5 and the R terminal of the RS trigger Q1 and connected to the reset signal Reset, and the source of the NMOS tube NM4 and the source of the NMOS tube NM5 are grounded; The voltage control signal VDD1 is the power supply voltage of the multi-power supply system. During normal operation, the voltage control signal VDD1 is greater than the voltage control signal VDD2 and the voltage control signal VDD3.
[0018] NMOS tube NM1, NMOS tube NM2 and NMOS tube NM3 form a current mirror circuit. NMOS tube NM1, NMOS tube NM2 and NMOS tube NM3 are matched with each other to avoid the current copy accuracy error caused by process imbalance. The size ratio of NMOS tube NM1, NMOS tube NM2 and NMOS tube NM3 is 1:N2:N3, where N2≥1, N3≥1, and N2 and N3 can be equal or unequal.
[0019] The reference current source I0 is generated internally by the multi-power system and does not depend on the test mode conditions to work.
[0020] The reset signal Reset appears when the voltage control signal VDD1 is powered on.
[0021] A control method for a test mode interface circuit applicable to a multi-power system comprises the following steps: like Figure 2 As shown, at the initial power-on moment of the voltage control signal VDD1, the reset signal Reset generates a high pulse to clear nodes A and B and the output signal TestMode. When the reset signal Reset is at a high level, the NMOS tube NM4 is turned on, and the voltage of node B is pulled down to the ground, the NMOS tube NM5 is turned on, and the voltage of node A is pulled down to the ground, and the R end of the RS trigger Q1 is at a high level, and the output signal TestMode is reset and cleared. After the high pulse, the reset signal Reret becomes a low level, and the NMOS tubes NM4 and NMOS tubes NM5 are disconnected.
[0022] After the voltage control signal VDD1 is powered on, the voltage of node A will follow the voltage control signal VDD2, and the voltage of node B will follow the voltage control signal VDD3. At this time, the voltage control signal VDD2 and the voltage control signal VDD3 are at least one threshold voltage higher than the voltage control signal VDD1. At this time, the PMOS transistors PM1 and PM2 are turned on, and both nodes A and B are at high levels.
[0023] When both node A and node B are at high level at the same time, the output signal TestMode of RS trigger Q1 becomes high level and is latched by RS trigger Q1, and the system enters the test mode. The output signal TestMode will not change with the power failure of voltage control signal VDD2 and voltage control signal VDD3. If only one of node A and node B is at high level, RS trigger Q1 will not be triggered.
[0024] When the voltage control signal VDD1 is powered off, the output signal TestMode is reset to zero and the system exits the test mode.
[0025] The invention provides a test mode interface circuit suitable for a multi-power supply system and a control method thereof. The circuit structure is simple, the test mode is not easily triggered in a normal working mode, the circuit operation is safer and more stable, and the test mode can be internally locked, and the working conditions are more flexible. The voltage control signal VDD1 of the invention is the highest voltage for normal working. In the normal working mode, the voltage control signal VDD2 and the voltage control signal VDD3 will not be higher than VDD1, so that the test mode will not be mistakenly entered in the normal mode, and even if one of the voltage control signal VDD2 and the voltage control signal VDD3 is instantaneously higher than the voltage control signal VDD1, resulting in a high level at a node A or a node B, the chip will not enter the test mode, unless the voltage control signal VDD2 and the voltage control signal VDD3 are simultaneously higher than the threshold voltage of a PMOS tube of the voltage control signal VDD1, the test mode can be entered, and the probability of mistakenly entering the test mode is greatly reduced. After the chip of the invention enters the test mode, the voltage control signal VDD1, the voltage control signal VDD2 and the voltage control signal VDD3 are not required to continue to maintain the working state of entering the test mode, and the chip can flexibly change the power supply, so as to facilitate the testing of more parameters.
[0026] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement made to the above embodiments without departing from the content of the technical solution of the present invention, based on the technical essence of the present invention, within the spirit and principles of the present invention, still fall within the protection scope of the technical solution of the present invention.
Claims
1. A test mode interface circuit suitable for a multi-power system, characterized in that: It includes a reference current source I0, an NMOS tube NM1, an NMOS tube NM2, an NMOS tube NM3, an NMOS tube NM4, an NMOS tube NM5, a PMOS tube PM1, a PMOS tube PM2, a Schmitt trigger SMT1, a Schmitt trigger SMT2, an inverter INV1, an inverter INV2, an inverter INV3, a NAND gate NAND1 and an RS trigger Q1. One end of the reference current source I0 is connected to a power supply VCC, and the other end of the reference current source I0 is connected to the drain of the NMOS tube NM1, the NMN The gate of the OS transistor NM1, the gate of the NMNOS transistor NM2 and the gate of the NMNOS transistor NM3 are connected, the source of the NMOS transistor NM1, the source of the NMNOS transistor NM2 and the source of the NMNOS transistor NM3 are grounded, the drain of the NMNOS transistor NM2, the drain of the PMOS transistor PM1, the drain of the NMNOS transistor NM4 and the input end of the Schmitt trigger SMT2 are connected to the node B, the drain of the NMNOS transistor NM3, the drain of the PMOS transistor PM2, the drain of the NMNOS transistor NM5 and the input end of the Schmitt trigger SMT2 are connected to the node B, and the drain of the NMNOS transistor NM3, the drain of the PMOS transistor PM2, the drain of the NMNOS transistor NM5 and the input end of the Schmitt trigger SMT The input end of T1 is connected to the node A, the gate of the PMOS tube PM1 and the gate of the PMOS tube PM2 are connected to the voltage control signal VDD1, the source of the PMOS tube PM1 is connected to the voltage control signal VDD2, the source of the PMOS tube PM2 is connected to the voltage control signal VDD3, the output end of the Schmitt trigger SMT1 is connected to the input end of the inverter INV1, the output end of the Schmitt trigger SMT2 is connected to the input end of the inverter INV3, and the output end of the inverter INV1 is connected to the first input end of the NAND gate NAND1 , the output end of the inverter INV3 is connected to the second input end of the NAND gate NAND1, the output end of the NAND gate NAND1 is connected to the input end of the inverter INV2, the output end of the inverter INV2 is connected to the S end of the RS trigger Q1, the Q end of the RS trigger Q1 generates an output signal TestMode, the gate of the NMOS tube NM4 is connected to the gate of the NMOS tube NM5 and the R end of the RS trigger Q1 and is connected to the reset signal Reset, and the source of the NMOS tube NM4 and the source of the NMOS tube NM5 are grounded.
2. A test mode interface circuit suitable for a multi-power supply system according to claim 1, characterized in that: The voltage control signal VDD1 is the power supply voltage of the multi-power supply system. During normal operation, the voltage control signal VDD1 is greater than the voltage control signal VDD2 and the voltage control signal VDD3.
3. The test mode interface circuit suitable for a multi-power supply system according to claim 1, characterized in that: The NMOS tube NM1, the NMOS tube NM2 and the NMOS tube NM3 form a current mirror circuit.
4. A test mode interface circuit suitable for a multi-power supply system according to claim 3, characterized in that: The size ratio of the NMOS transistor NM1, the NMOS transistor NM2 and the NMOS transistor NM3 is 1:N2:N3, wherein N2≥1, N3≥1.
5. The test mode interface circuit suitable for a multi-power supply system according to claim 1, characterized in that: The reference current source I0 is generated inside the multi-power system and works independently of the test mode conditions.
6. The test mode interface circuit suitable for a multi-power system according to claim 1, characterized in that: The reset signal Reset appears when the voltage control signal VDD1 is powered on.
7. A control method for a test mode interface circuit suitable for a multi-power supply system according to any one of claims 1 to 6, characterized in that The following steps are involved: When the voltage control signal VDD1 is initially powered on, the reset signal Reset generates a high pulse to clear the nodes A and B and the output signal TestMode; After the voltage control signal VDD1 is powered on, the voltage of node A will follow the voltage control signal VDD2, and the voltage of node B will follow the voltage control signal VDD3. At this time, the voltage control signal VDD2 and the voltage control signal VDD3 are at least one threshold voltage higher than the voltage control signal VDD1. When the nodes A and B are both at high level, the output signal TestMode of the RS trigger Q1 becomes high level and is latched by the RS trigger Q1, and the system enters the test mode. The output signal TestMode will not change with the power-off of the voltage control signal VDD2 and the voltage control signal VDD3. When the voltage control signal VDD1 is powered off, the output signal TestMode is reset to zero and the system exits the test mode.
Citation Information
Patent Citations
Control chip with detection function of fly-back-type LED constant current driver
CN104066242A
Battery protection chip and test system
CN114217203A
Chip test mode control circuit and control method
CN116256622A
Drive circuit of switching element
CN203278779U
Power converter and switching power supply device
US20170187287A1
