JPH01177665A - Changeover control circuit for data transfer - Google Patents

Changeover control circuit for data transfer

Info

Publication number
JPH01177665A
JPH01177665A JP205988A JP205988A JPH01177665A JP H01177665 A JPH01177665 A JP H01177665A JP 205988 A JP205988 A JP 205988A JP 205988 A JP205988 A JP 205988A JP H01177665 A JPH01177665 A JP H01177665A
Authority
JP
Japan
Prior art keywords
transfer
control circuit
status information
byte
data transfer
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
JP205988A
Other languages
Japanese (ja)
Inventor
Hidenori Ishikawa
石川 英則
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.)
IBARAKI NIPPON DENKI KK
NEC Ibaraki Ltd
Original Assignee
IBARAKI NIPPON DENKI KK
NEC Ibaraki 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 IBARAKI NIPPON DENKI KK, NEC Ibaraki Ltd filed Critical IBARAKI NIPPON DENKI KK
Priority to JP205988A priority Critical patent/JPH01177665A/en
Publication of JPH01177665A publication Critical patent/JPH01177665A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To cause a data transfer to be high-speed and high-efficient by arbitrarily switching a transferring quantity to 1-byte width or 2-byte width according to a data capacity, and executing a control so as to load status information on the remaining transmission line of the 1-byte width at the time of the transfer of the 1-byte width. CONSTITUTION:A transfer information control circuit 8 executes the control in switching whether transfer data contents is data information or the status information by information given from a data transferring quantity deciding circuit 4 and a transferring direction control circuit 3 on the transmission line of the 2-byte width sent through an external interface bus 9 to a slave station. Namely, the control is executed so as to arbitrarily switch the transferring quantity to the 1-byte width or 2-byte width according to the data capacity and to load the status information on the remaining transmission line of the 1-byte width at the time of the transfer of the 1-byte width. Thus, a transferring time can be shortened.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデータ転送時におけるデータ転送量に関し、特
にデータ内容に応じて転送量を切換えて制御する回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to the amount of data transferred during data transfer, and particularly to a circuit that switches and controls the amount of transfer depending on data content.

(従来の技術) 従来、この種のデータ転送方式では、データ転送量が1
バイト幅、あるいは2バイト幅に固定されていた。また
、ステータス情報を転送するためには専用伝送路が必要
となっていた。
(Prior art) Conventionally, in this type of data transfer method, the amount of data transferred is 1
It was fixed to a byte width or a 2-byte width. Additionally, a dedicated transmission line was required to transfer status information.

(発明が触法しようとする問題点) 上述した従来のデータ転送方式では、データ転送量が固
定されている。よって、転送容量の少ない伝送路を使用
して転送データ量が多い場合には転送時間が長く、転送
容量の多い伝送路全使用したとき、少量の転送データ量
であっても、その転送容量分だけ無駄に時間が使用され
ると云う欠点がある。
(Problems to be addressed by the invention) In the conventional data transfer method described above, the amount of data transferred is fixed. Therefore, if a transmission line with a small transfer capacity is used and a large amount of data is transferred, the transfer time will be long, and when the entire transmission line with a large transfer capacity is used, even if the amount of data transferred is small, the transfer time will be longer. However, the disadvantage is that time is wasted.

また、ステータス情報を交換する際には、専用の伝送路
全必要とすると云う欠点がある。
Furthermore, when exchanging status information, there is a drawback that an entire dedicated transmission path is required.

本発明の目的は、データ容量に応じて転送量を1バイト
幅、あるいは2バイト幅に任意に切換えて、1バイト幅
の転送時には残りの1バイト幅の伝送路上にステータス
情報を乗せることができるように制御することによって
上記欠点を除去し、転送時間を有効に短縮できるように
構成したデータ転送の切換え制御回路を提供することに
ある。
An object of the present invention is to arbitrarily switch the transfer amount between 1-byte width and 2-byte width according to the data capacity, and when transferring 1-byte width, status information can be placed on the remaining 1-byte width transmission path. It is an object of the present invention to provide a data transfer switching control circuit configured to eliminate the above-mentioned drawbacks and effectively shorten the transfer time by controlling the data transfer as described above.

(問題点全解決するための手段) 本発明によるデータ転送の切換え制御回路は内部バス制
御回路と、データ転送量決定回路と。
(Means for Solving All Problems) The data transfer switching control circuit according to the present invention includes an internal bus control circuit and a data transfer amount determining circuit.

転送方向制御回路と、ステータス情報レジスタ回路と、
転送情報制御回路とを具備して構成したものである。
A transfer direction control circuit, a status information register circuit,
This configuration includes a transfer information control circuit.

内部バス制御回路は、2バイト幅の双方向データバスと
複数ビットで構成されるコy ) o −ルバスとによ
り構成された主局と従局との間を接続すル外部インター
フェースバスのデータ転送幅’に1バイト幅または2バ
イト幅に指示するバイト幅指示、外部インターフェース
バス上でのデータ転送方向を主局から従局への方向、ま
たはその逆に指示する転送方向指示、ならび外部インタ
ーフェースバスのデータ転送バイト幅が1バイト幅のと
き、残りの1バイト幅の外部インターフェースバス上に
ステータス6H1l−送出するようステータス情報の送
出指示を送出するためのものである。
The internal bus control circuit controls the data transfer width of the external interface bus that connects the master station and slave stations, which is composed of a 2-byte wide bidirectional data bus and a coil bus consisting of multiple bits. A byte width instruction that specifies a 1-byte width or a 2-byte width for ', a transfer direction instruction that specifies the direction of data transfer on the external interface bus from the master station to the slave station, or vice versa, and data on the external interface bus. When the transfer byte width is 1 byte wide, this is used to send a status information sending instruction to send the status 6H1l- onto the remaining 1 byte wide external interface bus.

データ転送量決定回路は、内部バス制御回路よりの転送
指示に従ってデータ転送バイト幅の決定情報を保持する
ためのものである。
The data transfer amount determining circuit is for holding information on determining the data transfer byte width in accordance with a transfer instruction from the internal bus control circuit.

転送方向制御回路は、内部バス制御回路よりの転送方向
指示に従ってデータ転送方向の決定情報全認識するだめ
のものである。
The transfer direction control circuit is designed to recognize all data transfer direction determination information in accordance with the transfer direction instruction from the internal bus control circuit.

ステータス情報レジスタ回路は、ステータス情報を一時
的に格納するためのものである。
The status information register circuit is for temporarily storing status information.

転送情報制御回路は、データ転送量決定回路により1バ
イト幅の転送を表示している条件のもとで、転送方向制
御回路により送信方向にデータ転送方向全表示している
とともに、内部バス制御回路からステータス情報の送出
指示が送出されているならば、ステータス情報レジスタ
回路より外部インターフェースバスの残9の1バイトに
ステータス情報の送出指示を送出するか、または転送方
向制御回路により転送方向を受信方向にデータ転送方向
を表示しているならば RWEインターフェースバス上
のステータス情報をステータス情報レジスタ回路に取込
む受入れ指示?送出するためのものである。
The transfer information control circuit displays the entire data transfer direction in the transmission direction by the transfer direction control circuit under the condition that the data transfer amount determining circuit indicates a 1-byte width transfer, and also controls the internal bus control circuit. If a status information sending instruction is sent from the status information register circuit, the status information sending instruction is sent to the remaining 9 bytes of the external interface bus, or the transfer direction control circuit changes the transfer direction to the receiving direction. If the data transfer direction is displayed, is this an instruction to accept the status information on the RWE interface bus into the status information register circuit? It is for sending out.

(実施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は1本発明によるデータ転送の切換え制御回路の
一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a data transfer switching control circuit according to the present invention.

第1図において、1は内部バス、2は内部バス制御回路
、3は転送方向制御回路、4はデータ転送路決定回路、
5はステータス情報レジスタ回Wr、  6はデータバ
ス、7はステータスバス。
In FIG. 1, 1 is an internal bus, 2 is an internal bus control circuit, 3 is a transfer direction control circuit, 4 is a data transfer path determining circuit,
5 is a status information register Wr, 6 is a data bus, and 7 is a status bus.

8は転送ff報制御回路、9は外部インターフェースバ
スである。
8 is a transfer FF information control circuit, and 9 is an external interface bus.

最初に、データ転送量が1バイト幅か、あるいは2バイ
ト幅かの切換え、ならびにデータ内容がデータ情報か、
あるいはステータス情報かの切分けについて説明する。
First, you need to change whether the data transfer amount is 1 byte wide or 2 byte wide, and whether the data content is data information or not.
Or, how to distinguish between status information and status information will be explained.

内部バス1により送出されてくる伝送路アクセス情報を
内部バス制御回路2により認識し、伝送路アクセス情報
をもとにして、外部インターフェースバス9において主
局から従局への方向に対する転送であるか、あるいは従
局から主局へ(7)71F向に対する転送であるか全転
送方向制御回路3により決定する。
The internal bus control circuit 2 recognizes the transmission path access information sent by the internal bus 1, and based on the transmission path access information, determines whether the transfer is from the master station to the slave station on the external interface bus 9. Alternatively, the total transfer direction control circuit 3 determines whether the transfer is from the slave station to the master station (7) in the 71F direction.

なお、内部バス制御回路2より得られる認識情報により
、データ転送量決定回路4において転送データが1バイ
ト幅であるか、あるいは2バイト幅であるかが決定され
る。
Based on the recognition information obtained from the internal bus control circuit 2, the data transfer amount determining circuit 4 determines whether the transfer data is 1 byte wide or 2 bytes wide.

1バイト幅のデータ転送であるとデータ転送量決定回路
4によって決定されたときに、ステータス情報レジスタ
回路5は残り1バイト幅の伝送路上に送出されるべきス
テータス情報が。
When the data transfer amount determination circuit 4 determines that the data transfer is 1 byte wide, the status information register circuit 5 stores the status information to be sent out on the remaining 1 byte wide transmission path.

中央処理装置(図示していない。)より内部バス1およ
び内部バス制御回路2を介して格納されている。
It is stored from a central processing unit (not shown) via an internal bus 1 and an internal bus control circuit 2.

転送情報制御回路8は、外部インターフェースバス9を
介して従局に送出されるべき2バイト幅の伝送路に、デ
ータ転送量決定回路4および転送方向制御回路3から与
えられる情報によって、転送データ内容がデータ情報で
あるか。
The transfer information control circuit 8 determines the content of the transfer data on the 2-byte wide transmission line to be sent to the slave station via the external interface bus 9 based on the information given from the data transfer amount determining circuit 4 and the transfer direction control circuit 3. Is it data information?

あるいはステータス情報であるか全切換えて制御する回
路である。
Alternatively, it may be status information or a circuit that controls all switches.

次に、各れデータ転送における伝送路上のデータの動作
について説明する。
Next, the operation of data on the transmission path in each data transfer will be explained.

第2図は、ある時間における外部インターフェースバス
9上のデータの内容−および転送方向において、その流
れを説明した流れ図である。
FIG. 2 is a flowchart illustrating the flow of data on the external interface bus 9 in terms of content and transfer direction at a certain time.

第2図において、eは時間軸、a −dはそれぞれ時間
軸に対応して中央処理装置から内部バス1を介して転送
されたアクセス内容である。
In FIG. 2, e is the time axis, and a to d are the access contents transferred from the central processing unit via the internal bus 1 in correspondence with the time axes, respectively.

1バイトのライトアクセス2では5gに示されるように
主局から従局に向けて、1バイトのデータ情報と1バイ
トのステータス情報とが送出される。1バイトのリード
アクセスbでは、iに示されるように従局から主局に向
けて1バイトのデータ情報と1バイトのステータス情報
とが送出される。2バイトのライトアクセスCでは、k
に示されるように主局から従局に向けて2バイトのデー
タ情報が送出される。2バイトのリードアクセスdでは
、mに示されるように従局から主局に向けて2バイトの
データ情報が送出される。
In 1-byte write access 2, as shown in 5g, 1-byte data information and 1-byte status information are sent from the master station to the slave station. In the 1-byte read access b, 1-byte data information and 1-byte status information are sent from the slave station to the master station, as shown by i. For 2-byte write access C, k
As shown in the figure, 2-byte data information is sent from the master station to the slave station. In the 2-byte read access d, 2-byte data information is sent from the slave station to the master station as shown in m.

なお、当該伝送路全使用していないときには。Note that when the transmission line is not fully used.

f、h、j、fi、nに示されるよう[、当該伝送路上
には従局から主局へ2バイト幅のステータス情報が転送
され、主局では外部インターフェースバス9からステー
タヌ情報ハス7會介して、従局の状lj!!會内部バス
1を通して把握しながらデータの転送を行っている。
As shown in f, h, j, fi, and n, 2-byte wide status information is transferred from the slave station to the master station on the transmission path, and the master station transfers the status information from the external interface bus 9 to the status information bus 7. , the status of the subordinate station lj! ! Data is transferred while being monitored through the internal bus 1.

(発明の効果) 以上説明したように本発明は、データ容量に応じて転送
量を1バイト幅、あるいは2バイト幅に任意に切換えて
、1バイト幅の転送時には残りの1バイト幅の伝送路上
にステータス情報を乗せることができるように制御する
ことによって、データ転送の高速化と効率化とを達成で
きると云う効果がある。
(Effects of the Invention) As explained above, the present invention arbitrarily switches the transfer amount between 1-byte width and 2-byte width according to the data capacity, and when transferring 1-byte width, the remaining 1-byte width is used for transmission. By controlling the status information so that it can be loaded with the status information, there is an effect that data transfer can be made faster and more efficient.

さらに、余りのデータ伝送路にステータス情報全送出す
ることにより、主局と従局との間のステータス情報の交
換全容易にできると云う効果がある。
Furthermore, by sending all of the status information to the remaining data transmission path, there is the effect that status information can be easily exchanged between the master station and the slave station.

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

第1図は、不発−によるデータ転送の切換え制御回路の
一実施例を示すブロック図である。 第2図は、データ転送における主局と従局との間の転送
データの内容および転送方向を示す流れ図である。 1.6,7.9・・・バス 2・・・内部バス制御回路 3・・・転送方向制御回路 4・・・データ転送量決定回路 5・・・ステータス情報レジスゲ回路 8・・・転送情報制御回路 2図
FIG. 1 is a block diagram showing an embodiment of a data transfer switching control circuit due to a misfire. FIG. 2 is a flowchart showing the content and direction of data transferred between a master station and a slave station in data transfer. 1.6, 7.9...Bus 2...Internal bus control circuit 3...Transfer direction control circuit 4...Data transfer amount determining circuit 5...Status information Registration gate circuit 8...Transfer information Control circuit diagram 2

Claims (1)

【特許請求の範囲】[Claims] 2バイト幅の双方向データバスと複数ビットで構成され
るコントロールバスとにより構成された主局と従局との
間を接続する外部インターフェースバスのデータ転送幅
を1バイト幅または2バイト幅に指示するバイト幅指示
、前記外部インターフェースバス上でのデータ転送方向
を前記主局から前記従局への方向、またはその逆に指示
する転送方向指示、ならびに前記外部インターフェース
バスのデータ転送バイト幅が1バイト幅のとき、残りの
1バイト幅の前記外部インターフェースバス上にステー
タス情報を送出するようステータス情報の送出指示を送
出するための内部バス制御回路と、前記内部バス制御回
路よりの前記転送指示に従つてデータ転送バイト幅の決
定情報を保持するためのデータ転送量決定回路と、前記
内部バス制御回路よりの前記転送方向指示に従つて前記
データ転送方向の決定情報を認識するための転送方向制
御回路と、前記ステータス情報を一時的に格納するため
のステータス情報レジスタ回路と、前記データ転送量決
定回路により1バイト幅の転送を表示している条件のも
とで、前記転送方向制御回路により送信方向に前記デー
タ転送方向を表示しているとともに、前記内部バス制御
回路から前記ステータス情報の送出指示が送出されてい
るならば、前記ステータス情報レジスタ回路より前記外
部インターフェースバスの残りの1バイトに前記ステー
タス情報の送出指示を送出するか、または前記転送方向
制御回路により転送方向を受信方向に前記データ転送方
向を表示しているならば、前記外部インターフェースバ
ス上のステータス情報を前記ステータス情報レジスタ回
路に取込む受入れ指示を送出するための転送情報制御回
路とを具備して構成したことを特徴とするデータ転送の
切換え制御回路。
Instructs the data transfer width of the external interface bus that connects the master station and slave stations, which is composed of a 2-byte wide bidirectional data bus and a control bus consisting of multiple bits, to 1 byte width or 2 byte width. a byte width instruction, a transfer direction instruction for instructing the direction of data transfer on the external interface bus from the master station to the slave station or vice versa, and a data transfer byte width of the external interface bus of 1 byte width. At this time, an internal bus control circuit for sending a status information sending instruction to send status information onto the remaining 1-byte wide external interface bus, and a data transfer instruction from the internal bus control circuit. a data transfer amount determining circuit for holding transfer byte width determining information; a transfer direction control circuit for recognizing the data transfer direction determining information in accordance with the transfer direction instruction from the internal bus control circuit; Under the condition that the status information register circuit for temporarily storing the status information and the data transfer amount determination circuit indicate a 1-byte width transfer, the transfer direction control circuit controls the transfer direction in the transmission direction. In addition to displaying the data transfer direction, if an instruction to send the status information is sent from the internal bus control circuit, the status information register circuit transfers the status information to the remaining 1 byte of the external interface bus. Sending a transmission instruction, or accepting that the status information on the external interface bus is taken into the status information register circuit if the transfer direction control circuit indicates the data transfer direction as the reception direction. 1. A data transfer switching control circuit comprising: a transfer information control circuit for sending an instruction.
JP205988A 1988-01-08 1988-01-08 Changeover control circuit for data transfer Pending JPH01177665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP205988A JPH01177665A (en) 1988-01-08 1988-01-08 Changeover control circuit for data transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP205988A JPH01177665A (en) 1988-01-08 1988-01-08 Changeover control circuit for data transfer

Publications (1)

Publication Number Publication Date
JPH01177665A true JPH01177665A (en) 1989-07-13

Family

ID=11518765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP205988A Pending JPH01177665A (en) 1988-01-08 1988-01-08 Changeover control circuit for data transfer

Country Status (1)

Country Link
JP (1) JPH01177665A (en)

Similar Documents

Publication Publication Date Title
US4467447A (en) Information transferring apparatus
KR950002709B1 (en) Information transfer method and arragnement
WO1995006284B1 (en) Ata interface architecture employing state machines
KR870004365A (en) Channel data transmission device with serial transmission line and transmission method thereof
JPH05153194A (en) Method of buffer chain in communication controller and device thereof
JPH01177665A (en) Changeover control circuit for data transfer
EP1031092B1 (en) Byte alignment method and apparatus
JP2738314B2 (en) Switching system of N + 1 redundant circuit controller
JPH04101260A (en) Bus controlling system
JPH04337807A (en) Communication system for peripheral equipment in numerical controller
JPH01291350A (en) Channel device
JPH01144145A (en) Input/output controller
JPS61246863A (en) Data transfer system
JPS59107694A (en) Decentralized control system of automatic exchange
JPS6326751A (en) Reading system for control information on input/output controller
JPS6227846A (en) Input and output channel
JPS58221437A (en) Controlling device of picturing
JPH10320175A (en) Endian conversion system
JPS60116056A (en) Data transferring system
JPH09259066A (en) Input and output controller
JPS61101859A (en) Controller change-over system
JPH0219926A (en) Microprogram storing system
JPH01319845A (en) Information transfer system
JPH0471057A (en) Dma control system
JPS62262104A (en) Parallel operation controlling system for programmable controller