JPH021085A - data input device - Google Patents

data input device

Info

Publication number
JPH021085A
JPH021085A JP1029807A JP2980789A JPH021085A JP H021085 A JPH021085 A JP H021085A JP 1029807 A JP1029807 A JP 1029807A JP 2980789 A JP2980789 A JP 2980789A JP H021085 A JPH021085 A JP H021085A
Authority
JP
Japan
Prior art keywords
input
signal
bus
data
switch
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.)
Pending
Application number
JP1029807A
Other languages
Japanese (ja)
Inventor
Toshimasa Kihara
利昌 木原
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1029807A priority Critical patent/JPH021085A/en
Publication of JPH021085A publication Critical patent/JPH021085A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To make an input pin into a multifunctional input pin and to miniaturize and LSI by inputting input signals to be discriminated by a desired threshold voltage to the same input pin and deciding and reading the input signals with two or more types of deciding values. CONSTITUTION:For a signal input external terminal IP, address switches S1-Sn are respectively connected between the output terminals of plural input buffers VTH1-VTHn having different threshold voltages with each other and data bus BUS in the LSI. For these switches S1-Sn, a desired switch out of them is switch- controlled according to the program of a microcomputer. For example, when a data signal to make a line l8 into H is outputted to an address bus ABUS, and next, a read control signal is supplied to a terminal W of a register RG, the data are read to the register RG, and a decoder circuit DEC decodes the read data and makes the line l8 into H. Thus, the switch is turned on, the signal, the level of which is discriminated by the desired threshold voltage, is transferred to the bus BUS and read to a memory, etc.

Description

【発明の詳細な説明】 本発明は、論理回路のデータ入力装置、特にワンチップ
マイクロコンピュータにおけるデータ入力装置に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data input device for a logic circuit, and particularly to a data input device for a one-chip microcomputer.

ワンチップのマイクロコンピュータは、例えばその演算
部(CPU)、メモリ、入出力部等を構成するための回
路素子が公知のLSI技術によって1つの半導体基板上
に構成される。この人力部は、通常、人力信号を、2値
信号とみなして入力するように構成される。この場合の
入力部における論理スレッショールド電圧は、例えばト
ランジスタ・トランジスタ・ロジック回路から出力され
る信号レベルを判別するためのレベルのような、適当な
値の固定レベルとされる。
In a one-chip microcomputer, circuit elements for configuring its arithmetic unit (CPU), memory, input/output unit, etc. are configured on one semiconductor substrate using known LSI technology. This human power section is normally configured to input a human power signal by regarding it as a binary signal. In this case, the logic threshold voltage at the input section is set to a fixed level of an appropriate value, such as a level for determining the signal level output from a transistor-transistor logic circuit.

しかしながら、マイクロコンピュータを種々の用途に使
用できるようにするために、上記入力部は、独々の論理
スレッショールド電圧を取り得るように構成されること
によって種々の信号発生装し・/・″F 発台 置から出力される信号を入力し得るようにされているこ
とが望ましい。また、この場合において、LSIとして
構成されるマイクロコンピュータは、その外部端子が増
加させられないような構成とされている方が望ましい。
However, in order to enable the microcomputer to be used in a variety of applications, the input section can be configured to take on different logic threshold voltages, thereby providing a variety of signal generators. F It is desirable that the signal output from the starting device can be input.In this case, the microcomputer configured as an LSI should be configured so that its external terminals are not increased. It is preferable to

従って、本発明の目的は、1つの入力用外部端子を介し
て供給される入力信号を、2種以上の論理スレッショー
ルド電圧で判別し得るようにした論理回路のデータ人力
装置を提供することにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a data input device for a logic circuit that is capable of discriminating an input signal supplied through a single input external terminal using two or more types of logic threshold voltages. It is in.

以下、実施例により本発明の詳細な説明する。Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図は、本発明の一実施例の回路プ゛aツク図である
FIG. 1 is a circuit block diagram of one embodiment of the present invention.

同図において、D。ないしり、は、マイクロコンピュー
タを構成するLSIの信号人力用外部端子である。
In the same figure, D. Indicators are external terminals for signal input of the LSI constituting the microcomputer.

上記外部端子D0には、インバータ回路IV、。The external terminal D0 includes an inverter circuit IV.

及びIV、、から構成されたインプットバッファB P
 oの入力端子、及びコンツクレータC’MI’、の非
反転入力端子が接続されている。
and IV, an input buffer B P consisting of
The input terminal of the converter C'MI' and the non-inverting input terminal of the converter C'MI' are connected.

上記イングツトバッファB P oの出力端子は、絶縁
ゲート電界効果トランジスタ(MI S FET )か
ら構成されたスイッチ810を介してアドレスバスBU
Sを構成する線t0に接続されている。
The output terminal of the input buffer BP is connected to the address bus BU via a switch 810 composed of an insulated gate field effect transistor (MISFET).
It is connected to the line t0 that constitutes S.

同様に、上記コア /”FレータCMP、の出力端子は
、MISFETから構成されたスイッチ32Gを介して
上記線t0に接続されている。
Similarly, the output terminal of the core/F-lator CMP is connected to the line t0 via a switch 32G made up of a MISFET.

上記外部端子り、には、インバータ回路I V、。The external terminal is connected to an inverter circuit IV.

及びI V、、から構成されたインプットバッファBP
、の入力端子、及びコンツクレータCM P aの非反
転入力端子が接続されている。上記インプットバッフ7
BPa及びコン7ぐレータCMP、の出力端子は、それ
ぞれスイッチSta及び826を介してデータバスBU
S1?M成する線t6に共通接続されている。
and an input buffer BP composed of
, and the non-inverting input terminal of the converter CM Pa are connected. Input buffer 7 above
The output terminals of BPa and converter CMP are connected to data bus BU via switches Sta and 826, respectively.
S1? It is commonly connected to the line t6 formed by M.

上記コン7ぐレータCMPOないしCM P aの反転
入力端子は、外部端子り、に接続されている。
The inverting input terminals of the converters CMPO to CMPa are connected to external terminals.

上記外部端子り、には、またインバータ回路I V、、
及びI V2.から構成されたイングツトバッフアBP
マの入力端子が接続されている。
The above external terminals also have inverter circuits IV,...
and I V2. Ingt buffer BP composed of
The input terminal of the camera is connected.

上記イングツトバッファBP、の出力端子はスイッチ8
1?を介してデータバス13Usを構成する線t、に接
続されている。
The output terminal of the input buffer BP is switch 8.
1? The line t constituting the data bus 13Us is connected to the line t via the line t.

上記イングツトバッファBP、ないLBP?CD出か端
子に接続されたスイッチ8.0ないしSt?は、その制
御端子、すなわちゲートa極が線t、に共通接続されて
いる。
Ingt buffer BP mentioned above, no LBP? Switch 8.0 or St? connected to the CD output terminal. have their control terminals, ie, gate a poles, commonly connected to line t.

同様に、上記コンツクレータC”MPOないしCMP6
の出力端子に接続されたスイッチS、。ないしStaは
線t9に共通接続されている。
Similarly, the above components C”MPO to CMP6
A switch S, connected to the output terminal of. to Sta are commonly connected to line t9.

上記線t8 + t、は、レジスタ几Gの出力信号が供
給されるデコーダ回路DECの出力端子に接続されてい
る。
The line t8+t is connected to the output terminal of the decoder circuit DEC to which the output signal of the register G is supplied.

上記レジスタR,Gは、アドレスバスABUSに接続さ
れる入力端子、データ読み込み制御信号が供給される端
子W及びリセット信号が供給される端子几を持っている
。上記端子W及び几には、図示しない制御回路から上記
信号が供給される。
The registers R and G have an input terminal connected to the address bus ABUS, a terminal W to which a data read control signal is supplied, and a terminal to which a reset signal is supplied. The terminal W and the box are supplied with the signal from a control circuit (not shown).

この実施例においては、特に制限されないが、上記イン
プットバッファBP、ないしBP、は、その論理スレッ
ショールド電圧が、公知のトランジスタ・トランジスタ
・ロジック(T T L )回路から出力される信号レ
ベルを判別するためのレベルと一致させられる。
In this embodiment, although not particularly limited, the input buffer BP or BP has a logic threshold voltage that determines the signal level output from a known transistor-transistor logic (TTL) circuit. Be matched with the level to do.

なお、上ス己インフ0ットパノファl3P0ないしBP
yを構成するための各インバータ回路は、例えば第2図
て示されたように、ゲート・ソース間が接続されたデイ
ン0レノジヨンモードの負荷MISFETQ、及びエン
ハンスメントモードの駆動M I S F ETQ2か
ら構成される。図示のようなインバータ回路の場合、そ
の論理スレッ7ヨールド電圧は、負荷MI8FETQ+
と駆tJhMIsFETQ2(7)1111対的な大き
さを変更することによって変更することができる。
In addition, the upper level of the player's income is 3P0 or BP.
For example, as shown in FIG. 2, each inverter circuit for configuring y is composed of a load MISFET Q in a denomination mode whose gate and source are connected, and a drive MISFET Q2 in an enhancement mode. configured. For an inverter circuit like the one shown, its logic threshold voltage is the load MI8FETQ+
This can be changed by changing the relative size of tJhMIsFETQ2(7)1111.

上記コン7ぐレータCMP、ないLC’MI’6 (7
)すれぞれは、例えば、13図に示されたような構成と
される。
The above converter CMP, no LC'MI'6 (7
) each has a configuration as shown in FIG. 13, for example.

第3図忙おいては、MISFETQ!ないしQ7によっ
て第1段目差動増幅回路が構成され、M I 8 F 
ETQ8ないしQ10によって第2段目差動増幅回路が
構成されている。上肥培1段目差動増幅回路において、
特に制限されないが、MISFETQ、は、りaツクパ
ルスCPによって駆動される。
Figure 3: MISFETQ! A first stage differential amplifier circuit is configured by Q7 and M I 8 F
A second stage differential amplifier circuit is configured by ETQ8 to Q10. In the superfertilization first stage differential amplifier circuit,
Although not particularly limited, MISFETQ is driven by a reverse pulse CP.

その結果として、第3図のコンノぐレータは、クロック
・ぐルスCPが供給されたときに動作状態にされる。
As a result, the connogrator of FIG. 3 is activated when the clock signal CP is supplied.

なお、第1図ないし第3図において、各M I S F
ETは、nチャンネル型とされる。Qlのようなデイグ
レソションモードのMISI”ETは、Q2のようなエ
ンハンスメント先−ドのMTSFETと異なった記号と
されている。
In addition, in FIGS. 1 to 3, each MISF
ET is assumed to be of n-channel type. A degradation mode MISI"ET like Ql has a different symbol from an enhancement mode MTSFET like Q2.

第1図の実施例に従うと、外部端子D0ないしB7に供
給される入力信号は、それぞれ対応するイニ/2ノドバ
ッファB P。ないしBP、によってそれぞれのレベル
が判別され、また上記外部端子DoないしB7のうちの
DoないしB6に供給される入力信号は、それぞれ対応
するコンパレータCMP。ないしCM I’。IICよ
ってそれぞれのレベルが判別される。
According to the embodiment of FIG. 1, the input signals supplied to external terminals D0 to B7 are connected to respective in/2 node buffers BP. The respective levels are determined by BP to BP, and the input signals supplied to Do to B6 of the external terminals Do to B7 are respectively connected to the corresponding comparators CMP. Or CM I'. Each level is determined by IIC.

上記イングツトバッファBP0ないしB1)7 もしく
は上記コンパレータCM P oないしC+VIP。
The input buffers BP0 to B1)7 or the comparators CMPo to C+VIP.

の出力1言号は、スイツ゛チSIGないしS17もしく
はS2oないしS26がマイクロコンピュータのプログ
ラムに従ってスイッチ制御されることに従って内部デー
タバスBUSに転送される。
One output word is transferred to the internal data bus BUS as the switches SIG to S17 or S2o to S26 are controlled according to the microcomputer program.

例えば上記外部端子り。ないしり、に、TTL回路もし
くはそれと同様な出力特性を持つ回路(図示しない)の
出力端子が結合されている場合、先ず、Htaのレベル
をハイレベルにさせるためのデータ信号が図示しないメ
モリもしくはレジスタからアドレスバスABUSに出力
さnる。
For example, the external terminal mentioned above. First, when the output terminal of a TTL circuit or a circuit (not shown) with output characteristics similar to that is connected, the data signal for raising the level of Hta to a high level is first sent to a memory or register (not shown). It is output from address bus ABUS.

次に、レジスタ几Gの端子Wに、読み込み制御信号が供
給される。これによって、上記アト9レスバスにおける
データが上記レジスタR,Gに読み込まれる。デコーダ
回路DECは、上記レジスタ几Gの出力信号をデコード
し、上記線り、をハイレベルにさせる。
Next, a read control signal is supplied to the terminal W of the register G. As a result, the data on the AT9 address bus is read into the registers R and G. The decoder circuit DEC decodes the output signal of the register G and makes the line 1 high.

上記4%l /= 、におけるハイレベル信号によって
スイッチSIOないし817がオン状態にされ、その結
果、インプットバッファBP、ないしBP、の出力fy
号が、データバスB[JSの対応する線t。ないしt7
に供給される。
The switch SIO to 817 is turned on by the high level signal at 4%l/=, and as a result, the output fy of the input buffer BP to BP is turned on.
The number is the corresponding line t of the data bus B [JS. or t7
supplied to

上記データバスBUSに供給された信号は、図示しない
レジスタもしくはメモリに読み込まれる。
The signal supplied to the data bus BUS is read into a register or memory (not shown).

次に、上記レジスタ几Gの端子几にリセット信号が供給
される。これに応じて、デコーダ回路D E C”から
線t、に供給されている信号はロウレベルにもどされ、
上記スイッチS1゜ないし81?はオフ状態にされる。
Next, a reset signal is supplied to the terminal of the register G. In response, the signal being supplied from the decoder circuit DEC to the line t is returned to low level,
The above switch S1° to 81? is turned off.

上記スイッチS10ないし81?がオフ状態にされるこ
とによって、上記イングツトバッファBP、ないしBP
、の出力端子とデータバス+3 U Sとが電気的に分
離される。これによって、上記データバスB[JSを、
図示しない他の回路によって支配させることができるよ
うになる。
The above switch S10 to 81? is turned off, the input buffer BP or BP
, and the data bus +3 US are electrically separated. As a result, the above data bus B [JS,
This allows it to be controlled by another circuit (not shown).

コンパレータCMP、ないしC’MP、の出力信号をデ
ータバスBUSに転送させる場合は、同様に1、tot
oをハイレベルにさせるためのデータ信号をレジスタR
G Kセットさせれば良い。なお、この場合、LSIの
外部に適当なバイアス回路を設け、このバイアス回路か
ら出力される電圧を論理スレッショールド電圧として、
外部端子り、を介してコンパレータCMPoないしCM
 P eの反転入力唱子に供給することになる。
When transferring the output signal of the comparator CMP or C'MP to the data bus BUS, similarly, 1, tot
The data signal to make o high level is sent to register R.
Just let GK set. In this case, an appropriate bias circuit is provided outside the LSI, and the voltage output from this bias circuit is set as the logic threshold voltage.
Comparator CMPo or CM via external terminal
This will be supplied to the inverted input chanter of Pe.

なお、上記コンパレータCMPoないLCMP6の非反
転入力端子には、2値信号だけでなく、例えばサーミス
タを使用した温度検出回路のようなアナログ回路から出
力されるアナログ信号をも供給するようにすることがで
きる。上記第1図の入力装置を備えるLSI化されたマ
イクロコンピュータは、従って比す咬的多くの用途にお
いて防用され得る。
Note that the non-inverting input terminal of LCMP6 without the comparator CMPo may be supplied with not only a binary signal but also an analog signal output from an analog circuit such as a temperature detection circuit using a thermistor. can. Therefore, an LSI microcomputer equipped with the input device shown in FIG. 1 can be used in a wide variety of applications.

第1図の人力装置は、上記のように、少ない外部端子し
か必要としない。
The human powered device of FIG. 1, as described above, requires fewer external terminals.

第4図は、本発明の他の実施例の構成図である。FIG. 4 is a block diagram of another embodiment of the present invention.

同図において信号入力用外部端子IPには互いにスレッ
ショールド電圧の異なる′OL数個のインプットバッフ
ァVTIII〜V7on  の入力端子が共通接続配置
されており、また上記各イングツトバッファVtul〜
VTIInの出力端子とI、SI内部のデータバスBU
Sとの間にそれぞれアドレススイッチS。
In the same figure, the input terminals of several input buffers VTIII to V7on having different threshold voltages are commonly connected to the external terminal IP for signal input, and the input terminals of the input buffers Vtul to V7on are commonly connected to each other.
VTIIn output terminal and I, SI internal data bus BU
and an address switch S between each.

〜S0が接続されている。この実施例では、スイツチS
宜ないしSBのうち、所望のものが前記実施例と同様な
方法によってスイッチ制御される。
~S0 is connected. In this example, the switch S
A desired one of the desired SBs is switch-controlled by the same method as in the previous embodiment.

その結果、所望のスレッショールド電圧によってレベル
判別された信号がデータバスBUSに転送されることに
なる。
As a result, a signal whose level is determined based on a desired threshold voltage is transferred to the data bus BUS.

第5図は本発明の他の実施例で、前記第4図のインプッ
トバッファVtn1〜VTIImの代りにコンパレータ
CMP、〜CMPfiを用いたものである。
FIG. 5 shows another embodiment of the present invention, in which comparators CMP to CMPfi are used in place of input buffers Vtn1 to VTIIm in FIG. 4.

上記第4図及び第5図の実施例によると、LSIの外部
には、スレッショールド電圧を形成するための回路を設
けなくても良い。
According to the embodiments shown in FIGS. 4 and 5, there is no need to provide a circuit for forming a threshold voltage outside the LSI.

以上説明したように、本発明によれば、所望のスレッシ
ョールド電圧によって判別すべき入力信号を同一のL 
S T入力ピン(外部端子]に入力し、2種以上の判定
値により人力信号を判定読込みができるようにしたので
、LSIの入力ピンの多機能化ができ、かつLSIの小
型化ができる。
As explained above, according to the present invention, input signals to be discriminated based on a desired threshold voltage are
Since input to the ST input pin (external terminal) allows human input signals to be judged and read using two or more types of judgment values, the input pins of the LSI can be made multi-functional, and the LSI can be made smaller.

【図面の簡単な説明】[Brief explanation of the drawing]

?A′rJ1図は、実娩例の論理回路のデータ入力装置
の一例を示す図、第2図tユ、インバータ回路の回路図
、第3図は、コンパレータの回路図、第4図は、本発明
の他の実施例の構成を示す図、第5図は、本発明の更に
他の実施例の構成を示す図である。 DO−D、 、  I 1)・・・入力ビン、BPo 
−BF2 。 V T II l〜V〒Ila・・・インプットインパ
ーク、81〜SI、・・・スイッチ、BUS・・・LS
I内部データバス、CMPo 〜Cへ4pH・・・コン
パレータ。 ぢ 4  凹 高 5 巳
? Figure A'rJ1 is a diagram showing an example of a data input device for a logic circuit in an actual example, Figure 2 is a circuit diagram of an inverter circuit, Figure 3 is a circuit diagram of a comparator, and Figure 4 is a diagram of this book. FIG. 5 is a diagram showing the structure of still another embodiment of the present invention. DO-D, , I 1)...Input bin, BPo
-BF2. V T II l~V〒Ila...Input in park, 81~SI,...Switch, BUS...LS
I internal data bus, CMPo to 4pH... comparator.ぢ 4 Concave height 5 Snake

Claims (1)

【特許請求の範囲】 1、マイクロコンピュータにおけるデータ入力装置であ
って、外部端子を介して供給される入力信号のレベルを
判別するコンパレータ回路を備えてなり、上記コンパレ
ータ回路は、パルス信号によってその動作状態が制御さ
れるようにされてなることを特徴とするデータ入力装置
。 2、上記コンパレータ回路は、入力信号レベルの判別を
行なう入力MISFETと、上記入力MISFETと直
列接続され上記パルス信号によってスイッチ動作される
スイッチMISFETとを備えてなることを特徴とする
特許請求の範囲第1項記載のデータ入力装置。
[Claims] 1. A data input device for a microcomputer, comprising a comparator circuit that determines the level of an input signal supplied via an external terminal, and the comparator circuit operates according to a pulse signal. A data input device characterized in that its state is controlled. 2. The comparator circuit includes an input MISFET that discriminates the input signal level, and a switch MISFET connected in series with the input MISFET and switched by the pulse signal. The data input device according to item 1.
JP1029807A 1989-02-10 1989-02-10 data input device Pending JPH021085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1029807A JPH021085A (en) 1989-02-10 1989-02-10 data input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1029807A JPH021085A (en) 1989-02-10 1989-02-10 data input device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP56023025A Division JPS57138220A (en) 1981-02-20 1981-02-20 Data input equipment for logical circuit

Publications (1)

Publication Number Publication Date
JPH021085A true JPH021085A (en) 1990-01-05

Family

ID=12286294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1029807A Pending JPH021085A (en) 1989-02-10 1989-02-10 data input device

Country Status (1)

Country Link
JP (1) JPH021085A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54115055A (en) * 1978-02-28 1979-09-07 Mitsubishi Electric Corp Semiconductor integrated unit
JPS5570129A (en) * 1978-11-20 1980-05-27 Nippon Telegr & Teleph Corp <Ntt> Level detector circuit
JPS57138220A (en) * 1981-02-20 1982-08-26 Hitachi Ltd Data input equipment for logical circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54115055A (en) * 1978-02-28 1979-09-07 Mitsubishi Electric Corp Semiconductor integrated unit
JPS5570129A (en) * 1978-11-20 1980-05-27 Nippon Telegr & Teleph Corp <Ntt> Level detector circuit
JPS57138220A (en) * 1981-02-20 1982-08-26 Hitachi Ltd Data input equipment for logical circuit

Similar Documents

Publication Publication Date Title
JP2005514595A5 (en)
US5283565A (en) Multimode input circuit receiving two signals having amplitude variations different from each other
US7449953B2 (en) Input buffer design using common-mode feedback (CMFB)
KR100518604B1 (en) Data inversion circuit of semiconductor device for performing inversion operation based on the interval for reading data and data inversion method using the same
JP2650124B2 (en) Semiconductor integrated circuit
JP2719052B2 (en) Microcomputer
EP0842437A1 (en) Vcc level detection circuit
JP4386479B2 (en) Display device driving circuit, display unit, and portable display device
JPH0257377B2 (en)
JPH021085A (en) data input device
CN107799141A (en) Memory structure
US6731137B1 (en) Programmable, staged, bus hold and weak pull-up for bi-directional I/O
EP1265362B1 (en) Tri-state multiplexer
JPH0432092A (en) Semiconductor integrated memory circuit
JPH08255487A (en) Semiconductor memory device
CN100474206C (en) Semiconductor device with a plurality of semiconductor chips
US3970865A (en) Pseudo-complementary decode driver
JP2601223B2 (en) Simultaneous bidirectional input/output buffer
US5742187A (en) Decoder with reduced architecture
US20030221031A1 (en) Bus control device altering drive capability according to condition
EP1094396A2 (en) Bus system suitable for increasing transmission speed
JP2810584B2 (en) Serial data transfer circuit
JPH025168A (en) Microcomputer
JPS59168723A (en) Input circuit
JP2002108842A (en) Mode switching circuit