JPH044619B2 - - Google Patents
Info
- Publication number
- JPH044619B2 JPH044619B2 JP60279050A JP27905085A JPH044619B2 JP H044619 B2 JPH044619 B2 JP H044619B2 JP 60279050 A JP60279050 A JP 60279050A JP 27905085 A JP27905085 A JP 27905085A JP H044619 B2 JPH044619 B2 JP H044619B2
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- output
- serial input
- data transfer
- dma
- 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.)
- Expired
Links
- 230000005540 biological transmission Effects 0.000 claims description 60
- 238000012546 transfer Methods 0.000 claims description 28
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 230000015654 memory Effects 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 9
- 230000001360 synchronised effect Effects 0.000 claims description 6
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000007630 basic procedure Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】
[発明の技術分野]
本発明は外部機器を制御装置に接続するシリア
ル入出力ポートの伝送LSIと制御装置内の送受信
データバツフアメモリ間のデータ転送を容易にす
るシリアル入出力ポートのデータ転送制御装置に
関するものである。[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a serial LSI that facilitates data transfer between a transmission LSI of a serial input/output port that connects an external device to a control device and a transmit/receive data buffer memory within the control device. This relates to a data transfer control device for input/output ports.
[発明の技術的背景とその問題点]
制御機器間または制御機器端末間のシリアル入
出力方法については既に確立された技術が存在す
る。例えば電気・機械的接続では、RS−232C、
RS−422、20mAカレントループ、通信方式では
全二重、半二重、単方向通信、同期方式では同期
式、非同期式伝送、手順では無手順、ベーシツク
手順、BSC手順などがあつて広く使用され、こ
れらをサポートするIC/LSIも数多く出回つてい
る。[Technical Background of the Invention and Problems Therein] There are already established techniques for serial input/output methods between control devices or between control device terminals. For example, for electrical/mechanical connections, RS-232C,
RS-422, 20mA current loop, full-duplex, half-duplex, unidirectional communication, synchronous transmission, asynchronous transmission, no-procedure, basic procedure, BSC procedure, etc. are widely used. There are many IC/LSIs that support these functions on the market.
現在の問題は伝送速度および処理の高速化と小
形化である。すなわち制御装置の高機能化に伴つ
て多数のシリアル入出力ポートが要求されると共
に端末などの伝送速度が上昇しており、制御装置
は多数の高速ポートをサポートしなければならな
くなつた。 Current issues are transmission speed and processing speed and miniaturization. That is, as control devices become more sophisticated, a large number of serial input/output ports are required, and the transmission speed of terminals and the like is increasing, making it necessary for control devices to support a large number of high-speed ports.
この場合の問題の一つとして伝送LSIとバツフ
アメモリ間の転送処理がある。例えば前記転送を
マイクロプロセサで行わせるとすると、マイクロ
プロセサにとつて重負荷となるばかりでなく転送
処理が間に合わないことがあり、その対策として
は第3図に示すように緩衝用のFIFO(フアースト
インフアーストアウト)を置いたり、また第4図
に示すように複数のDMAコントローラを用いて
DMA転送を行つているが、このために回路が大
きくなるという問題がある。 One of the problems in this case is the transfer process between the transmission LSI and the buffer memory. For example, if the transfer is performed by a microprocessor, it will not only put a heavy load on the microprocessor, but also may not be able to complete the transfer process in time.As a countermeasure to this problem, as shown in Figure 3, a buffer FIFO (FIFO) (in first out) or using multiple DMA controllers as shown in Figure 4.
DMA transfer is performed, but there is a problem that this increases the size of the circuit.
[発明の目的]
本発明は多数の高速シリアル入出力ポートを有
する制御装置のデータ転送回路を小さくして装置
の小形化を可能とするシリアル入出力ポートのデ
ータ伝送制御装置を提供することを目的としてい
る。[Object of the Invention] An object of the present invention is to provide a data transmission control device for serial input/output ports, which enables miniaturization of the device by reducing the data transfer circuit of the control device having a large number of high-speed serial input/output ports. It is said that
[発明の概要]
本発明は、マイクロプロセサ、制御ROM、内
部RAM、シリアル入出力送受信データバツフア
メモリ、外部機器とのシリアル入出力信号を送受
信するための電気レベル変換回路とシリアル入出
力を制御するための伝送LSIから成るシリアル入
出力ポート、上記伝送LSIとシリアル入出力送受
信データバツフアメモリ間のデータ転送を行う
DMAコントローラおよび割込コントローラから
成り外部機器との間でシリアル入出力を行う制御
装置に、上記伝送LSIからの送受信データ転送要
求信号からDMA要求信号または割込信号を作る
要求変換回路を設け、半二重通信時の同期/非同
期伝送時は送信および受信データ転送要求信号の
OR信号をDMA要求信号として一つのDMAチヤ
ンネルを送信/受信データの転送に交互に使用
し、全二重通信時の非同期伝送時は送信データ転
送要求信号を割込信号に変換してマイクロプロセ
サの割込処理で送信を行うと共に受信データ転送
要求信号をDMA要求信号としてDMAコントロ
ーラに処理させ、これによつて高速のシリアル入
出力に対して1ポート/1DMAチヤネルでデー
タ転送を可能とし、制御回路の小形化をはかつた
入出力ポートのデータ転送制御装置である。[Summary of the Invention] The present invention comprises a microprocessor, a control ROM, an internal RAM, a serial input/output transmission/reception data buffer memory, an electrical level conversion circuit for transmitting/receiving serial input/output signals to/from external equipment, and controlling serial input/output. A serial input/output port consisting of a transmission LSI for data transfer between the transmission LSI and the serial input/output transmission/reception data buffer memory.
A control device consisting of a DMA controller and an interrupt controller that performs serial input/output with external equipment is equipped with a request conversion circuit that generates a DMA request signal or an interrupt signal from the transmission/reception data transfer request signal from the transmission LSI. During synchronous/asynchronous transmission during duplex communication, transmit and receive data transfer request signals are
One DMA channel is used alternately to transfer transmit/receive data using the OR signal as a DMA request signal, and during asynchronous transmission during full-duplex communication, the transmit data transfer request signal is converted to an interrupt signal and the microprocessor Transmission is performed using interrupt processing, and the received data transfer request signal is processed by the DMA controller as a DMA request signal. This enables data transfer with one port/one DMA channel for high-speed serial input/output, and the control circuit This is a data transfer control device for input/output ports that has been miniaturized.
[発明の実施例]
本発明は従来、シリアル入出力ポートの送信/
受信用に割付けられていた2つのDMAチヤンネ
ルを1チヤンネルにし、伝送LSIとバツフアメモ
リ間のデータ転送を、半二重通信の同期/非同期
伝送の場合には、送受信が同時に行われることが
ないので1つのDMAチヤンネルを交互に使用
し、全二重の非同期伝送の場合には、受信データ
を待たせることはできないが送信については制御
装置側のタイミングに合わせられるので、DMA
チヤンネルは受信専用とし送信は割込によつてマ
イクロプロセサに行わせるようにしたものであ
り、本発明に用いられる制御回路の構成を第1図
に示す。第2図は第1図の中の要求変換回路の詳
細図である。[Embodiments of the Invention] The present invention conventionally relates to transmission/output of a serial input/output port.
The two DMA channels allocated for reception are made into one channel, and the data transfer between the transmission LSI and the buffer memory is changed to 1 channel because in the case of synchronous/asynchronous transmission of half-duplex communication, transmission and reception are not performed at the same time. In the case of full-duplex asynchronous transmission using two DMA channels alternately, the received data cannot be made to wait, but the transmission can be synchronized with the timing of the control device, so the DMA
The channel is used only for reception, and transmission is performed by a microprocessor using an interrupt. The configuration of the control circuit used in the present invention is shown in FIG. FIG. 2 is a detailed diagram of the request conversion circuit in FIG. 1.
第1図において、制御装置はマイクロプロセサ
1、制御ROM2、内部RAM3、シリアル入出
力送受信データ用バツフアメモリ4、複数のシリ
アル入出力ポート5、前記ポート数分のDMAチ
ヤンネルをもつDMAコントローラ6、およびポ
ート数分の割込入力をもつ割込コントローラ7か
ら構成される。 In FIG. 1, the control device includes a microprocessor 1, a control ROM 2, an internal RAM 3, a buffer memory 4 for serial input/output transmission/reception data, a plurality of serial input/output ports 5, a DMA controller 6 having DMA channels equal to the number of ports, and ports. It consists of an interrupt controller 7 having several minutes of interrupt inputs.
また入出力ポート5はシリアル入出力信号の電
気レベル変換を行うレベル変換回路8、入出力動
作を制御する伝送LSI9、伝送LSIから出力され
る送信/受信データ転送要求信号10,11から
DMA要求信号12および割込信号13を生成す
る要変換求回路14から構成される。 In addition, the input/output port 5 is connected to a level conversion circuit 8 that converts the electrical level of serial input/output signals, a transmission LSI 9 that controls input/output operations, and transmit/receive data transfer request signals 10 and 11 output from the transmission LSI.
It is composed of a request conversion request circuit 14 that generates a DMA request signal 12 and an interrupt signal 13.
各LSIおよびコントローラは内部バス15に接
続されており、マイクロプロセサ1よりコマンド
の書込、ステータスの読出が可能となつている。 Each LSI and controller are connected to an internal bus 15, allowing the microprocessor 1 to write commands and read status.
またDMAコントローラ6および割込コントロ
ーラ7にはそれぞれ割込信号16,17があり、
マイクロプロセサ1に対して割込を発生させる。 Furthermore, the DMA controller 6 and the interrupt controller 7 have interrupt signals 16 and 17, respectively.
Generates an interrupt to the microprocessor 1.
また上記要求変換回路14は第2図に示すよう
に、伝送LSIからの送信/受信データ転送要求信
号10,11からスイツチなどで指定された切換
信号18によつてDMA要求信号12および割込
信号13を生成する。 Further, as shown in FIG. 2, the request conversion circuit 14 converts the transmission/reception data transfer request signals 10 and 11 from the transmission LSI into a DMA request signal 12 and an interrupt signal by a switching signal 18 specified by a switch or the like. Generate 13.
なおマイクロプロセサ、割込コントローラ、
DMAコントローラ、伝送LSI、電気レベル変換
回路などは公知のものであり、本発明に直接関係
がないので、その説明は省略する。 In addition, the microprocessor, interrupt controller,
The DMA controller, transmission LSI, electrical level conversion circuit, etc. are well known and have no direct relation to the present invention, so their explanation will be omitted.
半二重通信(同期/非同期伝送)の場合は、送
信と受信が同時に行われることがなく1つの
DMAチヤンネルを切換えて使用できるので、切
換信号18を論理“1”とし、伝送LSI9から出
力される送信および受信データ転送要求信号1
0,11をORしてDMA要求信号12に変換す
る。このとき割込信号13はインヒビツトされ
る。 In the case of half-duplex communication (synchronous/asynchronous transmission), transmission and reception are not performed simultaneously;
Since the DMA channel can be switched and used, the switching signal 18 is set to logic "1" and the transmission and reception data transfer request signal 1 output from the transmission LSI 9
0 and 11 are ORed and converted into a DMA request signal 12. At this time, interrupt signal 13 is inhibited.
またマイクロプロセサ1は送信時以外は伝送
LSI9を受信許可/送信禁止とし、DMAコント
ローラ6にも受信バツフアエリア指定をしておき
受信待状態にしておく。 Also, microprocessor 1 transmits data except when transmitting.
The LSI 9 is enabled for reception/disabled for transmission, and the DMA controller 6 is also designated as a reception buffer area and placed in a reception standby state.
すなわち受信時はシリアルデータの受信により
伝送LSI9より受信データ転送要求信号11がア
クテイブとなり要求変換回路14によりDMA要
求信号12がアクテイブとなる。これにより
DMAコントローラ6は、伝送LSI9から受信デ
ータをDMAによつてバツフアメモリ4へ書込
む。 That is, during reception, upon reception of serial data, the reception data transfer request signal 11 is made active by the transmission LSI 9, and the DMA request signal 12 is made active by the request conversion circuit 14. This results in
The DMA controller 6 writes the received data from the transmission LSI 9 to the buffer memory 4 by DMA.
マイクロプロセサ1は周期的に伝送LSI9のス
テータスを読出すか、または伝送LSIからの受信
開始割込によりその開始を知り、後は周期的に受
信テキストの内容をチエツクし、受信完了処理を
実施する。 The microprocessor 1 periodically reads the status of the transmission LSI 9 or learns of the start of reception from a reception start interrupt from the transmission LSI, and thereafter periodically checks the contents of the received text and executes reception completion processing.
また送信時は、マイクロプロセサ1は伝送LSI
9を送信許可/受信禁止とし、DMAコントロー
ラ6には送信データの格納番地と伝送数をセツト
しておき、DMAコントローラを起動する。以後
はDMAコントローラが送信データを伝送LSIに
書込む。 Also, during transmission, microprocessor 1 is the transmission LSI
9 is set to enable transmission/disable reception, the DMA controller 6 is set with the storage address of the transmission data and the number of transmissions, and the DMA controller is activated. After that, the DMA controller writes the transmission data to the transmission LSI.
マイクロプロセサ1は周期的DMAコントロー
ラ6のステータスを読出すか、またはDMAコン
トローラからの割込によつて送信完了を知り、送
信完了処理を行う。 The microprocessor 1 learns of the completion of transmission by reading the status of the periodic DMA controller 6 or by an interrupt from the DMA controller, and performs transmission completion processing.
また全二重通信(非同期伝送)の場合は、切換
信号18を論理“0”とする。これにより要求変
換回路14は伝送LSI9からの送信データ転送要
求信号10を割込信号13に変換し、割込コント
ローラ17を介してマイクロプロセサ1に送信要
求を通知する。マイクロプロセサ1はこれにより
伝送LSI9に送信データを書込む。 Further, in the case of full-duplex communication (asynchronous transmission), the switching signal 18 is set to logic "0". As a result, the request conversion circuit 14 converts the transmission data transfer request signal 10 from the transmission LSI 9 into an interrupt signal 13, and notifies the microprocessor 1 of the transmission request via the interrupt controller 17. The microprocessor 1 thereby writes the transmission data into the transmission LSI 9.
受信時は前記半二重通信と同様の手順でDMA
によるデータ転送が行われる。 When receiving, DMA is performed using the same procedure as the half-duplex communication described above.
Data transfer is performed by
[発明の効果]
以上説明したように、本発明によれば要求変換
回路を用いてDMAチヤンネル数を1チヤンネ
ル/1ポートとしているので、DMAコントロー
ラが従来の1/2となり、またDMAコントローラ
を使用しているので多数ポートの高速伝送を可能
にすると共に装置の小形化が実現できる。[Effects of the Invention] As explained above, according to the present invention, the number of DMA channels is reduced to 1 channel/1 port using a request conversion circuit, so the number of DMA controllers is reduced to 1/2 of the conventional one, and the number of DMA controllers is reduced to 1/2. This makes it possible to perform high-speed transmission using multiple ports and to downsize the device.
第1図は本発明の一実施例を示す系統図、第2
図は第1図における要求変換回路の詳細を示す回
路図、第3図および第4図はそれぞれ従来のデー
タ転送制御装置の一例を示す系統図である。
1……マイクロプロセサ、2……制御ROM、
3……内部RAM、4……送受信データバツフア
メモリ、5……シリアル入出力ポート、6……
DMAコントローラ、7……割込コントローラ、
8……電気レベル変換回路、9……伝送LSI、1
4……要求変換回路、15……内部バス。
Figure 1 is a system diagram showing one embodiment of the present invention, Figure 2 is a system diagram showing an embodiment of the present invention.
This figure is a circuit diagram showing details of the request conversion circuit in FIG. 1, and FIGS. 3 and 4 are system diagrams showing an example of a conventional data transfer control device, respectively. 1...Microprocessor, 2...Control ROM,
3...Internal RAM, 4...Transmission/reception data buffer memory, 5...Serial input/output port, 6...
DMA controller, 7... interrupt controller,
8...Electric level conversion circuit, 9...Transmission LSI, 1
4...Request conversion circuit, 15...Internal bus.
Claims (1)
シリアル入出力送受信データバツフアメモリ、外
部機器とのシリアル入出力信号を送受信するため
の電気レベル変換回路とシリアル入出力を制御す
るための伝送LSIから成るシリアル入出力ポー
ト、上記伝送LSIとシリアル入出力送受信データ
バツフアメモリ間のデータ転送を行うDMAコン
トローラおよび割込コントローラから成り外部機
器との間でシリアル入出力を行う制御装置におい
て、上記伝送LSIからの送受信データ転送要求信
号からDMA要求信号または割込信号を作る要求
変換回路を設け、該要求変換回路は、半二重通信
時の同期/非同期伝送時は送信および受信データ
転送要求信号のOR信号をDMA要求信号とし、
全二重通信時の非同期伝送時は送信データ転送要
求信号を割込信号とすると共に受信データ転送要
求信号をDMA要求信号とすることを特徴とする
シリアル入出力ポートのデータ転送制御装置。1 Microprocessor, control ROM, internal RAM,
A serial input/output port consisting of a serial input/output transmit/receive data buffer memory, an electrical level conversion circuit for transmitting and receiving serial input/output signals to and from external equipment, and a transmission LSI for controlling serial input/output; Output Send/Receive Data Buffer In a control device that includes a DMA controller and an interrupt controller that perform data transfer between memories and performs serial input/output with external equipment, a DMA request signal or a A request conversion circuit that generates an interrupt signal is provided, and the request conversion circuit converts an OR signal of transmit and receive data transfer request signals into a DMA request signal during synchronous/asynchronous transmission during half-duplex communication,
A data transfer control device for a serial input/output port, characterized in that during asynchronous transmission during full-duplex communication, a transmission data transfer request signal is used as an interrupt signal and a reception data transfer request signal is used as a DMA request signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60279050A JPS62139061A (en) | 1985-12-13 | 1985-12-13 | Control method for data transfer of serial input and output port |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60279050A JPS62139061A (en) | 1985-12-13 | 1985-12-13 | Control method for data transfer of serial input and output port |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62139061A JPS62139061A (en) | 1987-06-22 |
| JPH044619B2 true JPH044619B2 (en) | 1992-01-28 |
Family
ID=17605698
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60279050A Granted JPS62139061A (en) | 1985-12-13 | 1985-12-13 | Control method for data transfer of serial input and output port |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62139061A (en) |
-
1985
- 1985-12-13 JP JP60279050A patent/JPS62139061A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62139061A (en) | 1987-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5566345A (en) | SCSI bus capacity expansion controller using gating circuits to arbitrate DMA requests from a plurality of disk drives | |
| JPH077955B2 (en) | Data communication controller | |
| JPH044619B2 (en) | ||
| US4177451A (en) | Data communication system | |
| JPH03134712A (en) | programmable controller | |
| JPH0342741B2 (en) | ||
| JPS62132456A (en) | data transmission equipment | |
| JPS5926415Y2 (en) | Digital interface circuit | |
| JPS63206050A (en) | Data transfer method | |
| JPS5970046A (en) | Serial communication system | |
| JPH05265773A (en) | Information processor | |
| JPH04142644A (en) | Ram accessing method | |
| JPS63185254A (en) | Data transfer controller | |
| JPS58177053A (en) | data communication system | |
| JPS62251954A (en) | Data communication processor | |
| JPS6160040A (en) | Data transfer system in packet communication controller | |
| JPS59188769A (en) | Control circuit of common memory | |
| JPH0452948A (en) | Data transfer system for input/output controller | |
| JPS63170760A (en) | data bus terminal equipment | |
| JPH0282342A (en) | Data communication equipment | |
| JPH0365844A (en) | Data transfer equipment | |
| JPS59223871A (en) | Data transfer system | |
| JPH03219359A (en) | Interface circuit | |
| JPS61173555A (en) | Connecting method of communication controller | |
| JPS63121962A (en) | Asynchronous data transfer method |