JPH0855102A - Input state detecting circuit - Google Patents

Input state detecting circuit

Info

Publication number
JPH0855102A
JPH0855102A JP6187285A JP18728594A JPH0855102A JP H0855102 A JPH0855102 A JP H0855102A JP 6187285 A JP6187285 A JP 6187285A JP 18728594 A JP18728594 A JP 18728594A JP H0855102 A JPH0855102 A JP H0855102A
Authority
JP
Japan
Prior art keywords
input
terminal
circuit
output
potential
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.)
Granted
Application number
JP6187285A
Other languages
Japanese (ja)
Other versions
JP3632108B2 (en
Inventor
Naoko Matsumoto
直子 松本
Osamu Kano
治 狩野
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 Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems Corp
Original Assignee
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems 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 Design Corp, Mitsubishi Electric Corp, Mitsubishi Electric Semiconductor Systems Corp filed Critical Renesas Design Corp
Priority to JP18728594A priority Critical patent/JP3632108B2/en
Publication of JPH0855102A publication Critical patent/JPH0855102A/en
Application granted granted Critical
Publication of JP3632108B2 publication Critical patent/JP3632108B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Semiconductor Memories (AREA)

Abstract

PURPOSE:To provide an input state detecting circuit capable of automatically setting up an external I/O terminal as an input terminal or an output terminal. CONSTITUTION:The input state detecting circuit for detecting the I/O state of an external I/O terminal 1 included in a semiconductor circuit and setting up the terminal 1 as an input terminal or an output terminal is provided with a pair of mutually different conductive transistors(TRs) 2, 3 serially connected between terminals to which different fixed potential Vcc, Vss to be impressed and connecting their node to the terminal 1, an external terminal 4 to which a prescribed signal for simultaneously turning on/off the TRs 2, 3 is to be applied, a judging circuit 9a for judging the potential of the terminal 1 and outputting its judged result, and a setting circuit 10a for receiving the judged result from the circuit 9a and setting up the terminal 1 as an input terminal or an output terminal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、半導体回路において、
外部入出力端子のデータ入力状態を検出し、その検出結
果に従って、外部入出力端子を入力端子又は出力端子に
設定する入力状態検出回路と、外部入力専用端子が入力
開放状態になることを防止する入力状態検出回路とに関
するものである。
BACKGROUND OF THE INVENTION The present invention relates to a semiconductor circuit,
The input state detection circuit that detects the data input state of the external input / output terminal and sets the external input / output terminal to the input terminal or the output terminal according to the detection result, and prevents the external input dedicated terminal from opening the input And an input state detection circuit.

【0002】[0002]

【従来の技術】半導体集積回路においては、データの入
出力が可能な外部入出力端子は、使用方法に合わせて、
各端子毎に予め入力端子又は出力端子に設定する必要が
あるが、自動的に各端子毎に入力端子又は出力端子に設
定することは、回路構成によってではできなかった。ま
た、外部入力専用端子においては、入力開放状態のと
き、この端子からの入力配線の電圧レベルが高インピー
ダンス状態になり、入力開放状態のままで半導体集積回
路を作動させると、この端子から入り込むノイズによ
り、入力レベルがHレベルにもLレベルにも不本意にま
た容易に変化する為、内部回路が誤動作することがあ
る。ところが、従来は、外部入力専用端子の入力状態を
内部回路で検出する仕組みがなかった為、半導体集積回
路が、外部入力専用端子の開放状態に起因する誤動作を
起こしても、容易には原因を特定することができなかっ
た。
2. Description of the Related Art In a semiconductor integrated circuit, external input / output terminals capable of inputting / outputting data are
Although it is necessary to set the input terminal or the output terminal for each terminal in advance, it is not possible to automatically set the input terminal or the output terminal for each terminal depending on the circuit configuration. Also, in the external input dedicated terminal, when the input is open, the voltage level of the input wiring from this terminal becomes a high impedance state, and if the semiconductor integrated circuit is operated with the input open, the noise entering from this terminal As a result, the input level changes inadvertently and easily between the H level and the L level, and the internal circuit may malfunction. However, conventionally, there was no mechanism for detecting the input state of the external input dedicated terminal by the internal circuit, so even if the semiconductor integrated circuit malfunctions due to the open state of the external input dedicated terminal, the cause is easily I could not identify.

【0003】[0003]

【発明が解決しようとする課題】本発明は、上述の事情
に鑑みてなされたものであり、第1発明では、接続点に
外部入出力端子が接続された異なる導電形の直列トラン
ジスタ対と、このトランジスタ対を同時にオン/オフす
る為の外部端子と、外部入出力端子の電位を判別する判
別回路と、その判別結果から、外部入出力端子を入力端
子又は出力端子に設定する設定回路とを設けることによ
り、外部入出力端子の入力端子又は出力端子への設定が
自動的に行える入力状態検出回路を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and in the first invention, a series transistor pair of different conductivity type in which external input / output terminals are connected to a connection point, An external terminal for simultaneously turning on / off this transistor pair, a determination circuit for determining the potential of the external input / output terminal, and a setting circuit for setting the external input / output terminal as an input terminal or an output terminal based on the determination result. An object of the present invention is to provide an input state detection circuit which can automatically set an external input / output terminal to an input terminal or an output terminal by providing the input / output terminal.

【0004】第2発明では、出力反転の為の所定の閾値
を有し、外部入出力端子の電位が入力される第1のイン
バータと、第1のインバータから入力される第2のイン
バータと、出力反転の為の所定の閾値を有し、外部入出
力端子の電位を入力とする第3のインバータと、第2の
インバータ及び第3のインバータから入力される一致回
路とを備える判別回路を設けることにより、外部入出力
端子の入力端子又は出力端子への設定が自動的に行える
入力状態検出回路を提供することを目的とする。
According to the second aspect of the invention, there is provided a first inverter which has a predetermined threshold value for output inversion and receives the potential of the external input / output terminal, and a second inverter which receives the first inverter. A discriminating circuit having a predetermined threshold value for inverting the output and including a third inverter that receives the potential of the external input / output terminal as an input, and a matching circuit that is input from the second inverter and the third inverter is provided. Accordingly, it is an object of the present invention to provide an input state detection circuit that can automatically set an external input / output terminal to an input terminal or an output terminal.

【0005】第3発明では、設定回路は、外部端子が所
定の信号を与えられたときに、判別回路の出力値を記憶
保持し、前記信号が与えられないときは、半導体回路に
設けられたデータ線からの値に書き換えが可能なレジス
タと、該レジスタが記憶している値により作動の切り替
え制御が行われ、作動時には前記データ線からのデータ
を前記外部入出力端子へ出力する出力バッファと、作動
時には前記外部入出力端子からのデータを前記データ線
に取り込む入力バッファとを設けることにより、外部入
出力端子又は出力端子への設定が、自動的に又は最小限
のプログラム命令で行える入力状態検出回路を提供する
ことを目的とする。第4発明では、トランジスタ対に代
えて、抵抗対を設けることにより、外部入出力端子又は
出力端子への設定が、自動的に又は最小限のプログラム
命令で行える入力状態検出回路を提供することを目的と
する。
In the third invention, the setting circuit stores and holds the output value of the discrimination circuit when the external terminal is given a predetermined signal, and is provided in the semiconductor circuit when the signal is not given. A register that can be rewritten to a value from a data line, and an output buffer that performs operation switching control according to the value stored in the register and outputs data from the data line to the external input / output terminal when operating. By providing an input buffer that takes in the data from the external input / output terminal to the data line at the time of operation, an input state in which the setting to the external input / output terminal or the output terminal can be performed automatically or with a minimum program command An object is to provide a detection circuit. According to a fourth aspect of the present invention, by providing a resistor pair instead of a transistor pair, it is possible to provide an input state detection circuit that can set an external input / output terminal or an output terminal automatically or with a minimum program command. To aim.

【0006】第5発明では、接続点に外部入力専用端子
が接続された異なる導電形の直列トランジスタ対と、こ
のトランジスタ対を同時にオン/オフする為の外部端子
と、外部入力専用端子の電位を判別する判別回路と、該
判別回路の出力を、前記外部端子に与えられた前記トラ
ンジスタ対をオン/オフする為の信号に従って、ラッチ
し出力するラッチ回路とを設けることにより、外部入力
専用端子の入力開放状態に起因する半導体回路の誤動作
を防止する措置が可能な入力状態検出回路を提供するこ
とを目的とする。
According to the fifth aspect of the present invention, a series transistor pair of different conductivity types in which a terminal for exclusive use of external input is connected to a connection point, an external terminal for simultaneously turning on / off this transistor pair, and a potential of the terminal for exclusive use of external input are set. By providing a discriminating circuit for discriminating and a latch circuit for latching and outputting the output of the discriminating circuit according to a signal for turning on / off the transistor pair given to the external terminal, An object of the present invention is to provide an input state detection circuit capable of preventing a malfunction of a semiconductor circuit due to an input open state.

【0007】第6発明では、出力反転の為の所定の閾値
を有し、外部入力専用端子の電位が入力される第1のイ
ンバータと、第1のインバータから入力される第2のイ
ンバータと、出力反転の為の所定の閾値を有し、外部入
力専用端子の電位を入力とする第3のインバータと、第
2のインバータ及び第3のインバータから入力される一
致回路とを備える判別回路を設けることにより、外部入
力専用端子の入力開放状態に起因する半導体回路の誤動
作を防止する措置が可能な入力状態検出回路を提供する
ことを目的とする。第7発明では、ラッチ回路が、外部
入力専用端子が入力開放状態であることを示す信号を出
力したときは、外部入力専用端子を接地させる接地手段
を設けることにより、外部入力専用端子の入力開放状態
に起因する半導体回路の誤動作を防止することが可能な
入力状態検出回路を提供することを目的とする。
According to the sixth aspect of the invention, there is provided a first inverter having a predetermined threshold value for inverting the output, to which the potential of the external input dedicated terminal is inputted, and a second inverter inputted from the first inverter, A discriminating circuit including a third inverter having a predetermined threshold value for inverting the output and having the potential of the external input dedicated terminal as an input, and a matching circuit input from the second inverter and the third inverter is provided. Accordingly, it is an object of the present invention to provide an input state detection circuit capable of preventing a malfunction of a semiconductor circuit due to an input open state of an external input dedicated terminal. In the seventh invention, when the latch circuit outputs a signal indicating that the external input dedicated terminal is in the input open state, by providing a grounding means for grounding the external input dedicated terminal, the external input dedicated terminal is opened. It is an object of the present invention to provide an input state detection circuit capable of preventing a malfunction of a semiconductor circuit due to a state.

【0008】[0008]

【課題を解決するための手段】第1発明に係る入力状態
検出回路は、接続点に外部入出力端子が接続された異な
る導電形の直列トランジスタ対と、該トランジスタ対を
同時にオン/オフする為の信号が与えられるべき外部端
子と、前記外部入出力端子の電位を判別しその判別結果
を出力する判別回路と、その判別結果を受けて、前記外
部入出力端子を入力端子又は出力端子に設定する設定回
路とを備えることを特徴とする。
In the input state detection circuit according to the first aspect of the present invention, a series transistor pair of different conductivity type in which an external input / output terminal is connected to a connection point and the transistor pair are turned on / off at the same time. And a discrimination circuit for discriminating the potential of the external input / output terminal and outputting the discrimination result, and setting the external input / output terminal as an input terminal or an output terminal in response to the discrimination result. And a setting circuit for setting.

【0009】第2発明に係る入力状態検出回路は、判別
回路は、トランジスタ対が導通し外部入出力端子が開放
状態のときの前記トランジスタ対の接続点の第1の電位
より高い出力反転の為の閾値を有し、前記外部入出力端
子の電位を入力とする第1のインバータと、第1のイン
バータから入力される第2のインバータと、第1の電位
より低い出力反転の為の閾値を有し、前記外部入出力端
子の電位を入力とする第3のインバータと、第2のイン
バータ及び第3のインバータから入力される一致回路と
を備えることを特徴とする。
In the input state detecting circuit according to the second aspect of the present invention, the discriminating circuit inverts the output higher than the first potential at the connection point of the transistor pair when the transistor pair is conductive and the external input / output terminals are open. A first inverter which has a threshold value of, and which receives the potential of the external input / output terminal as an input, a second inverter which is input from the first inverter, and a threshold value for output inversion lower than the first potential. And a third inverter which receives the potential of the external input / output terminal as an input, and a matching circuit which is input from the second inverter and the third inverter.

【0010】第3発明に係る入力状態検出回路は、設定
回路は、外部端子に所定の信号が与えられたときに、判
別回路の出力値を記憶保持し、前記信号が与えられない
ときは、半導体回路に設けられたデータ線からの値に書
き換えが可能なレジスタと、該レジスタが記憶している
値により作動の切り替え制御が行われる出力バッファ及
び入力バッファとを備え、出力バッファ作動時には前記
データ線からのデータを前記外部入出力端子へ出力し、
入力バッファ作動時には前記外部入出力端子からのデー
タを前記データ線に取り込むべくなしてあることを特徴
とする。
In the input state detection circuit according to the third aspect of the invention, the setting circuit stores and holds the output value of the discrimination circuit when a predetermined signal is given to the external terminal, and when the signal is not given, The semiconductor circuit is provided with a register that can be rewritten to a value from a data line, and an output buffer and an input buffer whose operation switching control is performed according to the value stored in the register. Output the data from the line to the external input / output terminal,
When the input buffer is operating, the data from the external input / output terminal is taken into the data line.

【0011】第4発明に係る入力状態検出回路は、異な
る導電形の前記トランジスタ対を、1対の抵抗に置き換
えたことを特徴とする。
An input state detection circuit according to a fourth aspect of the invention is characterized in that the transistor pairs of different conductivity types are replaced with a pair of resistors.

【0012】第5発明に係る入力状態検出回路は、接続
点に外部入力専用端子が接続された異なる導電形の直列
トランジスタ対と、該トランジスタ対を同時にオン/オ
フする為の信号が与えられるべき外部端子と、前記外部
入力専用端子の電位を判別しその判別結果を出力する判
別回路と、該判別回路の出力を前記信号によりラッチし
出力するラッチ回路とを備えることを特徴とする。
The input state detection circuit according to the fifth aspect of the invention should be provided with a series transistor pair of different conductivity types in which a terminal dedicated to external input is connected to a connection point, and a signal for simultaneously turning on / off the transistor pair. It is characterized by comprising an external terminal, a discrimination circuit for discriminating the potential of the external input dedicated terminal and outputting the discrimination result, and a latch circuit for latching the output of the discrimination circuit with the signal and outputting it.

【0013】第6発明に係る入力状態検出回路は、判別
回路は、トランジスタ対が導通し外部入力専用端子が開
放状態のときの前記トランジスタ対の接続点の第1の電
位より高い出力反転の為の閾値を有し、前記外部入力専
用端子の電位を入力とする第1のインバータと、第1の
インバータから入力される第2のインバータと、第1の
電位より低い出力反転の為の閾値を有し、前記外部入力
専用端子の電位を入力とする第3のインバータと、第2
のインバータ及び第3のインバータから入力される一致
回路とを備えることを特徴とする。
In the input state detection circuit according to the sixth aspect of the invention, the discriminating circuit performs the output inversion higher than the first potential at the connection point of the transistor pair when the transistor pair is conductive and the external input dedicated terminal is in the open state. A first inverter which has a threshold value of 1 and which receives the potential of the external input dedicated terminal as an input, a second inverter which is input from the first inverter, and a threshold value for output inversion lower than the first potential. A third inverter that has the potential of the external input dedicated terminal as an input;
And the matching circuit input from the third inverter.

【0014】第7発明に係る入力状態検出回路は、ラッ
チ回路が、外部入力専用端子が開放状態であることを示
す信号を出力したときは、前記外部入力専用端子を接地
させる接地手段を備えることを特徴とする。
The input state detection circuit according to the seventh aspect of the present invention comprises grounding means for grounding the external input dedicated terminal when the latch circuit outputs a signal indicating that the external input dedicated terminal is in an open state. Is characterized by.

【0015】[0015]

【作用】第1発明に係る入力状態検出回路では、外部端
子に与えられた信号により、トランジスタ対がオンにな
った場合、外部入出力端子の電位が第1固定電位のと
き、トランジスタ対の接続点の電位は第1固定電位にな
る。外部入出力端子の電位が第2固定電位のとき、トラ
ンジスタ対の接続点の電位は第2固定電位になる。外部
入出力端子が開放状態のとき、トランジスタ対の接続点
の電位は第1固定電位及び第2固定電位の中間電位にな
る。判別回路は、これらの電位から外部入出力端子に固
定電位が印加されているか、開放状態かを判別し、設定
回路は、この判別結果が固定電位のときは、外部入出力
端子を入力端子に、開放状態のときは、外部入出力端子
を出力端子に設定する。
In the input state detection circuit according to the first aspect of the invention, when the transistor pair is turned on by the signal applied to the external terminal, the transistor pair is connected when the potential of the external input / output terminal is the first fixed potential. The potential at the point becomes the first fixed potential. When the potential of the external input / output terminal is the second fixed potential, the potential of the connection point of the transistor pair becomes the second fixed potential. When the external input / output terminal is open, the potential at the connection point of the transistor pair becomes an intermediate potential between the first fixed potential and the second fixed potential. The discrimination circuit discriminates from these potentials whether a fixed potential is applied to the external input / output terminal or is in an open state.When the discrimination result is a fixed potential, the setting circuit sets the external input / output terminal to the input terminal. , In the open state, set the external I / O pin as the output pin.

【0016】第2発明に係る入力状態検出回路では、外
部入出力端子の電位が第1固定電位のとき、第1のイン
バータは第2固定電位、第2のインバータは第1固定電
位、第3のインバータは第2固定電位をそれぞれ出力す
るので、一致回路は第2固定電位を出力する。外部入出
力端子の電位が第2固定電位のとき、第1のインバータ
は第1固定電位、第2のインバータは第2固定電位、第
3のインバータは第1固定電位をそれぞれ出力するの
で、一致回路はこのときも第2固定電位を出力する。判
別回路は、これにより、外部入出力端子に固定電位が印
加されていることを判別する。外部入出力端子が開放状
態のとき、トランジスタ対の接続点の電位は第1固定電
位及び第2固定電位の中間電位になる。その結果、判別
回路の第1のインバータは第1固定電位、第2のインバ
ータは第2固定電位、第3のインバータは第2固定電位
を出力するので、一致回路は第1固定電位を出力する。
判別回路は、これにより、外部入出力端子が開放状態で
あることを判別する。
In the input state detection circuit according to the second invention, when the potential of the external input / output terminal is the first fixed potential, the first inverter is the second fixed potential, the second inverter is the first fixed potential, and the third fixed potential is the third fixed potential. Since the inverters output the second fixed potentials, the matching circuit outputs the second fixed potential. When the potential of the external input / output terminal is the second fixed potential, the first inverter outputs the first fixed potential, the second inverter outputs the second fixed potential, and the third inverter outputs the first fixed potential. The circuit also outputs the second fixed potential at this time. The determination circuit thereby determines that the fixed potential is applied to the external input / output terminal. When the external input / output terminal is open, the potential at the connection point of the transistor pair becomes an intermediate potential between the first fixed potential and the second fixed potential. As a result, the first inverter of the discrimination circuit outputs the first fixed potential, the second inverter outputs the second fixed potential, and the third inverter outputs the second fixed potential, so that the matching circuit outputs the first fixed potential. .
The determination circuit thereby determines that the external input / output terminal is in the open state.

【0017】第3発明に係る入力状態検出回路では、レ
ジスタは、外部端子が所定の信号を与えられたとき、判
別回路の出力値を記憶保持し、所定の信号が与えられて
いないときは、半導体回路に設けられたデータ線からの
値に記憶保持し直すことができる。レジスタが記憶して
いる値が第1固定電位のとき、設定回路は、出力バッフ
ァを作動させて、外部入出力端子を出力端子として設定
する。レジスタが記憶している値が第2固定電位のと
き、設定回路は、入力バッファを作動させて、外部入出
力端子を入力端子として設定する。
In the input state detection circuit according to the third aspect of the invention, the register stores and holds the output value of the determination circuit when the external terminal is given a predetermined signal, and when the predetermined signal is not given, The value from the data line provided in the semiconductor circuit can be stored and held again. When the value stored in the register is the first fixed potential, the setting circuit operates the output buffer to set the external input / output terminal as the output terminal. When the value stored in the register is the second fixed potential, the setting circuit operates the input buffer to set the external input / output terminal as the input terminal.

【0018】第4発明に係る入力状態検出回路では、外
部入出力端子の電位が第1固定電位のとき、抵抗対の接
続点の電位は第1固定電位になる。外部入出力端子の電
位が第2固定電位のとき、抵抗対の接続点の電位は第2
固定電位になる。外部入出力端子が開放状態のとき、抵
抗対の接続点の電位は第1固定電位及び第2固定電位の
中間電位になる。判別回路は、これらの電位から外部入
出力端子に固定電位が印加されているか、開放状態かを
判別する。設定回路は、外部端子に与えられた所定の信
号により、この判別結果を受け入れて、この判別結果が
固定電位のときは、外部入出力端子を入力端子に、開放
状態のときは、外部入出力端子を出力端子に設定する。
In the input state detection circuit according to the fourth aspect of the present invention, when the potential of the external input / output terminal is the first fixed potential, the potential of the connection point of the resistor pair becomes the first fixed potential. When the potential of the external input / output terminal is the second fixed potential, the potential of the connection point of the resistor pair is the second fixed potential.
It becomes a fixed potential. When the external input / output terminal is open, the potential at the connection point of the resistor pair becomes an intermediate potential between the first fixed potential and the second fixed potential. The determination circuit determines from these potentials whether the fixed potential is applied to the external input / output terminal or the open state. The setting circuit accepts this discrimination result by a predetermined signal given to the external terminal, and when the discrimination result is a fixed potential, the external input / output terminal is the input terminal, and when it is open, the external input / output terminal is Set the terminal as an output terminal.

【0019】第5発明に係る入力状態検出回路では、外
部端子に与えられた信号により、トランジスタ対がオン
になった場合、外部入力専用端子の電位が第1固定電位
のとき、トランジスタ対の接続点の電位は第1固定電位
になる。外部入力専用端子の電位が第2固定電位のと
き、トランジスタ対の接続点の電位は第2固定電位にな
る。外部入力専用端子が開放状態のとき、トランジスタ
対の接続点の電位は第1固定電位及び第2固定電位の中
間電位になる。判別回路は、これらの電位から外部入力
専用端子に固定電位が印加されているか、開放状態かを
判別し出力する。ラッチ回路は、判別回路の出力を、外
部端子に与えられたトランジスタ対がオンになる信号に
よりラッチし、外部端子に与えられたトランジスタ対が
オフになる信号により出力する。
In the input state detection circuit according to the fifth aspect of the present invention, when the transistor pair is turned on by the signal applied to the external terminal, the transistor pair is connected when the potential of the external input dedicated terminal is the first fixed potential. The potential at the point becomes the first fixed potential. When the potential of the external input dedicated terminal is the second fixed potential, the potential of the connection point of the transistor pair becomes the second fixed potential. When the external input dedicated terminal is open, the potential at the connection point of the transistor pair becomes an intermediate potential between the first fixed potential and the second fixed potential. The discrimination circuit discriminates from these potentials whether the fixed potential is applied to the external input dedicated terminal or the open state, and outputs. The latch circuit latches the output of the determination circuit with a signal that turns on the transistor pair applied to the external terminal, and outputs the output with a signal that turns off the transistor pair applied to the external terminal.

【0020】第6発明に係る入力状態検出回路では、外
部入力専用端子の電位が第1固定電位のとき、第1のイ
ンバータは第2固定電位、第2のインバータは第1固定
電位、第3のインバータは第2固定電位をそれぞれ出力
するので、一致回路は第2固定電位を出力する。外部入
力専用端子の電位が第2固定電位のとき、第1のインバ
ータは第1固定電位、第2のインバータは第2固定電
位、第3のインバータは第1固定電位をそれぞれ出力す
るので、一致回路はこのときも第2固定電位を出力す
る。判別回路は、これにより、外部入力専用端子に固定
電位が印加されていることを判別する。外部入力専用端
子が開放状態のとき、トランジスタ対の接続点の電位は
第1固定電位及び第2固定電位の中間電位になる。その
結果、判別回路の第1のインバータは第1固定電位、第
2のインバータは第2固定電位、第3のインバータは第
2固定電位を出力するので、一致回路は第1固定電位を
出力する。ラッチ回路は、判別回路の出力を、外部端子
に与えられたトランジスタ対がオンになる信号によりラ
ッチし、外部端子に与えられたトランジスタ対がオフに
なる信号により出力する。
In the input state detection circuit according to the sixth aspect of the invention, when the potential of the external input dedicated terminal is the first fixed potential, the first inverter is the second fixed potential, the second inverter is the first fixed potential, and the third fixed potential is the third fixed potential. Since the inverters output the second fixed potentials, the matching circuit outputs the second fixed potential. When the potential of the external input dedicated terminal is the second fixed potential, the first inverter outputs the first fixed potential, the second inverter outputs the second fixed potential, and the third inverter outputs the first fixed potential. The circuit also outputs the second fixed potential at this time. The determination circuit thereby determines that the fixed potential is applied to the external input dedicated terminal. When the external input dedicated terminal is open, the potential at the connection point of the transistor pair becomes an intermediate potential between the first fixed potential and the second fixed potential. As a result, the first inverter of the discrimination circuit outputs the first fixed potential, the second inverter outputs the second fixed potential, and the third inverter outputs the second fixed potential, so that the matching circuit outputs the first fixed potential. . The latch circuit latches the output of the determination circuit with a signal that turns on the transistor pair applied to the external terminal, and outputs the output with a signal that turns off the transistor pair applied to the external terminal.

【0021】第7発明に係る入力状態検出回路では、ラ
ッチ回路が、外部入力専用端子が入力開放状態であるこ
とを示す信号を出力したときは、接地手段が、外部入力
専用端子を接地させる。
In the input state detection circuit according to the seventh aspect of the present invention, when the latch circuit outputs a signal indicating that the external input dedicated terminal is in the input open state, the grounding means grounds the external input dedicated terminal.

【0022】[0022]

【実施例】以下に、本発明の実施例を、それを示す図面
を参照しながら説明する。 実施例1.図1は、第1〜3発明に係る入力状態検出回
路の1実施例の構成を示す回路図である。この入力状態
検出回路は、ソースが電源電位Vccに、ドレインが外部
入出力端子1に接続され、オン抵抗が大きいPチャネル
形FET2と、Pチャネル形FET2とオン抵抗が等し
く、ソースが接地電位Vssに、ドレインが外部入出力端
子1に接続されたNチャネル形FET3とを備えて、P
チャネル形FET2及びNチャネル形FET3をオン/
オフする為の所定の信号が与えられる外部端子4が、N
チャネル形FET3のゲートに接続されると共にインバ
ータ5を介してPチャネル形FET2のゲートに接続さ
れている。
Embodiments of the present invention will be described below with reference to the accompanying drawings. Example 1. FIG. 1 is a circuit diagram showing the configuration of one embodiment of an input state detection circuit according to the first to third inventions. In this input state detection circuit, the source is connected to the power supply potential Vcc, the drain is connected to the external input / output terminal 1, the P channel type FET 2 having a large ON resistance, the P channel type FET 2 has the same ON resistance, and the source is the ground potential Vss. And an N-channel FET 3 whose drain is connected to the external input / output terminal 1,
ON / OFF of channel type FET2 and N channel type FET3
The external terminal 4 to which a predetermined signal for turning off is given is N
It is connected to the gate of the channel-type FET 3 and also connected to the gate of the P-channel-type FET 2 via the inverter 5.

【0023】また、電源電位Vccの1/2より高い出力
反転の為の閾値を有し、外部入出力端子1の電位を入力
とするインバータ6と、インバータ6の出力を入力とす
るインバータ7と、電源電位Vccの1/2より低い出力
反転の為の閾値を有し、外部入出力端子1の電位を入力
とするインバータ8と、インバータ7及びインバータ8
の各出力を入力とするEx.NOR回路9(一致回路)
とからなり、外部入出力端子1の入出力状態を判別する
判別回路9aを備えている。
Further, an inverter 6 having a threshold value for output inversion higher than 1/2 of the power supply potential Vcc and having the potential of the external input / output terminal 1 as an input, and an inverter 7 having the output of the inverter 6 as an input. , An inverter 8 having a threshold value for output inversion lower than 1/2 of the power supply potential Vcc and having the potential of the external input / output terminal 1 as an input;
Ex. With each output of NOR circuit 9 (match circuit)
And a discrimination circuit 9a for discriminating the input / output state of the external input / output terminal 1.

【0024】また、Ex.NOR回路9の出力値又はデ
ータ線12からの値を記憶するレジスタ10と、レジス
タ10が記憶している値により作動の切り替え制御が行
われ、作動時(入力バッファ11aは遮断される)には
データ線12からのデータを外部入出力端子1へ出力す
る出力バッファ11と、作動時(出力バッファ11は遮
断される)には外部入出力端子1からのデータをデータ
線12に取り込む入力バッファ11aとを備え、Ex.
NOR回路9からの出力を受けて、外部入出力端子1を
入力端子又は出力端子に設定する設定回路10aを備え
ている。レジスタ10は、外部端子4に所定の信号が入
力されたときに、Ex.NOR回路9の出力値を記憶保
持するが、所定の信号が入力されていないときは、プロ
グラムによる書き換え要求信号WRが与えられたとき
に、データ線12からの値に記憶保持し直す。
In addition, Ex. The register 10 for storing the output value of the NOR circuit 9 or the value from the data line 12 and the switching control of the operation are performed by the value stored in the register 10, and during the operation (the input buffer 11a is cut off). An output buffer 11 that outputs the data from the data line 12 to the external input / output terminal 1, and an input buffer 11a that takes the data from the external input / output terminal 1 into the data line 12 during operation (the output buffer 11 is shut off). And Ex.
A setting circuit 10a for receiving the output from the NOR circuit 9 and setting the external input / output terminal 1 as an input terminal or an output terminal is provided. When a predetermined signal is input to the external terminal 4, the register 10 receives the Ex. The output value of the NOR circuit 9 is stored and held. When a predetermined signal is not input, the value output from the data line 12 is stored and held again when the program rewrite request signal WR is given.

【0025】このような構成の入力状態検出回路の動作
を以下に説明する。半導体集積回路では、端子を入力端
子として使用する場合は、予め当該端子にHレベル又は
Lレベルの電位を外部から印加している一方、出力端子
として使用する場合は、予めフローティング状態(開放
状態)にしている。
The operation of the input state detection circuit having such a configuration will be described below. In a semiconductor integrated circuit, when a terminal is used as an input terminal, an H-level or L-level potential is externally applied to the terminal in advance, while when it is used as an output terminal, it is in a floating state (open state) in advance. I have to.

【0026】半導体集積回路を作動させる際、端子を入
力端子又は出力端子として設定する為に、外部端子4
に、例えば、パルス信号であるリセット信号(半導体集
積回路を初期状態にセットする為の信号)を与える。こ
のリセット信号により、Pチャネル形FET2及びNチ
ャネル形FET3はオンになる。この状態で、外部入出
力端子1にHレベルの電位(電源電位Vcc)が印加され
ているとき、Pチャネル形FET2には電流は流れず、
Nチャネル形FET3のオン抵抗により、両FET2,
3のドレインの共通接続点の電位はHレベルになる。両
FET2,3のドレインの共通接続点の電位がHレベル
のとき、インバータ6はLレベル(接地電位Vss)、イ
ンバータ7はHレベル、インバータ8はLレベルを出力
するので、Ex.NOR回路9はLレベルを出力する。
レジスタ10は、外部端子4に与えられたリセット信号
により、Ex.NOR回路9のLレベルの出力を記憶保
持して、入力バッファ11aを作動させて(出力バッフ
ァ11は遮断される)、外部入出力端子1を入力端子と
して設定する。
When operating the semiconductor integrated circuit, the external terminal 4 is used to set the terminal as an input terminal or an output terminal.
Then, for example, a reset signal (a signal for setting the semiconductor integrated circuit to the initial state) which is a pulse signal is given. This reset signal turns on the P-channel FET 2 and the N-channel FET 3. In this state, when the H-level potential (power supply potential Vcc) is applied to the external input / output terminal 1, no current flows in the P-channel FET 2,
Due to the on-resistance of the N-channel FET3, both FET2,
The potential at the common connection point of the drains of 3 becomes H level. When the potential at the common connection point of the drains of both FETs 2 and 3 is H level, the inverter 6 outputs L level (ground potential Vss), the inverter 7 outputs H level, and the inverter 8 outputs L level. The NOR circuit 9 outputs L level.
The register 10 receives the reset signal from the Ex. The L level output of the NOR circuit 9 is stored and held, the input buffer 11a is operated (the output buffer 11 is cut off), and the external input / output terminal 1 is set as an input terminal.

【0027】外部入出力端子1にLレベルの電位が印加
されているとき、Nチャネル形FET3には電流は流れ
ず、Pチャネル形FET2のオン抵抗により、両FET
2,3のドレインの共通接続点の電位はLレベルにな
る。両FET2,3のドレインの共通接続点の電位がL
レベルのとき、インバータ6はHレベル、インバータ7
はLレベル、インバータ8はHレベルを出力するので、
Ex.NOR回路9はLレベルを出力する。レジスタ1
0は、外部端子4に与えられたリセット信号により、E
x.NOR回路9のLレベルの出力を記憶保持して、入
力バッファ11aを作動させ(出力バッファ11は遮断
される)、外部入出力端子1を入力端子として設定す
る。
When an L-level potential is applied to the external input / output terminal 1, no current flows in the N-channel type FET 3 and both FETs are turned on by the ON resistance of the P-channel type FET 2.
The potential at the common connection point of the drains 2 and 3 becomes L level. The potential at the common connection point of the drains of both FETs 2 and 3 is L
At the time of level, the inverter 6 is at H level and the inverter 7
Output L level and the inverter 8 outputs H level,
Ex. The NOR circuit 9 outputs L level. Register 1
0 is set to E by the reset signal given to the external terminal 4.
x. The L level output of the NOR circuit 9 is stored and held, the input buffer 11a is operated (the output buffer 11 is shut off), and the external input / output terminal 1 is set as the input terminal.

【0028】外部入出力端子1の電位がフローティング
状態のとき、Pチャネル形FET2及びNチャネル形F
ET3に電流が流れ、両FET2,3のオン抵抗の分配
電圧により、両FET2,3のドレインの共通接続点の
電位は、Hレベル及びLレベルの中間電位になる。両F
ET2,3のドレインの共通接続点の電位がHレベル及
びLレベルの中間電位のとき、それぞれの閾値により、
インバータ6はHレベル、インバータ7はLレベル、イ
ンバータ8はLレベルを出力するので、Ex.NOR回
路9はHレベルを出力する。レジスタ10は、外部端子
4に与えられたリセット信号により、Ex.NOR回路
9のHレベルの出力を記憶保持して、出力バッファ11
を作動させ(入力バッファ11aは遮断される)、外部
入出力端子1を出力端子として設定する。
When the potential of the external input / output terminal 1 is in a floating state, the P-channel type FET 2 and the N-channel type F
A current flows in ET3, and the potential at the common connection point of the drains of both FETs 2 and 3 becomes an intermediate potential between the H level and the L level due to the distributed voltage of the ON resistance of both FETs 2 and 3. Both F
When the potential at the common connection point of the drains of ET2 and 3 is an intermediate potential between the H level and the L level, depending on the respective threshold values,
Since the inverter 6 outputs H level, the inverter 7 outputs L level, and the inverter 8 outputs L level, Ex. The NOR circuit 9 outputs H level. The register 10 receives the reset signal from the Ex. The H level output of the NOR circuit 9 is stored and held, and the output buffer 11
Is activated (the input buffer 11a is cut off), and the external input / output terminal 1 is set as an output terminal.

【0029】外部端子4にリセット信号が与えられず、
Pチャネル形FET2及びNチャネル形FET3がオフ
になっている状態では、Pチャネル形FET2及びNチ
ャネル形FET3の貫通電流は流れない。また、レジス
タ10は、リセット信号入力時の値を保持し、Ex.N
OR回路9の出力は受け入れないが、プログラムから書
き換え要求信号WRが与えられたときは、データ線12
からの値に記憶保持し直す。
No reset signal is given to the external terminal 4,
When the P-channel type FET 2 and the N-channel type FET 3 are turned off, the penetrating current of the P-channel type FET 2 and the N-channel type FET 3 does not flow. Also, the register 10 holds the value at the time of inputting the reset signal, and the Ex. N
The output of the OR circuit 9 is not accepted, but when the rewrite request signal WR is given from the program, the data line 12
The value from is stored and retained again.

【0030】図2は、レジスタ10の構成例を示した回
路図である。このレジスタ10は、Ex.NOR回路9
の出力線及びデータ線12がそれぞれバッファ35及び
バッファ36を介してD端子に接続され、外部端子4及
びプログラム信号線(WR)がOR回路37を介してク
ロック端子CKに接続されたD型フリップフロップ38
で構成されている。D型フリップフロップ38のQ端子
出力は出力バッファ11へ、Q端子の反転出力は入力バ
ッファ11aへそれぞれ与えられ、出力バッファ11及
び入力バッファ11aの作動を切り替え制御する。ま
た、外部端子4及びプログラム信号線(WR)は、それ
ぞれバッファ35及びバッファ36にも接続され、それ
ぞれバッファ35及びバッファ36を作動又は入出力端
子間開放に切り替え制御する。
FIG. 2 is a circuit diagram showing a configuration example of the register 10. This register 10 has Ex. NOR circuit 9
Output line and data line 12 are connected to the D terminal via the buffers 35 and 36, respectively, and the external terminal 4 and the program signal line (WR) are connected to the clock terminal CK via the OR circuit 37. 38
It is composed of The Q terminal output of the D-type flip-flop 38 is supplied to the output buffer 11, and the inverted output of the Q terminal is supplied to the input buffer 11a, and the operation of the output buffer 11 and the input buffer 11a is switched and controlled. Further, the external terminal 4 and the program signal line (WR) are also connected to the buffer 35 and the buffer 36, respectively, and control the operation of the buffer 35 and the buffer 36 to open or to open the input / output terminals.

【0031】このようなレジスタ10の動作を、図3に
示す各部の信号波形のタイムチャートを参照しながら、
以下に説明する。外部端子4にリセット信号が入力され
たとき(図3(a))、バッファ35が作動状態にな
り、判別回路の出力信号(Ex.NOR回路9の出力信
号)(図3(b))がD端子へ入力されると共に、OR
回路37を通じてクロック端子CKへHレベル信号が入
力され、D型フリップフロップ38は判別回路の出力信
号(図3(b))を記憶保持する(図3(c))。この
記憶保持した値はQ端子から出力され、出力バッファ1
1及び入力バッファ11aの作動を切り替え制御する。
The operation of the register 10 will be described with reference to the time chart of the signal waveforms of the respective parts shown in FIG.
This will be described below. When the reset signal is input to the external terminal 4 (FIG. 3 (a)), the buffer 35 is activated and the output signal of the determination circuit (the output signal of the Ex.NOR circuit 9) (FIG. 3 (b)) is output. Input to D terminal and OR
An H level signal is input to the clock terminal CK through the circuit 37, and the D-type flip-flop 38 stores and holds the output signal (FIG. 3B) of the determination circuit (FIG. 3C). The stored value is output from the Q terminal and output buffer 1
1 and the operation of the input buffer 11a are switched and controlled.

【0032】外部端子4にリセット信号が入力されてい
ないとき(図3(a))、バッファ35の入出力端子間
は開放状態になり、判別回路の出力信号はD端子へ入力
されない。この状態で、プログラムによる書き換え要求
信号WRが与えられたとき(図3(d))、バッファ3
6が作動状態になり、データ線12からの値(図3
(e))がD端子へ入力されると共に、OR回路37を
通じてクロック端子CKへHレベル信号が入力され、D
型フリップフロップ38はデータ線12からの値(図3
(e))を記憶保持する(図3(c))。この記憶保持
した値はQ端子から出力され、出力バッファ11及び入
力バッファ11aの作動を切り替え制御する。
When the reset signal is not input to the external terminal 4 (FIG. 3 (a)), the input / output terminals of the buffer 35 are open, and the output signal of the discrimination circuit is not input to the D terminal. In this state, when the program rewrite request signal WR is given (FIG. 3D), the buffer 3
6 is activated and the value from the data line 12 (see FIG.
(E)) is input to the D terminal, and an H level signal is input to the clock terminal CK through the OR circuit 37.
The type flip-flop 38 receives the value from the data line 12 (see FIG.
(E)) is stored and held (FIG. 3 (c)). This stored and held value is output from the Q terminal, and the operation of the output buffer 11 and the input buffer 11a is switched and controlled.

【0033】実施例2.図4は、第4発明に係る入力状
態検出回路の1実施例の構成を示す回路図である。この
入力状態検出回路は、第1〜4発明に係る入力状態検出
回路の構成において、Pチャネル形FET2及びインバ
ータ5を、一端が電源電位Vccに、他端が外部入出力端
子1にそれぞれ接続された抵抗Ru に置き換え、Nチャ
ネル形FET3を、一端が接地電位Vssに、他端が外部
入出力端子1にそれぞれ接続された抵抗Rd (Ru =R
d )に置き換えた構成になっている。その他の構成は、
図1に示した第1〜4発明に係る入力状態検出回路の構
成と同様なので説明を省略する。
Example 2. FIG. 4 is a circuit diagram showing the configuration of an embodiment of the input state detection circuit according to the fourth invention. In this input state detection circuit, in the configuration of the input state detection circuit according to the first to fourth aspects of the invention, the P-channel FET 2 and the inverter 5 are connected at one end to the power supply potential Vcc and at the other end to the external input / output terminal 1. The resistance Rd is replaced with a resistance Rd (Ru = R) whose one end is connected to the ground potential Vss and the other end is connected to the external input / output terminal 1.
The configuration is replaced with d). Other configurations are
Since the configuration is the same as that of the input state detection circuit according to the first to fourth inventions shown in FIG. 1, the description thereof will be omitted.

【0034】このような構成の入力状態検出回路の動作
を以下に説明する。半導体集積回路では、端子を入力端
子として使用する場合は、予め当該端子にHレベル又は
Lレベルの電位を外部から印加している一方、出力端子
として使用する場合は、予めフローティング状態にして
いる。
The operation of the input state detection circuit having such a configuration will be described below. In a semiconductor integrated circuit, when a terminal is used as an input terminal, an H-level or L-level potential is externally applied to the terminal in advance, while when it is used as an output terminal, it is set in a floating state in advance.

【0035】半導体集積回路を作動させる際、端子を入
力端子又は出力端子として設定する為に、外部端子4
に、例えば、パルス信号であるリセット信号を与える。
この状態で、外部入出力端子1にHレベルの電位(電源
電位Vcc)が印加されているとき、抵抗Ru には電流は
流れず、抵抗Rd により両抵抗Ru ,Rd の共通接続点
の電位はHレベルになる。両抵抗Ru ,Rd の共通接続
点の電位がHレベルのとき、インバータ6はLレベル
(接地電位Vss)、インバータ7はHレベル、インバー
タ8はLレベルを出力するので、Ex.NOR回路9は
Lレベルを出力する。レジスタ10は、外部端子4に与
えられたリセット信号により、Ex.NOR回路9のL
レベルの出力を記憶保持して、入力バッファ11aを作
動させ(出力バッファ11は遮断される)、外部入出力
端子1を入力端子として設定する。
When operating the semiconductor integrated circuit, the external terminal 4 is used to set the terminal as an input terminal or an output terminal.
To the reset signal, which is a pulse signal, for example.
In this state, when an H-level potential (power supply potential Vcc) is applied to the external input / output terminal 1, no current flows through the resistor Ru, and the potential at the common connection point of the resistors Ru and Rd is changed by the resistor Rd. It becomes H level. When the potential at the common connection point between the resistors Ru and Rd is at the H level, the inverter 6 outputs the L level (ground potential Vss), the inverter 7 outputs the H level, and the inverter 8 outputs the L level. The NOR circuit 9 outputs L level. The register 10 receives the reset signal from the Ex. L of NOR circuit 9
The level output is stored and held, the input buffer 11a is operated (the output buffer 11 is cut off), and the external input / output terminal 1 is set as the input terminal.

【0036】外部入出力端子1にLレベルの電位が印加
されているとき、抵抗Rd には電流は流れず、抵抗Ru
により両抵抗Ru ,Rd の共通接続点の電位はLレベル
になる。両抵抗Ru ,Rd の共通接続点の電位がLレベ
ルのとき、インバータ6はHレベル、インバータ7はL
レベル、インバータ8はHレベルを出力するので、E
x.NOR回路9はLレベルを出力する。レジスタ10
は、外部端子4に与えられたリセット信号により、E
x.NOR回路9のLレベルの出力を記憶保持して、入
力バッファ11aを作動させ(出力バッファ11は遮断
される)、外部入出力端子1を入力端子として設定す
る。
When an L level potential is applied to the external input / output terminal 1, no current flows through the resistor Rd and the resistor Ru
As a result, the potential at the common connection point of the resistors Ru and Rd becomes L level. When the potential at the common connection point of both resistors Ru and Rd is at L level, the inverter 6 is at H level and the inverter 7 is at L level.
Level, the inverter 8 outputs H level, so E
x. The NOR circuit 9 outputs L level. Register 10
Is reset by the reset signal given to the external terminal 4.
x. The L level output of the NOR circuit 9 is stored and held, the input buffer 11a is operated (the output buffer 11 is shut off), and the external input / output terminal 1 is set as the input terminal.

【0037】外部入出力端子1の電位がフローティング
状態のとき、抵抗Ru 及び抵抗Rdに電流が流れ、両抵
抗Ru ,Rd (Ru =Rd )の分配電圧により、両抵抗
Ru,Rd の共通接続点の電位は、Hレベル及びLレベ
ルの中間電位になる。両抵抗Ru ,Rd の共通接続点の
電位がHレベル及びLレベルの中間電位のとき、それぞ
れの閾値により、インバータ6はHレベル、インバータ
7はLレベル、インバータ8はLレベルを出力するの
で、Ex.NOR回路9はHレベルを出力する。レジス
タ10は、外部端子4に与えられたリセット信号によ
り、Ex.NOR回路9のHレベルの出力を記憶保持し
て、出力バッファ11を作動させ(入力バッファ11a
は遮断される)、外部入出力端子1を出力端子として設
定する。
When the potential of the external input / output terminal 1 is in a floating state, a current flows through the resistors Ru and Rd, and the common connection point of the resistors Ru and Rd is generated by the distribution voltage of the resistors Ru and Rd (Ru = Rd). Potential becomes an intermediate potential between H level and L level. When the potential at the common connection point of the resistors Ru and Rd is an intermediate potential between the H level and the L level, the inverter 6 outputs the H level, the inverter 7 outputs the L level, and the inverter 8 outputs the L level according to the respective threshold values. Ex. The NOR circuit 9 outputs H level. The register 10 receives the reset signal from the Ex. The H level output of the NOR circuit 9 is stored and held, and the output buffer 11 is operated (input buffer 11a
Is cut off), and the external input / output terminal 1 is set as an output terminal.

【0038】外部端子4へリセット信号が入力されてい
ない状態では、レジスタ10は、直近のリセット信号入
力時の値を保持し、Ex.NOR回路9の出力は受け入
れないが、プログラムから書き換え要求信号WRが与え
られたときは、データ線12からの値に記憶保持し直
す。
When the reset signal is not input to the external terminal 4, the register 10 holds the value at the time of the most recent reset signal input, and the Ex. The output of the NOR circuit 9 is not accepted, but when the rewrite request signal WR is given from the program, it is stored and held again in the value from the data line 12.

【0039】実施例3.図5は、第5,6発明に係る入
力状態検出回路の第1の実施例の構成を示す回路図であ
る。この入力状態検出回路は、ソースが電源電位Vcc
に、ドレインが外部入力専用端子13に接続されたPチ
ャネル形FET2と、Pチャネル形FET2とオン抵抗
が等しく、ソースが接地電位Vssに、ドレインが外部入
力専用端子13に接続されたNチャネル形FET3とを
備えて、Pチャネル形FET2及びNチャネル形FET
3をオン/オフする為のリセット信号(半導体集積回路
を初期状態にセットする為の信号)が与えられる外部端
子4が、Nチャネル形FET3のゲートに接続されると
共にインバータ5を介してPチャネル形FET2のゲー
トに接続されている。
Example 3. FIG. 5 is a circuit diagram showing the configuration of the first embodiment of the input state detection circuit according to the fifth and sixth inventions. In this input state detection circuit, the source is the power supply potential Vcc.
In addition, the P-channel FET2 having a drain connected to the external input-only terminal 13 has the same on-resistance as the P-channel FET2, the source connected to the ground potential Vss, and the drain connected to the external-input dedicated terminal 13 A FET 3 and a P-channel FET 2 and an N-channel FET
An external terminal 4 to which a reset signal for turning on / off 3 (a signal for setting the semiconductor integrated circuit to an initial state) is given is connected to the gate of the N-channel FET 3 and a P-channel via an inverter 5. Connected to the gate of the FET2.

【0040】また、電源電位Vccの1/2より高い出力
反転の為の閾値を有し、外部入力専用端子13の電位を
入力とするインバータ6と、インバータ6の出力を入力
とするインバータ7と、電源電位Vccの1/2より低い
出力反転の為の閾値を有し、外部入力専用端子13の電
位を入力とするインバータ8と、インバータ7及びイン
バータ8の各出力を入力とするEx.NOR回路9(一
致回路)とからなり、外部入力専用端子13の入力状態
を判別する判別回路9aを備えている。
Further, an inverter 6 having a threshold value for output inversion higher than 1/2 of the power supply potential Vcc and having the potential of the external input dedicated terminal 13 as an input, and an inverter 7 having the output of the inverter 6 as an input. , An inverter 8 having a threshold value for output inversion lower than 1/2 of the power supply potential Vcc and having the potential of the external input dedicated terminal 13 as an input, and an inverter 8 having inputs of the outputs of the inverter 7 and the inverter 8. A NOR circuit 9 (coincidence circuit) is provided and a discrimination circuit 9a for discriminating the input state of the external input dedicated terminal 13 is provided.

【0041】また、Ex.NOR回路9の出力節点とド
レインが接続され、ゲートに外部端子4からのリセット
信号線が接続されたNチャネル形FET15及びゲート
に外部端子4からのバーリセット信号線が接続されたP
チャネル形FET16が並列接続されたトランスミッシ
ョンゲートと、ゲートに外部端子4からのリセット信号
線が接続されたPチャネル形FET19及びゲートに外
部端子4からのバーリセット信号線が接続されたNチャ
ネル形FET20が並列接続されたトランスミッション
ゲートと、両トランスミッションゲート間に互いに逆向
きに接続された2個のインバータ17,18と、Pチャ
ネル形FET19のドレインに入力節点が接続されたイ
ンバータ21とからなり、判別回路9aの出力を、外部
端子4に与えられたリセット信号によりラッチし、リセ
ット信号オフ後に出力するラッチ回路14を備えてい
る。
Ex. The output node of the NOR circuit 9 is connected to the drain, the gate is connected to the N-channel FET 15 to which the reset signal line from the external terminal 4 is connected, and the gate is connected to the bar reset signal line from the external terminal 4 to P.
A transmission gate in which a channel type FET 16 is connected in parallel, a P channel type FET 19 in which a gate is connected to a reset signal line from the external terminal 4, and an N channel type FET 20 in which a gate is connected to a bar reset signal line from an external terminal 4 Are connected in parallel, two inverters 17 and 18 connected in opposite directions between the two transmission gates, and an inverter 21 in which an input node is connected to the drain of a P-channel type FET 19. The latch circuit 14 is provided which latches the output of the circuit 9a with a reset signal applied to the external terminal 4 and outputs the latched signal after turning off the reset signal.

【0042】このような構成の入力状態検出回路の動作
を以下に説明する。半導体集積回路では、外部入力専用
端子は、予めHレベル又はLレベルの電位が外部から印
加されていなければならない。半導体集積回路を作動さ
せる際、外部入力専用端子にHレベル又はLレベルの電
位が印加されているか否かをチェックする為に、外部端
子4に、例えば、パルス信号であるリセット信号を与え
る。このリセット信号により、Pチャネル形FET2及
びNチャネル形FET3はオンになる。この状態で、外
部入力専用端子13にHレベルの電位が印加されている
とき、Pチャネル形FET2には電流は流れず、Nチャ
ネル形FET3のオン抵抗により、両FET2,3のド
レインの共通接続点の電位はHレベルになる。
The operation of the input state detection circuit having such a configuration will be described below. In the semiconductor integrated circuit, the H-level or L-level potential must be externally applied to the external input-only terminal in advance. When operating the semiconductor integrated circuit, a reset signal which is, for example, a pulse signal is applied to the external terminal 4 in order to check whether an H level or L level potential is applied to the external input dedicated terminal. This reset signal turns on the P-channel FET 2 and the N-channel FET 3. In this state, when an H-level potential is applied to the external input-only terminal 13, no current flows in the P-channel FET 2 and the drains of both FETs 2 and 3 are commonly connected by the ON resistance of the N-channel FET 3. The potential at the point becomes H level.

【0043】両FET2,3のドレインの共通接続点の
電位がHレベルのとき、インバータ6はLレベル、イン
バータ7はHレベル、インバータ8はLレベルを出力す
るので、Ex.NOR回路9はLレベルを出力する。こ
のとき、リセット信号により、FET15,16からな
るトランスミッションゲートは開いており、インバータ
18へLレベルが入力され、インバータ18はHレベル
を出力する。この状態で、外部端子4のリセット信号が
オフされるとき、FET15,16からなるトランスミ
ッションゲートが閉じ、FET19,20からなるトラ
ンスミッションゲートが開いて、インバータ18からの
Hレベルが出力されるが、インバータ17が接続されて
いるので、このHレベルの出力は保持される。この為、
インバータ21は、Hレベルを入力され続け、Lレベル
を出力し続ける。従って、ラッチ回路14は、Ex.N
OR回路9のLレベルの出力をラッチする。
When the potential at the common connection point of the drains of both FETs 2 and 3 is at the H level, the inverter 6 outputs the L level, the inverter 7 outputs the H level, and the inverter 8 outputs the L level. The NOR circuit 9 outputs L level. At this time, due to the reset signal, the transmission gate including the FETs 15 and 16 is open, the L level is input to the inverter 18, and the inverter 18 outputs the H level. In this state, when the reset signal of the external terminal 4 is turned off, the transmission gate formed of the FETs 15 and 16 is closed, the transmission gate formed of the FETs 19 and 20 is opened, and the H level is output from the inverter 18. Since 17 is connected, this H level output is held. Therefore,
The inverter 21 keeps receiving the H level and continues to output the L level. Therefore, the latch circuit 14 outputs the Ex. N
The L level output of the OR circuit 9 is latched.

【0044】外部入力専用端子13にLレベルの電位が
印加されているとき、Nチャネル形FET3には電流は
流れず、Pチャネル形FET2のオン抵抗により、両F
ET2,3のドレインの共通接続点の電位はLレベルに
なる。両FET2,3のドレインの共通接続点の電位が
Lレベルのとき、インバータ6はHレベル、インバータ
7はLレベル、インバータ8はHレベルを出力するの
で、Ex.NOR回路9はLレベルを出力する。これ
は、上述の外部入力専用端子13にHレベルの電位が印
加されているときと同様であり、このときも、ラッチ回
路14は、上述と同様にEx.NOR回路9のLレベル
の出力をラッチする。従って、外部入力専用端子13に
Hレベル又はLレベルの電位が印加されているとき、ラ
ッチ回路14はLレベルを出力する。
When an L-level potential is applied to the external input-only terminal 13, no current flows through the N-channel type FET 3 and the on-resistance of the P-channel type FET 2 causes both F
The potential at the common connection point of the drains of ET2 and ET3 becomes L level. When the potential at the common connection point of the drains of both FETs 2 and 3 is L level, the inverter 6 outputs H level, the inverter 7 outputs L level, and the inverter 8 outputs H level. The NOR circuit 9 outputs L level. This is the same as when the H-level potential is applied to the external input dedicated terminal 13 described above, and at this time also, the latch circuit 14 operates the Ex. The L level output of the NOR circuit 9 is latched. Therefore, when the H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 14 outputs the L level.

【0045】外部入力専用端子13の電位がフローティ
ング状態のとき、Pチャネル形FET2及びNチャネル
形FET3に電流が流れ、両FET2,3のオン抵抗の
分配電圧により、両FET2,3のドレインの共通接続
点の電位は、Hレベル及びLレベルの中間電位になる。
両FET2,3のドレインの共通接続点の電位がHレベ
ル及びLレベルの中間電位のとき、それぞれの閾値によ
り、インバータ6はHレベル、インバータ7はLレベ
ル、インバータ8はLレベルを出力するので、Ex.N
OR回路9はHレベルを出力する。このとき、リセット
信号により、FET15,16からなるトランスミッシ
ョンゲートは開いており、インバータ18へHレベルが
入力され、インバータ18はLレベルを出力する。
When the potential of the external input-only terminal 13 is in a floating state, a current flows through the P-channel FET 2 and the N-channel FET 3, and the drain voltage of both FETs 2 and 3 is shared by the distribution voltage of the ON resistance of both FETs 2 and 3. The potential at the connection point becomes an intermediate potential between H level and L level.
When the potential at the common connection point of the drains of both FETs 2 and 3 is an intermediate potential between the H level and the L level, the inverter 6 outputs the H level, the inverter 7 outputs the L level, and the inverter 8 outputs the L level according to the respective threshold values. , Ex. N
The OR circuit 9 outputs H level. At this time, the transmission signal formed by the FETs 15 and 16 is opened by the reset signal, the H level is input to the inverter 18, and the inverter 18 outputs the L level.

【0046】この状態で、外部端子4のリセット信号が
オフされるとき、FET15,16からなるトランスミ
ッションゲートが閉じ、FET19,20からなるトラ
ンスミッションゲートが開いて、インバータ18からの
Lレベルが出力されるが、インバータ17が接続されて
いるので、このLレベルの出力は保持される。この為、
インバータ21は、Lレベルを入力され続け、Hレベル
を出力し続けるので、ラッチ回路14としては、Ex.
NOR回路9のHレベルの出力をラッチする。従って、
外部入力専用端子13の電位がフローティング状態のと
き、ラッチ回路14はHレベルを出力する。これによ
り、ラッチ回路14の出力レベルをチェックすること
で、外部入力専用端子13の入力開放状態を逸早く発見
することができる。
In this state, when the reset signal of the external terminal 4 is turned off, the transmission gate formed of the FETs 15 and 16 is closed, the transmission gate formed of the FETs 19 and 20 is opened, and the L level is output from the inverter 18. However, since the inverter 17 is connected, this L level output is held. Therefore,
The inverter 21 continues to receive the L level and continues to output the H level.
The H level output of the NOR circuit 9 is latched. Therefore,
When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs H level. Thus, by checking the output level of the latch circuit 14, the input open state of the external input dedicated terminal 13 can be found quickly.

【0047】実施例4.図6は、第5,6発明に係る入
力状態検出回路の第2の実施例の構成を示す回路図であ
る。この入力状態検出回路は、ラッチ回路14のインバ
ータ21の出力信号をCPU23の割り込み端子へ入力
するようになっている。その他の構成は、上述した第
5,6発明に係る入力状態検出回路の第1の実施例の構
成と同様なので、説明を省略する。
Example 4. FIG. 6 is a circuit diagram showing the configuration of the second embodiment of the input state detection circuit according to the fifth and sixth inventions. The input state detection circuit inputs the output signal of the inverter 21 of the latch circuit 14 to the interrupt terminal of the CPU 23. Other configurations are the same as the configurations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore description thereof will be omitted.

【0048】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力する。このときは、CPU23には
割り込みがかからない。外部入力専用端子13の電位が
フローティング状態のとき、ラッチ回路14はHレベル
を出力する。このとき、CPU23に割り込みがかか
り、CPU23はフェールセーフ等の必要な処理を割り
込みで実行する。その他の動作は、上述した第5,6発
明に係る入力状態検出回路の第1の実施例の動作と同様
なので、説明を省略する。本実施例により、CPU23
は、半導体集積回路がリセット状態から立ち上がるとき
に、自動的に外部入力専用端子13の入力状態をチェッ
クすることができる。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs an L level. At this time, the CPU 23 is not interrupted. When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs H level. At this time, the CPU 23 is interrupted, and the CPU 23 executes necessary processing such as fail safe by the interrupt. The other operations are the same as the operations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore the description thereof will be omitted. According to this embodiment, the CPU 23
Can automatically check the input state of the external input dedicated terminal 13 when the semiconductor integrated circuit rises from the reset state.

【0049】実施例5.図7は、第5,6発明に係る入
力状態検出回路の第3の実施例の構成を示す回路図であ
る。この入力状態検出回路は、ラッチ回路14のインバ
ータ21の出力信号をステータスレジスタ24へ入力す
るようになっている。その他の構成は、上述した第5,
6発明に係る入力状態検出回路の第1の実施例の構成と
同様なので、説明を省略する。
Example 5. FIG. 7 is a circuit diagram showing the configuration of the third embodiment of the input state detection circuit according to the fifth and sixth inventions. This input state detection circuit inputs the output signal of the inverter 21 of the latch circuit 14 to the status register 24. Other configurations are the same as the above-mentioned fifth and fifth.
Since the configuration is the same as that of the first embodiment of the input state detection circuit according to the sixth invention, the description thereof will be omitted.

【0050】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力する。ステータスレジスタ24へ
は、Lレベルが入力され、このとき、ステータスレジス
タ24はステータスフラグをセットせず、ステータスフ
ラグはLレベルである。外部入力専用端子13の電位が
フローティング状態のとき、ラッチ回路14はHレベル
を出力する。このとき、ステータスレジスタ24へは、
Hレベルが入力され、ステータスレジスタ24はステー
タスフラグをHレベルにセットする。その他の動作は、
上述した第5,6発明に係る入力状態検出回路の第1の
実施例の動作と同様なので、説明を省略する。本実施例
では、ステータスフラグの値を読み出すことにより、外
部入力専用端子13の入力状態をチェックすることがで
きる。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs an L level. The L level is input to the status register 24. At this time, the status register 24 does not set the status flag and the status flag is at the L level. When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs H level. At this time, the status register 24 is
The H level is input, and the status register 24 sets the status flag to the H level. Other operations are
Since the operation is the same as that of the first embodiment of the input state detecting circuit according to the fifth and sixth inventions, the description thereof will be omitted. In this embodiment, the input state of the external input dedicated terminal 13 can be checked by reading the value of the status flag.

【0051】実施例6.図8は、第5,6発明に係る入
力状態検出回路の第4の実施例の構成を示す回路図であ
る。この入力状態検出回路は、ラッチ回路14のインバ
ータ21の出力信号をNOR回路26の一方の入力端子
へ入力し、NOR回路26の出力は、半導体集積回路の
内部クロックの発振回路27へ入力され、発振回路27
を起動/停止するようになっている。NOR回路26の
他方の入力端子には、発振回路27のストップ命令信号
の入力端子25が接続されている。その他の構成は、上
述した第5,6発明に係る入力状態検出回路の第1の実
施例の構成と同様なので、説明を省略する。
Example 6. FIG. 8 is a circuit diagram showing the configuration of the fourth embodiment of the input state detection circuit according to the fifth and sixth inventions. This input state detection circuit inputs the output signal of the inverter 21 of the latch circuit 14 to one input terminal of the NOR circuit 26, and the output of the NOR circuit 26 is input to the oscillation circuit 27 of the internal clock of the semiconductor integrated circuit. Oscillation circuit 27
It is designed to start / stop. To the other input terminal of the NOR circuit 26, the input terminal 25 for the stop command signal of the oscillation circuit 27 is connected. Other configurations are the same as the configurations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore description thereof will be omitted.

【0052】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力し、NOR回路26の一方の入力端
子へLレベルが入力される。発振回路27のストップ命
令信号は通常、Lレベルになっているので、NOR回路
26はHレベルを出力する。このとき、発振回路27は
発振する。外部入力専用端子13の電位がフローティン
グ状態のとき、ラッチ回路14はHレベルを出力し、N
OR回路26の一方の入力端子へHレベルが入力され
る。発振回路27のストップ命令信号は通常、Lレベル
になっているので、NOR回路26はLレベルを出力す
る。このとき、発振回路27は発振を停止する。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs an L level, and the L level is input to one input terminal of the NOR circuit 26. Since the stop command signal of the oscillator circuit 27 is normally at L level, the NOR circuit 26 outputs H level. At this time, the oscillation circuit 27 oscillates. When the potential of the external input-only terminal 13 is in a floating state, the latch circuit 14 outputs H level and N
The H level is input to one input terminal of the OR circuit 26. Since the stop command signal of the oscillation circuit 27 is normally at L level, the NOR circuit 26 outputs L level. At this time, the oscillation circuit 27 stops the oscillation.

【0053】発振回路27のストップ命令が実行される
とき、ストップ命令信号はHレベルになる。このとき、
外部入力専用端子13にはHレベル又はLレベルの電位
が印加されており、ラッチ回路14はLレベルを出力す
るので、NOR回路26はLレベルを出力する。このと
き、発振回路27は発振を停止する。その他の動作は、
上述した第5,6発明に係る入力状態検出回路の第1の
実施例の動作と同様なので、説明を省略する。本実施例
では、外部入力専用端子13の電位のフローティング状
態が解消されない限り、半導体集積回路の内部クロック
の発振回路27を発振させず、半導体集積回路を作動さ
せないようにしている。従って、電位がフローティング
状態にある外部入力専用端子13が存在する状態で半導
体集積回路を作動させることを防止できる。
When the stop command of the oscillation circuit 27 is executed, the stop command signal becomes H level. At this time,
Since the H level or L level potential is applied to the external input dedicated terminal 13 and the latch circuit 14 outputs the L level, the NOR circuit 26 outputs the L level. At this time, the oscillation circuit 27 stops the oscillation. Other operations are
Since the operation is the same as that of the first embodiment of the input state detecting circuit according to the fifth and sixth inventions, the description thereof will be omitted. In this embodiment, the internal clock oscillation circuit 27 of the semiconductor integrated circuit is not oscillated and the semiconductor integrated circuit is not operated unless the floating state of the potential of the external input dedicated terminal 13 is eliminated. Therefore, it is possible to prevent the semiconductor integrated circuit from operating in the presence of the external input-only terminal 13 whose potential is in a floating state.

【0054】実施例7.図9は、第5,6発明に係る入
力状態検出回路の第5の実施例の構成を示す回路図であ
る。この入力状態検出回路は、ラッチ回路14のインバ
ータ21の出力信号をコンピュータのプログラムカウン
タ28へ入力し、コンピュータのプログラム実行を制御
するようになっている。その他の構成は、上述した第
5,6発明に係る入力状態検出回路の第1の実施例の構
成と同様なので、説明を省略する。
Example 7. FIG. 9 is a circuit diagram showing the configuration of the fifth embodiment of the input state detection circuit according to the fifth and sixth inventions. The input state detection circuit inputs the output signal of the inverter 21 of the latch circuit 14 to the program counter 28 of the computer to control the program execution of the computer. Other configurations are the same as the configurations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore description thereof will be omitted.

【0055】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力し、プログラムカウンタ28へLレ
ベルが入力される。このとき、プログラムカウンタ28
は停止せず、プログラムの実行は続けられる。外部入力
専用端子13の電位がフローティング状態のとき、ラッ
チ回路14はHレベルを出力し、プログラムカウンタ2
8へHレベルが入力される。このとき、プログラムカウ
ンタ28は停止し、プログラムの実行は中断される。こ
の状態で、外部入力専用端子13の電位のフローティン
グ状態が解消されたとき、ラッチ回路14はLレベルを
出力し、プログラムカウンタ28へLレベルが入力され
て、プログラムカウンタ28は起動し、プログラムは中
断されたところから実行される。その他の動作は、上述
した第5,6発明に係る入力状態検出回路の第1の実施
例の動作と同様なので、説明を省略する。本実施例で
は、電位がフローティング状態にある外部入力専用端子
13が存在する状態で(コンピュータの)半導体集積回
路を作動させることを防止できる。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs the L level, and the L level is input to the program counter 28. At this time, the program counter 28
Does not stop and the program continues to run. When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs H level, and the program counter 2
The H level is input to 8. At this time, the program counter 28 is stopped and the execution of the program is interrupted. In this state, when the floating state of the potential of the external input dedicated terminal 13 is released, the latch circuit 14 outputs the L level, the L level is input to the program counter 28, the program counter 28 is activated, and the program is executed. It is executed from where it was interrupted. The other operations are the same as the operations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore the description thereof will be omitted. In this embodiment, it is possible to prevent the semiconductor integrated circuit (of the computer) from operating in the presence of the external input-only terminal 13 whose potential is floating.

【0056】実施例8.図10は、第5,6発明に係る
入力状態検出回路の第6の実施例の構成を示す回路図で
ある。この入力状態検出回路は、電源Vccの配線を入力
状態検出回路以外の内部回路30の電源Vccの配線とは
別にしており、ラッチ回路14のインバータ21の出力
は、内部回路30及び電源Vccにドレイン及びソースが
接続されたPチャネル形FET29のゲートに接続さ
れ、ラッチ回路14の出力により、内部回路30への電
源供給を制御するようになっている。その他の構成は、
上述した第5,6発明に係る入力状態検出回路の第1の
実施例の構成と同様なので、説明を省略する。
Example 8. FIG. 10 is a circuit diagram showing the configuration of the sixth embodiment of the input state detection circuit according to the fifth and sixth inventions. In this input state detection circuit, the wiring of the power supply Vcc is separated from the wiring of the power supply Vcc of the internal circuit 30 other than the input state detection circuit, and the output of the inverter 21 of the latch circuit 14 is supplied to the internal circuit 30 and the power supply Vcc. The drain and source are connected to the gate of a P-channel FET 29 to which the drain and source are connected, and the output of the latch circuit 14 controls the power supply to the internal circuit 30. Other configurations are
Since the configuration is the same as that of the first embodiment of the input state detection circuit according to the fifth and sixth inventions, the description thereof will be omitted.

【0057】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力し、Pチャネル形FET29はオン
になり、電源Vccから内部回路30へ電源供給される。
外部入力専用端子13の電位がフローティング状態のと
き、ラッチ回路14はHレベルを出力し、Pチャネル形
FET29はオフになり、電源Vccから内部回路30へ
の電源供給が遮断される。その他の動作は、上述した第
5,6発明に係る入力状態検出回路の第1の実施例の動
作と同様なので、説明を省略する。本実施例では、電位
がフローティング状態にある外部入力専用端子13が存
在する状態で半導体集積回路を作動させることを防止で
きる。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs an L level, the P-channel FET 29 is turned on, and power is supplied from the power supply Vcc to the internal circuit 30.
When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs an H level, the P-channel FET 29 is turned off, and the power supply from the power supply Vcc to the internal circuit 30 is cut off. The other operations are the same as the operations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore the description thereof will be omitted. In the present embodiment, it is possible to prevent the semiconductor integrated circuit from operating in the presence of the external input-only terminal 13 whose potential is floating.

【0058】実施例9.図11は、第5,6発明に係る
入力状態検出回路の第7の実施例の構成を示す回路図で
ある。この入力状態検出回路は、外部端子4aに入力さ
れるリセット信号が外部からのみ与えられるようになっ
ており、ラッチ回路14のインバータ21の出力は、O
R回路31の一方の入力端子に入力され、OR回路31
の出力は内部回路30へ内部リセット信号として与えら
れる。OR回路31の他方の入力端子32には、内部回
路30の従来の内部リセット信号が入力されている。そ
の他の構成は、上述した第5,6発明に係る入力状態検
出回路の第1の実施例の構成と同様なので、説明を省略
する。
Example 9. FIG. 11 is a circuit diagram showing the configuration of a seventh embodiment of the input state detection circuit according to the fifth and sixth inventions. In this input state detection circuit, the reset signal input to the external terminal 4a is given only from the outside, and the output of the inverter 21 of the latch circuit 14 is O.
It is input to one input terminal of the R circuit 31, and the OR circuit 31
Is output to the internal circuit 30 as an internal reset signal. A conventional internal reset signal of the internal circuit 30 is input to the other input terminal 32 of the OR circuit 31. Other configurations are the same as the configurations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore description thereof will be omitted.

【0059】このような構成の入力状態検出回路の動作
を以下に説明する。外部入力専用端子13にHレベル又
はLレベルの電位が印加されているとき、ラッチ回路1
4はLレベルを出力する。通常、従来の内部リセット信
号はLレベルであるので、OR回路31の出力(内部リ
セット信号)はLレベルとなり、内部回路30はリセッ
トされない。外部入力専用端子13の電位がフローティ
ング状態のとき、ラッチ回路14はHレベルを出力する
ので、OR回路31の出力(内部リセット信号)はHレ
ベルとなり、内部回路30はリセットされる。OR回路
31の他方の入力端子32に、Hレベルの従来の内部リ
セット信号が入力されるとき、OR回路31の出力(内
部リセット信号)はHレベルとなり、内部回路30はリ
セットされる。その他の動作は、上述した第5,6発明
に係る入力状態検出回路の第1の実施例の動作と同様な
ので、説明を省略する。本実施例では、電位がフローテ
ィング状態にある外部入力専用端子13が存在する状態
で半導体集積回路を作動させることを防止できる。
The operation of the input state detection circuit having such a configuration will be described below. When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 1
4 outputs an L level. Since the conventional internal reset signal is normally at L level, the output of the OR circuit 31 (internal reset signal) becomes L level, and the internal circuit 30 is not reset. When the potential of the external input-only terminal 13 is in the floating state, the latch circuit 14 outputs H level, so the output of the OR circuit 31 (internal reset signal) becomes H level and the internal circuit 30 is reset. When the conventional internal reset signal of H level is input to the other input terminal 32 of the OR circuit 31, the output of the OR circuit 31 (internal reset signal) becomes H level, and the internal circuit 30 is reset. The other operations are the same as the operations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore the description thereof will be omitted. In the present embodiment, it is possible to prevent the semiconductor integrated circuit from operating in the presence of the external input-only terminal 13 whose potential is floating.

【0060】実施例10.図12は、第7発明に係る入
力状態検出回路の1実施例の構成を示す回路図である。
この入力状態検出回路は、ドレインが外部入力専用端子
13に、ソースが接地電位Vssに接続されたNチャネル
形FET22のゲートに、ラッチ回路14のインバータ
21の出力が接続されている。その他の構成は、上述し
た第5,6発明に係る入力状態検出回路の第1の実施例
の構成と同様なので、説明を省略する。
Example 10. FIG. 12 is a circuit diagram showing the configuration of an embodiment of the input state detection circuit according to the seventh invention.
In this input state detection circuit, the output of the inverter 21 of the latch circuit 14 is connected to the external input dedicated terminal 13 and the gate of the N-channel FET 22 whose source is connected to the ground potential Vss. Other configurations are the same as the configurations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore description thereof will be omitted.

【0061】このような構成の入力状態検出回路の動作
を以下に説明する。半導体集積回路では、外部入力専用
端子は、予めHレベル又はLレベルの電位が外部から印
加されていなければならない。半導体集積回路を作動さ
せる際、外部入力専用端子にHレベル又はLレベルの電
位が印加されているかチェックする為に、外部端子4
に、例えば、パルス信号であるリセット信号を与える。
このリセット信号により、Pチャネル形FET2及びN
チャネル形FET3はオンになる。
The operation of the input state detection circuit having such a configuration will be described below. In the semiconductor integrated circuit, the H-level or L-level potential must be externally applied to the external input-only terminal in advance. When operating the semiconductor integrated circuit, the external terminal 4 is used to check whether an H level or L level potential is applied to the external input dedicated terminal.
To the reset signal, which is a pulse signal, for example.
This reset signal causes the P-channel FET 2 and N
The channel FET 3 is turned on.

【0062】外部入力専用端子13にHレベル又はLレ
ベルの電位が印加されているとき、ラッチ回路14はL
レベルを出力する。このとき、Nチャネル形FET22
のゲートへはLレベルの電位が印加され、Nチャネル形
FET22はオンしない。従って、外部入力専用端子1
3は、既に印加されているHレベル又はLレベルの電位
に保たれる。外部入力専用端子13の電位がフローティ
ング状態のとき、ラッチ回路14はHレベルを出力す
る。このとき、Nチャネル形FET22のゲートへはH
レベルの電位が印加され、Nチャネル形FET22はオ
ンする。この為、外部入力専用端子13は、接地されフ
ローティング状態は解消される。その他の動作は、上述
した第5,6発明に係る入力状態検出回路の第1の実施
例の動作と同様なので、説明を省略する。
When an H level or L level potential is applied to the external input dedicated terminal 13, the latch circuit 14 is set to L level.
Output level. At this time, the N-channel FET 22
An L level potential is applied to the gate of the N channel type FET 22 and the N channel type FET 22 is not turned on. Therefore, the external input dedicated terminal 1
3 is maintained at the already applied H level or L level potential. When the potential of the external input dedicated terminal 13 is in a floating state, the latch circuit 14 outputs H level. At this time, H is applied to the gate of the N-channel FET 22.
A level potential is applied, and the N-channel FET 22 turns on. Therefore, the external input dedicated terminal 13 is grounded and the floating state is eliminated. The other operations are the same as the operations of the first embodiment of the input state detection circuit according to the fifth and sixth inventions described above, and therefore the description thereof will be omitted.

【0063】[0063]

【発明の効果】第1発明に係る入力状態検出回路によれ
ば、外部入出力端子の入力端子又は出力端子への設定が
自動的に行える入力状態検出回路を実現することができ
る。
According to the input state detection circuit of the first aspect of the present invention, it is possible to realize an input state detection circuit which can automatically set an external input / output terminal to an input terminal or an output terminal.

【0064】第2発明に係る入力状態検出回路によれ
ば、外部入出力端子の入力端子又は出力端子への設定が
自動的に行える入力状態検出回路を実現することができ
る。
According to the input state detection circuit of the second aspect of the present invention, it is possible to realize an input state detection circuit which can automatically set an external input / output terminal to an input terminal or an output terminal.

【0065】第3発明に係る入力状態検出回路によれ
ば、外部入出力端子の入力端子又は出力端子への設定
が、自動的に又は最小限のプログラム命令で行える入力
状態検出回路を実現することができる。
According to the input state detection circuit of the third aspect of the present invention, it is possible to realize an input state detection circuit which can set an external input / output terminal to an input terminal or an output terminal automatically or with a minimum program command. You can

【0066】第4発明に係る入力状態検出回路によれ
ば、外部入出力端子の入力端子又は出力端子への設定
が、自動的に又は最小限のプログラム命令で行える入力
状態検出回路を安価に実現することができる。
According to the input state detection circuit of the fourth aspect of the present invention, the input state detection circuit which can set the external input / output terminal to the input terminal or the output terminal automatically or with a minimum program command is realized at low cost. can do.

【0067】第5発明に係る入力状態検出回路によれ
ば、外部入力専用端子の入力開放状態に起因する半導体
回路の誤動作を防止する措置が可能な入力状態検出回路
を実現することができる。
According to the input state detection circuit of the fifth aspect of the present invention, it is possible to realize the input state detection circuit capable of preventing the malfunction of the semiconductor circuit due to the input open state of the external input dedicated terminal.

【0068】第6発明に係る入力状態検出回路によれ
ば、外部入力専用端子の入力開放状態に起因する半導体
回路の誤動作を防止する措置が可能な入力状態検出回路
を実現することができる。
According to the input state detection circuit of the sixth aspect of the present invention, it is possible to realize the input state detection circuit capable of preventing the malfunction of the semiconductor circuit caused by the input open state of the external input dedicated terminal.

【0069】第7発明に係る入力状態検出回路によれ
ば、ラッチ回路が外部入力専用端子が入力開放状態であ
ることを示す信号を出力したときは、外部入力専用端子
を接地させるので、外部入力専用端子の入力開放状態に
起因する半導体回路の誤動作を防止することができる。
According to the input state detecting circuit of the seventh invention, when the latch circuit outputs a signal indicating that the external input dedicated terminal is in the input open state, the external input dedicated terminal is grounded. It is possible to prevent the malfunction of the semiconductor circuit due to the input open state of the dedicated terminal.

【図面の簡単な説明】[Brief description of drawings]

【図1】 第1〜3発明に係る入力状態検出回路の1実
施例の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of an embodiment of an input state detection circuit according to the first to third inventions.

【図2】 レジスタの構成例を示す回路図である。FIG. 2 is a circuit diagram showing a configuration example of a register.

【図3】 レジスタの動作を説明する為のタイムチャー
トである。
FIG. 3 is a time chart for explaining the operation of the register.

【図4】 第4発明に係る入力状態検出回路の1実施例
の構成を示す回路図である。
FIG. 4 is a circuit diagram showing a configuration of an embodiment of an input state detection circuit according to a fourth invention.

【図5】 第5,6発明に係る入力状態検出回路の第1
の実施例の構成を示す回路図である。
FIG. 5 shows a first input state detection circuit according to fifth and sixth inventions.
3 is a circuit diagram showing the configuration of the embodiment of FIG.

【図6】 第5,6発明に係る入力状態検出回路の第2
の実施例の構成を示す回路図である。
FIG. 6 is a second input state detection circuit according to the fifth and sixth inventions.
3 is a circuit diagram showing the configuration of the embodiment of FIG.

【図7】 第5,6発明に係る入力状態検出回路の第3
の実施例の構成を示す回路図である。
FIG. 7 is a third input state detection circuit according to the fifth and sixth inventions.
3 is a circuit diagram showing the configuration of the embodiment of FIG.

【図8】 第5,6発明に係る入力状態検出回路の第4
の実施例の構成を示す回路図である。
FIG. 8 is a fourth diagram of the input state detection circuit according to the fifth and sixth inventions.
3 is a circuit diagram showing the configuration of the embodiment of FIG.

【図9】 第5,6発明に係る入力状態検出回路の第5
の実施例の構成を示す回路図である。
FIG. 9 is a fifth example of the input state detection circuit according to the fifth and sixth inventions.
3 is a circuit diagram showing the configuration of the embodiment of FIG.

【図10】 第5,6発明に係る入力状態検出回路の第
6の実施例の構成を示す回路図である。
FIG. 10 is a circuit diagram showing a configuration of a sixth embodiment of an input state detection circuit according to the fifth and sixth inventions.

【図11】 第5,6発明に係る入力状態検出回路の第
7の実施例の構成を示す回路図である。
FIG. 11 is a circuit diagram showing a configuration of a seventh embodiment of an input state detection circuit according to the fifth and sixth inventions.

【図12】 第7発明に係る入力状態検出回路の1実施
例の構成を示す回路図である。
FIG. 12 is a circuit diagram showing a configuration of one embodiment of an input state detection circuit according to the seventh invention.

【符号の説明】[Explanation of symbols]

1 外部入出力端子、2 Pチャネル形FET、3 N
チャネル形FET、4,4a 外部端子、5〜8 イン
バータ、9 Ex.NOR回路(一致回路)、9a 判
別回路、10 レジスタ、10a 設定回路、11 出
力バッファ、11a 入力バッファ、12 データ線、
13 外部入力専用端子、14 ラッチ回路、22 N
チャネル形FET(接地手段)、Rd ,Rd 抵抗、V
cc 電源電位、Vss 接地電位。
1 external input / output terminal, 2 P-channel FET, 3 N
Channel type FET, 4, 4a external terminal, 5-8 inverter, 9 Ex. NOR circuit (matching circuit), 9a discrimination circuit, 10 register, 10a setting circuit, 11 output buffer, 11a input buffer, 12 data line,
13 external input dedicated terminal, 14 latch circuit, 22 N
Channel type FET (grounding means), Rd, Rd resistance, V
cc Power supply potential, Vss ground potential.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 半導体回路が有する外部入出力端子の入
出力状態を検出し、前記外部入出力端子を入力端子又は
出力端子に設定する入力状態検出回路であって、異なる
固定電位を与えるべき端子間に直列接続され、その接続
点に前記外部入出力端子が接続された異なる導電形のト
ランジスタ対と、該トランジスタ対を同時にオン/オフ
する為の信号が与えられるべき外部端子と、前記外部入
出力端子の電位を判別しその判別結果を出力する判別回
路と、該判別回路の判別結果を受けて、前記外部入出力
端子を入力端子又は出力端子に設定する設定回路とを備
えることを特徴とする入力状態検出回路。
1. An input state detection circuit for detecting an input / output state of an external input / output terminal of a semiconductor circuit and setting the external input / output terminal as an input terminal or an output terminal, wherein terminals to which different fixed potentials should be applied A transistor pair of different conductivity type connected in series between the external input / output terminals and an external terminal to which a signal for simultaneously turning on / off the transistor pair should be given; A determination circuit that determines the potential of the output terminal and outputs the determination result; and a setting circuit that receives the determination result of the determination circuit and sets the external input / output terminal as an input terminal or an output terminal. Input state detection circuit.
【請求項2】 判別回路は、トランジスタ対がオンし外
部入出力端子が開放されているときの前記トランジスタ
対の接続点の第1の電位より高い出力反転の為の閾値を
有し、前記外部入出力端子の電位を入力とする第1のイ
ンバータと、第1のインバータの出力を入力とする第2
のインバータと、第1の電位より低い出力反転の為の閾
値を有し、前記外部入出力端子の電位を入力とする第3
のインバータと、第2のインバータ及び第3のインバー
タの各出力を入力とする一致回路とを備えることを特徴
とする請求項1記載の入力状態検出回路。
2. The discrimination circuit has a threshold value for output reversal higher than a first potential at a connection point of the transistor pair when the transistor pair is on and the external input / output terminal is open, A first inverter that receives the potential of the input / output terminal and a second inverter that receives the output of the first inverter
Third inverter having a threshold value for output inversion lower than the first potential and receiving the potential of the external input / output terminal as an input.
2. The input state detection circuit according to claim 1, further comprising: an inverter and a matching circuit that receives the outputs of the second inverter and the third inverter as inputs.
【請求項3】 設定回路は、外部端子が、トランジスタ
対を同時にオン/オフする為の信号を与えられたとき
に、判別回路の出力値を記憶保持し、前記信号が与えら
れないときは、半導体回路に設けられたデータ線からの
値に書き換えが可能なレジスタと、該レジスタが記憶し
ている値により作動の切り替え制御が行われる出力バッ
ファ及び入力バッファとを備え、出力バッファ作動時に
は前記データ線からのデータを前記外部入出力端子へ出
力し、入力バッファ作動時には前記外部入出力端子から
のデータを前記データ線に取り込むべくなしてあること
を特徴とする請求項1又は2記載の入力状態検出回路。
3. The setting circuit stores and holds the output value of the discrimination circuit when the external terminal is given a signal for simultaneously turning on / off the transistor pair, and when the signal is not given, The semiconductor circuit is provided with a register that can be rewritten to a value from a data line, and an output buffer and an input buffer whose operation switching control is performed according to the value stored in the register. 3. The input state according to claim 1, wherein the data from the line is output to the external input / output terminal, and the data from the external input / output terminal is taken into the data line when the input buffer operates. Detection circuit.
【請求項4】 異なる導電形のトランジスタ対を、1対
の抵抗に置き換えたことを特徴とする請求項1〜3の何
れかに記載の入力状態検出回路。
4. The input state detection circuit according to claim 1, wherein the transistor pairs of different conductivity types are replaced with a pair of resistors.
【請求項5】 半導体回路が有する外部入力専用端子の
入力状態を検出する入力状態検出回路であって、異なる
固定電位を与えるべき端子間に直列接続され、その接続
点に前記外部入力専用端子が接続された異なる導電形の
トランジスタ対と、該トランジスタ対を同時にオン/オ
フする為の信号が与えられるべき外部端子と、前記外部
入力専用端子の電位を判別しその判別結果を出力する判
別回路と、該判別回路の出力を前記外部端子に与えられ
た前記トランジスタ対をオンする為の信号によりラッチ
し、前記トランジスタ対をオフする為の信号により出力
するラッチ回路とを備えることを特徴とする入力状態検
出回路。
5. An input state detection circuit for detecting an input state of an external input dedicated terminal included in a semiconductor circuit, wherein the input state dedicated detection circuit is connected in series between terminals to which different fixed potentials should be applied, and the external input dedicated terminal is provided at the connection point. A pair of connected transistors of different conductivity types, an external terminal to which a signal for turning on / off the pair of transistors at the same time should be given, and a judgment circuit for judging the potential of the external input dedicated terminal and outputting the judgment result. A latch circuit for latching an output of the discrimination circuit by a signal for turning on the transistor pair given to the external terminal and outputting the signal by a signal for turning off the transistor pair. State detection circuit.
【請求項6】 判別回路は、トランジスタ対がオンし外
部入力専用端子が開放されているときの前記トランジス
タ対の接続点の第1の電位より高い出力反転の為の閾値
を有し、前記外部入力専用端子の電位を入力とする第1
のインバータと、第1のインバータの出力を入力とする
第2のインバータと、第1の電位より低い出力反転の為
の閾値を有し、前記外部入力専用端子の電位を入力とす
る第3のインバータと、第2のインバータ及び第3のイ
ンバータの各出力を入力とする一致回路とを備えること
を特徴とする請求項5記載の入力状態検出回路。
6. The discriminating circuit has a threshold value for output inversion higher than a first potential at a connection point of the transistor pair when the transistor pair is turned on and the external input-only terminal is opened, 1st with the potential of the input-only terminal as the input
A second inverter that receives the output of the first inverter and a third inverter that has a threshold value for output inversion lower than the first potential and that receives the potential of the external input dedicated terminal as an input. The input state detection circuit according to claim 5, further comprising: an inverter; and a matching circuit that receives the outputs of the second inverter and the third inverter as inputs.
【請求項7】 ラッチ回路が、外部入力専用端子が入力
開放状態であることを示す信号を出力したときは、前記
外部入力専用端子を接地させる接地手段を備えることを
特徴とする請求項5又は6記載の入力状態検出回路。
7. The latch circuit comprises grounding means for grounding the external input dedicated terminal when a signal indicating that the external input dedicated terminal is in an input open state is output. 6. The input state detection circuit according to item 6.
JP18728594A 1994-08-09 1994-08-09 Input state detection circuit Expired - Fee Related JP3632108B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18728594A JP3632108B2 (en) 1994-08-09 1994-08-09 Input state detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18728594A JP3632108B2 (en) 1994-08-09 1994-08-09 Input state detection circuit

Publications (2)

Publication Number Publication Date
JPH0855102A true JPH0855102A (en) 1996-02-27
JP3632108B2 JP3632108B2 (en) 2005-03-23

Family

ID=16203329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18728594A Expired - Fee Related JP3632108B2 (en) 1994-08-09 1994-08-09 Input state detection circuit

Country Status (1)

Country Link
JP (1) JP3632108B2 (en)

Also Published As

Publication number Publication date
JP3632108B2 (en) 2005-03-23

Similar Documents

Publication Publication Date Title
KR910001327B1 (en) Cmos type input-output circuit
US4697107A (en) Four-state I/O control circuit
US6242949B1 (en) Digital voltage translator and its method of operation
US5804996A (en) Low-power non-resetable test mode circuit
JPH10125075A (en) Sense amplifier of semiconductor memory device
US20040130355A1 (en) High-voltage detecting circuit
US6762632B1 (en) Reset driver circuits and methods
JPH08278840A (en) Keeper circuit for three-state bus and integrated circuit containing it
US6211702B1 (en) Input circuit
JPH0855102A (en) Input state detecting circuit
US5781052A (en) Static latches with one-phase control signal
KR0179930B1 (en) Output buffer control circuit
US6198319B1 (en) Power-on circuit built in IC
US5949797A (en) Microcontroller test circuit
KR100316520B1 (en) Microcontroller with Malfunction Protection
JP3896957B2 (en) Level shift circuit
JP2856355B2 (en) Semiconductor integrated circuit
KR100209747B1 (en) Output buffer circuit
US6373287B1 (en) Input/output control circuit and microcomputer
JPH05259879A (en) Input output buffer
KR970007263B1 (en) Micro controller test rom
JP2004013196A (en) Register circuit
JP3116423B2 (en) Inspection circuit for output circuit
US6252424B1 (en) Semiconductor integrated circuit having I2CBUS interface
KR200148587Y1 (en) Multibit testmode control circuit

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040311

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041207

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080107

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100107

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees