Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0636518B2 - Reception control circuit - Google Patents
[go: Go Back, main page]

JPH0636518B2 - Reception control circuit - Google Patents

Reception control circuit

Info

Publication number
JPH0636518B2
JPH0636518B2 JP62285501A JP28550187A JPH0636518B2 JP H0636518 B2 JPH0636518 B2 JP H0636518B2 JP 62285501 A JP62285501 A JP 62285501A JP 28550187 A JP28550187 A JP 28550187A JP H0636518 B2 JPH0636518 B2 JP H0636518B2
Authority
JP
Japan
Prior art keywords
character
memory
microprocessor
address
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62285501A
Other languages
Japanese (ja)
Other versions
JPH01128645A (en
Inventor
裕 石川
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP62285501A priority Critical patent/JPH0636518B2/en
Publication of JPH01128645A publication Critical patent/JPH01128645A/en
Publication of JPH0636518B2 publication Critical patent/JPH0636518B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータや端末装置のデータ通信を司る
通信制御装置における受信制御回路に関し、特に調歩同
期・文字同期方式の受信動作の制御に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reception control circuit in a communication control device that controls data communication of a computer or a terminal device, and more particularly to control of a reception operation of start / stop synchronization / character synchronization method. Is.

(従来の技術) 第5図はこの種受信制御回路が適用される比較的大規模
なシステムの例であり、第6図は比較的小規模な装置の
例である。
(Prior Art) FIG. 5 is an example of a relatively large-scale system to which this type of reception control circuit is applied, and FIG. 6 is an example of a relatively small-scale device.

第5図のシステムでは、システム全体の制御を行う中央
処理装置(以下CPU という)10とメモリ11及び各種の入
出力制御装置がバス12を介して接続されている。ここで
入出力制御装置とは、例示したファイルユニット14に接
続されるファイル制御装置13、FDD ユニット16に接続さ
れるFDD 制御装置15、回線18に接続される通信制御装置
17をはじめとして多くの装置を指すが、本発明とは直接
関係しないため、詳細な説明は省略する。本発明が関与
するのは、入出力制御装置の中で通信を行うための通信
制御装置17であって、この通信制御装置17は一例として
第5図に示すようにマイクロプロセッサ20、チャネル2
1、メモリ22、通信制御LSI 23、ドライバ/レシーバ24
から構成される。マイクロプロセッサ20は垂直型マイク
ロプロセッサ(例えば、インテル社製16ビット1チップ
マイクロプロセッサi8086 )や水平型マイクロプロセッ
サ(例えばAMD 社製4ビットスライスマイクロプロセッ
サAm2901)等により構成される。通信制御LSI 23は回線
18から受信するシリアルのデータをパラレルデータに変
換、或いはその逆の動作を行う回路であり、その詳細は
後述する。本明細書においては現実のハードウェアにそ
った形で説明するため、この回路を通信制御LSI と呼ん
でいるが、必ずしもLSI である必要はなく、同等の機能
を持った回路でも当然実現可能である。
In the system shown in FIG. 5, a central processing unit (hereinafter referred to as CPU) 10 for controlling the entire system, a memory 11 and various input / output control devices are connected via a bus 12. Here, the input / output control device is the file control device 13 connected to the illustrated file unit 14, the FDD control device 15 connected to the FDD unit 16, and the communication control device connected to the line 18.
Although it refers to a large number of devices such as 17, it is not directly related to the present invention, and a detailed description thereof will be omitted. The present invention is concerned with the communication control device 17 for performing communication in the input / output control device. The communication control device 17 is, for example, as shown in FIG.
1, memory 22, communication control LSI 23, driver / receiver 24
Composed of. The microprocessor 20 is composed of a vertical microprocessor (for example, a 16-bit 1-chip microprocessor i8086 manufactured by Intel), a horizontal microprocessor (for example, a 4-bit slice microprocessor Am2901 manufactured by AMD), and the like. Communication control LSI 23 is a line
It is a circuit that converts serial data received from 18 into parallel data or vice versa, and the details thereof will be described later. In this specification, this circuit is called a communication control LSI for the sake of explanation in the form of actual hardware, but it is not necessarily an LSI and can naturally be realized by a circuit having an equivalent function. is there.

第6図は小規模装置の例であり、この装置では、CPU 30
とメモリ31及び各種の入出力回路がバス32を介して接続
されており、CPU 30は各種の入出力回路を直接制御する
ようになっている。ここで各種入出力回路とは、例示し
たファイルユニット35にドライバ/レシーバ34を介して
接続されるDISK制御LSI 33、 FDDユニット38にドライバ
/レシーバ37を介して接続される FDD制御LSI 36、回線
41にドライバ/レシーバ40を介して接続される通信制御
LSI 39をはじめとして多くの回路を示すが、上記と同
様、本発明に直接関与しない部分の説明は省略する。本
発明が関与するのはCPU 30と通信制御LSI 39との間の受
信回路である。
Fig. 6 shows an example of a small-scale device.
The memory 31 and the various input / output circuits are connected via the bus 32, and the CPU 30 directly controls the various input / output circuits. Here, the various input / output circuits are the DISK control LSI 33 connected to the illustrated file unit 35 via the driver / receiver 34, the FDD control LSI 36 connected to the FDD unit 38 via the driver / receiver 37, and the line.
Communication control connected to 41 via driver / receiver 40
Although many circuits including the LSI 39 are shown, the description of the parts not directly related to the present invention will be omitted as in the above. The present invention is concerned with the receiving circuit between the CPU 30 and the communication control LSI 39.

第7図は従来の調歩同期・文字同期用通信制御装置の受
信部の一構成例を示すブロック図である。この受信部
は、第5図に例示した大規模システムでは通信制御装置
17の内部にあるマイクロプロセッサ20、メモリ22、通信
制御LSI 23、ドライバ/レシーバ24から構成される部分
に相当し、また、第6図に例示した小規模装置の例では
CPU30、メモリ31、通信制御LSI 39、ドライバ/レシー
バ40から構成される部分に相当する。この受信制御回路
はマイクロプロセッサ回路 300、メモリ 301、通信制御
LSI 302 、及び回線 304に接続されたレシーバ 303から
成る。
FIG. 7 is a block diagram showing an example of the configuration of a receiving unit of a conventional communication control device for start / stop synchronization / character synchronization. This receiving unit is a communication control device in the large-scale system illustrated in FIG.
It corresponds to a portion including a microprocessor 20, a memory 22, a communication control LSI 23, and a driver / receiver 24 inside 17 and, in the example of the small-scale device illustrated in FIG.
It corresponds to a portion including a CPU 30, a memory 31, a communication control LSI 39, and a driver / receiver 40. This reception control circuit is a microprocessor circuit 300, memory 301, communication control
It consists of an LSI 302 and a receiver 303 connected to the line 304.

回線 304から受信されたシリアルデータはレシーバ303
により電気的にレベル変換され(例えば、±10Vの電気
信号を TTL信号に変換する)、通信制御LSI 302 に入力
される。通信制御LSI 302 は例えばインテル社製 i8251
により実現される回路であり、シリアルデータを適当な
単位に区切り、パラレルデータ(以降、この区切られた
パラレルデータをキャラクタと呼ぶ)を作ると共にRX R
DY信号 307をオンする事によりキャラクタ受信完了をマ
イクロプロセッサ回路 300に通知する。マイクロプロセ
ッサ回路 300はI/O RD信号 308をオンする事により、受
信したキャラクタをデータバス 306を介して読み込み、
受信処理を行った後にメモリ 301へ格納する。この受信
処理は、 受信した電文が自局宛の電文かの判断 受信した電文がプロトコル(通信の手順)に合致し
ているかの判断 受信したキャラクタが電文の最後であるかの判断 受信したキャラクタが相手局から自局宛の電文を構
成するものかもしくは自局から相手局へ送出した電文の
応答を示すものかの判断 CRC 演算、演算結果の比較等の誤り制御 等から成る。
Serial data received on line 304 is receiver 303
Is electrically level-converted (for example, an electric signal of ± 10 V is converted to a TTL signal) and input to the communication control LSI 302. Communication control LSI 302 is, for example, Intel i8251
This is a circuit realized by dividing serial data into appropriate units to create parallel data (hereinafter, this separated parallel data is called a character) and RX R
By turning on the DY signal 307, the completion of character reception is notified to the microprocessor circuit 300. The microprocessor circuit 300 reads the received character through the data bus 306 by turning on the I / O RD signal 308,
Stored in memory 301 after receiving processing. In this receiving process, it is judged whether the received message is the message addressed to the own station. It is judged whether the received message matches the protocol (communication procedure). It is judged whether the received character is the end of the message. Judgment as to whether it composes a message addressed to the partner station by the partner station or shows the response of the message sent from the partner station to the partner station Comprised of CRC calculation and error control such as comparison of calculation results.

ここで、通信制御LSI 302 の動作を第8図により詳細に
説明する。通信制御LSI 302 はシフトレジスタ 312及び
データレジスタ 313を有している。シリアルの受信デー
タ 310は受信クロック 311に同期してシリアルインパラ
レルアウトのシフトレジスタ 312に入力される。所定の
ビット数のデータが入力されるとシフトレジスタ 312の
出力はデータレジスタ 313に書き込まれ、同時にRX RDY
信号 315がオンとなる。マイクロプロセッサ回路(第8
図には図示しない)がデータレジスタ 313の内容をデー
タバス 314を介して読み込む事によりRX RDY信号 315は
オフとなるが、もし読み込み動作を行う以前にシフトレ
ジスタ 312が次のキャラクタを受信した場合は、データ
レジスタ 313には新しいキャラクタが上書きされ、古い
キャラクタは消滅する。
Here, the operation of the communication control LSI 302 will be described in detail with reference to FIG. The communication control LSI 302 has a shift register 312 and a data register 313. The serial reception data 310 is input to the serial-in-parallel-out shift register 312 in synchronization with the reception clock 311. When a specified number of bits of data are input, the output of shift register 312 is written to data register 313, and at the same time RX RDY
Signal 315 turns on. Microprocessor circuit (8th
(Not shown in the figure) reads the contents of the data register 313 via the data bus 314 to turn off the RX RDY signal 315, but if the shift register 312 receives the next character before performing the read operation. , The data register 313 is overwritten with the new character and the old character disappears.

(発明が解決しようとする問題点) しかしながら、上記従来技術には、次の2つの問題が存
在する。
(Problems to be Solved by the Invention) However, the above-mentioned conventional technique has the following two problems.

1キャラクタに1回の割合でマイクロプロセッサ回
路 300に割込む必要があり、マイクロプロセッサ回路 3
00の負荷が大きい。
It is necessary to interrupt the microprocessor circuit 300 once for each character.
00 has a heavy load.

通信制御LSI 302 が割込み(RX RDY信号 307)を発
生してから次のキャラクタを受信するまでの時間内にマ
イクロプロセッサ回路 300は受信したキャラクタを読み
込む必要がある。さもないと受信したキャラクタは新し
いキャラクタで上書きされてしまい、古いキャラクタは
消滅する。
The microprocessor circuit 300 has to read the received character within the time from the generation of the interrupt (RX RDY signal 307) by the communication control LSI 302 until the reception of the next character. Otherwise, the received character will be overwritten with the new character and the old character will disappear.

これらの問題点により、第5図で例示される通信制御装
置17ではマイクロプロセッサ20を専用の高速なものにす
る必要が生じ高価なものになったり、1個のマイクロプ
ロセッサ20の配下に複数の通信制御LSI 23を収容して多
回線制御を行おうとした場合にはその回線数に制限が生
じる等の欠点が生じていた。また第6図で例示される装
置においては、通信の動作が始まるとファイル等の他の
入出力装置の制御を行う事ができなくなり、装置の仕様
に大幅な制約を与える欠点が生じていた。
Due to these problems, in the communication control device 17 illustrated in FIG. 5, it is necessary to make the microprocessor 20 a dedicated and high-speed one, which makes it expensive, and a plurality of microprocessors under one microprocessor 20 are required. When attempting to perform multi-line control by accommodating the communication control LSI 23, there were drawbacks such as the number of lines being limited. Further, in the device illustrated in FIG. 6, it is impossible to control other input / output devices such as files when the communication operation starts, and there is a drawback that the specifications of the device are greatly restricted.

本発明は、以上述べたマイクロプロセッサ回路への割込
回数の負荷とその処理に対する時間的制約との問題点を
解決し、従来その問題点から生じていた価格的欠点や回
線数の制約及び装置全体に与える制約を除去し、低価格
でマイクロプロセッサ回路に制約を与えない受信制御回
路を提供することを目的とする。
The present invention solves the above-mentioned problems of the load of the number of interruptions to the microprocessor circuit and the time constraint for its processing, and the price defect and the constraint of the number of lines and the device which have been conventionally caused by the problem. An object of the present invention is to provide a reception control circuit which removes the constraint imposed on the whole and which does not impose a constraint on the microprocessor circuit at a low cost.

(問題点を解決するための手段) 本発明は、受信したシリアルデータからキャラクタを生
成する通信回路と、該通信回路からのキャラクタを格納
するメモリと、通信回路及びメモリをアクセスして各種
制御を行うマイクロプロセッサとを備えた調歩同期・文
字同期方式の受信制御回路に関するものである。本発明
の要旨は、通信回路によるキャラクタ生成毎にキャラク
タを上述のメモリへ直接的に格納させるダイレクトメモ
リアクセスコントローラと、キャラクタの内容に応じた
割込制御情報及びラッチ制御情報が格納されており、上
述のメモリに格納される各キャラクタに対応する値をア
ドレスとしてアクセスすることにより割込制御情報をマ
イクロプロセッサへ出力し、マイクロプロセッサの処理
に必要な特定のキャラクタを受信した際にラッチ制御情
報をアドレスラッチへ出力するキャラクタ判定メモリ
と、キャラクタ判定メモリからのラッチ制御情報に応答
して上述の特定のキャラクタについてのメモリの格納ア
ドレスを記憶すると共にその記憶している格納アドレス
がマイクロプロセッサから読み取れるように構成されて
いるアドレスラッチとを備えたことにある。
(Means for Solving Problems) The present invention relates to a communication circuit for generating a character from received serial data, a memory for storing a character from the communication circuit, a communication circuit and a memory for accessing various controls. The present invention relates to a start-stop synchronization / character-synchronization type reception control circuit including a microprocessor. The gist of the present invention is that a direct memory access controller that directly stores a character in the above-mentioned memory each time a character is generated by a communication circuit, and interrupt control information and latch control information according to the content of the character are stored. The interrupt control information is output to the microprocessor by accessing the value corresponding to each character stored in the memory as an address, and the latch control information is output when the specific character necessary for the processing of the microprocessor is received. A character determination memory for outputting to the address latch, and a storage address of the memory for the above-mentioned specific character are stored in response to the latch control information from the character determination memory, and the stored storage address can be read from the microprocessor. Address configured to In that a pitch.

(作用) 通信回路は、回線を介してシリアルデータを受信する
と、それを適当な単位に区切り、パラレルデータである
キャラクタを生成する。ダイレクトメモリアクセスコン
トローラは、通信回路でキャラクタが生成されると、そ
れをマイクロプロセッサの手をわずらわさずにメモリに
転送して書き込ませる。キャラクタ判定メモリは、キャ
ラクタの内容に応じた割込制御情報及びラッチ制御情報
を記憶しており、メモリに格納される各キャラクタ・コ
ード又はこのコードに対応する値をアドレスとしてアク
セスされることによりキャラクタの内容に応じた割込制
御情報を出力してマイクロプロセッサに割込を発生し、
また、マイクロプロセッサの処理に必要な特定のキャラ
クタを受信した際にラッチ制御情報を出力してアドレス
ラッチのラッチ動作を制御する。アドレスラッチは、キ
ャラクタ判定メモリからのラッチ制御情報に応答して、
電文の最後を示すキャラクタや電文中のテキストの先頭
の開始を示すキャラクタ等のマイクロプロセッサの処理
に必要な特定のキャラクタに関するメモリのアドレスを
記憶する。しかもその記憶しているアドレスがマイクロ
プロセッサから読み取れるように構成されている。
(Operation) When the communication circuit receives serial data via the line, it divides it into appropriate units and generates a character that is parallel data. When a character is generated in the communication circuit, the direct memory access controller transfers the character to the memory for writing without the trouble of the microprocessor. The character determination memory stores interrupt control information and latch control information according to the content of the character, and each character code stored in the memory or a value corresponding to this code is used as an address to access the character. The interrupt control information according to the contents of is output to generate an interrupt to the microprocessor,
Also, when a specific character required for the processing of the microprocessor is received, latch control information is output to control the latch operation of the address latch. The address latch responds to the latch control information from the character determination memory,
The memory address of a specific character necessary for the processing of the microprocessor, such as a character indicating the end of the message or a character indicating the start of the beginning of the text in the message, is stored. Moreover, the stored address can be read from the microprocessor.

このように、調歩同期・文字同期方式の受信制御回路に
おいて、電文の最後を示すキャラクタや電文中のテキス
トの先頭の開始を示すキャラクタ等の特定のキャラクタ
が自動的に判別されてそのキャラクタが格納されている
メモリ上のアドレスがアドレスラッチに記憶される。従
って、マイクロプロセッサは、このような特定のキャラ
クタを判別するためにその都度関与する必要がなく、こ
のアドレスラッチをアクセスするだけでその内容を容易
に知ることができることとなり、マイクロプロセッサの
負荷が大幅に軽減される。
In this way, in the reception control circuit of the start-stop synchronization / character synchronization method, a specific character such as a character indicating the end of a message or a character indicating the start of the beginning of text in a message is automatically determined and stored. The address on the memory being stored is stored in the address latch. Therefore, the microprocessor does not need to be involved each time in order to discriminate such a specific character, and its contents can be easily known only by accessing this address latch, and the load on the microprocessor is greatly increased. Is reduced to.

もちろん、特定のキャラクタ以外のキャラクタはマイク
ロプロセッサが関与することなく自動的にメモリに記憶
されて行くため、その意味でもマイクロプロセッサの負
荷が大幅に軽減される。しかもマイクロプロセッサの割
込に対する応答時間が長くなっても受信データの消滅し
てしまうような不都合がなくなる。
Of course, characters other than a specific character are automatically stored in the memory without involvement of the microprocessor, and in that sense, the load on the microprocessor is significantly reduced. Moreover, there is no inconvenience that the received data disappears even if the response time to the interruption of the microprocessor becomes long.

(実施例) 以下本発明の実施例につき詳細に説明する。(Example) Hereinafter, the Example of this invention is described in detail.

第1図は本実施例の構成を示すブロック図であり、主た
る構成要素は、マイクロプロセッサ回路 100、メモリ 1
01、通信制御LSI 102 、レシーバ 103、ダイレクトメモ
リアクセスコントローラ(以下DMACという)112 、キャ
ラクタラッチ 115、キャラクタ判定メモリ 116、アドレ
スラッチ 121である。また図中 123〜 125はゲートを示
す。マイクロプロセッサ回路 100はアドレスバス 105及
びデータバス 106を介してメモリ 101と通信制御LSI 10
2 とに接続されており、メモリリード信号 110、メモリ
ライト信号 111、I/O リード信号 108、I/O ライト信号
109によりメモリ 101及び通信制御LSI 102 をアクセス
する。メモリ 101はDMAC 112の制御により受信キャラク
タの格納を行う。通信制御LSI 102 は回線 104からレシ
ーバ103 を介して受信したシリアルデータからキャラク
タを生成する。DMAC 112はI/O 装置である通信制御LSI
102 とメモリ 101との間のデータ転送制御を行うキャラ
クタラッチ 115はデータバス 106上の受信キャラクタを
ラッチし、その出力をキャラクタ判定メモリ 116のアド
レスとする。キャラクタ判定メモリ 116は本例ではROM
から構成され、あらかじめ割込制御上納とアドレスラッ
チ制御情報を格納しておき、マイクロプロセッサ回路 1
00への割込及びアドレスラッチ 121へのアドレス記憶を
制御する。アドレスラッチ 121はメモリ 101に格納した
キャラクタのアドレスを記憶すると共にその記憶内容を
マイクロプロセッサ回路 100から読み取れるよう構成さ
れている。
FIG. 1 is a block diagram showing the configuration of the present embodiment, and the main components are a microprocessor circuit 100 and a memory 1
01, communication control LSI 102, receiver 103, direct memory access controller (hereinafter referred to as DMAC) 112, character latch 115, character determination memory 116, and address latch 121. In the figure, 123 to 125 are gates. The microprocessor circuit 100 includes a memory 101 and a communication control LSI 10 via an address bus 105 and a data bus 106.
2 and are connected to memory read signal 110, memory write signal 111, I / O read signal 108, I / O write signal
The memory 101 and the communication control LSI 102 are accessed by 109. The memory 101 stores the received character under the control of the DMAC 112. The communication control LSI 102 generates a character from the serial data received from the line 104 via the receiver 103. DMAC 112 is a communication control LSI that is an I / O device
A character latch 115, which controls data transfer between the memory 102 and the memory 101, latches the received character on the data bus 106, and uses the output as the address of the character determination memory 116. The character judgment memory 116 is a ROM in this example.
Comprised of, the interrupt control payment and address latch control information is stored in advance, and the microprocessor circuit 1
Controls interrupt to 00 and address storage to address latch 121. The address latch 121 is configured to store the address of the character stored in the memory 101 and read the stored content from the microprocessor circuit 100.

次に第2図の動作タイムチャートにしたがって本実施例
の動作を説明する。
Next, the operation of this embodiment will be described with reference to the operation time chart of FIG.

先ず、回線104 からのシリアルデータはレシーバ103 に
よりレベル変換され、通信制御LSI 102 に入力される
(第2図)。通信制御LSI 102 ではシリアルデータか
らキャラクタが組立てられ、1キャラクタ受信毎にRX R
DY信号 119がオンとなる(第2図)。RX RDY信号 119
はDMAC 112のDMA RQ信号として入力されており、この信
号によりDMA 動作が開始される(第2図)。DMAC 112
はHOLD RQ 信号 113をオンとし、マイクロプロセッサ回
路 100に対し、バス(アドレスバス 105、データバス 1
06及びその他の制御信号)の開放を要求する。これに対
し、マイクロプロセッサ回路 100はHOLD ACK信号 114に
より応答(バス解放済の通知)を行う(第2図)。HO
LD ACK信号 114を受けたDMAC 112はI/O リード信号 118
をオンとする事により通信制御LSI 102 に対し、受信し
たキャラクタをデータバス 106上に送出する様に要求す
る(第2図)。この際、通信制御LSI 102 内に複数の
レジスタが存在し、それらをアドレスによって選択する
必要がある場合には、アドレス切換ゲート 120によって
適当な値を通信制御LSI 102 に与える。受信したキャラ
クタがデータバス 106上に送出されると、DMAC 112はメ
モリ 101に対し、キャラクタを格納すべきアドレスをア
ドレスバス 105を介して与えると共にメモリライト信号
117を送出し、メモリ 101に書き込みを行う(第2図
)。第2図のの動作と同時に、データバス 106上の
受信キャラクタはキャラクタラッチ 115にラッチされる
(第2図)。キャラクタラッチ 115の出力はキャラク
タ判定メモリ 116のアドレスとなっている(第2図
)。
First, the serial data from the line 104 is level-converted by the receiver 103 and input to the communication control LSI 102 (FIG. 2). In the communication control LSI 102, a character is assembled from serial data, and RX R
The DY signal 119 turns on (Fig. 2). RX RDY signal 119
Is input as the DMA RQ signal of the DMAC 112, and the DMA operation is started by this signal (Fig. 2). DMAC 112
Turns on the HOLD RQ signal 113 and sends the bus (address bus 105, data bus 1
06 and other control signals) are required to be released. In response to this, the microprocessor circuit 100 responds by the HOLD ACK signal 114 (notification of bus release) (FIG. 2). HO
The DMAC 112 that received the LD ACK signal 114 receives the I / O read signal 118.
By turning on, the communication control LSI 102 is requested to send the received character to the data bus 106 (FIG. 2). At this time, when there are a plurality of registers in the communication control LSI 102 and it is necessary to select them by an address, an appropriate value is given to the communication control LSI 102 by the address switching gate 120. When the received character is sent out on the data bus 106, the DMAC 112 gives the memory 101 an address to store the character via the address bus 105 and a memory write signal.
117 is sent to write to the memory 101 (Fig. 2). At the same time as the operation of FIG. 2, the received character on the data bus 106 is latched in the character latch 115 (FIG. 2). The output of the character latch 115 is the address of the character determination memory 116 (FIG. 2).

キャラクタ判定メモリ 116の出力はマイクロプロセッサ
回路 100の割込信号 107とアドレスラッチ 121のラッチ
制御信号 122となっている。ラッチ制御信号 122がオン
となると、ゲート 123によりタイミング信号と論理積が
取られ、DMAC 112のアドレス出力がアドレスラッチ 121
に記憶される。
The output of the character determination memory 116 is the interrupt signal 107 of the microprocessor circuit 100 and the latch control signal 122 of the address latch 121. When the latch control signal 122 turns on, the gate 123 ANDs the timing signal and the address output of the DMAC 112 is transferred to the address latch 121.
Memorized in.

キャラクタ判定用メモリ 116は、第3図に例示する様
に、割込制御ビットとアドレスラッチ制御ビットの2ビ
ットで構成され、あらかじめ、必要なキャラクタに対応
する部分に2ビットの値が書き込まれている。第3図の
例では、電文の最後を示すキャラクタである「ETB」 キャ
ラクタに対応するアドレス(17番地)に“11”(割込指
示=オン、アドレスラッチ指示=オン)が書き込まれて
いる(第3図)。したがって、キャラクタ判定メモリ
116が「ETB」 キャラクタを受信すると、マイクロプロセ
ッサ回路 100に対し割込みを発生し、電文の受信完了を
マイクロプロセッサ回路 100へ通知すると共に、「ETB」
キャラクタを格納したメモリ 101のアドレスをアドレス
ラッチ 121に記憶させる。この記憶されたアドレスはマ
イクロプロセッサ回路 100からデータバス 106を経由し
て読み出す事ができる。
As shown in FIG. 3, the character determination memory 116 is composed of two bits, that is, an interrupt control bit and an address latch control bit, and a 2-bit value is written in advance in a portion corresponding to a required character. There is. In the example of FIG. 3, “11” (interrupt instruction = on, address latch instruction = on) is written in the address (address 17) corresponding to the “ETB” character that is the character indicating the end of the electronic message ( (Fig. 3). Therefore, the character judgment memory
When the 116 receives the "ETB" character, it generates an interrupt to the microprocessor circuit 100, notifies the microprocessor circuit 100 of the completion of the reception of the message, and sends "ETB".
The address of the memory 101 storing the character is stored in the address latch 121. This stored address can be read from the microprocessor circuit 100 via the data bus 106.

キャラクタ判定用メモリ 116に書き込まれているマイク
ロプロセッサ回路 100への割込指示やアドレスラッチ 1
21へのアドレス記憶を指示する“1”の数は任意であ
り、割込指示と記憶指示の組合せも自由である。例え
ば、前述の「ETB」 キャラクタと同様に電文の最後を示す
「ETX」 キャラクタを受信すると割込を発生する様にし
(第3図)、電文の終結をマイクロプロセッサ回路 1
00に通知する事ができる。また電文中のテキストの先頭
の開始を示す「STX」 キャラクタを受信すると、割込は発
生しないが「STX」 キャラクタを格納したメモリ 101の格
納アドレスをアドレスラッチ 121に記憶する(第3図
)。すると後でマイクロプロセッサ回路 100が該ラッ
チ 121の値を読み込む事によりSTX が格納されているア
ドレスすなわち電文中のテキスト先頭アドレスを容易に
知る事ができる。
Interrupt instruction to the microprocessor circuit 100 written in the character judgment memory 116 and address latch 1
The number of "1" s instructing the address storage in 21 is arbitrary, and the combination of the interrupt instruction and the storage instruction is also free. For example, when the "ETX" character indicating the end of the message is received as in the case of the "ETB" character described above, an interrupt is generated (Fig. 3), and the termination of the message is terminated by the microprocessor circuit 1
You can notify 00. When the "STX" character indicating the start of the beginning of the text in the message is received, the storage address of the memory 101 storing the "STX" character is stored in the address latch 121 although no interrupt occurs (Fig. 3). Then, the microprocessor circuit 100 can read the value of the latch 121 later to easily know the address where STX is stored, that is, the text start address in the message.

また、あらかじめ決められているキャラクタ以外のキャ
ラクタは自動的にメモリ 101に順番に格納されていくた
め、その間マイクロプロセッサ回路 100は受信動作に対
して何ら関与する必要がない。すなわち、マイクロプロ
セッサ回路 100への割込回数は大幅に減少され、その負
荷は非常に軽くなる。また、特定のキャラクタを受信し
割込が発生した時に、マイクロプロセッサ回路 100は前
述の受信動作(第2図の〜の動作)を行うが、処理
に必要な特定のキャラクタ(例えば電文中のテキストの
開始を示す「STX」 キャラクタ等)の格納位置はアドレス
ラッチ 121に格納されているので、割込が発生した後も
通信制御LSI 102 からメモリ 101へのDMA 転送を引き続
き行うことができる。このため、割込に対するマイクロ
プロセッサ回路 100の応答時間が長くても受信データが
消滅する事はなく、マイクロプロセッサ回路 100の応答
時間の制約が緩和される。また、処理に必要な特殊なキ
ャラクタが格納されているメモリのアドレスをアドレス
ラッチ 121により知る事ができるため、例えば受信電文
中のステーションアドレス(SA)の格納位置やCRC 演算を
する必要のあるキャラクタの格納位置等を容易に知る事
が可能となり、受信動作を効率的に行う事が可能とな
る。
Further, since characters other than the predetermined character are automatically stored in the memory 101 in order, the microprocessor circuit 100 does not need to take any part in the receiving operation during that time. That is, the number of interruptions to the microprocessor circuit 100 is greatly reduced, and the load is very light. Further, when a specific character is received and an interrupt occurs, the microprocessor circuit 100 performs the above-described receiving operation (operations (1) to (2) in FIG. 2), but the specific character necessary for processing (for example, text in a message) Since the storage position of "STX" character indicating the start of the) is stored in the address latch 121, the DMA transfer from the communication control LSI 102 to the memory 101 can be continued after the interrupt occurs. Therefore, even if the response time of the microprocessor circuit 100 to the interrupt is long, the received data is not lost, and the restriction on the response time of the microprocessor circuit 100 is relaxed. Also, since the address of the memory where the special character required for processing is stored can be known from the address latch 121, for example, the storage position of the station address (SA) in the received message or the character that needs to be calculated by CRC. It becomes possible to easily know the storage position and so on, and the receiving operation can be performed efficiently.

上記実施例においては、キャラクタ判定用メモリ 216が
ROM で構成される場合を例示したが、本発明によればこ
のキャラクタ判定用メモリ 216にRAM を用い、マイクロ
プロセッサ回路 100から自由に書き換える事ができる構
造も可能である。このRAM の使用により次のような利点
がある。
In the above embodiment, the character determination memory 216 is
Although the case where it is configured by a ROM is illustrated, according to the present invention, a RAM can be used as the memory for character determination 216 and a structure that can be freely rewritten from the microprocessor circuit 100 is also possible. The use of this RAM has the following advantages.

割込の発生や格納アドレスを記憶するキャラクタの
種類をダイナミックに変える事が可能となり、通信のス
テップ毎に必要最低限の割込のみを発生させたり、もっ
とも必要なキャラクタの格納アドレスを知る事ができる
様になり、マイクロプロセッサ回路の処理の一層の効率
化が図れる。
It is possible to dynamically change the type of characters that generate interrupts and storage addresses, and generate only the minimum necessary interrupts at each communication step, or know the storage address of the most necessary character. As a result, the processing efficiency of the microprocessor circuit can be further improved.

手順毎にROM を用意する必要がなく、保守が容易に
なる。
Maintenance is easy because there is no need to prepare a ROM for each procedure.

また、上記実施例においてはアドレスラッチ 121を1個
のみ有する回路を例示したが、この部分を第4図の変形
例として示す様に複数個のラッチ121a,121b,121cで構
成し、キャラクタ判定用メモリ 116の出力により格納す
べきラッチの選択を行う事も可能である。更に、複数個
のラッチをFIFO(ファースト イン ファースト アウ
ト)メモリで構成し、複数個のキャラクタの格納位置を
記憶する事も可能である。この様に複数個のラッチを持
つ事により、マイクロプロセッサ回路 100の処理で必要
な情報をすべて記憶する事が可能となり、更に一層のマ
イクロプロセッサ回路 100の処理の効率化が図れる。
Further, in the above embodiment, the circuit having only one address latch 121 is illustrated, but this portion is constituted by a plurality of latches 121a, 121b, 121c as shown as a modified example of FIG. It is also possible to select the latch to be stored by the output of the memory 116. Furthermore, it is also possible to configure a plurality of latches with a FIFO (first in first out) memory and store the storage positions of a plurality of characters. By having a plurality of latches in this way, it becomes possible to store all the information necessary for the processing of the microprocessor circuit 100, and to further improve the efficiency of the processing of the microprocessor circuit 100.

(発明の効果) 以上詳細に説明した様に、本発明では、従来マイクロプ
ロセッサがある一定時間以内に行われなければならなか
ったキャラクタの判定及びメモリへの格納の動作がマイ
クロプロセッサにたよらず行われる。そしてキャラクタ
の内容によってマイクロプロセッサ回路が新たな動作を
開始する必要がある場合にのみ、マイクロプロセッサ回
路に対し割込を発生し、新たな動作の開始が促される。
また、本発明では、その動作に必要な情報として特定の
キャラクタが格納されているメモリのアドレスを記憶す
るようにしている。したがって、本発明によれば、マイ
クロプロセッサの負荷を大幅に軽減することができる。
(Effects of the Invention) As described in detail above, in the present invention, the operation of character determination and storage in the memory, which has conventionally been performed by the microprocessor within a certain time, is performed without depending on the microprocessor. Be seen. Then, only when the content of the character requires the microprocessor circuit to start a new operation, an interrupt is generated to the microprocessor circuit, and the start of a new operation is prompted.
Further, in the present invention, the address of the memory in which a specific character is stored is stored as the information necessary for the operation. Therefore, according to the present invention, the load on the microprocessor can be significantly reduced.

また、本発明によれば、マイクロプロセッサの割込に対
する応答時間が長くなっても受信データの消滅が発生し
ないので、マイクロプロセッサ上のソフトウェアの作り
を大幅に自由なものにできる。
Further, according to the present invention, even if the response time to the interruption of the microprocessor is long, the received data is not lost, so that the software on the microprocessor can be made much more freely.

これらにより、マイクロプロセッサを特殊化する必要が
無くなり、低価格の汎用のマイクロプロセッサの使用が
可能となり、多回線収容の場合には収容可能な回線数を
増やすことができ、更に通信以外の周辺装置の制御に対
する制約をも除去する等の利点がある。
These eliminate the need to specialize the microprocessor, enable the use of low-priced general-purpose microprocessors, increase the number of lines that can be accommodated when accommodating multiple lines, and peripheral devices other than communications. There is an advantage such as removing the restriction on the control of.

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

第1図は本発明の実施例の構成を示すブロック図、第2
図は第1図の回路のタイムチャート、第3図はキャラク
タ判定用メモリの構成図、第4図は本発明による変形例
を示す図、第5図は受信制御回路が適用される比較的大
規模なシステム例の構成図、第6図は受信制御回路が適
用される比較付的小規模な装置例を示す図、第7図は従
来の通信制御回路の受信部の構成図、第8図は通信制御
LSI の動作説明図である。 100……マイクロプロセッサ回路、 101……メモリ、 102……通信制御LSI 、 103……レシーバ、 112……ダイレクトメモリアクセスコントローラ(DMA
C)、 115……キャラクタラッチ、 116……キャラクタ判定メモリ、 121……アドレスラッチ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG.
FIG. 4 is a time chart of the circuit of FIG. 1, FIG. 3 is a block diagram of a character judging memory, FIG. 4 is a diagram showing a modification of the present invention, and FIG. 5 is a comparatively large size to which a reception control circuit is applied. FIG. 6 is a block diagram of a large-scale system example, FIG. 6 is a diagram showing a comparative small-scale device example to which a reception control circuit is applied, FIG. 7 is a block diagram of a receiver of a conventional communication control circuit, and FIG. Is communication control
It is an operation | movement explanatory drawing of LSI. 100 ... Microprocessor circuit, 101 ... Memory, 102 ... Communication control LSI, 103 ... Receiver, 112 ... Direct memory access controller (DMA
C), 115 ... Character latch, 116 ... Character judgment memory, 121 ... Address latch.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】受信したシリアルデータからキャラクタを
生成する通信回路と、該通信回路からのキャラクタを格
納するメモリと、前記通信回路及び前記メモリをアクセ
スして各種制御を行うマイクロプロセッサとを備えた調
歩同期・文字同期方式の受信制御回路において、前記通
信回路によるキャラクタ生成毎に該キャラクタを前記メ
モリへ直接的に格納させるダイレクトメモリアクセスコ
ントローラと、キャラクタの内容に応じた割込制御情報
及びラッチ制御情報が格納されており、前記メモリに格
納される各キャラクタに対応する値をアドレスとしてア
クセスすることにより割込制御情報を前記マイクロプロ
セッサへ出力し、前記マイクロプロセッサの処理に必要
な特定のキャラクタを受信した際にラッチ制御情報をア
ドレスラッチへ出力するキャラクタ判定メモリと、該キ
ャラクタ判定メモリからのラッチ制御情報に応答して、
前記特定のキャラクタについての前記メモリの格納アド
レスを記憶すると共にその記憶している格納アドレスが
マイクロプロセッサから読み取れるように構成されてい
る前記アドレスラッチとを備えたことを特徴とする受信
制御回路。
1. A communication circuit for generating a character from received serial data, a memory for storing a character from the communication circuit, and a microprocessor for accessing the communication circuit and the memory to perform various controls. In a start / stop synchronization / character synchronization type reception control circuit, a direct memory access controller for directly storing the character in the memory every time the character is generated by the communication circuit, and interrupt control information and latch control according to the content of the character Information is stored, the interrupt control information is output to the microprocessor by accessing a value corresponding to each character stored in the memory as an address, and a specific character required for the processing of the microprocessor is displayed. Outputs latch control information to address latch when received And character determination memory, in response to the latch control information from said character judgment memory,
A reception control circuit, comprising: a storage address of the memory for the specific character; and the address latch configured so that the stored storage address can be read by a microprocessor.
JP62285501A 1987-11-13 1987-11-13 Reception control circuit Expired - Lifetime JPH0636518B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62285501A JPH0636518B2 (en) 1987-11-13 1987-11-13 Reception control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62285501A JPH0636518B2 (en) 1987-11-13 1987-11-13 Reception control circuit

Publications (2)

Publication Number Publication Date
JPH01128645A JPH01128645A (en) 1989-05-22
JPH0636518B2 true JPH0636518B2 (en) 1994-05-11

Family

ID=17692344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62285501A Expired - Lifetime JPH0636518B2 (en) 1987-11-13 1987-11-13 Reception control circuit

Country Status (1)

Country Link
JP (1) JPH0636518B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6188635A (en) * 1984-10-05 1986-05-06 Nec Corp Signal transmitting and receiving circuit
JPS61250758A (en) * 1985-04-30 1986-11-07 Toshiba Corp Communication controller
JPS6294042A (en) * 1985-10-21 1987-04-30 Oki Electric Ind Co Ltd Communication control equipment
JPS62125455A (en) * 1985-11-26 1987-06-06 Matsushita Electric Ind Co Ltd Communication control device

Also Published As

Publication number Publication date
JPH01128645A (en) 1989-05-22

Similar Documents

Publication Publication Date Title
CA1194608A (en) Direct memory access interface arrangement
US4181941A (en) Interrupt system and method
US4309755A (en) Computer input/output arrangement for enabling a simultaneous read/write data transfer
EP0458304B1 (en) Direct memory access transfer controller and use
US4494194A (en) Line support processor for data transfer system
CA1102004A (en) Data processing interrupt apparatus
US7162556B2 (en) Matrix type bus connection system and power reduction method therefor
JPS58502027A (en) Peripherals adapted to monitor low data rate serial input/output interfaces
EP0473059B1 (en) Communication control system
JPH0636518B2 (en) Reception control circuit
US5588120A (en) Communication control system for transmitting, from one data processing device to another, data of different formats along with an identification of the format and its corresponding DMA controller
JPS6242306B2 (en)
JP2004334551A (en) Serial communication system and local terminal for serial communication
KR0154470B1 (en) Circuit for interfacing between auxiliary processor and external device
JPS6325737B2 (en)
KR100225531B1 (en) Apparatus for interfacing between peripheral processor and device in the switching system
JP3615306B2 (en) Storage device access system
JPS6138665B2 (en)
JPH04348642A (en) Parallel transmission method utilizing function for serial transmission
JPS6186860A (en) Data transmission method
JPH084276B2 (en) Full-duplex data transfer device
JPS59123913A (en) Dma access system
JPH07143149A (en) Address check method
JPS60111559A (en) Dial pulse transmission circuit
JPH01161942A (en) Data transmission equipment and its method