JTAG debugging simulator interface power supply anti-backflow circuit and system
By designing the JTAG debugging emulator interface power supply anti-backflow circuit on the processor board and using status monitoring, control and on-off circuits to prevent voltage backflow, the problem of abnormal 3.3V power domain during processor board debugging is solved and ensures The normal startup and operation of the processor improves the adaptability and stability of the debugging system.
Patent Information
- Application Number
- CN202410862079.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
During the debugging process of the processor board, abnormal phenomena occurred in the 3.3V power domain, including non-monotonically increasing climbing trends and reverse voltage phenomena, resulting in abnormal FLASH loading and abnormal operation of the processor, posing huge debugging risks.
A JTAG debugging emulator interface power supply anti-backflow circuit is designed, including a status monitoring circuit, a control circuit and an on-off circuit. The emulator JTAG_3V3 power supply voltage is compared with the processor board VCC_3V3 power supply voltage through the JTAG voltage dividing circuit to control The on-off circuit prevents backflow voltage from entering the processor board.
It effectively prevents the backflow voltage of the JTAG interface from entering the processor board, avoids the risk of processor loading failure, ensures the normal power-on and operation of the processor, and improves the universality and adaptability of board debugging.
Smart Images

Figure CN118860109A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of board debugging, and specifically discloses a JTAG debugging simulator interface power backflow prevention circuit and system. Background Art
[0002] With the development of digital electronic technology, processor electrical systems mostly use digital electronic design technology. Compared with analog systems, digital electronic technology has higher system stability and wide adaptability. The core of digital electronic technology is the processor, which is a microprocessor that can quickly and efficiently perform digital signal processing. Now most processors, such as DSP, FPGA, ARM and MCU, support the JTAG protocol. During the debugging process of the processor, the JTAG interface is used for system simulation, debugging, downloading and internal chip testing.
[0003] Among them, in addition to the 4-wire signals, namely TMS, TCK, TDI and TDO, the JTAG debug interface also includes the JTAG interface power supply voltage. The JTAG voltage standard is used to define the electrical characteristics and voltage level of the JTAG interface to ensure the interoperability and compatibility of the JTAG interface. By specifying the voltage level and electrical characteristics of the interface, it is ensured that JTAG devices produced by different manufacturers can work and communicate normally. The JTAG interface usually uses a variety of level interfaces, among which 3.3V is the most commonly used voltage level, which is widely used in emulator debugging of boards.
[0004] At present, in order to meet the requirements of small size and lightness of processor system, the use of power chip should be optimized and efficient when designing the board power system. Generally, the 3.3V voltage generated by the power chip is provided to the processor and JTAG interface.
[0005] During the debugging of the processor board, in order to prevent the processor board from being plugged in and out while powered on, you need to follow the steps below before powering on the processor board. Figure 1 Build the hardware environment using the link method shown in the figure. Keep the debugging computer turned on, insert the USB cable connector of the JTAG debugging emulator into the USB port of the debugging computer, and connect the burning line of the JTAG debugging emulator to the JTAG connector of the processor board. The processor board starts to power on, and each power domain inside the processor board is powered on in turn. During this process, the 3.3V power domain will have abnormal phenomena, which is specifically reflected in the 3.3V climbing trend is not monotonically increasing and there is a phenomenon of backflow voltage from the emulator. The virtual voltage generated by the backflow voltage is usually between 0.3-2.0V, such as Figure 2 During the debugging of the processor board, the voltage backflow will cause huge debugging risks, which are specifically reflected in: abnormal FLASH loading of the processor and abnormal operation of the processor. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a JTAG debugging emulator interface power backflow prevention circuit, which comprises a state monitoring circuit (11), a control circuit (13), an on-off circuit (12) and a JTAG voltage divider circuit (14). The JTAG voltage divider circuit (14) is used to provide the state monitoring circuit (11) with the emulator JTAG_3V3 power supply voltage input voltage value. The state monitoring circuit (11) is used to determine the magnitude of the processor board VCC_3V3 power supply voltage and the emulator JTAG_3V3 power supply voltage. The control circuit (13) is used to provide a control signal to the on-off circuit (12). (12) is used to realize the anti-backflow function of the processor board VCC_3V3 power supply voltage; the emulator JTAG_3V3 power supply voltage input circuit (2) is divided by the JTAG voltage divider circuit (14), and its divided voltage value and the processor board VCC_3V3 power supply voltage input circuit (1) are connected to the two input ends of the state monitoring circuit (11), the output end of the state monitoring circuit (11) is connected to the control circuit (13), and the output end of the control circuit (13) and the emulator JTAG_3V3 power supply voltage input circuit (2) act on the on-off circuit (12) to realize the on or off control of the on-off circuit (12).
[0007] Furthermore, the state monitoring circuit (11) comprises a voltage comparator, the processor board VCC_3V3 power supply voltage input circuit (1) is connected to one end of a resistor R1, and the other end of the resistor R1 is connected to a positive input end of the voltage comparator; the emulator JTAG_3V3 power supply voltage is divided by resistors R3 and R4, the output of the JTAG voltage divider circuit (14) is connected to an input end of the state monitoring circuit (11), and the voltage of the power supply VDD of the voltage comparator is 3.3V to 5V;
[0008] When the voltage comparator is working, when the positive input voltage is greater than the negative input voltage, the voltage comparator outputs a high level voltage, and when the positive input voltage is less than the negative input voltage, the comparator outputs a low level voltage.
[0009] Furthermore, the voltage comparator is composed of an operational amplifier IC.
[0010] Furthermore, the operational amplifier IC is a single operational amplifier IC.
[0011] Furthermore, the control circuit (13) comprises an NPN transistor, the output end of the state monitoring circuit (11) is connected in series with a resistor R40, R40 is connected to the base of the NPN transistor, the emitter of the NPN transistor is connected to GND, and the collector of the NPN transistor is connected to the control input end of the on-off circuit (12).
[0012] Furthermore, the on-off circuit (12) comprises a PMOS tube, a series resistor R2 of the emulator JTAG_3V3 power supply voltage input circuit (2) is connected to the gate of the MOS tube, the collector of the NPN transistor is connected to the gate of the MOS tube, the drain of the PMOS tube is connected to the processor board VCC_3V3 power supply voltage input circuit (1), and the source of the PMOS tube is connected to the emulator JTAG_3V3 power supply voltage input circuit (2).
[0013] The present invention also provides a JTAG debugging emulator interface power backflow prevention system, comprising the above-mentioned JTAG debugging emulator interface power backflow prevention circuit, wherein the backflow prevention circuit is located on a JTAG adapter board (22), wherein the JTAG adapter board (22) is connected between a processor board (21) and a JTAG debugging emulator (23), wherein the JTAG adapter board (22) is provided with a wire-splitting connector, a TDI signal routing, a TDO signal routing, a TMS signal routing, a TCK signal routing, the backflow prevention circuit and a burning connector, wherein the wire-splitting connector is used to connect to the JTAG connector on the processor board (21), wherein the backflow prevention circuit is used to prevent the backflow voltage of the JTAG interface from entering the processor board VCC_3V3 power supply voltage input circuit (2), and wherein the burning connector is used to be plugged into the burning wire of the JTAG debugging emulator (23).
[0014] The present invention improves the universality and adaptability of debugging of different types of boards, prevents the phenomenon of voltage backflow at a JTAG interface, avoids the risk of board processor loading failure, and ensures normal power-on and operation of the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a schematic diagram of the traditional hardware debugging environment;
[0016] Figure 2 This is a schematic diagram of the power-on process of the processor board VCC_3V3 power supply voltage;
[0017] Figure 3 A schematic diagram of the hardware environment of the backflow prevention system of the present invention;
[0018] Figure 4 This is the anti-backflow circuit diagram of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0020] The system block diagram of the present invention is as follows: Figure 3As shown, a JTAG adapter board is mainly added to the traditional hardware debugging environment link. The JTAG adapter board mainly includes a wire-splitting connector, TDI / TDO / TMS / TCK signal routing (i.e., TDI signal routing, TDO signal routing, TMS signal routing, TCK signal routing), anti-backflow circuit, burning connector, etc. The wire-splitting connector can meet the needs of different types of processor boards and has high adaptability and compatibility; TDI / TDO / TMS / TCK signals are standard debugging signals and are passing signals on the JTAG adapter board; the anti-backflow circuit prevents the JTAG interface from backflowing voltage into the processor board VCC_3V3 power supply voltage input circuit, realizes the stable startup of the board, and avoids the potential risk of processor board loading failure; the burning connector adopts a universal standard socket to achieve plug-in with the JTAG emulator burning line.
[0021] The circuit diagram of the anti-backflow circuit of the present invention is as follows Figure 4 As shown, it mainly includes a state monitoring circuit 11, a control circuit 13, a switch circuit 12 and a JTAG voltage divider circuit 14; the JTAG voltage divider circuit 14 is used to provide the state monitoring circuit 11 with the power supply voltage input voltage value of the emulator JTAG_3V3 power supply voltage input circuit 2; the state monitoring circuit 11 is used to judge the size of the processor board VCC_3V3 power supply voltage and the emulator JTAG_3V3 power supply voltage; the control circuit 13 is used to provide a control signal to the switch circuit, and the switch circuit 12 is used to realize the anti-backflow function of the processor board VCC_3V3 power supply voltage.
[0022] The main functions of the anti-backflow circuit are as follows:
[0023] (1) When the processor board is connected to the emulator for debugging and the processor board itself is not powered on, the emulator's JTAG_3V3 power supply voltage will not flow back into the board;
[0024] (2) When the processor board is connected to the emulator for debugging and the board itself is powered on, the VCC_3V3 power supply voltage of the processor board is powered on normally and increases monotonically during the power-on process, providing a logic level for the JTAG interface.
[0025] The JTAG_3V3 power supply voltage of the JTAG emulator is divided by the JTAG voltage divider circuit 14, and its divided voltage value is connected together with the processor board VCC_3V3 power supply voltage input circuit 1 to the two input ends of the state monitoring circuit 11; the output end of the state monitoring circuit 11 is connected to the control circuit 13, and the output end of the control circuit 13 and the emulator JTAG_3V3 power supply voltage input circuit 2 act together on the on-off circuit 12 to realize the on or off control of the on-off circuit 12.
[0026] (1) Status monitoring circuit 11
[0027] It is mainly composed of a voltage comparator, the processor board VCC_3V3 power supply voltage input circuit 1 is connected in series with resistor R1, the simulator JTAG_3V3 power supply voltage input circuit 2 is divided by resistors R3 and R4, the positive input end of the voltage comparator is connected to resistor R1, and the negative input end of the voltage comparator is connected to the divided voltage value of resistors R3 and R4;
[0028] The power supply VDD of the voltage comparator can be 5V on the board or other power domain voltage, but it is required to be greater than 3.3V;
[0029] When the voltage comparator is actually working, when the positive input voltage is greater than the negative input voltage, the output voltage of the voltage comparator is high level, and when the positive input voltage is less than the negative input voltage, the output voltage of the voltage comparator is low level, the high level voltage is VDD, and the low level voltage is GND;
[0030] The voltage comparator is essentially composed of an operational amplifier IC. The operational amplifier IC of the present invention is not limited to a single operational amplifier IC, a dual operational amplifier IC and a quad operational amplifier IC. The present invention preferably uses a single operational amplifier IC.
[0031] (2) Control circuit 13
[0032] The control circuit 13 is mainly composed of an NPN transistor. The output end of the state monitoring circuit 11 is connected in series with a resistor R40, R40 is connected to the base of the NPN transistor, the emitter of the NPN transistor is connected to GND, and the collector of the NPN transistor is connected to the control input end of the on-off circuit 12.
[0033] The working principle of the NPN transistor is: when the voltage between the base and emitter of the transistor is less than the dead zone voltage of the transistor, the emitter and collector of the transistor are in a high-resistance state, which is equivalent to the emitter and collector being disconnected; when the voltage between the base and emitter of the transistor is greater than the voltage between the emitter and collector of the transistor, its emitter and collector are in a low-resistance state, which is equivalent to the emitter and collector being turned on.
[0034] In the actual operation of this circuit, when the state monitoring circuit 11 outputs a high level, the NPN transistor is turned on and the potential of its collector is GND. When the state monitoring circuit 11 outputs a low level, the NPN transistor is turned off and the potential of its collector is the emulator JTAG_3V3 power supply voltage.
[0035] (3) On-off circuit 12
[0036] The on-off circuit 12 is mainly composed of a PMOS tube. The simulator JTAG_3V3 power supply voltage input circuit 2 is connected to the gate of the MOS tube with a series resistor R2, and the collector of the NPN transistor is also connected to the gate of the MOS tube; the drain of the PMOS tube is connected to the processor board VCC_3V3 power supply voltage input circuit 1; the source of the PMOS tube is connected to the simulator JTAG_3V3 power supply voltage input circuit 2.
[0037] The working principle of the PMOS tube is: when the gate voltage of the PMOS tube is less than the source voltage, and the voltage difference between the source voltage and the gate voltage is greater than the PMOS tube turn-on voltage, the source and drain of the PMOS tube are in a low-resistance state, which is equivalent to the source and drain being turned on; when the gate voltage of the PMOS tube is greater than or equal to the source voltage, and the voltage difference between the source voltage and the gate voltage is less than the PMOS tube turn-on voltage, the source and drain of the PMOS tube are in a high-resistance state, which is equivalent to the source and drain being disconnected.
[0038] In the actual operation of this circuit, when the NPN transistor is turned on and its transistor collector potential is GND, the PMOS tube is turned on, and the processor board VCC_3V3 power supply voltage input circuit 1 provides the emulator with the logic level used by the JTAG interface; when the NPN transistor is disconnected, its transistor collector potential is the emulator JTAG_3V3 power supply voltage, the PMOS tube is not turned on, and the emulator JTAG_3V3 power supply voltage will not flow back into the processor board VCC_3V3 power supply voltage input circuit 1, realizing the anti-backflow function and ensuring the normal startup of the board.
[0039] The working process of the anti-backflow circuit and system of the present invention is as follows:
[0040] (1) According to Figure 3 The hardware environment is constructed as shown. Before debugging, the wire welding connector of the JTAG adapter board is connected to the JTAG connector of the processor board (21), the burning line of the JTAG debugging emulator (23) is connected to the burning connector of the JTAG adapter board, the USB cable connector of the JTAG debugging emulator (23) is inserted into the USB port of the debugging computer, the debugging computer and the debugging software are turned on, and the construction of the hardware environment is completed.
[0041] (2) Before the processor board (21) is powered on, the emulator JTAG_3V3 power supply voltage on the JTAG adapter board is ready, but the processor board VCC_3V3 power supply voltage is not ready. When the positive input terminal of the voltage comparator is less than the negative input terminal, the comparator output voltage is low level, the voltage between the base and emitter of the NPN transistor is 0V, the voltage between the emitter and collector of the NPN transistor is 3.3V, and the NPN transistor is cut off. At this time, the gate potential of the PMOS tube is the emulator JTAG_3V 3 power supply voltage, the source potential is 0V, the gate voltage is greater than the source voltage, and the voltage difference between the source voltage and the gate voltage is less than the PMOS tube turn-on voltage, the PMOS tube is cut off, the emulator JTAG_3V3 power supply voltage and the processor board VCC_3V3 power supply voltage are not conductive, the emulator JTAG_3V3 power supply voltage input circuit 2 and the processor board VCC_3V3 power supply voltage circuit 1 are disconnected, preventing the emulator JTAG_3V3 power supply voltage from flowing back into the processor board VCC_3V3 power supply voltage.
[0042] (3) After the processor board (21) is powered on, the processor board VCC_3V3 power supply voltage is ready. When the positive input terminal of the voltage comparator is greater than the negative input terminal, the comparator output voltage is high level, the voltage between the base and the emitter of the NPN transistor is 5V, the voltage between the emitter and the collector of the NPN transistor is 3.3V, the NPN transistor is turned on, and the collector potential of the transistor is GND; at this time, the gate potential of the PMOS tube is GND, the source potential is 3.3V, the gate voltage is less than the source voltage, and the voltage difference between the source voltage and the gate voltage is greater than the PMOS tube turn-on voltage, the PMOS tube is turned on, and the processor board VCC_3V3 power supply voltage input circuit 1 provides the emulator with the logic level used by the JTAG interface.
[0043] The anti-backflow system of the present invention can realize the anti-backflow requirement and ensure the normal startup of the processor; it can also ensure the light weight and small size requirements of the board and improve the universality and adaptability of the debugging system; the present invention combines the anti-backflow circuit with the JTAG adapter board to achieve the stability of the debugging state of the processor board without expanding the circuit scale of the board.
[0044] The anti-backflow circuit of the present invention solves the technical problem of the backflow voltage of the emulator JTAG_3V3 power supply voltage. The circuit invention includes a state monitoring circuit, a control circuit, a switch circuit and a JTAG voltage divider circuit. The present invention can effectively prevent the JTAG interface from backflowing the voltage into the processor board VCC_3V3 power supply voltage, avoid the risk of processor loading failure, and ensure the normal power-on and operation of the processor.
[0045] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A JTAG debugging emulator interface power backflow prevention circuit, characterized in that: The invention comprises a state monitoring circuit (11), a control circuit (13), an on-off circuit (12) and a JTAG voltage divider circuit (14); the JTAG voltage divider circuit (14) is used to provide the state monitoring circuit (11) with an input voltage value of the emulator JTAG_3V3 power supply voltage; the state monitoring circuit (11) is used to judge the magnitude of the processor board VCC_3V3 power supply voltage and the emulator JTAG_3V3 power supply voltage; the control circuit (13) is used to provide a control signal to the on-off circuit (12); and the on-off circuit (12) is used to realize the anti-backflow function of the processor board VCC_3V3 power supply voltage; The emulator JTAG_3V3 power supply voltage input circuit (2) is divided by a JTAG voltage divider circuit (14), and its divided voltage value is connected together with the processor board card VCC_3V3 power supply voltage input circuit (1) to two input ends of a state monitoring circuit (11), the output end of the state monitoring circuit (11) is connected to a control circuit (13), and the output end of the control circuit (13) and the emulator JTAG_3V3 power supply voltage input circuit (2) act together on an on-off circuit (12), thereby realizing the on or off control of the on-off circuit (12).
2. A JTAG debugging emulator interface power backflow prevention circuit according to claim 1, characterized in that: The state monitoring circuit (11) comprises a voltage comparator, a processor board VCC_3V3 power supply voltage input circuit (1) is connected to one end of a resistor R1, and the other end of the resistor R1 is connected to a positive input end of the voltage comparator; the simulator JTAG_3V3 power supply voltage is divided by resistors R3 and R4, and the output of the JTAG voltage divider circuit (14) is connected to an input end of the state monitoring circuit (11), and the voltage of the power supply VDD of the voltage comparator is 3.3V to 5V; When the voltage comparator is working, when the positive input voltage is greater than the negative input voltage, the voltage comparator outputs a high level voltage, and when the positive input voltage is less than the negative input voltage, the comparator outputs a low level voltage.
3. A JTAG debugging emulator interface power backflow prevention circuit according to claim 2, characterized in that: The voltage comparator is composed of an operational amplifier IC.
4. A JTAG debugging emulator interface power backflow prevention circuit according to claim 3, characterized in that: The operational amplifier IC is a single operational amplifier IC.
5. The JTAG debugging emulator interface power backflow prevention circuit according to claim 1, characterized in that: The control circuit (13) comprises an NPN transistor, the output end of the state monitoring circuit (11) is connected in series with a resistor R40, R40 is connected to the base of the NPN transistor, the emitter of the NPN transistor is connected to GND, and the collector of the NPN transistor is connected to the control input end of the on-off circuit (12).
6. A JTAG debugging emulator interface power backflow prevention circuit according to claim 1, characterized in that: The on-off circuit (12) comprises a PMOS tube, a simulator JTAG_3V3 power supply voltage input circuit (2) having a series resistor R2 connected to the gate of the MOS tube, a collector of an NPN transistor connected to the gate of the MOS tube, a drain of the PMOS tube connected to the processor board VCC_3V3 power supply voltage input circuit (1), and a source of the PMOS tube connected to the simulator JTAG_3V3 power supply voltage input circuit (2).
7. A JTAG debugging emulator interface power backflow prevention system, characterized in that: The invention comprises a JTAG debugging emulator interface power backflow prevention circuit as described in any one of claims 1 to 6, wherein the backflow prevention circuit is located on a JTAG adapter board (22), and the JTAG adapter board (22) is connected between a processor board (21) and a JTAG debugging emulator (23). The JTAG adapter board (22) has a wire-splitting connector, a TDI signal routing, a TDO signal routing, a TMS signal routing, a TCK signal routing, the backflow prevention circuit and a burning connector, wherein the wire-splitting connector is used to connect to the JTAG connector on the processor board (21), the backflow prevention circuit is used to prevent the backflow voltage of the JTAG interface from entering the processor board VCC_3V3 power supply voltage input circuit (2), and the burning connector is used to be plugged into the burning wire of the JTAG debugging emulator (23).
Citation Information
Cited By
Anti-backflow MOS switching circuit
CN119324621A
An anti-backflow MOS switch circuit
CN119324621B
Current sharing control circuit for detecting output state of switching power supply
CN121283159A
