JPS63117538A - Receiver - Google Patents

Receiver

Info

Publication number
JPS63117538A
JPS63117538A JP61263214A JP26321486A JPS63117538A JP S63117538 A JPS63117538 A JP S63117538A JP 61263214 A JP61263214 A JP 61263214A JP 26321486 A JP26321486 A JP 26321486A JP S63117538 A JPS63117538 A JP S63117538A
Authority
JP
Japan
Prior art keywords
data
control
byte
transfer
control character
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
JP61263214A
Other languages
Japanese (ja)
Inventor
Seiji Komai
駒井 誠二
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61263214A priority Critical patent/JPS63117538A/en
Publication of JPS63117538A publication Critical patent/JPS63117538A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To make the investigation of data by every byte by a CPU unnecessary, and to realize the fast transfer of the data, by detecting a control character stipulated by a synchronous communication system in DMA transfer, and informing it to the CPU. CONSTITUTION:Synchronization between a control block and a data block sent from a serial line to a receiver is taken by a communication control LSI13, and a SYN character is removed. Afterwards, the block is changed to a reception data, and is transferred byte by byte to a memory 2 by a DMAC4. During the above DMAC transfer, the data at a time when a DACK signal to the LSI13 becomes active is detected at a control character detection circuit CRWD6 via a data bus 12. An interruption signal is generated when the data is the control character stipulated at the CRWD6, and it is informed to the CPU1 via a signal line 21, an interruption controller INTC5, and a signal line 24. And the CPU1 finds a transfer opposite address while executing an interruption processing, and processes the data with a stipulated communication procedure.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、バイト指向型同期通信方式による受信装置
、特にそのデータ受信の能力向上に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a receiving device using a byte-oriented synchronous communication method, and particularly to improving its data receiving ability.

〔従来の技術〕[Conventional technology]

近年、シリアル伝送技術や集積回路技術の発達に伴い、
種々のプロトコルを扱う通信制御大規模集積回路(以下
、通信制御LSIという)が比較的安価に市販されるよ
うになり、各種データ通信装置に用いられるようになっ
てきた。
In recent years, with the development of serial transmission technology and integrated circuit technology,
Communication control large-scale integrated circuits (hereinafter referred to as communication control LSIs) that handle various protocols have become commercially available at relatively low prices and are being used in various data communication devices.

第5図は例えばトランジスタ技術(1985年11月C
Q出版社発行)のP355〜P384に掲載された「特
集マイコン・データ通信技術のすべて シリアル・イン
ターフェースの設計法」に示された従来の受信装置を示
すブロック図である。
Figure 5 shows, for example, transistor technology (November 1985 C
FIG. 2 is a block diagram showing a conventional receiving device shown in "Special feature: All about microcomputer data communication technology: Serial interface design method" published on pages 355 to 384 of Q Publishers.

図において、1は中央処理装置(以下CPUという)、
2はメモリ、3はシリアルラインによシ送られてきたデ
ータを受信する通信制御LSIとしてのマルチプロトコ
ルシリアルコントローラ(以下、MPSCという)、4
はMPSC3がダイレクトメモリアクセス(以下、DM
Aという)モードで用いられた時にMPSC3とメモリ
2間でのDMA転送を制御するDMAコントローラ(以
下、DMACという)、5はMPSC3及びDMAC4
などからの割込信号を集線、制御する割込コントローラ
(以下、INTCという)である。
In the figure, 1 is a central processing unit (hereinafter referred to as CPU);
2 is a memory, 3 is a multi-protocol serial controller (hereinafter referred to as MPSC) as a communication control LSI that receives data sent through a serial line, 4
The MPSC3 uses direct memory access (hereinafter referred to as DM).
A DMA controller (hereinafter referred to as DMAC) that controls DMA transfer between MPSC 3 and memory 2 when used in mode A), 5 is MPSC 3 and DMAC 4
This is an interrupt controller (hereinafter referred to as INTC) that concentrates and controls interrupt signals from such sources.

また、これらの各装置は、コントロールバス11及びデ
ータバス12によって接続されており、さらに、MPS
C3とINTC5の間は信号線22により、DMAC4
とINTC5の間は信号線23により、INTC5とC
PU1の間は信号線24によシそれぞれ接続されて割込
信号が伝えられる0次に動作について説明する。ここで
このような構成の受信装置の制御方式には、プログラム
制御方式とDMA制御方式とがある。プログラム制御方
式は、CPU1が、ポーリング、または、信号線22、
INTC5及び信号線24を介したMPSC3からの割
込に対する割込処理で、直接コントロールバス11を制
御し、データバス12を介して、MPSC3とメモリ2
間のデータ転送を行なう方式である。一方、DMA制御
方式は、MPSC3からのDMA要求によりDMAC4
が、CPUIからコントロールバス11の使用権を要求
し、獲得することによりデータバス12を介して、MP
SC3とメモリ2間のデータ転送全行なう方式である。
Further, each of these devices is connected by a control bus 11 and a data bus 12, and furthermore, an MPS
DMAC4 is connected between C3 and INTC5 by signal line 22.
A signal line 23 connects INTC5 and C
The 0th order operation in which the PU1 is connected to the signal line 24 and an interrupt signal is transmitted will be described. Control methods for the receiving apparatus having such a configuration include a program control method and a DMA control method. In the program control method, the CPU 1 performs polling or the signal line 22,
Interrupt processing for interrupts from the MPSC 3 via the INTC 5 and signal line 24 directly controls the control bus 11 and controls the MPSC 3 and memory 2 via the data bus 12.
This method transfers data between On the other hand, in the DMA control method, DMAC4 receives a DMA request from MPSC3.
By requesting and acquiring the right to use the control bus 11 from the CPU, the MP
This is a method in which all data transfer between SC3 and memory 2 is performed.

高スループツトの要求、入出力制御(以下、エフ0制御
という)のための負荷の軽減の意味からは、プログラム
方式よシもDMA方式の方が優れておシ、実際HD L
 C(High−Level Data LinkCo
ntrol)、 S D L C(S)’nchron
ous  DataLink Control )等の
、ビット指向型同期通信方式の場合には、DMA制御方
式がよく用いられるoしかしながら、 Monosyn
c (Mono SynchronousCommun
icat i ons )% Bi 5ync (Bi
narySynchronousCommunicat
ions)等のバイト指向型同期通信方式の場合、キャ
ラクタに依存したプロトコルであシ、受信したキャラク
タを調べながら処理を進める必要があるため、前述の文
献(トランジスタ技術1985年11月)さらには[J
pl)7201A  MPSCj−−ザーズ、マニエア
ル(日本電気株式会社発行)P75〜P79のように、
DMA方式は用いられず、割込などによるプログラム制
御方式が用いられる。この場合、シリアルラインを介し
て送られてきたデータがMPSC3によシ1バイト受信
される度ごとに、信号線22及び工NTC5及び信号線
24を介して割込がCPUIに対してあげられ、CPU
1はデータの内容が第3図にある制御文字にあたるかど
うか検索しながら、MPSC3t−メモリ2間のデータ
転送を行なう0 〔発明が解決しようとする問題点3 以上のように従来の受信装置は以上のように構成されて
いるので、バイト指向型同期通信方式において、CPU
1の負荷軽減はできず、また仮にDMA方式を用いたと
しても、DMA転送後のデータ領域を1バイトずつ検索
してゆくことが必要であり、同様の理由で、回線数の増
加、スルーブツトの増大などの要求に答えることができ
ないという問題点があった。
The DMA method is superior to the program method in terms of high throughput requirements and the reduction of load for input/output control (hereinafter referred to as F0 control).
C (High-Level Data LinkCo
ntrol), S DLC(S)'nchron
In the case of a bit-oriented synchronous communication method such as DataLink Control), a DMA control method is often used.
c (Mono Synchronous Commun
icat ions )% Bi 5ync (Bi
narySynchronousCommunicat
In the case of a byte-oriented synchronous communication method such as . J
pl) 7201A MPSCj--Zers, Manual (Published by NEC Corporation) Like P75-P79,
A DMA method is not used, but a program control method using interrupts or the like is used. In this case, every time one byte of data sent via the serial line is received by the MPSC 3, an interrupt is raised to the CPU via the signal line 22, the NTC 5, and the signal line 24. CPU
1 performs data transfer between the MPSC 3t and the memory 2 while searching whether the content of the data corresponds to the control characters shown in FIG. With the above configuration, in the byte-oriented synchronous communication method, the CPU
It is not possible to reduce the load of 1, and even if a DMA method is used, it is necessary to search the data area byte by byte after DMA transfer.For the same reason, an increase in the number of lines and a reduction in throughput There was a problem in that it was not possible to respond to demands such as increases.

この発明は上記のような問題点を解消するためになされ
たもので、バイト指向型同期通信方式においても、DM
A方式を用いることができ、CPUの負荷を軽減するこ
とができる高処理能力の受信装置を得ることを目的とす
る。
This invention was made to solve the above problems, and even in the byte-oriented synchronous communication system, DM
It is an object of the present invention to obtain a high-throughput receiving device that can use the A method and reduce the load on the CPU.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る受信装置は、上記目的を達成するため、
マルチプロトコルシリアルコントローラをDMAモード
にし、受信したデータをD MA転送するとともに、D
MA転送中に転送したデータをバス上で読みとシ、その
内容が、バイト指向型同期通信方式で定める制御文字の
時には、制御文字検出回路がCPUに対し、割込信号を
出すようにしたものである。
In order to achieve the above object, the receiving device according to the present invention has the following features:
Set the multiprotocol serial controller to DMA mode, transfer the received data by DMA, and
The data transferred during MA transfer is read on the bus, and when the content is a control character specified by the byte-oriented synchronous communication method, the control character detection circuit issues an interrupt signal to the CPU. It is.

また、この発明の別の発明に係る受信装置は、さらに制
御文字検出回路がCPUに対して前記割込信号を出すと
ともに、当該制御文字の内容及び転送アドレスをラッチ
するようにしたものである。
Further, in a receiving device according to another aspect of the present invention, the control character detection circuit issues the interrupt signal to the CPU and latches the contents of the control character and the transfer address.

〔作用〕[Effect]

この発明における受信装置は、制御文字を受信した旨を
DMA転送中にCPUに対し割込信号を上げることによ
り、CPUが1バイトずつデータを検索することなく効
率的に制御文字を捜し出すことを可能とする。
By raising an interrupt signal to the CPU during DMA transfer to indicate that a control character has been received, the receiving device according to the present invention enables the CPU to efficiently search for the control character without having to search the data one byte at a time. shall be.

また、この発明の別の発明における受信装置は、さらに
、制御文字の内容及び転送先アドレスをランチすること
によ!5、CPUからI10制御によってこnを読み出
すことを可能とする。
Furthermore, the receiving device according to another aspect of the present invention further includes the content of the control character and the transfer destination address. 5. It is possible to read this n from the CPU under I10 control.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図において、1〜5,11,12.22〜24は第5図
に同一符号を付した従来のものと同等であるため説明を
省略する。6はデータバス12に接続され、前記MPS
C3とメモリ2の間でDMA転送中のデータが、当該バ
イト指向型同期通信方式で定める制御文字であるときに
割込信号を発生する制御文字検出回路(以下、CRWD
という)であシ、21はこのCRWD6からの割込信号
t−CPUIに伝える信号線である。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, 1 to 5, 11, 12, and 22 to 24 are the same as those in the prior art denoted by the same reference numerals in FIG. 5, and therefore their explanation will be omitted. 6 is connected to the data bus 12, and the MPS
A control character detection circuit (hereinafter referred to as CRWD) generates an interrupt signal when the data being transferred by DMA between C3 and memory 2 is a control character specified by the byte-oriented synchronous communication method.
21 is a signal line that transmits the interrupt signal t-CPUI from the CRWD6.

次に動作について説明する。第3図1d Monos)
’nc方式あるいはB157nc方式などのバイト指向
型同期通信方式の基本ブロックフォーマットを示す説明
図である。シリアルラインよυ第3図a及びbの形で送
られてきた制御ブロック及びデータブロックは、MPS
C3で同期がとられ、SYN文字が除去される。その後
のブロックは、受信データとなシ、1バイトずつDMA
C4によシメモリ2に転送される。DMA転送中すなわ
ちDMAC4からMPSC3へのDACK信号がアクテ
ィブになっている時のデータをデータバス12を介して
CRWD6が検知し、それが第4図で定める制御文字の
時には割込信号を発生し、信号線21及びINTC5及
び信号線24を介してCPUI K通知する。CPU1
ばこの割込により制御文字が受信されたことを知り、そ
の割込処理中に、DMAC4のカレントアドレスレジス
タを読み出すことによりその制御文字の転送先アドレス
を知り、それぞれのプロトコルで定められる通信手順で
データを処理する。
Next, the operation will be explained. Figure 3 1d Monos)
FIG. 2 is an explanatory diagram showing a basic block format of a byte-oriented synchronous communication method such as the 'nc method or the B157nc method. The control blocks and data blocks sent via the serial line υ in the form of Figure 3 a and b are the MPS
Synchronization is established at C3 and the SYN character is removed. The subsequent blocks are DMAed one byte at a time with the received data.
It is transferred to memory 2 by C4. The CRWD 6 detects data via the data bus 12 during DMA transfer, that is, when the DACK signal from the DMAC 4 to the MPSC 3 is active, and when it is a control character defined in FIG. 4, generates an interrupt signal. CPUI K is notified via the signal line 21, INTC5, and signal line 24. CPU1
It is learned that a control character has been received by an interrupt from a computer, and during the interrupt processing, the transfer destination address of the control character is learned by reading the current address register of DMAC4, and the transfer destination address is determined according to the communication procedure defined by each protocol. Process the data.

次に、この発明の別の発明の一実施例を図について説明
する。第2図において、1〜6,11゜12.21〜2
4は第1図に同一符号を付したものと同等のものである
ため説明は省略する。7゜8はCRWD6が割込信号を
発生した時に転送データの内容、及びその転送先アドレ
スをラッチするラッチ回路であり、これらはそれぞれコ
ントロールバス11、及びデータバス12に接続サレテ
いる。
Next, another embodiment of the present invention will be described with reference to the drawings. In Figure 2, 1~6,11°12.21~2
4 is the same as the one with the same reference numeral in FIG. 1, so the explanation thereof will be omitted. 7.8 is a latch circuit that latches the contents of the transfer data and the transfer destination address when the CRWD 6 generates an interrupt signal, and these are connected to the control bus 11 and the data bus 12, respectively.

次に動作について説明する。CRWD6が所定の制御文
字を検知して割込信号を発生し、CPU1に通知するま
では第1図に示すものと同様に動作する。この割込信号
の発生時には、転送データの内容、即ち、制御文字がラ
ッチ回路7にラッチされ、その転送アドレスがラッチ回
路8にラッチされる。
Next, the operation will be explained. The CRWD 6 detects a predetermined control character, generates an interrupt signal, and operates in the same manner as shown in FIG. 1 until the CPU 1 is notified. When this interrupt signal is generated, the content of the transfer data, that is, the control character, is latched in the latch circuit 7, and the transfer address is latched in the latch circuit 8.

CPU1ば、前記割込により、制御文字が受信されたこ
とを知り、I10制御により、ラッチ回路7、ラッチ回
路8の内容を読み出すことにより、その制御文字及び転
送先アドレス全知って、それぞれのプロトコルで定めら
れる通信手順でデータを処理する。
The CPU 1 learns that the control character has been received by the interrupt, reads the contents of the latch circuits 7 and 8 under the control of I10, learns all of the control characters and the transfer destination address, and executes the respective protocols. Data is processed using the communication procedures specified in .

なお、このラッチ回路T及び8の内容を読み出すタイミ
ングは、次の制御文字を受信するまでであればよいこと
になる。
Note that the timing for reading the contents of the latch circuits T and 8 only needs to be until the next control character is received.

なお、上記両発明の実施例では、収容するチャネルが1
チヤネルだけのものについて説明したが、割込コントロ
ーラをカスケード接続すれば多チャネルを収容すること
ができる。その場合、この発明の別の発明においては、
ラッチ回路は各チャネル毎に設ける必要がある。
In addition, in the embodiments of both the inventions described above, the number of channels accommodated is one.
Although only channels have been described, multiple channels can be accommodated by cascading interrupt controllers. In that case, in another invention of this invention,
A latch circuit must be provided for each channel.

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

以上のようにこの発明によれば、DMA転送中に同期通
信方式で定める制御文字を検出し、CPUに通知できる
ようKしたので、CPUが1バイトずつデータを調べて
ゆく必要がなく、データの高速転送ができ、また、CP
Uの負荷を大巾に減らすことができる効果がある。また
、この発明の他の発明によれば、検出した制御文字の内
容及び転送アドレスをラッチするように構成したので、
制御文字及び転送先アドレスを読み出すタイミングは、
次の制御文字を受信するまでであればよいので、割込処
理で即座にDMAコントローラのカレントアドレスレジ
スタを読みとるなどの方法に比べて時間的余裕を持たせ
ることができる効果がある。
As described above, according to the present invention, the control characters specified by the synchronous communication method are detected during DMA transfer and the K is set so that the CPU can be notified. High-speed transfer is possible, and CP
This has the effect of greatly reducing the load on U. Further, according to another aspect of the present invention, since the content of the detected control character and the transfer address are latched,
The timing to read the control characters and transfer destination address is as follows.
Since it only needs to be done until the next control character is received, it has the effect of providing more time than a method such as immediately reading the current address register of the DMA controller by interrupt processing.

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

第1図はこの発明の一実施例による受信装置を示すブロ
ック図、第2図はこの発明の他の発明の一実施例による
受信装置を示すブロック図、第3図はバイト指向型同期
通信方式でとられるブロックフォーマットを示す説明図
、第4図は同通信方式の制御文字の一部を示す説明図、
第5図は従来の受信装置を示すブロック図である。 1はCPU、2Hメ%す、3HMP S C(通信制御
LSI)、4uDMAC,1ltcRWD、7゜8はラ
ッチ回路。 なお、図中、同一符号は同一、又は相当部分を示す。 特許出願人   三菱電機株式会社 (外2名) 第1図 第2図
FIG. 1 is a block diagram showing a receiving device according to an embodiment of the present invention, FIG. 2 is a block diagram showing a receiving device according to another embodiment of the present invention, and FIG. 3 is a byte-oriented synchronous communication system. Fig. 4 is an explanatory diagram showing a part of the control characters of the communication method.
FIG. 5 is a block diagram showing a conventional receiving device. 1 is the CPU, 2H memory, 3HMPSC (communication control LSI), 4uDMAC, 1ltcRWD, 7°8 is the latch circuit. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Patent applicant: Mitsubishi Electric Corporation (2 others) Figure 1 Figure 2

Claims (2)

【特許請求の範囲】[Claims] (1)シリアルラインからバイト指向型同期通信方式で
送られてくるデータを通信制御大規模集積回路にて受信
する受信装置において、受信した前記データを前記通信
制御大規模集積回路からメモリへ転送するためのダイレ
クトメモリアクセスコントローラと、当該ダイレクトメ
モリアクセスコントローラがダイレクトメモリアクセス
転送中に前記データの内容を検知し、その内容が前記バ
イト指向型同期通信方式で定められている制御文字であ
るときに中央処理装置に割り込み信号を出力する制御文
字検出回路とを設けたことを特徴とする受信装置。
(1) In a receiving device in which a communication control large-scale integrated circuit receives data sent from a serial line using a byte-oriented synchronous communication method, the received data is transferred from the communication control large-scale integrated circuit to a memory. and a direct memory access controller for detecting the content of the data during direct memory access transfer, and when the content is a control character specified in the byte-oriented synchronous communication method, the central A receiving device comprising a control character detection circuit that outputs an interrupt signal to a processing device.
(2)シリアルラインからバイト指向型同期通信方式で
送られてくるデータを通信制御大規模集積回路にて受信
する受信装置において、受信した前記データを前記通信
制御大規模集積回路からメモリへ転送するためのダイレ
クトメモリアクセスコントローラと、当該ダイレクトメ
モリアクセスコントローラがダイレクトメモリアクセス
転送中に前記データの内容を検知し、その内容が前記バ
イト指向型同期通信方式で定められている制御文字であ
るときに中央処理装置に割り込み信号を出力する制御文
字検出回路と、当該制御文字の内容及び転送先アドレス
をラッチするラッチ回路とを設けたことを特徴とする受
信装置。
(2) In a receiving device in which a communication control large-scale integrated circuit receives data sent from a serial line using a byte-oriented synchronous communication method, the received data is transferred from the communication control large-scale integrated circuit to a memory. and a direct memory access controller for detecting the content of the data during direct memory access transfer, and when the content is a control character specified in the byte-oriented synchronous communication method, the central A receiving device comprising: a control character detection circuit that outputs an interrupt signal to a processing device; and a latch circuit that latches the contents of the control character and a transfer destination address.
JP61263214A 1986-11-05 1986-11-05 Receiver Pending JPS63117538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61263214A JPS63117538A (en) 1986-11-05 1986-11-05 Receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61263214A JPS63117538A (en) 1986-11-05 1986-11-05 Receiver

Publications (1)

Publication Number Publication Date
JPS63117538A true JPS63117538A (en) 1988-05-21

Family

ID=17386366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61263214A Pending JPS63117538A (en) 1986-11-05 1986-11-05 Receiver

Country Status (1)

Country Link
JP (1) JPS63117538A (en)

Similar Documents

Publication Publication Date Title
JPS63117538A (en) Receiver
JPS6240751B2 (en)
JPH03204254A (en) Data receiver
JP2000322370A (en) Data outputting circuit
JP3161174B2 (en) Key telephone equipment
JP3270040B2 (en) Bus control method
JPS6362064A (en) Bus converter
JPH02299055A (en) Information transfer system between multi-bus constitution devices
JPS63293658A (en) Communication processor
JPS63164654A (en) Serial communication equipment
JPH0612261A (en) Interruption control circuit
JPS63300346A (en) Dma control system
JPH11123848A (en) Image forming apparatus and method for setting image processing
JPS6076840A (en) Transmission system of state change information
JPS6349867A (en) Outputting device for serial data
JPS6336459A (en) High speed dma transferring system
JPH01304568A (en) Data read system for process output device
JPH04314157A (en) Communication equipment
JP2000047965A (en) Information processor
JPS6374244A (en) High speed data reception system
JPS6097461A (en) Data bus control circuit
JPH04314233A (en) High speed data communication equipment
JPS62192845A (en) Bus control system
JP2003296265A (en) Data transfer circuit
JPS6054051A (en) Multiple system interrupt processing device