JPH06334702A - Line changeover circuit - Google Patents

Line changeover circuit

Info

Publication number
JPH06334702A
JPH06334702A JP5122746A JP12274693A JPH06334702A JP H06334702 A JPH06334702 A JP H06334702A JP 5122746 A JP5122746 A JP 5122746A JP 12274693 A JP12274693 A JP 12274693A JP H06334702 A JPH06334702 A JP H06334702A
Authority
JP
Japan
Prior art keywords
data communication
communication line
selection
line
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP5122746A
Other languages
Japanese (ja)
Inventor
Hideyuki Kudo
秀行 工藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5122746A priority Critical patent/JPH06334702A/en
Publication of JPH06334702A publication Critical patent/JPH06334702A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To prevent collision of data by providing a protection circuit in which plural data communication lines are not simultaneously selected for the system. CONSTITUTION:The line changeover circuit is provided with a data communication line selection instruction section 1 instructing selection of a data communication line 5 to which an external communication line is connected, a selection command detection section 2 discriminating whether or not the data communication line selection command section 1 makes an instruction of selection of plural data communication lines 5 to provide an output of a detection signal representing the result, a selection instruction detecting section 2 judging whether or not the data communication line selection instruction section 1 selects and instructs plural data communication line 5, and outputting the detection signal showing the result a protection section 3 providing an output of a selection signal 7 to select the data communication line 5 when detection signal representing the command of the selection of only one data communication line 5 is received and not providing an output of the selection signal 7 when the detection signal representing the command of the selection of plural data communication lines simultaneously, and a selection section 4 connecting the data communication line 5 selected by the selection signal 7 to the external communication line 6.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は回線切替回路に関し、
特に、複数のデータ通信回線のうちある期間中において
は1つのデータ通信回線のみを外部通信回線に接続させ
て通信を行う回線切替回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line switching circuit,
In particular, the present invention relates to a line switching circuit that performs communication by connecting only one data communication line to an external communication line during a certain period of a plurality of data communication lines.

【0002】[0002]

【従来の技術】複数のワークステーションやパソコン等
の端末機器(DTE)を収容し、各端末装置からランダ
ムに発生される通信データを整理して高速デジタル回線
のような外部通信回線に送出する多重化装置のような通
信制御装置では、ある期間中は複数の端末装置が接続さ
れるデータ通信回線のうち1つのデータ通信回線のみを
選択して外部通信回線に接続するため、適当な時間ごと
に接続するデータ通信回線を順次切り替えて通信を行っ
ている。
2. Description of the Related Art Multiplexes for accommodating a plurality of terminal devices (DTEs) such as workstations and personal computers, rearranging communication data randomly generated from each terminal device and sending it to an external communication line such as a high speed digital line. In a communication control device such as a communication device, only one data communication line is selected from the data communication lines to which a plurality of terminal devices are connected and connected to an external communication line during a certain period. Communication is performed by sequentially switching the data communication lines to be connected.

【0003】図6に、従来の回線切替回路のブロック図
を示す。回線切替回路61は主としてMPU(マイクロ
プロセッサユニット)62とデータ選択レジスタ63と
通信コントローラ64と選択D−フリップフロップ(D
−FF)D1,D2,……Dnと、データ通信回線が接
続されるインタフェースコネクタI1,I2,……In
とから構成される。
FIG. 6 shows a block diagram of a conventional line switching circuit. The line switching circuit 61 mainly includes an MPU (microprocessor unit) 62, a data selection register 63, a communication controller 64, and a selection D-flip-flop (D).
-FF) D1, D2, ... Dn and interface connectors I1, I2 ,.
Composed of and.

【0004】MPU62は、CPUとRAM,ROM,
タイマー,I/Oコントローラ等を含んだいわゆる1チ
ップ型のマイクロコンピュータであり、回線切替機能を
実行する主体である。データ選択レジスタ63は、複数
のデータ通信回線のうち1つのデータ通信回線を選択す
るための選択信号を出力するものである。
The MPU 62 includes a CPU, a RAM, a ROM,
This is a so-called 1-chip type microcomputer including a timer, an I / O controller, etc., and is the main body that executes the line switching function. The data selection register 63 outputs a selection signal for selecting one of the plurality of data communication lines.

【0005】選択D−フリップフロップ(D−FF)D
1,D2,……Dnは、各データ通信回線に接続され、
前記選択信号が入力された場合にのみ、対応するデータ
通信回線のデータを出力させるデータ通信のゲートの働
きをするものである。前記選択信号は選択D−FFのイ
ネーブル端子に入力され選択D−FFのイネーブル信号
として使用される。
Select D-Flip Flop (D-FF) D
1, D2, ... Dn are connected to each data communication line,
Only when the selection signal is input, a data communication gate that outputs data on the corresponding data communication line is operated. The selection signal is input to the enable terminal of the selection D-FF and used as the enable signal of the selection D-FF.

【0006】通信コントローラ64は、選択D−FFを
通過してきたデータを外部通信回線65に送出できるよ
うに、制御ビットやパリティビットを付与してフレーム
構成に組立てる処理等を行うものである。また、図6に
示すように、ワークステーションやパソコンなどの端末
装置DTE1,2,……nがデータ通信回線L1,L
2,……Lnを介してそれぞれインタフェースコネクタ
I1,I2,……Inに接続されている。
The communication controller 64 adds a control bit and a parity bit so that the data that has passed through the selected D-FF can be sent to the external communication line 65 and assembles it into a frame structure. Further, as shown in FIG. 6, the terminal devices DTE1, 2, ... N such as workstations and personal computers are connected to the data communication lines L1, L.
2, ... Ln are connected to the interface connectors I1, I2, ... In respectively.

【0007】この例において、データ通信回線の選択は
次のように行われる。まずMPU62からデータ選択レ
ジスタ63に対して選択D−FF D1,D2,……D
nのうちどれを選択すべきかを示すデータが書き込まれ
る。たとえば、選択D−FF D1を選択すべきことを
示すデータが書き込まれると、データ選択レジスタ63
は選択D−FF D1に対してのみ選択信号を送出す
る。
In this example, the data communication line is selected as follows. First, the MPU 62 selects the D-FF D1, D2, ... D for the data selection register 63.
Data indicating which of n should be selected is written. For example, when data indicating that the selection D-FF D1 should be selected is written, the data selection register 63
Sends a selection signal only to the selection D-FF D1.

【0008】選択信号が入力された選択D−FF D1
はイネーブル状態となり、データ通信回線L1上のデー
タを通過させ通信コントローラ64へ出力する。一方、
選択信号が入力されない他の選択D−FFはディセーブ
ル状態となっており、データを通過させない。
Selection D-FF D1 to which selection signal is input
Becomes an enabled state, passes the data on the data communication line L1, and outputs the data to the communication controller 64. on the other hand,
The other selection D-FF to which the selection signal is not input is in the disabled state and does not pass data.

【0009】このように、従来は、複数のデータ通信回
線上の選択D−FFのうち1つだけをイネーブル状態と
することによって、複数のデータ通信回線のうち1つの
データ通信回線を選択して外部通信回線に接続させて通
信を行っていた。
As described above, conventionally, one of the plurality of data communication lines is selected by enabling only one of the selected D-FFs on the plurality of data communication lines. I was communicating by connecting to an external communication line.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上述の
回線切替回路においては、ソフトウェアの不良など何ら
かの誤動作によって同時に複数のデータ通信回線が選択
された場合には、その選択された複数のデータ通信回線
上のデータが選択D−FFの出力部分で衝突し回路の破
壊を生じることがある。
However, in the above-mentioned line switching circuit, when a plurality of data communication lines are simultaneously selected due to some malfunction such as software defect, the selected plurality of data communication lines are connected. Data may collide with the output part of the selected D-FF and cause circuit destruction.

【0011】この発明は、以上のような事情を考慮して
なされたものであり、同時に複数のデータ通信回線が選
択されることがないようにする保護回路を設けることに
よって、データの衝突を防止し、回路の破壊を未然に防
ぐことのできる回線切替回路を提供することを目的とす
る。
The present invention has been made in consideration of the above circumstances, and prevents a data collision by providing a protection circuit for preventing a plurality of data communication lines from being selected at the same time. However, it is an object of the present invention to provide a line switching circuit that can prevent circuit destruction.

【0012】[0012]

【課題を解決するための手段】図1にこの発明の基本構
成のブロック図を示す。同図において、この発明は、複
数のデータ通信回線5と外部通信回線6を接続する場合
に、ただ1つの任意のデータ通信回線5を順次選択して
外部通信回線6に接続する回線切替回路において、外部
通信回線6に接続すべきデータ通信回線5を選択指示す
るデータ通信回線選択指示部1と、データ通信回線選択
指示部1が複数のデータ通信回線5の選択指示をしてい
ないかどうかを判断し、その結果を示す検出信号を出力
する選択指示検出部2と、データ通信回線選択指示部1
がただ1つのデータ通信回線5の選択指示をしているこ
とを示す選択指示検出部2からの検出信号が入力された
場合にはそのデータ通信回線5を選択するための選択信
号7を出力し、データ通信回線選択指示部1が同時に複
数のデータ通信回線5の選択指示をしていることを示す
選択指示検出部2からの検出信号が入力された場合には
選択信号7を出力しない保護部3と、保護部3から出力
される選択信号7によって選択された1つのデータ通信
回線5を外部通信回線6に接続する選択部4とを備えた
回線切替回路を提供するものである。
FIG. 1 shows a block diagram of the basic construction of the present invention. In the figure, the present invention relates to a circuit switching circuit for connecting a plurality of data communication lines 5 and an external communication line 6 to one external data communication line 6 by sequentially selecting only one arbitrary data communication line 5. , A data communication line selection instructing unit 1 for selecting and instructing the data communication line 5 to be connected to the external communication line 6, and whether or not the data communication line selection instructing unit 1 has instructed selection of a plurality of data communication lines 5. A selection instruction detection unit 2 that makes a determination and outputs a detection signal indicating the result, and a data communication line selection instruction unit 1
When the detection signal from the selection instruction detecting unit 2 indicating that the selection instruction of only one data communication line 5 is input, the selection signal 7 for selecting the data communication line 5 is output. A protection unit that does not output the selection signal 7 when a detection signal from the selection instruction detection unit 2 indicating that the data communication line selection instruction unit 1 is instructing selection of a plurality of data communication lines 5 at the same time is input. The present invention provides a line switching circuit including: 3 and a selection unit 4 for connecting one data communication line 5 selected by a selection signal 7 output from the protection unit 3 to an external communication line 6.

【0013】また、保護部3は、データ通信回線選択指
示部1が同時に複数のデータ通信回線の選択指示をして
いることを示す選択指示検出部2からの検出信号が入力
された場合には、データ通信回線に付与された所定の優
先順位に従って、選択指示されたデータ通信回線のうち
優先順位が最も高いデータ通信回線を選択する選択信号
7のみを出力するように構成してもよい。
Further, the protection unit 3 receives the detection signal from the selection instruction detecting unit 2 indicating that the data communication line selection instructing unit 1 is simultaneously instructing the selection of a plurality of data communication lines. Alternatively, only the selection signal 7 for selecting the data communication line having the highest priority among the data communication lines instructed to be selected may be output in accordance with the predetermined priority given to the data communication line.

【0014】[0014]

【作用】データ通信回線選択指示部1が外部通信回線6
に接続すべきデータ通信回線5の選択指示を選択指示検
出部2へ出力する。選択指示検出部2は、入力された前
記データ通信回線の選択指示が複数のデータ通信回線5
を選択指示しているかどうかを判断する。
[Function] The data communication line selection instructing unit 1 is the external communication line 6
The selection instruction of the data communication line 5 to be connected to is output to the selection instruction detection unit 2. The selection instruction detection unit 2 is configured so that the input selection instruction of the data communication line is a plurality of data communication lines 5.
It is determined whether or not the selection instruction is given.

【0015】選択指示検出部2が、データ通信回線選択
指示部1がただ1つのデータ通信回線5の選択指示をし
ていると判断した場合には、選択指示検出部2は、ただ
1つのデータ通信回線5の選択指示がされていることを
示す検出信号を保護部3へ出力する。
When the selection instruction detecting unit 2 determines that the data communication line selection instructing unit 1 gives an instruction to select only one data communication line 5, the selection instruction detecting unit 2 determines that only one data is available. A detection signal indicating that the instruction to select the communication line 5 is issued is output to the protection unit 3.

【0016】選択指示検出部2が、データ通信回線選択
指示部1が同時に複数のデータ通信回線5の選択指示を
していると判断した場合には、選択指示検出部2は、同
時に複数のデータ通信回線5の選択指示がされているこ
とを示す検出信号を保護部3へ出力する。
When the selection instruction detecting unit 2 determines that the data communication line selection instructing unit 1 is simultaneously instructing the selection of the plurality of data communication lines 5, the selection instruction detecting unit 2 simultaneously operates the plurality of data. A detection signal indicating that the instruction to select the communication line 5 is issued is output to the protection unit 3.

【0017】保護部3は、ただ1つのデータ通信回線の
選択指示がされていることを示す検出信号が入力された
場合には、そのデータ通信回線5を選択するための選択
信号7を選択部4へ出力する。
When the detection signal indicating that the instruction to select only one data communication line is input, the protection unit 3 outputs the selection signal 7 for selecting the data communication line 5 to the selection unit. Output to 4.

【0018】保護部3は、同時に複数のデータ通信回線
の選択指示がされていることを示す検出信号が入力され
た場合には、選択信号7を出力しない。選択部4は、入
力された選択信号7によって選択された1つのデータ通
信回線5を外部通信回線6に接続する。
The protection unit 3 does not output the selection signal 7 when a detection signal indicating that a plurality of data communication lines are selected is instructed at the same time. The selection unit 4 connects one data communication line 5 selected by the input selection signal 7 to the external communication line 6.

【0019】また、請求項2に示した構成において、保
護部3は、同時に複数のデータ通信回線の選択指示がさ
れていることを示す検出信号が入力された場合には、デ
ータ通信回線5に付与された所定の優先順位に従って選
択指示されたデータ通信回線5のうち優先順位が最も高
いデータ通信回線を選択する選択信号7のみを出力す
る。
Further, in the structure according to the second aspect, the protection unit 3 is connected to the data communication line 5 when a detection signal indicating that a plurality of data communication lines are selected is simultaneously instructed. Only the selection signal 7 for selecting the data communication line having the highest priority among the data communication lines 5 selected and instructed according to the given predetermined priority is output.

【0020】したがって、同時に複数のデータ通信回線
が選択指示された場合に、保護部3においてデータ通信
回線を選択する選択信号を出力しないか又は、同時に2
つ以上出力しないようにしているため、データの衝突を
防止し回路の破壊を未然に防ぐことができる。
Therefore, when a plurality of data communication lines are instructed to be selected at the same time, the protection unit 3 does not output the selection signal for selecting the data communication lines, or the protection unit 3 outputs two selection signals at the same time.
Since no more than one data is output, it is possible to prevent data collision and prevent circuit destruction.

【0021】[0021]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、これによってこの発明が限定される
ものではない。図2に、この発明の第1の実施例の構成
ブロック図を示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. The present invention is not limited to this. FIG. 2 shows a block diagram of the configuration of the first embodiment of the present invention.

【0022】21は、回線切替回路であり、データ通信
回線選択指示部を構成するMPU22及びデータ選択レ
ジスタ23と、選択指示検出部2を構成するNAND素
子N1〜N4と、保護部3を構成するOR素子OR1〜
OR4と、選択部4を構成する通信コントローラ24及
びD−フリップフロップD1〜D4と、データ通信回線
を接続するインタフェースコネクタI1〜I4とからな
る。
A line switching circuit 21 constitutes an MPU 22 and a data selection register 23 which form a data communication line selection instruction section, NAND elements N1 to N4 which form a selection instruction detection section 2, and a protection section 3. OR element OR1
It is composed of an OR4, a communication controller 24 and D-flip-flops D1 to D4 that form the selection unit 4, and interface connectors I1 to I4 that connect data communication lines.

【0023】ここでMPU22、データ選択レジスタ2
3、及び通信コントローラ24は従来の技術で示したも
のと同じ動作を行うものである。25は外部通信回線で
ある。DTE1〜DTE4は、ワークステーション又は
パソコン等の端末装置であり、それぞれデータ通信回線
L1〜L4を介して回線切替回路21のインタフェース
コネクタI1〜I4に接続されている。
Here, the MPU 22 and the data selection register 2
3 and the communication controller 24 perform the same operation as shown in the related art. Reference numeral 25 is an external communication line. DTE1 to DTE4 are terminal devices such as workstations or personal computers, and are connected to the interface connectors I1 to I4 of the line switching circuit 21 via the data communication lines L1 to L4, respectively.

【0024】NAND素子N1〜N2は、入力信号に対
してNANDの論理演算をした結果を出力する素子であ
る。OR素子OR1〜OR4は、入力信号に対してOR
の論理演算をした結果を出力する素子である。
The NAND elements N1 and N2 are elements that output the result of the NAND logical operation on the input signal. The OR elements OR1 to OR4 are OR with respect to the input signal.
Is an element that outputs the result of the logical operation of.

【0025】D−フリップフロップD1〜D4は、この
例においては4本のデータ通信回線上に伝送されるデー
タのうち1本のデータ通信回線上のデータのみを通過さ
せて通信コントローラ24へ伝送する動作を行う部分で
ある。D−フリップフロップは、イネーブル端子(E
N)に‘L’レベル入力があった時に入力データをその
まま出力する素子である。
In this example, the D-flip-flops D1 to D4 pass only the data on one data communication line out of the data transmitted on the four data communication lines and transmit the data to the communication controller 24. This is the part that performs the operation. The D-flip-flop has an enable terminal (E
This is an element that outputs the input data as it is when there is an'L 'level input in N).

【0026】次に、図2を用いて4つのデータ通信回線
のうち1つのデータ通信回線が選択される動作例を説明
する。まず、MPU22は、内部ROMに記憶されたプ
ログラムに従って選択すべきデータ通信回線に対応する
数値をデータ選択レジスタ23に設定し、選択指示を行
う。データ選択レジスタ23は設定された数値より、デ
ータ通信回線に対応する信号線上に選択指示信号を送出
する。
Next, an operation example in which one data communication line is selected from the four data communication lines will be described with reference to FIG. First, the MPU 22 sets a numerical value corresponding to the data communication line to be selected in the data selection register 23 according to the program stored in the internal ROM, and gives a selection instruction. The data selection register 23 sends a selection instruction signal to the signal line corresponding to the data communication line according to the set numerical value.

【0027】たとえば、MPU22よりデータ通信回線
L1を選択するために、数値1がデータ選択レジスタ2
3に設定されたとする。データ選択レジスタ23は、数
値1が設定された場合には、データ通信回線L1に対応
する信号線R1上に‘L’レベルの信号を出力する。こ
の‘L’レベルの信号は、選択指示されていることを示
す信号である。このとき、他の信号線R2,R3及びR
4には、選択指示されていないことを示す‘H’レベル
の信号が出力される。
For example, in order to select the data communication line L1 from the MPU 22, the numerical value 1 is the data selection register 2
Suppose that it is set to 3. When the numerical value 1 is set, the data selection register 23 outputs an'L 'level signal on the signal line R1 corresponding to the data communication line L1. This'L 'level signal is a signal indicating that selection is instructed. At this time, the other signal lines R2, R3 and R
An'H 'level signal indicating that selection is not instructed is output to 4.

【0028】このように、信号線R1のみが‘L’レベ
ルとなり、信号線R2,R3,及びR4が‘H’レベル
となった場合には、NAND及びOR素子によって、信
号線EN1のみに‘L’レベルの選択信号が出力され、
他の信号線EN2,EN3及びEN4には‘H’レベル
の選択信号が出力される。
As described above, when only the signal line R1 is at the “L” level and the signal lines R2, R3, and R4 are at the “H” level, only the signal line EN1 is set by the NAND and OR elements. L'level selection signal is output,
An'H 'level selection signal is output to the other signal lines EN2, EN3 and EN4.

【0029】したがって選択部のD−フリップフロップ
のうち、D1のみがイネーブル状態となり、データ通信
回線L1上のデータが通過させられて通信コントローラ
24へ入力される。
Therefore, of the D-flip-flops of the selection section, only D1 is enabled and the data on the data communication line L1 is passed and input to the communication controller 24.

【0030】次に、複数のデータ通信回線が同時に選択
された場合の動作を説明する。MPU22のプログラム
ミスや、データ選択レジスタの誤動作のために、データ
通信回線L1とL2が同時に選択指示されたような場合
には、信号線R1及びR2上に‘L’レベルの信号が出
力される。信号線R3及びR4上は‘H’レベルとなっ
ている。
Next, the operation when a plurality of data communication lines are simultaneously selected will be described. When the data communication lines L1 and L2 are instructed to be selected at the same time due to a programming error of the MPU 22 or a malfunction of the data selection register, an'L 'level signal is output on the signal lines R1 and R2. . The signal lines R3 and R4 are at the “H” level.

【0031】このとき、NAND素子N1〜N4におい
て選択されるべきデータ通信回線以外の回線が選択され
ていることが検出され、NAND素子N1〜N4の出力
はすべて‘H’レベルが出力される。
At this time, it is detected that a line other than the data communication line to be selected is selected in the NAND elements N1 to N4, and the outputs of the NAND elements N1 to N4 are all at the "H" level.

【0032】そして、保護部3のOR素子OR1及びO
R2によって選択指示されたデータ通信回線L1及びL
2に対応するR1及びR2上の‘L’レベル信号はマス
クされ、信号線EN1〜EN4は‘H’レベルとなり、
D−FF D1〜D4はすべてディセーブルされどのデ
ータ通信回線も選択されない状態となる。すなわち、複
数のデータ通信回線を選択指示する設定は無効とされ、
4つのデータ通信回線はすべて通信コントローラ24と
は接続されない状態となる。
The OR elements OR1 and O of the protection unit 3 are
Data communication lines L1 and L selected and designated by R2
The'L 'level signals on R1 and R2 corresponding to 2 are masked, and the signal lines EN1 to EN4 become'H' level,
All the D-FFs D1 to D4 are disabled and no data communication line is selected. That is, the setting for instructing selection of multiple data communication lines is invalidated,
All four data communication lines are in a state of not being connected to the communication controller 24.

【0033】図3に、この第1実施例における回線切替
回路上の信号の論理対応図の一例を示す。同図において
は、データ通信回線L1のみが選択指示された場合の
信号のレベルを示したものであり、データ選択レジスタ
出力として信号線R1のみが‘L’レベルの時、選択部
のイネーブル端子(EN)への入力となる信号線EN1
のみが‘L’レベルとなることを示している。すなわち
D−FF D1のみがイネーブルとなる。
FIG. 3 shows an example of a logical correspondence diagram of signals on the line switching circuit in the first embodiment. In the figure, the level of the signal when only the data communication line L1 is instructed to be selected is shown. When only the signal line R1 is at the'L 'level as the output of the data selection register, the enable terminal ( EN) signal line EN1 that is an input to
Only the level is'L '. That is, only the D-FF D1 is enabled.

【0034】、及びは、データ通信回線L1が選
択指示されているときに同時に、他のL2,L3,又は
L4のどれかが選択指示されている場合の信号レベルを
示したものであるが、いずれも信号線EN1〜EN4は
すべて‘H’レベルとなり、D−FFはすべてディセー
ブルとなる。
The symbols and indicate the signal levels when the data communication line L1 is instructed to be selected and at the same time any one of the other L2, L3 or L4 is instructed to be selected. In all cases, the signal lines EN1 to EN4 are all at the “H” level, and all the D-FFs are disabled.

【0035】〜の論理対応図でもわかるように、た
だ1つのデータ通信回線のみが選択指示されているとき
に、信号線EN1〜EN4のうち対応するものだけが
‘L’レベルとなる。なお、図3においてL/Hは
‘L’レベル又は‘H’レベルどちらでもよいことを示
している。
As can be seen from the logical correspondence diagrams of ~, when only one data communication line is instructed to be selected, only the corresponding one of the signal lines EN1 to EN4 becomes the "L" level. Note that, in FIG. 3, L / H may be either “L” level or “H” level.

【0036】このように、ただ1つのデータ通信回線の
みが選択指示された場合に限り、そのデータ通信回線に
対応するD−FFのみがイネーブルとされて、そのデー
タ通信回線のデータが通信コントローラ24に入力され
るようになり、データの衝突が防止できる。
As described above, only when only one data communication line is selected and instructed, only the D-FF corresponding to that data communication line is enabled, and the data of the data communication line is changed to the communication controller 24. Will be input to, and it is possible to prevent data collision.

【0037】図4に、この発明の第2の実施例の構成ブ
ロック図を示す。第1実施例では、同時に複数のデータ
通信回線が選択指示された場合には、どのデータ通信回
線上のデータも伝送されないように制御したが、この実
施例では、回路構成によってデータ通信回線に優先順位
をつけて同時に複数のデータ通信回線が選択指示された
場合には、優先順位の最も高いデータ通信回線上のデー
タのみを通信コントローラへ伝送するように制御するも
のである。
FIG. 4 is a block diagram showing the configuration of the second embodiment of the present invention. In the first embodiment, when a plurality of data communication lines are selected and instructed at the same time, control is performed so that data on any data communication line is not transmitted, but in this embodiment, the data communication line has priority over the circuit configuration. When a plurality of data communication lines are selected and instructed at the same time in order, only the data on the data communication line with the highest priority is controlled to be transmitted to the communication controller.

【0038】図2とは選択指示検出部2及び保護部3の
構成と信号線の接続関係が異なる。信号線R1は直接選
択部のD−フリップフロップD1のイネーブル端子(E
N)に接続され、データ通信回線L1が選択指示された
時は、必ずデータ通信回線L1上のデータが通信コント
ローラ24に入力される。
2 is different from FIG. 2 in the configuration of the selection instruction detecting section 2 and the protecting section 3 and the connection relationship of the signal lines. The signal line R1 is the enable terminal (E of the D-flip-flop D1 of the direct selection unit).
N), the data on the data communication line L1 is always input to the communication controller 24 when the data communication line L1 is selected and instructed.

【0039】選択指示検出部2は、信号線R1を入力と
するNOT素子N11と、信号線R1及びR2を入力と
するNAND素子N12と、信号線R1,R2及びR3
を入力とするNAND素子N13とから構成される。
The selection instruction detecting section 2 includes a NOT element N11 which receives the signal line R1, an NAND element N12 which receives the signal lines R1 and R2, and signal lines R1, R2 and R3.
And a NAND element N13 which receives as input.

【0040】保護部3は、信号線R2及びNOT素子N
11の出力を入力とするOR素子OR11と、信号線R
3及びNAND素子N12の出力を入力とするOR素子
OR12と、信号線R4とNAND素子N13の出力を
入力とするOR素子OR13とから構成される。以上の
ような回路構成をとることで、選択すべきデータ通信回
線の優先順位はデータ通信回線L1が最も高く、L2,
L3,L4の順に低くなるように設定されている。
The protection section 3 includes a signal line R2 and a NOT element N.
OR element OR11 which receives the output of 11 and signal line R
3 and the output of the NAND element N12 as an input, an OR element OR12, and the signal line R4 and the output of the NAND element N13 as an input. With the circuit configuration as described above, the priority of the data communication line to be selected is the highest in the data communication line L1 and L2.
It is set so that it becomes lower in the order of L3 and L4.

【0041】図5に、第2実施例における回線切替回路
上の信号の論理対応図を示す。同図において、はデー
タ通信回線L1が選択指示されている場合の信号のレベ
ルを示したものであり、他のデータ通信回線L2,L3
及びL4の選択指示状態がどちらであろうとも、データ
通信回線L1に対応するD−フリップフロップD1だけ
がイネーブル状態となり、データ通信回線L1上のデー
タのみが通信コントローラ24へ入力される。
FIG. 5 shows a logical correspondence diagram of signals on the line switching circuit in the second embodiment. In the figure, indicates the signal level when the data communication line L1 is instructed to be selected, and the other data communication lines L2 and L3 are shown.
Regardless of the selection instruction state of L4 and L4, only the D-flip-flop D1 corresponding to the data communication line L1 is enabled, and only the data on the data communication line L1 is input to the communication controller 24.

【0042】すなわち、このとき、信号線R1は‘L’
レベルとなっているため、信号線R2,R3及びR4の
状態に関係なく、NOT素子N11、NAND素子N1
2及びN13の出力は‘H’レベルとなり、OR素子O
R11,OR12,及びOR13に入力される。したが
って各OR素子の出力はすべて‘H’レベルとなり、D
−フリップフロップ D2,D3及びD4のイネーブル
端子は‘H’レベルとなり、ディセーブル状態となる。
That is, at this time, the signal line R1 is "L".
Since it is at the level, the NOT element N11 and the NAND element N1 are irrespective of the states of the signal lines R2, R3, and R4.
The outputs of 2 and N13 become "H" level, and the OR element O
Input to R11, OR12, and OR13. Therefore, all the outputs of each OR element become'H 'level, and D
-The enable terminals of the flip-flops D2, D3 and D4 are at the "H" level and are in the disabled state.

【0043】は、データ通信回線L1は選択指示され
ず、データ通信回線L2が選択指示されている場合を示
している。このとき、信号線R1が‘H’レベルとな
り、信号線R2が‘L’レベルとなっているため、OR
素子OR11の出力である信号線EN2のみが‘L’レ
ベルとなり、他の信号線EN1,EN3及びEN4は
‘H’レベルとなる。したがってD−フリップフロップ
D2のみがイネーブル状態となりデータ通信回線L2
上のデータのみが通信コントローラ24へ入力される。
In the case where the data communication line L1 is not instructed to be selected, the data communication line L2 is instructed to be selected. At this time, since the signal line R1 is at the “H” level and the signal line R2 is at the “L” level, OR
Only the signal line EN2 that is the output of the element OR11 becomes the “L” level, and the other signal lines EN1, EN3 and EN4 become the “H” level. Therefore, only the D-flip-flop D2 is enabled and the data communication line L2
Only the above data is input to the communication controller 24.

【0044】は、データ通信回線L3が選択指示され
ており、L3よりも優先順位の高いデータ通信回線L1
及びL2が選択指示されていない場合であり、データ通
信回線L4の選択指示には無関係に、データ通信回線L
3が選択される。
Indicates that the data communication line L3 is instructed to be selected and has a higher priority than L3.
And L2 are not instructed to be selected, and the data communication line L4 is irrespective of the selection instruction of the data communication line L4.
3 is selected.

【0045】は、データ通信回線L4のみが選択指示
されている場合であり、他の優先順位の高いデータ通信
回線L1,L2及びL3が選択指示されていない場合に
限り、データ通信回線L4が選択される。
In the case where only the data communication line L4 is instructed to be selected, the data communication line L4 is selected only when the other high priority data communication lines L1, L2 and L3 are not instructed to be selected. To be done.

【0046】以上のような回路構成をとることで、同時
に複数のデータ通信回線が選択指示されても、選択指示
された複数のデータ通信回線の中で最も優先順位の高い
データ通信回線に対応するD−FFのみがイネーブルと
されてそのデータ通信回線のデータが通信コントローラ
24に入力されるようになり、データの衝突が防止でき
る。
With the above circuit configuration, even if a plurality of data communication lines are selected and instructed at the same time, the data communication line having the highest priority among the plurality of data communication lines instructed to be selected can be handled. Only the D-FF is enabled and the data of the data communication line is input to the communication controller 24, so that the data collision can be prevented.

【0047】[0047]

【発明の効果】この発明によれば、同時に複数のデータ
通信回線が選択されることがないようにする保護回路を
設けることにより、データの衝突を防止し、回路の破壊
を未然に防ぐことができる。
According to the present invention, by providing a protection circuit that prevents a plurality of data communication lines from being selected at the same time, data collision can be prevented and circuit destruction can be prevented in advance. it can.

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

【図1】この発明の基本構成を示すブロック図である。FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】この発明の第1実施例の構成ブロック図であ
る。
FIG. 2 is a configuration block diagram of a first embodiment of the present invention.

【図3】この発明の第1実施例における信号の論理対応
図である。
FIG. 3 is a logic correspondence diagram of signals in the first embodiment of the present invention.

【図4】この発明の第2実施例の構成ブロック図であ
る。
FIG. 4 is a configuration block diagram of a second embodiment of the present invention.

【図5】この発明の第2実施例における信号の論理対応
図である。
FIG. 5 is a logic correspondence diagram of signals in the second embodiment of the present invention.

【図6】従来例における基本構成を示すブロック図であ
る。
FIG. 6 is a block diagram showing a basic configuration in a conventional example.

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

1 データ通信回線選択指示部 2 選択指示検出部 3 保護部 4 選択部 5 データ通信回線 6 外部通信回線 7 選択信号 21 回線切替回路 22 MPU 23 データ選択レジスタ 24 通信コントローラ 25 外部通信回線 DTE1〜4 端末装置 L1〜L4 データ通信回線 I1〜I4 インタフェースコネクタ N1〜N4 NAND素子 OR1〜OR4 OR素子 D1〜D4 D−フリップフロップ(D−FF) R1〜R4 選択指示信号線 EN1〜EN4 選択信号線 1 data communication line selection instruction unit 2 selection instruction detection unit 3 protection unit 4 selection unit 5 data communication line 6 external communication line 7 selection signal 21 line switching circuit 22 MPU 23 data selection register 24 communication controller 25 external communication line DTE1 to 4 terminals Device L1 to L4 data communication line I1 to I4 interface connector N1 to N4 NAND element OR1 to OR4 OR element D1 to D4 D-flip flop (D-FF) R1 to R4 selection instruction signal line EN1 to EN4 selection signal line

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータ通信回線(5)と外部通信
回線(6)を接続する場合に、ただ1つの任意のデータ
通信回線(5)を順次選択して外部通信回線(6)に接
続する回線切替回路において、 外部通信回線(6)に接続すべきデータ通信回線(5)
を選択指示するデータ通信回線選択指示部(1)と、 データ通信回線選択指示部(1)が複数のデータ通信回
線(5)の選択指示をしていないかどうかを判断し、そ
の結果を示す検出信号を出力する選択指示検出部(2)
と、 データ通信回線選択指示部(1)がただ1つのデータ通
信回線(5)の選択指示をしていることを示す選択指示
検出部(2)からの検出信号が入力された場合にはその
データ通信回線(5)を選択するための選択信号(7)
を出力し、データ通信回線選択指示部(1)が同時に複
数のデータ通信回線(5)の選択指示をしていることを
示す選択指示検出部(2)からの検出信号が入力された
場合には選択信号(7)を出力しない保護部(3)と、 保護部(3)から出力される選択信号(7)によって選
択された1つのデータ通信回線(5)を外部通信回線
(6)に接続する選択部(4)とを備えた回線切替回
路。
1. When connecting a plurality of data communication lines (5) and an external communication line (6), only one arbitrary data communication line (5) is sequentially selected and connected to the external communication line (6). Data communication line (5) that should be connected to external communication line (6) in the line switching circuit
The data communication line selection instructing section (1) for selecting and instructing whether or not the data communication line selection instructing section (1) has instructed selection of a plurality of data communication lines (5), and shows the result. Selection instruction detection unit (2) that outputs a detection signal
And a detection signal from the selection instruction detection unit (2) indicating that the data communication line selection instruction unit (1) is instructing selection of only one data communication line (5), Selection signal (7) for selecting the data communication line (5)
Is output and a detection signal from the selection instruction detection unit (2) indicating that the data communication line selection instruction unit (1) is simultaneously instructing selection of a plurality of data communication lines (5) is input. Is a protection unit (3) that does not output the selection signal (7) and one data communication line (5) selected by the selection signal (7) output from the protection unit (3) to the external communication line (6). A line switching circuit having a connecting section (4) to be connected.
【請求項2】 複数のデータ通信回線(5)と外部通信
回線(6)を接続する場合に、ただ1つの任意のデータ
通信回線(5)を順次選択して外部通信回線(6)に接
続する回線切替回路において、 外部通信回線(6)に接続すべきデータ通信回線(5)
を選択指示するデータ通信回線選択指示部(1)と、 データ通信回線選択指示部(1)が複数のデータ通信回
線(5)の選択指示をしていないかどうかを判断し、そ
の結果を示す検出信号を出力する選択指示検出部(2)
と、 データ通信回線選択指示部(1)がただ1つのデータ通
信回線(5)の選択指示をしていることを示す選択指示
検出部(2)からの検出信号が入力された場合にはその
データ通信回線(5)を選択するための選択信号(7)
を出力し、データ通信回線選択指示部(1)が同時に複
数のデータ通信回線(5)の選択指示をしていることを
示す選択指示検出部(2)からの検出信号が入力された
場合には、データ通信回線(5)に付与された所定の優
先順位に従って、選択指示されたデータ通信回線(5)
のうち優先順位が最も高いデータ通信回線(5)を選択
す選択信号(7)にのみを出力する保護部(3)と、保
護部(3)から出力される選択信号(7)によって選択
された1つのデータ通信回線(5)を外部通信回線
(6)に接続する選択部(4)とを備えた回線切替回
路。
2. When connecting a plurality of data communication lines (5) and an external communication line (6), only one arbitrary data communication line (5) is sequentially selected and connected to the external communication line (6). Data communication line (5) that should be connected to external communication line (6) in the line switching circuit
The data communication line selection instructing section (1) for selecting and instructing whether or not the data communication line selection instructing section (1) has instructed selection of a plurality of data communication lines (5), and shows the result. Selection instruction detection unit (2) that outputs a detection signal
And a detection signal from the selection instruction detection unit (2) indicating that the data communication line selection instruction unit (1) is instructing selection of only one data communication line (5), Selection signal (7) for selecting the data communication line (5)
Is output and a detection signal from the selection instruction detection unit (2) indicating that the data communication line selection instruction unit (1) is simultaneously instructing selection of a plurality of data communication lines (5) is input. Is the data communication line (5) selected and instructed in accordance with the predetermined priority given to the data communication line (5).
The protection unit (3) that outputs only the selection signal (7) that selects the data communication line (5) that has the highest priority among them, and the selection signal (7) that is output from the protection unit (3). A line switching circuit having a selection unit (4) for connecting one data communication line (5) to an external communication line (6).
JP5122746A 1993-05-25 1993-05-25 Line changeover circuit Withdrawn JPH06334702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5122746A JPH06334702A (en) 1993-05-25 1993-05-25 Line changeover circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5122746A JPH06334702A (en) 1993-05-25 1993-05-25 Line changeover circuit

Publications (1)

Publication Number Publication Date
JPH06334702A true JPH06334702A (en) 1994-12-02

Family

ID=14843582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5122746A Withdrawn JPH06334702A (en) 1993-05-25 1993-05-25 Line changeover circuit

Country Status (1)

Country Link
JP (1) JPH06334702A (en)

Similar Documents

Publication Publication Date Title
KR100299149B1 (en) Microcontrollers with N-bit data bus widths with I / O pins of N or less and how
US4945540A (en) Gate circuit for bus signal lines
JPH06334702A (en) Line changeover circuit
JP3141472B2 (en) Switching control method
EP0657046B1 (en) Fault tolerant three port communications module
JP3310482B2 (en) Microcomputer
US20200290532A1 (en) Vehicle communication system
JP4469106B2 (en) CPU abnormality monitoring device
US5267250A (en) Circuit arrangement for detection of an erroneous selection signal supplied to selection means
JP2706027B2 (en) Programmable controller
KR100295894B1 (en) Group management control apparatus of elevator
JPS61213932A (en) Decentralized duplex computer system and its control method
KR100206679B1 (en) Information processing apparatus for emulation
JPH06175888A (en) Abnormal access detection circuit
JPH02132780A (en) Device for preventing erroneous connection of signal cable
KR0157862B1 (en) Communication line error protecting circuit of dual system
RU2173937C2 (en) Signal switching system
JPH03126149A (en) Bus system diagnostic system
JPH11242638A (en) Data processing system
JPH08242271A (en) System switching device
JPH0264829A (en) Notice system for fault of slave board
JPH05153137A (en) Loop controller system
JPH05235907A (en) Error counter circuit monitor
JPH03254224A (en) Loopback test circuit
JPH0619730A (en) Automatic switch check system for parity

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000801