JP2012222178A - Semiconductor device - Google Patents

Semiconductor device Download PDF

Info

Publication number
JP2012222178A
JP2012222178A JP2011086992A JP2011086992A JP2012222178A JP 2012222178 A JP2012222178 A JP 2012222178A JP 2011086992 A JP2011086992 A JP 2011086992A JP 2011086992 A JP2011086992 A JP 2011086992A JP 2012222178 A JP2012222178 A JP 2012222178A
Authority
JP
Japan
Prior art keywords
driver
output
failure
pull
circuit
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.)
Withdrawn
Application number
JP2011086992A
Other languages
Japanese (ja)
Inventor
Katsuhito Uchiyama
勝仁 内山
Kazuhiro Ushiro
和宏 後
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2011086992A priority Critical patent/JP2012222178A/en
Publication of JP2012222178A publication Critical patent/JP2012222178A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a semiconductor device including a fault detection and remedy circuit capable of remedying output abnormalities due to a fault of a driver.SOLUTION: A fault detection unit 1 detects a fault of a driver 10 by connecting a pull-up resistor 15 or a pull-down resistor 18 to the output of the driver 10 so as to have the reverse potential of an expected potential at the output of the driver 10, and comparing the input potential of the driver 10 with the output potential. When a fault of the driver 10 is detected by the fault detection unit 1, a fault detection and remedy unit 2 remedies the fault of the driver 10 by connecting a pull-up resistor 26 or a pull-down resistor 29 to the output of the driver 10 so as to have the same potential as the expected potential. Consequently, output abnormalities due to the fault of the driver 10 can be remedied.

Description

本発明は、半導体集積回路の故障を検出して救済する技術に関し、特に、ドライバの故障を検出して自動的に救済する故障検出救済回路を含んだ半導体装置に関する。   The present invention relates to a technique for detecting and relieving a failure in a semiconductor integrated circuit, and more particularly, to a semiconductor device including a failure detection and relieving circuit that detects a driver failure and automatically relieves it.

近年、半導体集積回路の高機能化、多機能化が進んでおり、たとえば、マイクロコンピュータ(以下、マイコンと呼ぶ。)などの半導体装置に外部のデバイスを駆動するドライバが搭載されることも多くなってきている。このようなドライバの故障を検出する技術として、下記の特許文献1〜2に開示された発明がある。   In recent years, semiconductor integrated circuits have become more sophisticated and multifunctional. For example, a driver for driving an external device is often mounted on a semiconductor device such as a microcomputer (hereinafter referred to as a microcomputer). It is coming. As a technique for detecting such a driver failure, there are inventions disclosed in Patent Documents 1 and 2 below.

特許文献1は、従来の出力回路において、ディジタル回路からの信号がバッファ回路を通してそのまま外部端子に出力されていたので、出力端子の先で電源やグランドに短絡されていたり、隣りあう出力端子が短絡されている場合に、信号が正確に出力されているかどうか知ることができないという欠点を解決するものである。出力回路は、1つ又は複数の出力端子を有するディジタル回路と、ディジタル回路の各出力端子にそれぞれ入力端子を接続した同数のバッファ回路と、バッファ回路の各出力端子を接続した同数の外部端子と、各バッファ回路の入力端子と出力端子とをそれぞれ異なる2つの入力端子に接続した同数の排他的論理和回路と、排他的論理和回路の各出力端子を接続した同数の検出端子とを有している。   In Patent Document 1, since a signal from a digital circuit is directly output to an external terminal through a buffer circuit in a conventional output circuit, the output terminal is short-circuited to a power source or a ground, or an adjacent output terminal is short-circuited. In this case, it solves the drawback of not knowing whether the signal is output correctly. The output circuit includes a digital circuit having one or a plurality of output terminals, the same number of buffer circuits each having an input terminal connected to each output terminal of the digital circuit, and the same number of external terminals connected to each output terminal of the buffer circuit. The same number of exclusive OR circuits in which the input terminals and output terminals of each buffer circuit are connected to two different input terminals, and the same number of detection terminals to which the output terminals of the exclusive OR circuit are connected. ing.

特許文献2は、一方の装置から複数の装置にそれぞれ出力バッファを介したデータ信号の伝送における出力バッファ障害検出方式に関し、出力バッファの障害が簡単な構成で検出できる出力バッファ障害検出方式を提供することを目的とする。各出力バッファの入力信号と出力信号とを入力とする2入力のチェック回路を設ける。このチェック回路は2つの信号を比較することにより正常でない場合に出力バッファの障害検出信号を発生するよう構成する。   Patent Document 2 relates to an output buffer failure detection method in the transmission of a data signal from one device to a plurality of devices through an output buffer, and provides an output buffer failure detection method capable of detecting an output buffer failure with a simple configuration. For the purpose. A two-input check circuit that receives the input signal and output signal of each output buffer is provided. This check circuit is configured to generate an output buffer failure detection signal when the two signals are not normal by comparing the two signals.

特開平01−122207号公報Japanese Patent Laid-Open No. 01-122207 特開平04−287256号公報Japanese Patent Laid-Open No. 04-287256

半導体装置に搭載されたドライバの不具合サンプルを解析した結果、不具合の原因は、ドライバ出力部のPチャネルトランジスタの絶縁膜不良により、ゲート・ソース間がショートし、正常であればハイレベル(以下、Hレベルと略す。)を出力すべきであるのに、ハイ・インピーダンス(Hi−Z)を出力したことによるものが多いことが判明した。これは、出荷時にはドライバが正常に動作していたが、出荷後にドライバが劣化して誤動作したものである。   As a result of analyzing a failure sample of a driver mounted on a semiconductor device, the cause of the failure is a short circuit between the gate and the source due to an insulating film failure of the P-channel transistor in the driver output section. It has been found that there are many cases where a high impedance (Hi-Z) is output even though it should be output. This is because the driver operated normally at the time of shipment, but malfunctioned due to deterioration of the driver after shipment.

一方、特許文献1に開示された発明は、出力端子の先で電源やグランドに短絡されていたり、隣りあう出力端子が短絡されている場合に、信号が正確に出力されていないことを検出することができるが、それを自動的に救済することができない。   On the other hand, the invention disclosed in Patent Document 1 detects that a signal is not accurately output when the output terminal is short-circuited to a power source or a ground, or an adjacent output terminal is short-circuited. It can, but it cannot be remedied automatically.

また、特許文献2に開示された発明においては、チェック回路が2つの信号を比較することにより正常でない場合に出力バッファの障害検出信号を発生するよう構成されるので、出力バッファの障害を簡単な構成で検出することができるが、特許文献1と同様に、それを自動的に救済することができない。   In the invention disclosed in Patent Document 2, since the check circuit is configured to generate a failure detection signal for the output buffer when the two signals are not normal by comparing the two signals, the failure of the output buffer is simplified. Although it can be detected by the configuration, as in Patent Document 1, it cannot be automatically remedied.

本発明は、上記問題点を解決するためになされたものであり、その目的は、ドライバの故障による出力異常を救済することが可能な故障検出救済回路を含んだ半導体装置を提供することである。   The present invention has been made to solve the above problems, and an object of the present invention is to provide a semiconductor device including a failure detection / relief circuit capable of relieving an output abnormality caused by a driver failure. .

本発明の一実施例によれば、ドライバの故障を検出して救済する半導体装置が提供される。故障検知部は、ドライバの出力の期待電位の逆電位となるようにドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続し、ドライバの入力電位と出力電位とを比較することによりドライバの故障を検出する。故障救済部は、故障検出部によってドライバの故障が検出された場合に、期待電位と同電位となるようにドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続してドライバの故障を救済する。   According to one embodiment of the present invention, a semiconductor device that detects and relieves a driver failure is provided. The failure detection unit detects a driver failure by connecting a pull-up resistor or pull-down resistor to the driver output so that the potential of the driver output is opposite to the expected potential, and comparing the driver input potential with the output potential. To do. The failure relief unit rescues the driver failure by connecting a pull-up resistor or a pull-down resistor to the driver output so that the potential is the same as the expected potential when the failure detection unit detects a driver failure.

本発明の一実施例によれば、故障救済部が期待電位と同電位となるようにドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続するので、ドライバの故障による出力異常を救済することが可能となる。   According to one embodiment of the present invention, a pull-up resistor or a pull-down resistor is connected to the driver output so that the failure relief unit has the same potential as the expected potential, so it is possible to relieve an output abnormality due to a driver failure. It becomes.

本発明の第1の実施の形態における故障検出救済回路の構成例を示す図である。It is a figure which shows the structural example of the failure detection relief circuit in the 1st Embodiment of this invention. 本発明の第1の実施の形態における故障検出救済回路の動作を説明するためのフローチャートである。3 is a flowchart for explaining the operation of the failure detection and relief circuit according to the first embodiment of the present invention. 本発明の第2の実施の形態における故障検出救済回路の構成例を示す図である。It is a figure which shows the structural example of the failure detection relief circuit in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。6 is a timing chart for explaining the operation of the failure detection and relief circuit according to the second embodiment of the present invention. 本発明の第3の実施の形態における故障検出救済回路の構成例を示す図である。It is a figure which shows the structural example of the failure detection relief circuit in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。10 is a timing chart for explaining the operation of the failure detection and relief circuit according to the third embodiment of the present invention. 本発明の第4の実施の形態における故障救済部2の構成例を示す図である。It is a figure which shows the structural example of the failure relief part 2 in the 4th Embodiment of this invention. 本発明の第4の実施の形態における故障救済部2の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the failure relief part 2 in the 4th Embodiment of this invention. 本発明の第5の実施の形態における故障救済部2の構成例を示す図である。It is a figure which shows the structural example of the failure relief part 2 in the 5th Embodiment of this invention. 本発明の第5の実施の形態における故障救済部2の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the failure relief part 2 in the 5th Embodiment of this invention. 本発明の第6の実施の形態における故障検出救済回路の構成例を示す図である。It is a figure which shows the structural example of the failure detection relief circuit in the 6th Embodiment of this invention. 本発明の第6の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。It is a timing chart for demonstrating operation | movement of the failure detection relief circuit in the 6th Embodiment of this invention.

(第1の実施の形態)
図1は、本発明の第1の実施の形態における故障検出救済回路の構成例を示す図である。この故障検出救済回路は、たとえば、マイコンなどの半導体装置内に設けられ、故障検知部1と、故障救済部2と、出力PAD3とを含む。
(First embodiment)
FIG. 1 is a diagram illustrating a configuration example of a failure detection / relief circuit according to the first embodiment of the present invention. The failure detection / relief circuit is provided in a semiconductor device such as a microcomputer, for example, and includes a failure detection unit 1, a failure relief unit 2, and an output PAD3.

故障検知部1は、出力故障検知対象のドライバ10と、故障検知レジスタA11と、故障検知レジスタB12と、OR回路13と、AND回路14と、プルアップ抵抗15と、Pチャネルトランジスタ16と、Nチャネルトランジスタ17と、プルダウン抵抗18と、排他的論理和(EOR)回路19とを含む。   The failure detection unit 1 includes an output failure detection target driver 10, a failure detection register A11, a failure detection register B12, an OR circuit 13, an AND circuit 14, a pull-up resistor 15, a P-channel transistor 16, N A channel transistor 17, a pull-down resistor 18, and an exclusive OR (EOR) circuit 19 are included.

故障検知レジスタA11は、図示しないCPU(Central Processing Unit)によって値が設定されるレジスタであり、通常動作モード時には“H”が書き込まれ、故障検知モード時には“L”が書き込まれる。   The failure detection register A11 is a register whose value is set by a CPU (Central Processing Unit) (not shown), and “H” is written in the normal operation mode, and “L” is written in the failure detection mode.

また、故障検知レジスタB12も、図示しないCPUによって値が設定されるレジスタであり、通常動作モード時には“L”が書き込まれ、故障検知モード時には“H”が書き込まれる。   The failure detection register B12 is also a register whose value is set by a CPU (not shown), and “L” is written in the normal operation mode, and “H” is written in the failure detection mode.

通常動作モード時には、故障検知レジスタA11がHレベルを出力するため、OR回路13もHレベルを出力する。したがって、Pチャネルトランジスタ16はOFFとなる。また、故障検知レジスタB12がロウレベル(以下、Lレベルと略す。)を出力するため、AND回路14もLレベルを出力する。したがって、Nチャネルトランジスタ17はOFFとなる。   In the normal operation mode, since the failure detection register A11 outputs H level, the OR circuit 13 also outputs H level. Therefore, the P-channel transistor 16 is turned off. Further, since the failure detection register B12 outputs a low level (hereinafter abbreviated as L level), the AND circuit 14 also outputs an L level. Therefore, the N channel transistor 17 is turned off.

その結果、ドライバ10の出力にはプルアップ抵抗15およびプルダウン抵抗18が接続されていない状態となる。このとき、ドライバ10が正常に動作していれば、EOR回路19の2つの入力の値が同じであるため、EOR回路19は正常であることを示すLレベルを出力する。また、ドライバ10が故障して、出力がハイ・インピーダンスになっている場合には、EOR回路18の出力は不定、すなわちEOR回路19のプロセス特性やドライバ10の出力レベルがLレベルとHレベルのどちらにバイアスされているか等に応じてLレベルまたはHレベルのどちらかを出力することとなる。特に、ドライバ10の出力インピーダンスが高い状態であるものの、入力に追随する出力をするような故障状態にある場合、EOR回路19は正常であることを示すLレベルを出力する傾向が高くなる。   As a result, the pull-up resistor 15 and the pull-down resistor 18 are not connected to the output of the driver 10. At this time, if the driver 10 is operating normally, the values of the two inputs of the EOR circuit 19 are the same, so the EOR circuit 19 outputs an L level indicating that it is normal. When the driver 10 fails and the output is high impedance, the output of the EOR circuit 18 is indefinite, that is, the process characteristics of the EOR circuit 19 and the output level of the driver 10 are L level and H level. Either L level or H level is output depending on which one is biased. In particular, when the output impedance of the driver 10 is in a high state, but in a failure state in which an output that follows the input is present, the EOR circuit 19 tends to output an L level indicating that it is normal.

故障検知モード時には、故障検知レジスタA11がLレベルを出力するため、OR回路13はドライバ10の入力と同じ値を出力する。また、故障検知レジスタB12がHレベルを出力するため、AND回路14はドライバ10の入力と同じ値を出力する。   In the failure detection mode, since the failure detection register A11 outputs L level, the OR circuit 13 outputs the same value as the input of the driver 10. Further, since the failure detection register B12 outputs H level, the AND circuit 14 outputs the same value as the input of the driver 10.

そのため、ドライバ10の入力がLレベルであれば、OR回路13もLレベルを出力し、Pチャネルトランジスタ16はONとなる。また、AND回路14もLレベルを出力し、Nチャネルトランジスタ17はOFFとなる。その結果、ドライバ10の出力にプルアップ抵抗15が接続されることになり、ドライバ10の出力がハイ・インピーダンスであれば、プルアップ抵抗15によってHレベルとされる。このとき、ドライバ10の入力と出力との値が異なるため、EOR回路19はドライバ10が故障していることを示すHレベルを出力する。   Therefore, if the input of the driver 10 is L level, the OR circuit 13 also outputs L level, and the P-channel transistor 16 is turned on. The AND circuit 14 also outputs an L level, and the N-channel transistor 17 is turned off. As a result, the pull-up resistor 15 is connected to the output of the driver 10. If the output of the driver 10 is high impedance, the pull-up resistor 15 sets the pull-up resistor 15 to the H level. At this time, since the input and output values of the driver 10 are different, the EOR circuit 19 outputs an H level indicating that the driver 10 has failed.

また、ドライバ10の入力がHレベルであれば、OR回路13もHレベルを出力し、Pチャネルトランジスタ16はOFFとなる。また、AND回路14もHレベルを出力し、Nチャネルトランジスタ17はONとなる。その結果、ドライバ10の出力にプルダウン抵抗18が接続されることになり、ドライバ10の出力がハイ・インピーダンスであれば、プルダウン抵抗18によってLレベルとされる。このとき、ドライバ10の入力と出力との値が異なるため、EOR回路19はドライバ10が故障していることを示すHレベルを出力する。   If the input of the driver 10 is H level, the OR circuit 13 also outputs H level, and the P channel transistor 16 is turned off. The AND circuit 14 also outputs an H level, and the N-channel transistor 17 is turned on. As a result, the pull-down resistor 18 is connected to the output of the driver 10. When the output of the driver 10 is high impedance, the pull-down resistor 18 sets the output to the L level. At this time, since the input and output values of the driver 10 are different, the EOR circuit 19 outputs an H level indicating that the driver 10 has failed.

このように、故障検知モード時には、ドライバ10の出力の期待電位と逆電位となるようにプルアップ抵抗15またはプルダウン抵抗18を接続する。このとき、ドライバ10が故障してハイ・インピーダンスを出力していれば、プルアップ抵抗15またはプルダウン抵抗18によってドライバ10の入力電位と出力電位とが逆になり、EOR回路19がHレベルを出力することになる。なお、プルアップ抵抗15およびプルダウン抵抗18の抵抗値は、ドライバ10が正常に動作している場合にはその出力のレベルが変わらない程度の値が設定される。すなわち、プルアップ抵抗15およびプルダウン抵抗18を流れる電流を、ドライバ10の出力駆動電流よりも小さくする。   As described above, in the failure detection mode, the pull-up resistor 15 or the pull-down resistor 18 is connected so as to have a potential opposite to the expected potential of the output of the driver 10. At this time, if the driver 10 fails and outputs high impedance, the pull-up resistor 15 or pull-down resistor 18 causes the input potential and output potential of the driver 10 to be reversed, and the EOR circuit 19 outputs the H level. Will do. The resistance values of the pull-up resistor 15 and the pull-down resistor 18 are set to values that do not change the output level when the driver 10 is operating normally. That is, the current flowing through the pull-up resistor 15 and the pull-down resistor 18 is made smaller than the output drive current of the driver 10.

故障救済部2は、救済レジスタA21と、救済レジスタB22と、インバータ(NOT)回路23と、NAND回路24と、NOR回路25と、プルアップ抵抗26と、Pチャネルトランジスタ27と、Nチャネルトランジスタ28と、プルダウン抵抗29とを含む。   The fault relief unit 2 includes a relief register A21, a relief register B22, an inverter (NOT) circuit 23, a NAND circuit 24, a NOR circuit 25, a pull-up resistor 26, a P-channel transistor 27, and an N-channel transistor 28. And a pull-down resistor 29.

救済レジスタA21は、ドライバ10が正常に動作している場合、すなわちEOR回路19がLレベルを出力している場合にはLレベルを保持して出力する。また、救済レジスタA21は、ドライバ10の故障が検出された場合、すなわちEOR回路19の出力がLレベルからHレベルに変化した場合にHレベルを保持して出力する。   The relief register A21 holds and outputs the L level when the driver 10 is operating normally, that is, when the EOR circuit 19 outputs the L level. The relief register A21 holds and outputs the H level when a failure of the driver 10 is detected, that is, when the output of the EOR circuit 19 changes from the L level to the H level.

救済レジスタB22は、ドライバ10が正常に動作している場合、すなわちEOR回路19がLレベルを出力している場合にはHレベルを保持して出力する。また、救済レジスタB22は、ドライバ10の故障が検出された場合、すなわちEOR回路19の出力がLレベルからHレベルに変化した場合にLレベルを保持して出力する。   The relief register B22 holds and outputs the H level when the driver 10 is operating normally, that is, when the EOR circuit 19 outputs the L level. The relief register B22 holds and outputs the L level when a failure of the driver 10 is detected, that is, when the output of the EOR circuit 19 changes from the L level to the H level.

ドライバ10の動作が正常時には、救済レジスタA21がLレベルを出力するため、NAND回路24はHレベルを出力する。したがって、Pチャネルトランジスタ27はOFFとなる。また、救済レジスタB22がHレベルを出力するため、NOR回路25はLレベルを出力する。したがって、Nチャネルトランジスタ28はOFFとなる。   When the operation of the driver 10 is normal, the relief register A21 outputs L level, so that the NAND circuit 24 outputs H level. Therefore, the P-channel transistor 27 is turned off. Further, since the relief register B22 outputs the H level, the NOR circuit 25 outputs the L level. Therefore, the N channel transistor 28 is turned off.

その結果、ドライバ10の出力にはプルアップ抵抗26およびプルダウン抵抗29が接続されていない状態となる。このとき、ドライバ10が正常に動作していれば、PAD3に接続される外部のデバイスが正常に駆動されることになる。   As a result, the pull-up resistor 26 and the pull-down resistor 29 are not connected to the output of the driver 10. At this time, if the driver 10 is operating normally, an external device connected to the PAD 3 is normally driven.

ドライバ10の故障時には、救済レジスタA21がHレベルを出力するため、NAND回路24はドライバ10の入力を反転した値を出力する。また、救済レジスタB22がLレベルを出力するため、NOR回路25はドライバ10の入力を反転した値を出力する。   When the driver 10 fails, the relief register A21 outputs an H level, so the NAND circuit 24 outputs a value obtained by inverting the input of the driver 10. Further, since the relief register B22 outputs L level, the NOR circuit 25 outputs a value obtained by inverting the input of the driver 10.

そのため、ドライバ10の入力がLレベルであれば、NAND回路24はHレベルを出力し、Pチャネルトランジスタ16はOFFとなる。また、NOR回路25はHレベルを出力し、Nチャネルトランジスタ28はONとなる。その結果、ドライバ10の出力にプルダウン抵抗29が接続されることになり、ドライバ10の出力がハイ・インピーダンスであれば、プルダウン抵抗29によってLレベルとされる。なお、プルダウン抵抗29の抵抗値は、ドライバ10の出力駆動能力と同程度の駆動能力となるように設定される。   Therefore, if the input of the driver 10 is L level, the NAND circuit 24 outputs H level, and the P channel transistor 16 is turned OFF. The NOR circuit 25 outputs an H level, and the N-channel transistor 28 is turned on. As a result, the pull-down resistor 29 is connected to the output of the driver 10. When the output of the driver 10 is high impedance, the pull-down resistor 29 is set to the L level. Note that the resistance value of the pull-down resistor 29 is set to have a driving capability comparable to the output driving capability of the driver 10.

また、ドライバ10の入力がHレベルであれば、NAND回路24はLレベルを出力し、Pチャネルトランジスタ27はONとなる。また、NOR回路25はLレベルを出力し、Nチャネルトランジスタ28はOFFとなる。その結果、ドライバ10の出力にプルアップ抵抗26が接続されることになり、ドライバ10の出力がハイ・インピーダンスであれば、プルアップ抵抗26によってHレベルとされる。なお、プルアップ抵抗26の抵抗値は、ドライバ10の出力駆動能力と同程度の駆動能力となるように設定される。   If the input of the driver 10 is H level, the NAND circuit 24 outputs L level and the P channel transistor 27 is turned ON. Further, the NOR circuit 25 outputs an L level, and the N-channel transistor 28 is turned off. As a result, the pull-up resistor 26 is connected to the output of the driver 10. If the output of the driver 10 is high impedance, the pull-up resistor 26 sets the pull-up resistor 26 to the H level. Note that the resistance value of the pull-up resistor 26 is set to have a driving capability comparable to the output driving capability of the driver 10.

このように、ドライバ10の故障が検知された場合、ドライバ10の出力と同電位となるようにプルアップ抵抗26またはプルダウン抵抗29を接続する。したがって、ドライバ10が故障して出力がハイ・インピーダンスになっている場合でも、それを救済することができる。   As described above, when a failure of the driver 10 is detected, the pull-up resistor 26 or the pull-down resistor 29 is connected so as to have the same potential as the output of the driver 10. Therefore, even when the driver 10 breaks down and the output becomes high impedance, it can be remedied.

図2は、本発明の第1の実施の形態における故障検出救済回路の動作を説明するためのフローチャートである。まず、図示しないCPUが故障を検知させる必要があるか否かを判定する(S11)。故障を検知させる必要がなければ(S11,No)、すなわち通常動作モード時には、CPUが故障検知レジスタA11に“H”を設定し、故障検知レジスタB12に“L”を設定する(S12)。   FIG. 2 is a flowchart for explaining the operation of the failure detection and relief circuit according to the first embodiment of the present invention. First, it is determined whether or not a CPU (not shown) needs to detect a failure (S11). If it is not necessary to detect a failure (S11, No), that is, in the normal operation mode, the CPU sets “H” in the failure detection register A11 and “L” in the failure detection register B12 (S12).

また、セルフチェックなどで故障を検知させる必要があれば(S11,Yes)、CPUが故障検知レジスタA11に“L”を設定し、故障検知レジスタB12に“H”を設定する(S13)。そして、ドライバ10の出力の期待電位と逆電位となるようにトランジスタ16または17をONさせる(S14)。   If it is necessary to detect a failure by self-check (S11, Yes), the CPU sets “L” in the failure detection register A11 and “H” in the failure detection register B12 (S13). Then, the transistor 16 or 17 is turned on so as to be opposite to the expected potential of the output of the driver 10 (S14).

EOR回路19は、ドライバ10の入力電位と出力電位とを比較する(S15)。そして、比較結果が同じであれば、すなわちドライバ10が正常に動作していれば(S16,Yes)、救済レジスタA21に“L”が設定され、救済レジスタB22に“H”が設定される(S17)。   The EOR circuit 19 compares the input potential of the driver 10 with the output potential (S15). If the comparison results are the same, that is, if the driver 10 is operating normally (S16, Yes), “L” is set in the relief register A21 and “H” is set in the relief register B22 ( S17).

また、比較結果が異なっていれば、すなわちドライバ10の故障が検知されれば(S16,No)、救済レジスタA21に“H”が設定され、救済レジスタB22に“L”が設定される(S18)。そして、ドライバ10の出力の期待電位と同電位となるようにトランジスタ27または28をONさせる(S19)。   If the comparison results are different, that is, if a failure of the driver 10 is detected (No in S16), “H” is set in the relief register A21 and “L” is set in the relief register B22 (S18). ). Then, the transistor 27 or 28 is turned on so as to have the same potential as the expected potential of the output of the driver 10 (S19).

以上の説明においては、ドライバ10が故障して出力がハイ・インピーダンスになる場合について説明したが、ドライバ10が劣化して駆動能力が低下している場合でも、プルアップ抵抗15およびプルダウン抵抗18の抵抗値の設定によって、故障検知部1はそれを検知することができる。したがって、そのような場合でも、故障救済部2がドライバ10の故障の救済を行なうことができる。   In the above description, the case where the driver 10 breaks down and the output becomes high impedance has been described. However, even when the driver 10 is deteriorated and the driving capability is lowered, the pull-up resistor 15 and the pull-down resistor 18 are not connected. By setting the resistance value, the failure detection unit 1 can detect it. Therefore, even in such a case, the failure relief unit 2 can relieve the failure of the driver 10.

また、ドライバ10が、入力電位と同じ電位を出力する場合について説明したが、入力電位を反転して出力するようなドライバにも適用することができる。この場合、故障検知部1において、抵抗15をグラウンドに接続してプルダウン抵抗とし、抵抗18を電源に接続してプルアップ抵抗とする。そして、EOR回路19の入力のいずれかにインバータ(NOT)回路を追加する。   Further, the case where the driver 10 outputs the same potential as the input potential has been described, but the present invention can also be applied to a driver that inverts and outputs the input potential. In this case, in the failure detection unit 1, the resistor 15 is connected to the ground to be a pull-down resistor, and the resistor 18 is connected to the power source to be a pull-up resistor. Then, an inverter (NOT) circuit is added to one of the inputs of the EOR circuit 19.

また、故障救済部2において、抵抗26をグラウンドに接続してプルダウン抵抗とし、抵抗29を電源に接続してプルアップ抵抗とする。これによって、反転タイプのドライバにも適用することができる。   In the failure relief unit 2, the resistor 26 is connected to the ground to be a pull-down resistor, and the resistor 29 is connected to the power source to be a pull-up resistor. Thus, the present invention can also be applied to an inversion type driver.

以上説明したように、本実施の形態における故障検出救済回路によれば、故障検知モード時に、故障検知部1がドライバ10の出力の期待電位と逆電位となるようにドライバ10の出力にプルアップ抵抗15またはプルダウン抵抗18を接続し、ドライバ10の入力電位と出力電位とを比較してドライバ10の故障を検出するようにした。したがって、ドライバ10が故障してハイ・インピーダンスを出力している場合でも、ドライバ10の故障を検出することが可能となった。   As described above, according to the failure detection relief circuit in the present embodiment, in the failure detection mode, the failure detection unit 1 is pulled up to the output of the driver 10 so that the potential is opposite to the expected potential of the output of the driver 10. The resistor 15 or the pull-down resistor 18 is connected, and the failure of the driver 10 is detected by comparing the input potential and the output potential of the driver 10. Therefore, even when the driver 10 fails and outputs high impedance, it is possible to detect the failure of the driver 10.

また、故障検知部1がドライバ10の故障を検知したときに、故障救済部2がドライバ10の出力の期待電位と同電位となるようにプルアップ抵抗26またはプルダウン抵抗29を接続するようにしたので、ドライバ10の故障による出力異常を救済することが可能となった。   In addition, when the failure detection unit 1 detects a failure of the driver 10, the failure relief unit 2 is connected to the pull-up resistor 26 or the pull-down resistor 29 so as to be the same potential as the expected potential of the output of the driver 10. Therefore, it becomes possible to relieve the output abnormality due to the failure of the driver 10.

また、本実施の形態における故障検出救済回路を、マイコンが検出したエラーを外部に対して出力するIOポートドライバに適用した場合、IOポートドライバが故障してエラー検出がシステム全体に伝わらないといった不具合を防止することが可能となる。   Further, when the failure detection / relief circuit in the present embodiment is applied to an IO port driver that outputs an error detected by a microcomputer to the outside, the IO port driver fails and error detection is not transmitted to the entire system. Can be prevented.

また、本実施の形態における故障検出救済回路を、外部のデバイスにリセット信号を出力するIOポートドライバに適用した場合、IOポートドライバが故障してリセットがシステム全体に伝わらないといった不具合を防止することが可能となる。   Further, when the failure detection / relief circuit according to the present embodiment is applied to an IO port driver that outputs a reset signal to an external device, it is possible to prevent a failure such that the IO port driver fails and the reset is not transmitted to the entire system. Is possible.

また、本実施の形態における故障検出救済回路を、車載用マイコンなどの高い信頼性が要求される半導体装置に搭載するようにすれば、より安全性の向上を図ることが可能となる。   Further, if the failure detection / relief circuit according to the present embodiment is mounted on a semiconductor device that requires high reliability such as an in-vehicle microcomputer, the safety can be further improved.

(第2の実施の形態)
図3は、本発明の第2の実施の形態における故障検出救済回路の構成例を示す図である。本発明の第2の実施の形態における故障検出救済回路は、図1に示す第1の実施の形態における故障検出救済回路と比較して、故障検知部1の故障検知レジスタを1つとし、それに応じてインバータ(NOT)回路32およびAND回路33を追加した点と、故障救済部2の救済レジスタを1つとし、それに応じてインバータ23が削除され、さらにインバータ42が追加された点とが異なる。したがって、重複する構成および機能の詳細な説明は繰り返さない。
(Second Embodiment)
FIG. 3 is a diagram illustrating a configuration example of a failure detection and relief circuit according to the second embodiment of the present invention. The failure detection / relief circuit according to the second embodiment of the present invention has one failure detection register of the failure detection unit 1 as compared with the failure detection / relief circuit according to the first embodiment shown in FIG. Accordingly, the difference is that the inverter (NOT) circuit 32 and the AND circuit 33 are added, and the repair register of the fault repair unit 2 is one, the inverter 23 is deleted accordingly, and the inverter 42 is further added. . Therefore, detailed description of overlapping configurations and functions will not be repeated.

故障検知レジスタ31、図示しないCPUによって値が設定されるレジスタであり、通常動作モード時には“L”が書き込まれ、故障検知モード時には“H”が書き込まれる。故障検知レジスタ31の出力は、AND回路14に接続されると共に、インバータ32を介してOR回路13に接続される。したがって、OR回路13、AND回路14、プルアップ抵抗15、Pチャネルトランジスタ16、Nチャネルトランジスタ17、プルダウン抵抗18、EOR回路19などの動作は、第1の実施の形態において説明したものと同様である。   The failure detection register 31 is a register whose value is set by a CPU (not shown), and “L” is written in the normal operation mode, and “H” is written in the failure detection mode. The output of the failure detection register 31 is connected to the AND circuit 14 and also connected to the OR circuit 13 via the inverter 32. Therefore, the operations of the OR circuit 13, the AND circuit 14, the pull-up resistor 15, the P-channel transistor 16, the N-channel transistor 17, the pull-down resistor 18, the EOR circuit 19 and the like are the same as those described in the first embodiment. is there.

AND回路33は、故障検知レジスタ31からHレベルが出力される場合、すなわち故障検知モード時にのみEOR回路19の出力値を救済レジスタ41に出力し、通常動作モード時にはEOR回路19の出力値をマスクする。   The AND circuit 33 outputs the output value of the EOR circuit 19 to the relief register 41 only when the H level is output from the failure detection register 31, that is, in the failure detection mode, and masks the output value of the EOR circuit 19 in the normal operation mode. To do.

救済レジスタ41は、ドライバ10が正常に動作している場合、すなわちAND回路33がLレベルを出力している場合にはLレベルを保持して出力する。また、救済レジスタ41は、ドライバ10の故障が検出された場合、すなわちAND回路33の出力がLレベルからHレベルに変化した場合に、救済レジスタセット信号にパルスが印加され、AND回路33の出力(Hレベル)を保持して出力する。   The relief register 41 holds and outputs the L level when the driver 10 is operating normally, that is, when the AND circuit 33 outputs the L level. The relief register 41 applies a pulse to the relief register set signal when a failure of the driver 10 is detected, that is, when the output of the AND circuit 33 changes from L level to H level, and the output of the AND circuit 33 (H level) is held and output.

救済レジスタ41の出力は、NAND回路24に接続されると共に、インバータ42を介してNOR回路25に接続される。したがって、NAND回路24、NOR回路25、プルアップ抵抗26、Pチャネルトランジスタ27、Nチャネルトランジスタ28、プルダウン抵抗29などの動作は、第1の実施の形態において説明したものと同様である。   The output of the relief register 41 is connected to the NAND circuit 24 and also connected to the NOR circuit 25 via the inverter 42. Therefore, the operations of the NAND circuit 24, the NOR circuit 25, the pull-up resistor 26, the P-channel transistor 27, the N-channel transistor 28, the pull-down resistor 29, and the like are the same as those described in the first embodiment.

図4は、本発明の第2の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。T1において、CPUによって故障検知レジスタ31に“H”が設定されると、インバータ(NOT)回路32の出力がLレベルとなる。このとき、ドライバ10の入力がHレベルであるとすると、OR回路13がHレベルを出力し、AND回路14はHレベルを出力する。したがって、Pチャネルトランジスタ16がOFFとなり、Nチャネルトランジスタ17がONとなる。   FIG. 4 is a timing chart for explaining the operation of the failure detection and relief circuit according to the second embodiment of the present invention. When the CPU sets “H” in the failure detection register 31 at T1, the output of the inverter (NOT) circuit 32 becomes L level. At this time, if the input of the driver 10 is at H level, the OR circuit 13 outputs H level, and the AND circuit 14 outputs H level. Therefore, the P-channel transistor 16 is turned off and the N-channel transistor 17 is turned on.

ドライバ10が故障しており、ドライバ10の出力がハイ・インピーダンスとなっていれば、T2において、ドライバ10の出力がLレベルに駆動され、EOR回路19がHレベルを出力し、AND回路33がHレベルを出力する。このとき、救済レジスタセット信号にパルスが出力されて、救済レジスタ41に“H”が設定される。   If the driver 10 has failed and the output of the driver 10 is high impedance, the output of the driver 10 is driven to L level at T2, the EOR circuit 19 outputs H level, and the AND circuit 33 H level is output. At this time, a pulse is output to the relief register set signal, and “H” is set in the relief register 41.

このとき、NAND回路24がLレベルを出力する。また、インバータ(NOT)回路42がLレベルを出力するが、ドライバ10の入力がHレベルであるのでNOR回路25はLレベルを維持する。   At this time, the NAND circuit 24 outputs L level. Further, the inverter (NOT) circuit 42 outputs the L level, but since the input of the driver 10 is at the H level, the NOR circuit 25 maintains the L level.

トランジスタ27がONとなり、トランジスタ28がOFFとなるため、T3において、ドライバ10の出力にプルアップ抵抗27が接続されて、ドライバ10の出力がHレベルに駆動され、出力PAD3の電位がHレベルとなって救済状態となる。このとき、EOR回路19およびAND回路33がLレベルを出力する。   Since the transistor 27 is turned on and the transistor 28 is turned off, the pull-up resistor 27 is connected to the output of the driver 10 at T3, the output of the driver 10 is driven to H level, and the potential of the output PAD3 becomes H level. It becomes a relief state. At this time, the EOR circuit 19 and the AND circuit 33 output L level.

T4において、CPUによって故障検知レジスタ31に“L”が設定されると、トランジスタ17がOFFとなってプルダウン抵抗18が切断されるが、故障救済部2による救済状態が維持される。   At T4, when “L” is set in the failure detection register 31 by the CPU, the transistor 17 is turned off and the pull-down resistor 18 is disconnected, but the relief state by the failure relief unit 2 is maintained.

以上説明したように、本実施の形態における故障検出救済回路によれば、1つの故障検知レジスタ31および1つの救済レジスタ41によって故障検出および故障救済を行なうようにしたので、第1の実施の形態において説明した効果に加えて、回路規模をさらに削減することが可能となった。   As described above, according to the failure detection and relief circuit in the present embodiment, the failure detection and the failure relief are performed by one failure detection register 31 and one relief register 41, so the first embodiment In addition to the effects described in (1), the circuit scale can be further reduced.

(第3の実施の形態)
第1および第2の実施の形態においては、故障検出救済回路が半導体装置の出力ドライバに適用された。本発明の第3の実施の形態においては、故障検出救済回路が半導体装置の入力バッファに適用されるものである。
(Third embodiment)
In the first and second embodiments, the failure detection and relief circuit is applied to the output driver of the semiconductor device. In the third embodiment of the present invention, a failure detection and relief circuit is applied to an input buffer of a semiconductor device.

図5は、本発明の第3の実施の形態における故障検出救済回路の構成例を示す図である。本発明の第3の実施の形態における故障検出救済回路は、図3に示す第2の実施の形態における故障検出救済回路と比較して、ドライバ10が入力バッファとなっており、入力バッファ10の入力に入力PAD4が接続され、入力バッファ10の出力が半導体装置の内部信号に接続される点のみが異なる。したがって、重複する構成および機能の詳細な説明は繰り返さない。   FIG. 5 is a diagram illustrating a configuration example of a failure detection and relief circuit according to the third embodiment of the present invention. In the failure detection and relief circuit according to the third embodiment of the present invention, the driver 10 is an input buffer as compared with the failure detection and relief circuit according to the second embodiment shown in FIG. The only difference is that the input PAD4 is connected to the input and the output of the input buffer 10 is connected to the internal signal of the semiconductor device. Therefore, detailed description of overlapping configurations and functions will not be repeated.

図6は、本発明の第3の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。T1において、CPUによって故障検知レジスタ31に“H”が設定されると、インバータ(NOT)回路32の出力がLレベルとなる。このとき、ドライバ10の入力がLレベルであるとすると、OR回路13がLレベルを出力し、AND回路14がLレベルを出力する。したがって、Pチャネルトランジスタ16がONとなり、Nチャネルトランジスタ17がOFFとなる。   FIG. 6 is a timing chart for explaining the operation of the failure detection and relief circuit according to the third embodiment of the present invention. When the CPU sets “H” in the failure detection register 31 at T1, the output of the inverter (NOT) circuit 32 becomes L level. At this time, if the input of the driver 10 is at L level, the OR circuit 13 outputs L level and the AND circuit 14 outputs L level. Therefore, the P-channel transistor 16 is turned on and the N-channel transistor 17 is turned off.

ドライバ10が故障しており、ドライバ10の出力がハイ・インピーダンスとなっていれば、T2において、ドライバ10の出力がHレベルに駆動され、EOR回路19がHレベルを出力し、AND回路33がHレベルを出力する。このとき、救済レジスタセット信号にパルスが出力されて、救済レジスタ41に“H”が設定される。   If the driver 10 has failed and the output of the driver 10 is high impedance, the output of the driver 10 is driven to the H level at T2, the EOR circuit 19 outputs the H level, and the AND circuit 33 H level is output. At this time, a pulse is output to the relief register set signal, and “H” is set in the relief register 41.

このとき、NAND回路24がHレベルを出力する。また、インバータ(NOT)回路42がLレベルを出力するが、ドライバ10の入力がLレベルであるのでNOR回路25はHレベルを出力する。   At this time, the NAND circuit 24 outputs an H level. Further, the inverter (NOT) circuit 42 outputs L level, but since the input of the driver 10 is L level, the NOR circuit 25 outputs H level.

トランジスタ27がOFFとなり、トランジスタ28がONとなるため、T3において、ドライバ10の出力にプルダウン抵抗29が接続されて、ドライバ10の出力がLレベルに駆動され、内部信号の電位がLレベルとなって救済状態となる。このとき、EOR回路19およびAND回路33がLレベルを出力する。   Since transistor 27 is turned off and transistor 28 is turned on, pull-down resistor 29 is connected to the output of driver 10 at T3, the output of driver 10 is driven to L level, and the potential of the internal signal becomes L level. It becomes a relief state. At this time, the EOR circuit 19 and the AND circuit 33 output L level.

T4において、CPUによって故障検知レジスタ31に“L”が設定されると、トランジスタ16がOFFとなってプルアップ抵抗15が切断されるが、故障救済部2による救済状態が維持される。   At T4, when “L” is set in the failure detection register 31 by the CPU, the transistor 16 is turned off and the pull-up resistor 15 is disconnected, but the repair state by the failure repair unit 2 is maintained.

以上説明したように、本実施の形態における故障検出救済回路によれば、故障検知部1および故障救済部2を入力バッファに適用するようにしたので、第1および第2の実施の形態において説明した効果と同様の効果を奏することが可能となった。   As described above, according to the failure detection / relief circuit in the present embodiment, the failure detection unit 1 and the failure relief unit 2 are applied to the input buffer. Therefore, the first and second embodiments will be described. It is possible to achieve the same effect as the effect.

(第4の実施の形態)
第1〜第3の実施の形態においては、故障検知部1と故障救済部2とを含んだ故障検出救済回路に関するものであった。本発明の第3の実施の形態においては、故障救済部2のみを有する半導体装置に関するものである。
(Fourth embodiment)
The first to third embodiments relate to a failure detection / relief circuit including the failure detection unit 1 and the failure relief unit 2. The third embodiment of the present invention relates to a semiconductor device having only the failure relief unit 2.

図7は、本発明の第4の実施の形態における故障救済部2の構成例を示す図である。本発明の第4の実施の形態における故障救済部2は、図3に示す第2の実施の形態における故障救済部と比較して、救済レジスタ41の機能のみが異なる。したがって、重複する構成および機能の詳細な説明は繰り返さない。   FIG. 7 is a diagram illustrating a configuration example of the failure relief unit 2 according to the fourth embodiment of the present invention. The failure relief unit 2 in the fourth embodiment of the present invention differs from the failure relief unit in the second embodiment shown in FIG. 3 only in the function of the relief register 41. Therefore, detailed description of overlapping configurations and functions will not be repeated.

救済レジスタ41は、図示しないCPUによって値が設定されるレジスタであり、通常動作モード時には“L”が書き込まれ、二重出力モード時には“H”が書き込まれる。救済レジスタ41の出力は、NAND回路24に接続されると共に、インバータ(NOT)回路42を介してNOR回路25に接続される。   The relief register 41 is a register whose value is set by a CPU (not shown), and “L” is written in the normal operation mode, and “H” is written in the dual output mode. The output of the relief register 41 is connected to the NAND circuit 24 and also connected to the NOR circuit 25 via an inverter (NOT) circuit 42.

ドライバ10の故障が判明していたり、ドライバ10の出力駆動能力が低下していることが判明していたりする場合、CPUは救済レジスタ41に“H”を書き込み、二重出力モードに設定する。このとき、ドライバ10の入力がLレベルであれば、NAND回路24はHレベルを出力し、Pチャネルトランジスタ16はOFFとなる。また、NOR回路25はHレベルを出力し、Nチャネルトランジスタ28はONとなる。その結果、ドライバ10の出力にプルダウン抵抗29が接続される。   When it is known that the driver 10 has failed or the output drive capability of the driver 10 has decreased, the CPU writes “H” in the relief register 41 and sets the dual output mode. At this time, if the input of the driver 10 is L level, the NAND circuit 24 outputs H level, and the P channel transistor 16 is turned OFF. The NOR circuit 25 outputs an H level, and the N-channel transistor 28 is turned on. As a result, the pull-down resistor 29 is connected to the output of the driver 10.

また、ドライバ10の入力がHレベルであれば、NAND回路24はLレベルを出力し、Pチャネルトランジスタ27はONとなる。また、NOR回路25はLレベルを出力し、Nチャネルトランジスタ28はOFFとなる。その結果、ドライバ10の出力にプルアップ抵抗26が接続される。   If the input of the driver 10 is H level, the NAND circuit 24 outputs L level and the P channel transistor 27 is turned ON. Further, the NOR circuit 25 outputs an L level, and the N-channel transistor 28 is turned off. As a result, the pull-up resistor 26 is connected to the output of the driver 10.

このようにして、ドライバ10が故障している場合や、ドライバ10の出力駆動能力が低下している場合でも、それを救済することができる。   In this way, even when the driver 10 is out of order or when the output drive capability of the driver 10 is reduced, it can be remedied.

図8は、第4の実施の形態における故障救済部2の動作を説明するためのタイミングチャートである。T1において、救済レジスタ41に“H”が設定されると、ドライバ10の入力がLレベルであるため、NAND回路24がHレベルを出力する。また、インバータ(NOT)回路42がLレベルを出力し、ドライバ10の入力がLレベルであるのでNOR回路25の出力はHレベルとなる。   FIG. 8 is a timing chart for explaining the operation of the failure relief unit 2 in the fourth embodiment. At T1, when “H” is set in the relief register 41, the input of the driver 10 is at L level, and the NAND circuit 24 outputs H level. Further, since the inverter (NOT) circuit 42 outputs L level and the input of the driver 10 is L level, the output of the NOR circuit 25 becomes H level.

Pチャネルトランジスタ27がOFFとなり、Nチャネルトランジスタ28がONとなるため、ドライバ10の出力にプルダウン抵抗28が接続されて、T2において、ドライバ10の出力がLレベルに駆動され、出力PAD3の電位がLレベルとなって救済状態となる。   Since the P-channel transistor 27 is turned OFF and the N-channel transistor 28 is turned ON, the pull-down resistor 28 is connected to the output of the driver 10, the output of the driver 10 is driven to the L level at T2, and the potential of the output PAD3 is It becomes L level and enters a relief state.

以上説明したように、本実施の形態における故障救済部2によれば、CPUによって救済レジスタ41に“H”が書き込まれたときに、ドライバ10の出力の期待電位と同電位となるようにプルアップ抵抗26またはプルダウン抵抗29を接続するようにしたので、ドライバ10の故障による出力異常を救済することが可能となった。   As described above, according to the failure relief unit 2 in the present embodiment, when “H” is written to the relief register 41 by the CPU, the pull-up is made to be the same as the expected potential of the output of the driver 10. Since the up resistor 26 or the pull-down resistor 29 is connected, it becomes possible to relieve the output abnormality due to the failure of the driver 10.

(第5の実施の形態)
第4の実施の形態においては、故障救済部2が半導体装置の出力ドライバに適用された。本発明の第5の実施の形態においては、故障救済部2が半導体装置の入力バッファに適用されるものである。
(Fifth embodiment)
In the fourth embodiment, the failure relief unit 2 is applied to the output driver of the semiconductor device. In the fifth embodiment of the present invention, the failure relief unit 2 is applied to an input buffer of a semiconductor device.

図9は、本発明の第5の実施の形態における故障救済部2の構成例を示す図である。本発明の第5の実施の形態における故障救済部2は、図7に示す第4の実施の形態における故障救済部と比較して、ドライバ10が入力バッファとなっており、入力バッファ10の入力に入力PAD4が接続され、入力バッファ10の出力が半導体装置の内部信号に接続される点のみが異なる。したがって、重複する構成および機能の詳細な説明は繰り返さない。   FIG. 9 is a diagram illustrating a configuration example of the failure relief unit 2 according to the fifth embodiment of the present invention. In the failure relief unit 2 in the fifth embodiment of the present invention, the driver 10 is an input buffer as compared with the failure relief unit in the fourth embodiment shown in FIG. The only difference is that the input PAD4 is connected to the output of the input buffer 10 and the output of the input buffer 10 is connected to the internal signal of the semiconductor device. Therefore, detailed description of overlapping configurations and functions will not be repeated.

図10は、本発明の第5の実施の形態における故障救済部2の動作を説明するためのタイミングチャートである。T1において、救済レジスタ41に“H”が設定されると、ドライバ10の入力がHレベルであるため、NAND回路24がLレベルを出力する。また、インバータ(NOT)回路42がLレベルを出力し、ドライバ10の入力がHレベルであるのでNOR回路25の出力はLレベルとなる。   FIG. 10 is a timing chart for explaining the operation of the failure relieving unit 2 in the fifth embodiment of the present invention. At T1, when “H” is set in the relief register 41, the input of the driver 10 is at the H level, so that the NAND circuit 24 outputs the L level. Further, since the inverter (NOT) circuit 42 outputs L level and the input of the driver 10 is H level, the output of the NOR circuit 25 becomes L level.

Pチャネルトランジスタ27がONとなり、Nチャネルトランジスタ28がOFFとなるため、ドライバ10の出力にプルアップ抵抗26が接続されて、T2において、ドライバ10の出力がHレベルに駆動され、内部信号の電位がHレベルとなって救済状態となる。   Since the P-channel transistor 27 is turned on and the N-channel transistor 28 is turned off, the pull-up resistor 26 is connected to the output of the driver 10, and the output of the driver 10 is driven to the H level at T2, and the potential of the internal signal Becomes H level and enters a relief state.

以上説明したように、本実施の形態における故障救済部2によれば、故障救済部2を入力バッファに適用するようにしたので、第4の実施の形態において説明した効果と同様の効果を奏することが可能となった。   As described above, according to the failure relief unit 2 in the present embodiment, the failure relief unit 2 is applied to the input buffer, so that the same effect as that described in the fourth embodiment is obtained. It became possible.

(第6の実施の形態)
図11は、本発明の第6の実施の形態における故障検出救済回路の構成例を示す図である。この故障検出救済回路は、たとえば、マイコンなどの半導体装置内に設けられ、故障検知部1と、故障救済部2とを含む。
(Sixth embodiment)
FIG. 11 is a diagram illustrating a configuration example of a failure detection and relief circuit according to the sixth embodiment of the present invention. This failure detection / relief circuit is provided in a semiconductor device such as a microcomputer, for example, and includes a failure detection unit 1 and a failure relief unit 2.

故障検知部1は、出力故障検知対象のドライバ51と、排他的論理和(EOR)回路52とを含む。EOR回路52は、ドライバ51が故障して、ドライバ10の入力電位と出力電位とが異なる場合に、ドライバ51が故障していることを示すHレベルを出力する。   The failure detection unit 1 includes an output failure detection target driver 51 and an exclusive OR (EOR) circuit 52. The EOR circuit 52 outputs an H level indicating that the driver 51 has failed when the driver 51 has failed and the input potential and output potential of the driver 10 are different.

故障救済部2は、NAND回路53と、インバータ(NOT)回路54と、NOR回路55と、出力PAD56〜58と、プルアップ抵抗59と、スイッチ60および61と、プルダウン抵抗62とを含む。なお、プルアップ抵抗59、スイッチ60,61およびプルダウン抵抗62は、半導体装置(マイコン)の外部に設けられる。   Fault relief unit 2 includes a NAND circuit 53, an inverter (NOT) circuit 54, a NOR circuit 55, outputs PAD 56 to 58, a pull-up resistor 59, switches 60 and 61, and a pull-down resistor 62. The pull-up resistor 59, the switches 60 and 61, and the pull-down resistor 62 are provided outside the semiconductor device (microcomputer).

ドライバ51の故障時には、EOR回路52がHレベルを出力するため、NAND回路53はドライバ51の入力を反転した値を出力する。また、インバータ(NOT)回路54がLレベルを出力するため、NOR回路55はドライバ51の入力を反転した値を出力する。   When the driver 51 fails, the EOR circuit 52 outputs an H level, so the NAND circuit 53 outputs a value obtained by inverting the input of the driver 51. Further, since the inverter (NOT) circuit 54 outputs L level, the NOR circuit 55 outputs a value obtained by inverting the input of the driver 51.

そのため、ドライバ51の入力がLレベルであれば、NAND回路53はHレベルを出力し、スイッチ60はOFFとなる。また、NOR回路55はHレベルを出力し、スイッチ61はONとなる。その結果、ドライバ51の出力にプルダウン抵抗62が接続されることになり、ドライバ51の出力がハイ・インピーダンスであれば、プルダウン抵抗62によってLレベルとされる。なお、プルダウン抵抗62の抵抗値は、ドライバ51の出力駆動能力と同程度の駆動能力となるように設定される。   Therefore, if the input of the driver 51 is L level, the NAND circuit 53 outputs H level and the switch 60 is turned OFF. The NOR circuit 55 outputs an H level, and the switch 61 is turned on. As a result, the pull-down resistor 62 is connected to the output of the driver 51. If the output of the driver 51 is high impedance, the pull-down resistor 62 sets the output to the L level. Note that the resistance value of the pull-down resistor 62 is set to have a driving capability comparable to the output driving capability of the driver 51.

また、ドライバ51の入力がHレベルであれば、NAND回路53はLレベルを出力し、スイッチ60はONとなる。また、NOR回路55はLレベルを出力し、スイッチ61はOFFとなる。その結果、ドライバ51の出力にプルアップ抵抗59が接続されることになり、ドライバ51の出力がハイ・インピーダンスであれば、プルアップ抵抗59によってHレベルとされる。なお、プルアップ抵抗59の抵抗値は、ドライバ51の出力駆動能力と同程度の駆動能力となるように設定される。   If the input of the driver 51 is at H level, the NAND circuit 53 outputs L level and the switch 60 is turned on. Further, the NOR circuit 55 outputs an L level, and the switch 61 is turned off. As a result, the pull-up resistor 59 is connected to the output of the driver 51. If the output of the driver 51 is high impedance, the pull-up resistor 59 is set to H level. It should be noted that the resistance value of the pull-up resistor 59 is set so as to have a driving capability comparable to the output driving capability of the driver 51.

図12は、本発明の第6の実施の形態における故障検出救済回路の動作を説明するためのタイミングチャートである。T1において、ドライバ51の入力がLレベルになると、EOR回路52の出力がHレベルとなり、インバータ(NOT)回路54の出力がLレベルとなり、NOR回路55の出力がHレベルとなる。このとき、出力PAD58にHレベルが出力されて、スイッチ61がONとなり、ドライバ51の故障の救済状態となる。   FIG. 12 is a timing chart for explaining the operation of the failure detection and relief circuit according to the sixth embodiment of the present invention. At T1, when the input of the driver 51 becomes L level, the output of the EOR circuit 52 becomes H level, the output of the inverter (NOT) circuit 54 becomes L level, and the output of the NOR circuit 55 becomes H level. At this time, the H level is output to the output PAD 58, the switch 61 is turned on, and the driver 51 is brought into a remedy state.

ドライバ51の出力にプルダウン抵抗62が接続されるため、T2において、ドライバ51の出力がLレベルとなり、EOR回路52の出力がLレベルとなり、インバータ(NOT)回路54の出力がHレベルとなり、NOR回路55の出力がLレベルとなる。このとき、出力PAD58にLレベルが出力されて、スイッチ61がOFFとなる。   Since the pull-down resistor 62 is connected to the output of the driver 51, at T2, the output of the driver 51 becomes L level, the output of the EOR circuit 52 becomes L level, the output of the inverter (NOT) circuit 54 becomes H level, and NOR The output of the circuit 55 becomes L level. At this time, the L level is output to the output PAD 58 and the switch 61 is turned OFF.

T3において、ドライバ51の入力がHレベルになると、EOR回路52の出力がHレベルとなり、NAND回路53の出力がLレベルとなる。このとき、出力PAD56にLレベルが出力されて、スイッチ60がONとなり、ドライバ51の故障の救済状態となる。   At T3, when the input of the driver 51 becomes H level, the output of the EOR circuit 52 becomes H level and the output of the NAND circuit 53 becomes L level. At this time, the L level is output to the output PAD 56, the switch 60 is turned on, and the driver 51 is brought into a remedy state.

ドライバ51の出力にプルアップ抵抗59が接続されるため、T4において、ドライバ51の出力がHレベルとなり、EOR回路52の出力がLレベルとなり、NAND回路53の出力がHレベルとなる。このとき、出力PAD56にHレベルが出力されて、スイッチ60がOFFとなる。   Since the pull-up resistor 59 is connected to the output of the driver 51, at T4, the output of the driver 51 becomes H level, the output of the EOR circuit 52 becomes L level, and the output of the NAND circuit 53 becomes H level. At this time, the H level is output to the output PAD 56 and the switch 60 is turned OFF.

以上説明したように、本実施の形態における故障検出救済回路によれば、プルアップ抵抗59、スイッチ60,61およびプルダウン抵抗62が、半導体装置(マイコン)の外部に設けられるようにした。したがって、第1の実施の形態において説明した効果に加えて、たとえば出力ポート端子とシステム基板との間の接触不良により、ドライバ51の出力信号が外部に伝わらないような不良が発生した場合でも、半導体装置から出力される信号を正しく外部に伝えることが可能となった。   As described above, according to the failure detection and relief circuit of the present embodiment, the pull-up resistor 59, the switches 60 and 61, and the pull-down resistor 62 are provided outside the semiconductor device (microcomputer). Therefore, in addition to the effects described in the first embodiment, for example, even when a failure occurs such that the output signal of the driver 51 is not transmitted to the outside due to a contact failure between the output port terminal and the system board, for example. The signal output from the semiconductor device can be correctly transmitted to the outside.

また、プルアップ抵抗59およびプルダウン抵抗62が半導体装置の外部で接続されるようにしたため、これらの抵抗値を容易に変更することができ、駆動能力を容易に変更することが可能となった。   Further, since the pull-up resistor 59 and the pull-down resistor 62 are connected outside the semiconductor device, these resistance values can be easily changed, and the driving ability can be easily changed.

今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 故障検知部、2 故障救済部、3 出力PAD、4 入力PAD、10,51 ドライバ、11,12,31 故障検知レジスタ、13 OR回路、14,33 AND回路、15,26,59 プルアップ抵抗、16,27 Pチャネルトランジスタ、17,28 Nチャネルトランジスタ、18,29,62 プルダウン抵抗、19,52 EOR回路、21,22,41 救済レジスタ、23,32,42,54 NOT回路、24,53 NAND回路、25,55 NOR回路、56〜58 PAD、60,61 スイッチ。   DESCRIPTION OF SYMBOLS 1 Fault detection part, 2 Fault relief part, 3 output PAD, 4 input PAD, 10,51 driver, 11, 12, 31 Fault detection register, 13 OR circuit, 14, 33 AND circuit, 15, 26, 59 Pull-up resistance 16, 27 P channel transistor, 17, 28 N channel transistor, 18, 29, 62 pull-down resistor, 19, 52 EOR circuit, 21, 22, 41 relief register, 23, 32, 42, 54 NOT circuit, 24, 53 NAND circuit, 25, 55 NOR circuit, 56-58 PAD, 60, 61 switch.

Claims (7)

ドライバの故障を検出して救済する半導体装置であって、
前記ドライバの出力の期待電位の逆電位となるように前記ドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続し、前記ドライバの入力電位と出力電位とを比較することにより前記ドライバの故障を検出する故障検出手段と、
前記故障検出手段によって前記ドライバの故障が検出された場合に、前記期待電位と同電位となるように前記ドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続して前記ドライバの故障を救済する故障救済手段とを含む、半導体装置。
A semiconductor device for detecting and relieving a driver failure,
A fault of the driver is detected by connecting a pull-up resistor or a pull-down resistor to the output of the driver so as to be a reverse potential of the expected output of the driver, and comparing the input potential and the output potential of the driver. Failure detection means;
When a failure of the driver is detected by the failure detection means, a failure relief for relieving the driver failure by connecting a pull-up resistor or a pull-down resistor to the output of the driver so as to be the same potential as the expected potential And a semiconductor device.
前記故障検出手段は、故障検出の実施を設定するレジスタと、
前記レジスタに故障検出の実施が設定されている場合に、前記ドライバの出力の期待電位が第1の値のときに、前記ドライバの出力にプルアップ抵抗を接続する第1のトランジスタと、
前記レジスタに故障検出の実施が設定されている場合に、前記ドライバの出力の期待電位が第2の値のときに、前記ドライバの出力にプルダウン抵抗を接続する第2のトランジスタと、
前記ドライバの入力電位と出力電位とを比較する比較回路とを含む、請求項1記載の半導体装置。
The failure detection means includes a register for setting execution of failure detection;
A first transistor connecting a pull-up resistor to the driver output when the expected output potential of the driver is a first value when failure detection is set in the register;
A second transistor for connecting a pull-down resistor to the driver output when the expected output potential of the driver is a second value when failure detection is set in the register;
The semiconductor device according to claim 1, further comprising a comparison circuit that compares an input potential and an output potential of the driver.
前記故障救済手段は、前記故障検出手段によって前記ドライバの故障が検出されたときに、第3の値が設定される第2のレジスタと、
前記第2のレジスタに前記第3の値が設定され、前記ドライバの出力の期待電位が前記第2の値のときに、前記ドライバの出力にプルアップ抵抗を接続する第3のトランジスタと、
前記第2のレジスタに前記第3の値が設定され、前記ドライバの出力の期待電位が前記第1の値のときに、前記ドライバの出力にプルダウン抵抗を接続する第4のトランジスタとを含む、請求項2記載の半導体装置。
The failure relief means includes a second register in which a third value is set when a failure of the driver is detected by the failure detection means;
A third transistor that connects a pull-up resistor to the output of the driver when the third value is set in the second register and the expected output potential of the driver is the second value;
A fourth transistor for connecting a pull-down resistor to the driver output when the third value is set in the second register and the expected output potential of the driver is the first value; The semiconductor device according to claim 2.
ドライバの故障を救済する半導体装置であって、
前記ドライバと、
前記ドライバの出力の期待電位と同電位となるように前記ドライバの出力にプルアップ抵抗またはプルダウン抵抗を接続して前記ドライバの故障を救済する故障救済手段とを含む、半導体装置。
A semiconductor device for repairing a driver failure,
The driver;
A semiconductor device comprising failure relief means for relieving a failure of the driver by connecting a pull-up resistor or a pull-down resistor to the output of the driver so as to have the same potential as the expected output of the driver.
入力バッファの故障を検出して救済する半導体装置であって、
前記入力バッファの出力の期待電位の逆電位となるように前記入力バッファの出力にプルアップ抵抗またはプルダウン抵抗を接続し、前記入力バッファの入力電位と出力電位とを比較することにより前記入力バッファの故障を検出する故障検出手段と、
前記故障検出手段によって前記入力バッファの故障が検出された場合に、前記期待電位と同電位となるように前記入力バッファの出力にプルアップ抵抗またはプルダウン抵抗を接続して前記入力バッファの故障を救済する故障救済手段とを含む、半導体装置。
A semiconductor device that detects and relieves an input buffer failure,
A pull-up resistor or a pull-down resistor is connected to the output of the input buffer so as to be a reverse potential of the output potential of the input buffer, and the input buffer is compared with the input potential by comparing the input potential of the input buffer with the output potential. A failure detection means for detecting a failure;
When the failure of the input buffer is detected by the failure detection means, a pull-up resistor or a pull-down resistor is connected to the output of the input buffer so as to be the same potential as the expected potential, thereby relieving the failure of the input buffer. A semiconductor device including failure relief means.
入力バッファの故障を救済する半導体装置であって、
前記入力バッファと、
前記入力バッファの出力の期待電位と同電位となるように前記入力バッファの出力にプルアップ抵抗またはプルダウン抵抗を接続して前記入力バッファの故障を救済する故障救済手段とを含む、半導体装置。
A semiconductor device for repairing an input buffer failure,
The input buffer;
A semiconductor device comprising failure relief means for relieving a failure of the input buffer by connecting a pull-up resistor or a pull-down resistor to the output of the input buffer so as to have the same potential as the output potential of the input buffer.
ドライバの故障を検出して救済する半導体装置であって、
前記ドライバの入力電位と出力電位とを比較することにより前記ドライバの故障を検出する故障検出手段と、
前記故障検出手段によって前記ドライバの故障が検出された場合に、前記ドライバの出力の期待電位と同電位となるように前記ドライバの出力にプルアップ抵抗またはプルダウン抵抗のいずれを接続するかを示す信号を外部に出力する故障救済手段とを含む、半導体装置。
A semiconductor device for detecting and relieving a driver failure,
Failure detection means for detecting a failure of the driver by comparing the input potential and output potential of the driver;
A signal indicating whether a pull-up resistor or a pull-down resistor is connected to the output of the driver so as to be the same potential as an expected potential of the driver output when the failure of the driver is detected by the failure detection means A semiconductor device, including failure relief means for outputting to the outside.
JP2011086992A 2011-04-11 2011-04-11 Semiconductor device Withdrawn JP2012222178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011086992A JP2012222178A (en) 2011-04-11 2011-04-11 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011086992A JP2012222178A (en) 2011-04-11 2011-04-11 Semiconductor device

Publications (1)

Publication Number Publication Date
JP2012222178A true JP2012222178A (en) 2012-11-12

Family

ID=47273364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011086992A Withdrawn JP2012222178A (en) 2011-04-11 2011-04-11 Semiconductor device

Country Status (1)

Country Link
JP (1) JP2012222178A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566191A (en) * 2018-04-03 2018-09-21 擎先电子科技(苏州)有限公司 A kind of general pin multiplexing circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566191A (en) * 2018-04-03 2018-09-21 擎先电子科技(苏州)有限公司 A kind of general pin multiplexing circuit
CN108566191B (en) * 2018-04-03 2022-05-27 擎先电子科技(苏州)有限公司 Universal pin multiplexing circuit

Similar Documents

Publication Publication Date Title
US9664735B2 (en) Debugging scan latch circuits using flip devices
KR101583177B1 (en) Gate driving circuit and array substrate
US20130212452A1 (en) Apparatus and Method for Comparing Pairs of Binary Words
US20180321312A1 (en) Test device
JP2012222178A (en) Semiconductor device
TWI502207B (en) Method for testing electrical connection status of a plurality of data lines connected to a panel and associated integrated circuit and display panel module
US8779795B2 (en) Semiconductor chip
US20150081041A1 (en) Output apparatus and diagnosis method therefor
JP4477388B2 (en) Integrated circuit device and evaluation method thereof
JP5638131B2 (en) Data interface with intrinsic safety error detector
CN108700625B (en) Anti-short circuit output pin circuit system
US10288678B2 (en) Debugging scan latch circuits using flip devices
US20070030032A1 (en) Fault Tolerant NAND Gate Circuit
JP2540765B2 (en) Malfunction prevention test circuit
US20100017667A1 (en) Method and Device to Detect Failure of Static Pervasive Control Signals
JP5738724B2 (en) Trimming circuit, system, determination program, confirmation method, and determination method
US20230195668A1 (en) Large touch display integrated circuit and operation method thereof
JP2012160149A (en) Duplex circuit, semiconductor device and test method
JP2820062B2 (en) Semiconductor integrated circuit and printed circuit board on which this circuit is mounted
JP4882937B2 (en) Semiconductor device and inspection method of semiconductor device
JP2017174980A (en) Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system
JP4305336B2 (en) Disk enclosure device and program thereof
US20180364297A1 (en) Semiconductor device and method of testing semiconductor device
JP2015142192A (en) Master slave flip-flop device
JP2014211664A (en) Microcomputer device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140701