JPS62235670A - Inputting and outputting circuit - Google Patents

Inputting and outputting circuit

Info

Publication number
JPS62235670A
JPS62235670A JP61078620A JP7862086A JPS62235670A JP S62235670 A JPS62235670 A JP S62235670A JP 61078620 A JP61078620 A JP 61078620A JP 7862086 A JP7862086 A JP 7862086A JP S62235670 A JPS62235670 A JP S62235670A
Authority
JP
Japan
Prior art keywords
output
input
state
signal
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP61078620A
Other languages
Japanese (ja)
Other versions
JPH0543142B2 (en
Inventor
Manabu Kimoto
木本 學
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61078620A priority Critical patent/JPS62235670A/en
Publication of JPS62235670A publication Critical patent/JPS62235670A/en
Publication of JPH0543142B2 publication Critical patent/JPH0543142B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To decide a state of a signal input/output terminal by an electronic device itself, by inputting a data to be outputted and a data which appears actually in the signal input/output terminal, into the electronic device through the first and the second selecting circuit, respectively. CONSTITUTION:In case of a data output control to a signal input/output terminal 40, AND of a register address number ADR1 which is allocated to a mode register 10, and a write control signal WR is taken by an AND circuit 11, and an output signal of the AND circuit 11 is inputted as a write clock to the mode register 10. Whether a state of the signal input/output terminal 40 is an output state or an input state can be determined by the mode register 10. At the time of input, which data is to be inputted into a microcomputer is selected by a selecting gate 53 by using the respective address numbers ADR2 and ADR3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は 入出力回路に関し、特にマイクロコンピュー
タ等のI10ポートに使用される入出力回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an input/output circuit, and particularly to an input/output circuit used in an I10 port of a microcomputer or the like.

〔従来の技術〕[Conventional technology]

従来、マイクロコンビエータ等が有している周辺制御用
I10ポートの入出力回路は、第2図に示す構成をとる
のが通常であった。
Conventionally, the input/output circuit of a peripheral control I10 port included in a micro combinator or the like has usually had the configuration shown in FIG.

第2図において、20は出力データラッチ、10は信号
入出力端子40の状態を入力状態(高インピーダンス)
とするか、又は出力状態とするかを指定するレジスタで
ある。
In Fig. 2, 20 is the output data latch, and 10 is the input state of the signal input/output terminal 40 (high impedance).
This is a register that specifies whether to set the output state or output state.

第2図に示す入出力回路では、信号入出力端子40の状
態が入力状態のときのみ信号入出力端子40に与えられ
た信号を、この入出力回路を介して装置内へ伝達するも
のであった。
In the input/output circuit shown in FIG. 2, the signal applied to the signal input/output terminal 40 is transmitted into the device via this input/output circuit only when the signal input/output terminal 40 is in the input state. Ta.

近年、マイクロコンピュータが応用される分野は急速に
広がりつつある。これは、マイクロコンピュータ用LS
Iの低価格化もさることながら、マイクロコンピュータ
を用いたシステムの開発環境の整備に依るところが大き
い。
In recent years, the fields in which microcomputers are applied are rapidly expanding. This is LS for microcomputer.
In addition to lowering the price of I, much depends on the development environment for systems using microcomputers.

マイクロコンビエータ応用システムの開発において重要
な事は、ソフトウェアとハードウェアが複雑にからみ合
った状態でのシステムデパックをいかに効率よく行うか
Kある。特K、ハードウェアとソフトウェアの接点であ
るマイクロコンピュータの工10ポートの状態がソフト
ウェアで判定できればシステムデパックにおける効用は
大きい。
What is important in the development of a micro combinatorial application system is how efficiently the system can be depacked in a state where software and hardware are intricately intertwined. Special K: If the status of the microcomputer's 10 ports, which are the interface between hardware and software, can be determined by software, it will be very useful in system depacking.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の入出力回路は、信号入出力端子の状態が
入力状態に設定されている時にしか、信号入出力端子の
状態をマイクロコンピエタに伝達することが出来ない。
The conventional input/output circuit described above can transmit the state of the signal input/output terminal to the microcomputer only when the state of the signal input/output terminal is set to the input state.

言替えれば、信号入出力端子が出力状態の時には、信号
入出力端子が期待される状態にあるかをマイクロコンビ
エータに伝達することが出来ないという問題点がある。
In other words, when the signal input/output terminal is in the output state, there is a problem in that it is not possible to transmit to the micro combinator whether the signal input/output terminal is in the expected state.

本発明の目的は、内部の電子装置が出力しようとした論
理状態が信号入出力端子に正常に与えられていることを
電子装置が検出することが出来る入出力回路を提供する
ことKある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an input/output circuit that allows an electronic device to detect that the logic state that the internal electronic device attempts to output is normally applied to a signal input/output terminal.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明の入出力回路は、電子装置内にあって該電子装置
内部からの信号を一時保持するための出力データラッチ
と、信号入出力端子の状態を入力状態とするか前記出力
データラッチの出力信号の出力状態とするかを指定する
第1の選択回路と、前記信号入出力端子上の信号か又は
前記出力データラッチの出力信号かを前記第1の選択回
路とは独立に選択して前記電子装置内へ入力する第2の
選択回路とを含んで構成される。
The input/output circuit of the present invention includes an output data latch that is located in an electronic device and temporarily holds a signal from inside the electronic device, and a state of a signal input/output terminal as an input state or an output of the output data latch. a first selection circuit that specifies whether to output the signal; and a first selection circuit that selects either the signal on the signal input/output terminal or the output signal of the output data latch independently of the first selection circuit; and a second selection circuit for input into the electronic device.

〔実施例〕〔Example〕

次K、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示す論理回路図である。な
お、本実施例の入出力回路はデータバス及び制御信号線
を介して図示しない電子装置としてのマイクロコンピュ
ータに接続されている。
FIG. 1 is a logic circuit diagram showing one embodiment of the present invention. The input/output circuit of this embodiment is connected to a microcomputer as an electronic device (not shown) via a data bus and a control signal line.

第1図において、10はこの入出力回路が出力状態であ
るか入力状態であるかを指示するモードレジスタ、20
は出力すべきデータを一時保持する出力データラッチ、
30は3ステート出力バツフア、40は信号入出力端子
である。
In FIG. 1, 10 is a mode register that indicates whether this input/output circuit is in an output state or an input state;
is an output data latch that temporarily holds the data to be output,
30 is a 3-state output buffer, and 40 is a signal input/output terminal.

以下に、第1図に示す実施例の動作について説明する。The operation of the embodiment shown in FIG. 1 will be explained below.

まず、信号入出力端子40に対するデータ出力制御にお
いては、モードレジスタIOK割当てられたレジスタ番
地信号ADH1と書込制御信号WRとの論理積をAND
回路11でとり、AND回路11からの出力信号を書込
クロックとしてモードレジスタ10に入力するととKよ
り、モードレジスタIOK出力あるいは入力状態の指定
を行う。
First, in data output control for the signal input/output terminal 40, the logical product of the register address signal ADH1 assigned to the mode register IOK and the write control signal WR is ANDed.
When the output signal from the AND circuit 11 is input to the mode register 10 as a write clock, the mode register IOK output or input state is designated by K.

これは、一般のマイクロコンビエータが有するI10操
作命令もしくはメモリ操作命令の手順と同様である。本
実施例では、モードレジスタ10が論理値「1」のとき
3ステート出力バツフア(9)は高インピユーダンス(
即ち、信号入出力端子40が入力状態)となり、論理値
rOJのとき出力データラッチ20に保持されているデ
ータを信号入出力端子40へ出力する。
This is similar to the procedure of the I10 operation instruction or memory operation instruction that general micro combinators have. In this embodiment, when the mode register 10 has a logical value of "1", the 3-state output buffer (9) has a high impedance (
That is, the signal input/output terminal 40 is in an input state), and the data held in the output data latch 20 is output to the signal input/output terminal 40 when the logic value rOJ is reached.

出力データラッチ20へのデータ書を込みは、モードレ
ジスタlOへのデータの書込みと同様K。
Writing data to the output data latch 20 is similar to writing data to the mode register IO.

出力データラッチ20に割当てられた番地信号ADH,
と書込制御信号WRとの論理積をAND回路21でとり
、AND回路21からの出力を書込クロックとしてデー
タバス上のデータを出力データラッチ20に書込む。
Address signal ADH assigned to output data latch 20,
AND the write control signal WR and the AND circuit 21, and the data on the data bus is written into the output data latch 20 using the output from the AND circuit 21 as a write clock.

この様に、信号入出力端子40の状態はモードレジスタ
10によって出力状態か入力状態かを決定することが出
来る。
In this manner, the mode register 10 can determine whether the state of the signal input/output terminal 40 is an output state or an input state.

次に、データ入力の動作について説明する。Next, the data input operation will be explained.

出力データラッチ20に保持されているデータを再びデ
ータバスを介してマイクロコンビ二一タに入力するには
、マイクロコンピュータが有する入力命令を用いて出力
データラッチ20に割当てられた番地信号ADH,と読
込制御信号RDとを発生させる。このとき、OR回路5
2とAND回路51によシ入力すべきデータをデータバ
ス上に出力する3ステート入カバツフア50を出力状態
に制御する。同時に、選択グー)53により3ステ一ト
人カバッファ50に入力するデータとして出力データバ
ッファ20の出力を選択する。
In order to input the data held in the output data latch 20 to the microcomputer via the data bus again, address signals ADH and ADH assigned to the output data latch 20 are used using an input command possessed by the microcomputer. A read control signal RD is generated. At this time, OR circuit 5
2 and the AND circuit 51 to control the 3-state input buffer 50, which outputs the data to be input onto the data bus, to the output state. At the same time, the output of the output data buffer 20 is selected as the data to be input to the 3-stage buffer 50 using the selector 53.

信号入出力端子40上のデータをマイクロコンピュータ
に入力するには、信号入出力端子40に割当てられた番
地信号AD H,と読込制御信号RDとを発生させるこ
とにより実行される。このとき選択ゲート53は3ステ
ート入カバツ7ア50へ与えるデータとして信号入出力
端子40上のデータを選択する。
Inputting data on the signal input/output terminal 40 to the microcomputer is executed by generating address signals ADH and read control signal RD assigned to the signal input/output terminal 40. At this time, the selection gate 53 selects the data on the signal input/output terminal 40 as the data to be applied to the 3-state input cover 7a 50.

以上説明したように、信号入出力端子40の入力及び出
力状態はモードレジスタIOKよシ決定し、入力時にど
このデータをマイクロコンビエータ内に入力するかはそ
れぞれの番地信号ADR,及びADRsを用いて、第2
の選択回路で独立に選択することができる。
As explained above, the input and output states of the signal input/output terminal 40 are determined by the mode register IOK, and which data is input into the microcombiator at the time of input is determined using the respective address signals ADR and ADRs. Well, second
can be selected independently by the selection circuit.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の入出力回路は、18号入出
力端子の状態を人力状態とするか出力状態とするかを指
定する第1の選択回路と、信号入出力端子上のデータか
出力データラッチの出力データかを選択して入力する第
2の選択回路とを設けることによシ、出力すべきデータ
と実際に信号入出力端子に現われているデータを共に電
子装置内に入力することが可能となるので、電子装置自
身が信号入出力端子の状態が正常であるか否かを判定で
きるという効果がある。
As explained above, the input/output circuit of the present invention includes a first selection circuit that specifies whether the state of the No. 18 input/output terminal is to be a manual state or an output state, and a first selection circuit that specifies whether the state of the input/output terminal No. By providing a second selection circuit that selects and inputs the output data of the data latch, both the data to be output and the data actually appearing at the signal input/output terminal can be input into the electronic device. This has the effect that the electronic device itself can determine whether the state of the signal input/output terminal is normal or not.

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

tJfJ1図は本発明の一実施例の論理回路図、第2図
は従来の入出力回路の一例の論理回路図である。 10・・・・・・モードレジスタ、11・・・・・・A
ND回路、20・・・・・・出力データラッチ、21・
・・・・・AND回路、30・・・・・・3ステート出
力バツフア、40・・・・・・信号入出力端子、50・
・・・・・3ステ一ト人カバッファ、51・・・・・・
AND回路、52・・・・・・OR回路、53・・・・
・・選択ゲート。 代理人 弁理士  内 原   晋j’η゛信゛1く 
  ・
tJfJ1 is a logic circuit diagram of an embodiment of the present invention, and FIG. 2 is a logic circuit diagram of an example of a conventional input/output circuit. 10...Mode register, 11...A
ND circuit, 20... Output data latch, 21.
...AND circuit, 30...3-state output buffer, 40...signal input/output terminal, 50...
...3rd stage Kabuffa, 51...
AND circuit, 52...OR circuit, 53...
...Selection gate. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】[Claims] 電子装置内にあって該電子装置内部からの信号を一時保
持するための出力データラッチと、信号入出力端子の状
態を入力状態とするか前記出力データラッチの出力信号
の出力状態とするかを指定する第1の選択回路と、前記
信号入出力端子上の信号か又は前記出力データラッチの
出力信号かを前記第1の選択回路とは独立に選択して前
記電子装置内へ入力する第2の選択回路とを含むことを
特徴とする入出力回路。
An output data latch that is located in an electronic device and temporarily holds a signal from inside the electronic device, and a signal input/output terminal that determines whether the state is an input state or an output state of an output signal of the output data latch. a first selection circuit to specify, and a second selection circuit to select either a signal on the signal input/output terminal or an output signal of the output data latch independently of the first selection circuit and input it into the electronic device. An input/output circuit comprising: a selection circuit;
JP61078620A 1986-04-04 1986-04-04 Inputting and outputting circuit Granted JPS62235670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61078620A JPS62235670A (en) 1986-04-04 1986-04-04 Inputting and outputting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61078620A JPS62235670A (en) 1986-04-04 1986-04-04 Inputting and outputting circuit

Publications (2)

Publication Number Publication Date
JPS62235670A true JPS62235670A (en) 1987-10-15
JPH0543142B2 JPH0543142B2 (en) 1993-06-30

Family

ID=13666930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61078620A Granted JPS62235670A (en) 1986-04-04 1986-04-04 Inputting and outputting circuit

Country Status (1)

Country Link
JP (1) JPS62235670A (en)

Also Published As

Publication number Publication date
JPH0543142B2 (en) 1993-06-30

Similar Documents

Publication Publication Date Title
US5832251A (en) Emulation device
JPS61156358A (en) Bus converter
JPH0342732A (en) Semiconductor integrated circuit
US5606715A (en) Flexible reset configuration of a data processing system and method therefor
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
US5692161A (en) Method and apparatus for operating a microcomputer in an emulation mode to access an external peripheral
JPS62235670A (en) Inputting and outputting circuit
JPH03668B2 (en)
JPH11259195A (en) Bus noise prevention circuit
JP2710483B2 (en) Semiconductor integrated circuit
JP2919357B2 (en) CPU interface circuit
JPH01239485A (en) Large-scale integrated circuit
JP3006487B2 (en) Emulation device
JP2000029508A (en) Programmable controller
JPH0259495B2 (en)
JPH04112251A (en) Microcomputer
JPS5936838A (en) Controlling method of interface
JP2000020340A (en) Microcomputer and its testing method
JPH06195474A (en) Program counter and program counter value change controller
JPH033047A (en) Memory with arithmetic function
JPH02183332A (en) Programmed control system
JPH0370055A (en) Semiconductor integrated circuit device
JPH04242453A (en) Switch controller for storage device
JPH03240854A (en) Microcomputer
JPH10134023A (en) Microcontroller