CN203191963U - JTAG port safety auxiliary circuit when external watchdog mechanism is used - Google Patents

JTAG port safety auxiliary circuit when external watchdog mechanism is used Download PDF

Info

Publication number
CN203191963U
CN203191963U CN 201220727854 CN201220727854U CN203191963U CN 203191963 U CN203191963 U CN 203191963U CN 201220727854 CN201220727854 CN 201220727854 CN 201220727854 U CN201220727854 U CN 201220727854U CN 203191963 U CN203191963 U CN 203191963U
Authority
CN
China
Prior art keywords
processor
watchdog
jtag
circuit
jtag port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201220727854
Other languages
Chinese (zh)
Inventor
杨文生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Aviation Electric Co Ltd
Original Assignee
Shanghai Aviation Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Aviation Electric Co Ltd filed Critical Shanghai Aviation Electric Co Ltd
Priority to CN 201220727854 priority Critical patent/CN203191963U/en
Application granted granted Critical
Publication of CN203191963U publication Critical patent/CN203191963U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The utility model discloses a JTAG port safety auxiliary circuit when an external watchdog mechanism is used. The JTAG port safety auxiliary circuit comprises a JTAG port, a processor and a watchdog circuit, and is characterized in that a TCK pin of the JTAG port is connected with one input end of a door, an IO port of the processor is connected with the other input end of the door, the output end of the door is connected with the input end of the watchdog circuit, and the reset output end of the watchdog circuit is connected with a reset pin of the processor. A self-signal TCK of the JTAG port is effectively utilized, the purpose that the function of automatically shielding the external watchdog is achieved, and abnormal chip debugging programming or chip damage due to the existence of the external watchdog circuit cannot happen when the processor of the product is in the JTAG port debugging programming state.

Description

The safe auxiliary circuit of JTAG mouth when containing outer watchdog mechanism
Technical field
The utility model belongs to electronic circuit design field, is specially a kind of outer watchdog safe auxiliary circuit of JTAG mouth in when mechanism that contains.
Background technology
In electronic information technical field, the use of processor is ordinary day by day, ARM, DSP, PowerPC, single-chip microcomputer etc. are because its performance and reliable dirigibility efficiently, become one of widely used device of numerous engineering technical personnel, and in the above-mentioned processor, account for the overwhelming majority with the JTAG mouth again as main debugging and DLL (dynamic link library). JTAG(Joint Test Action Group; Combined testing action group) is a kind of international standard test protocol, is mainly used in the chip internal test.Table 1 is classified the relevant pin of general JTAG mouth as and corresponding function is described:
Table 1
TCK The jtag test clock.
TMS The jtag test mode selection terminal.
TDI The jtag test data input pin.At the rising edge of TCK, TDI is latched in mask register, order register or the data register.
TDO JTAG scans output, test data output.Remove from TDO in the negative edge of the TCK content with mask register.
In the use of processor, for avoiding the influence because of program design defective or other X factors, cause processor program to run and fly, product deadlock phenomenon, the introducing of house dog mechanism has effectively solved above-mentioned technical barrier.
The principle of work of house dog mechanism is: an I/O pin of watchdog circuit and processor links to each other, it periodically sends into high-low level (be called for short and feed dog) to this I/O pin on this pin of house dog by programmed control, and this program statement is placed in the middle of other control statements of processor dispersedly; In case processor is absorbed in a certain program segment behind the program fleet, when entering the endless loop state, feeds the dog program and just can not be performed owing to disturbing to cause.This time, watchdog circuit will just be sent reset signal at it with the pin that the processor reset pin links to each other owing to can not get feeding-dog signal, processor is produced reset, be that program begins to carry out from the code section start, so just realized automatically reseting of processor.
The reliability service that is introduced as product of house dog mechanism provides favourable guarantee, but has simultaneously also brought inconvenience for the on-line debugging of product and program burn writing, even can cause the expendable consequence of processor.Because processor is after connecting the success of JTAG emulator, outside the debug exception operation, program stays cool; cause dog feeding operation to carry out; the watchdog circuit cycle provides reset signal, and most processor is not done protection to this reset signal, causes the unusual or programming of debugging to make mistakes.
Be example with the DSP in field widespread uses such as Aeronautics and Astronautics, boats and ships, weapons; the TMS320F28XX series of products of TI company are the main forces in the above-mentioned field; and this DSP product is not introduced protection mechanism at the problems referred to above; in JTAG mouth program burn writing process; if introduce reset signal; just can cause chip locked, cause irreversible consequence.At this problem, our way in the past is a lot, as in the program debug stage, does not use outer watchdog, treat that program state is determined after, just enable this function; Or adding some logic by outside lead, control is opened and is closed outer watchdog function etc.Summary is got off, and all is to close the outer watchdog function by opening artificially, reaches the normal purpose of using of processor JTAG mouth.Figure 1 shows that universal external watchdog circuit theory diagram, the IO mouth of processor is directly exported to watchdog chip with feeding-dog signal, the output that resets of watchdog chip is connected to the processor reset pin by switch (the contact pin * 2 of being commonly used), when enabling watchdog function, connect with jumper cap or scolding tin at the switch place, connect otherwise disconnect herein, to reach the purpose of normal use JTAG function.
Because human factor, can not guarantee to connect the JTAG mouth at every turn and all remember to shield the outer watchdog function, cause that deadlock phenomenon still exists in the TMS320F28XX programming process.For this reason, I design this auxiliary circuit, reach the function that addresses the above problem automatically, and require simply efficiently, and have certain versatility.
The utility model content
The utility model provides a kind of outer watchdog safe auxiliary circuit of JTAG mouth in when mechanism that contains, realize enabling automatically to shield the outer watchdog functional purpose, can effectively avoid because of the outer watchdog circuit cycle reset phenomenon such as cause that the on-line debugging inconvenience of product treatment device and program burn writing are made mistakes.
To achieve these goals, the technical solution of the utility model is as follows: a kind of outer watchdog safe auxiliary circuit of JTAG mouth in when mechanism that contains, comprise JTAG mouth, processor and watchdog circuit, the TCK pin that it is characterized in that described JTAG mouth be connected with an input end of door, the IO mouth of processor be connected with another input end of door, be connected with the input end of watchdog circuit with the output terminal of door, the reset output terminal of watchdog circuit is connected with the reset pin of processor.
The utility model is by the effective utilization to JTAG mouth self signal TCK; realize enabling automatically to shield the outer watchdog functional purpose; thereby make the product treatment device in the JTAG mouth debugging programming stage, can not cause the unusual or damage of chip debugging programming because of the existence of outer watchdog circuit.
Description of drawings
Fig. 1 is outer watchdog design concept block diagram commonly used.
Fig. 2 is the utility model outer watchdog design concept block diagram.
Fig. 3 is the specific embodiments design drawing.
Below in conjunction with drawings and Examples the utility model is elaborated.
Embodiment
Fig. 2 is core technology of the present utility model, as shown in the figure, a kind of outer watchdog safe auxiliary circuit of JTAG mouth in when mechanism that contains, comprise JTAG mouth 1, processor 2 and watchdog circuit 3, the TCK pin that it is characterized in that described JTAG mouth 1 be connected with an input end of door 4, the IO mouth of processor 2 be connected with another input end of door 4, be connected with the input end of watchdog circuit 3 with the output terminal of door 4, the output terminal of watchdog circuit 3 is connected with the reset pin of processor 2.
By utilizing the JTAG mouth after successfully connecting processor, the TCK pin of JTAG mouth 1 can be from this characteristic of emulator clock signal, the feeding-dog signal of the tck signal that JTAG mouth 1 is sent and the IO mouth of processor 2 with after export to outer watchdog circuit 3.So just, reach under JTAG mouth connection status, have the tck clock signal to feed dog always, outer watchdog circuit is no longer exported reset signal, the purpose that the JTAG mouth can normally use; In case the JTAG mouth disconnects, the TCK pin of JTAG mouth is that high level is (in the JTAG mouth interface circuit chips, tck signal is high level when not connecting JTAG, namely at chip internal weak drawing, therefore need not external pull-up resistor), the input signal of watchdog circuit is the feeding-dog signal of the IO mouth of processor, and product reverts to again has only the IO mouth to feed dog, the complete outer watchdog mechanism that kept.
Fig. 3 is to be the specific embodiments design drawing of processor 2 with TMS320F2812, because that TMS320F2812 takes up room is excessive, only needs an one IO mouth (WATCHDOG_IN signal) in the utility model, so does not draw among the figure.Among the figure with the GPIOF8(WATCHDOG_IN of TMS320F2812) output IO feeding-dog signal gives CPLD, in addition the DSP_TCK signal of JTAG mouth 1 is exported to the CPLD(CPLD), in CPLD, hold to the dog that feeds of outer watchdog circuit above-mentioned two signals and back output WATCHDOG_OUT signal, simultaneously the reset output signal of outer watchdog circuit is directly exported to the reset pin (DSP_RST) of DSP and located.Wherein watchdog circuit adopts TPS3823-33.By the simulation waveform analysis, this scheme has realized feeding dog (shielding outer watchdog) automatically when JTAG connects, and is fed the purpose of dog (enabling outer watchdog) during disconnection by IO.By a large amount of tests of product, this auxiliary circuit is simple and reliable.

Claims (2)

1. one kind contains the outer watchdog safe auxiliary circuit of JTAG mouth in when mechanism, comprise JTAG mouth, processor and watchdog circuit, the TCK pin that it is characterized in that described JTAG mouth be connected with an input end of door, the IO mouth of processor be connected with another input end of door, be connected with the input end of watchdog circuit with the output terminal of door, the reset output terminal of watchdog circuit is connected with the reset pin of processor.
2. the safe auxiliary circuit of JTAG mouth as claimed in claim 1 is characterized in that processor model is TMS320F2812, adopts CPLD to realize with door.
CN 201220727854 2012-12-26 2012-12-26 JTAG port safety auxiliary circuit when external watchdog mechanism is used Expired - Fee Related CN203191963U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220727854 CN203191963U (en) 2012-12-26 2012-12-26 JTAG port safety auxiliary circuit when external watchdog mechanism is used

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220727854 CN203191963U (en) 2012-12-26 2012-12-26 JTAG port safety auxiliary circuit when external watchdog mechanism is used

Publications (1)

Publication Number Publication Date
CN203191963U true CN203191963U (en) 2013-09-11

Family

ID=49108807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220727854 Expired - Fee Related CN203191963U (en) 2012-12-26 2012-12-26 JTAG port safety auxiliary circuit when external watchdog mechanism is used

Country Status (1)

Country Link
CN (1) CN203191963U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile
CN103699037A (en) * 2013-12-19 2014-04-02 兰州空间技术物理研究所 Automatic monitoring closing timer circuit for JTAG (joint test action group) simulator
CN107273291A (en) * 2017-06-14 2017-10-20 湖南国科微电子股份有限公司 A kind of processor debugging method and system
CN112433589A (en) * 2020-10-30 2021-03-02 天津航空机电有限公司 Double-margin DSP anti-reset locking circuit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676728A (en) * 2013-11-27 2014-03-26 奇瑞汽车股份有限公司 Watchdog circuit system for electronic control unit of automobile
CN103676728B (en) * 2013-11-27 2016-09-07 奇瑞新能源汽车技术有限公司 Watchdog circuit system for electronic control unit of automobile
CN103699037A (en) * 2013-12-19 2014-04-02 兰州空间技术物理研究所 Automatic monitoring closing timer circuit for JTAG (joint test action group) simulator
CN107273291A (en) * 2017-06-14 2017-10-20 湖南国科微电子股份有限公司 A kind of processor debugging method and system
CN107273291B (en) * 2017-06-14 2021-01-01 湖南国科微电子股份有限公司 Processor debugging method and system
CN112433589A (en) * 2020-10-30 2021-03-02 天津航空机电有限公司 Double-margin DSP anti-reset locking circuit
CN112433589B (en) * 2020-10-30 2022-11-01 天津航空机电有限公司 Double-margin DSP anti-reset locking circuit

Similar Documents

Publication Publication Date Title
CN203191963U (en) JTAG port safety auxiliary circuit when external watchdog mechanism is used
CN103902393A (en) JTAG port safety auxiliary circuit with external watchdog mechanism
CN102929755B (en) Fault detection method of CPU (Central Processing Unit) module address and data bus
CN103218338A (en) Real-time multi-DSP (digital signal processor) debugging system for signal processor system
CN102591760A (en) On-chip debugging circuit based on long and short scan chains and JTAG (joint test action group) interface
CN202217264U (en) Entire machine debugging system
Cheng et al. The remote monitoring system of transformer fault based on The internet of Things
CN105224372B (en) Program is run and JTAG programs download the circuit of wire jumper free
CN201425723Y (en) Switch of dual hard disk power lines
CN202204884U (en) Logic test device for outlets of main transformer, differential bus and automatic bus transfer equipment
CN208445269U (en) A kind of belief system of protective relaying device
CN209150704U (en) A kind of controller hardware protection circuit based on rest-set flip-flop
CN102929651A (en) Chip-array-based on-line loading system and loading method thereof
CN207732510U (en) A kind of soft straight-through letter fail-safe system based on detection of power loss
CN103699037B (en) A kind of JTAG emulators are automatically switched off supervision timer circuit
CN205068366U (en) Circuit of exempting from wire jumper is downloaded to program run and JTAG procedure
CN201314936Y (en) Exit logic comprehensive tester for relay protector
CN208781208U (en) Pci bus test board
CN207198842U (en) A kind of universal parallel port fault injection device based on JTAG
CN101609319B (en) Circuit device for monitoring running state of programs in real time
CN101963936A (en) Method for storing working parameter state by DSP (Digital Signal Processor) equipment through CF (Compact Flash) memory card
CN205139905U (en) Domestic and similar usage electrical apparatus software aassessment black box test system
CN210221334U (en) Thermal resistance measuring device
CN216850675U (en) Line concentration device
CN204832951U (en) A safety monitoring system for test of skylight ECU

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130911

Termination date: 20211226

CF01 Termination of patent right due to non-payment of annual fee