JPS63116541A - Reception processing system - Google Patents

Reception processing system

Info

Publication number
JPS63116541A
JPS63116541A JP26246186A JP26246186A JPS63116541A JP S63116541 A JPS63116541 A JP S63116541A JP 26246186 A JP26246186 A JP 26246186A JP 26246186 A JP26246186 A JP 26246186A JP S63116541 A JPS63116541 A JP S63116541A
Authority
JP
Japan
Prior art keywords
receiving
data
register
reception
received
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
JP26246186A
Other languages
Japanese (ja)
Inventor
Yoshito Maekawa
前川 義人
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP26246186A priority Critical patent/JPS63116541A/en
Publication of JPS63116541A publication Critical patent/JPS63116541A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set a direct memory access controller DMAC at a high speed at the time of receiving the data and to reduce a receiving unexpected omission and a receiving overrun by setting the head address of the buffer to be received and the maximum receiving data length to a register beforehand. CONSTITUTION:When the data are received, the head address of a buffer to store the data to be received next and the maximum receiving data length are automatically set from a register group 6 to the address register of a DMC5 and a byte counter register with the hardware, and the receiving interruption is applied. When the receiving interruption is applied, a high speed receiving processing program on a ROM 2 is activated. Thus, even to the receiving of the data string with a short receiving interval, the receiving unexpected omission, the receiving overrun, etc., can be reduced.

Description

【発明の詳細な説明】 〔技術分野〕 木発明はデータ通信における受信処理方式に関する。[Detailed description of the invention] 〔Technical field〕 The invention relates to a reception processing method in data communication.

〔従来技術) 従来、データの送受信を行う制御デツプ、送受信データ
を格納するRAM、前記制御デツプ及びRAM間のデー
タ転送を行うダイレクトメモリアクセスコントローラ(
以下DMACと記す)から成るデータ通信におりる受信
処理は、ある一つの受信が終了後、受信割り込み処理中
に次の受信のためのDMACの設定を直接ソフトウェア
により行っていた。このため、連続する短いデータ列の
受信の際には、割り込みマスクの状態か長く続く等の原
因にJ:す、ソフトウェアによるDMACの設定が遅れ
、受信とりこぼしゃ、受信オーバーラン等が発生ずると
いう欠点があった。
[Prior Art] Conventionally, a control deep that sends and receives data, a RAM that stores the sent and received data, and a direct memory access controller (that transfers data between the control deep and the RAM) has been used.
In the reception processing involved in data communication consisting of a DMAC (hereinafter referred to as DMAC), after one reception is completed, the DMAC settings for the next reception are directly performed by software during reception interrupt processing. For this reason, when receiving short consecutive data strings, the interrupt mask state may continue for a long time, and the DMAC setting by software may be delayed, causing reception dropouts, reception overruns, etc. There was a drawback.

(目 的] 木発明の1]的は、上記問題点を解決し、受イ3処理を
高速に行うことにある。
(Purpose) The first objective of the invention is to solve the above problems and perform the Ukei 3 processing at high speed.

(実施例) 以下、木発明の詳細な説明する。第1図は、木発明の一
実施例を示すブロック図、第2図は、高速受信処理のフ
ローチャートである。
(Example) Hereinafter, the tree invention will be described in detail. FIG. 1 is a block diagram showing an embodiment of the tree invention, and FIG. 2 is a flowchart of high-speed reception processing.

第1図において、1はMPLI、2は高速受信処理プロ
グラムを記憶するROM、3は受信されたデータを格納
するRAM、4GJデータ送受信制御デツプ(以下A 
D L Cと記す)、5は前記RAM及びAD L C
間のデータ転送を行うDMAC16は次のDMACの設
定値を記憶するレジスタ群、7はリード・ライト制御回
路、8はヂップセレクト制御回路、9はシーケンス回路
、10はスタート・ストップ制御回路、11はフレーム
バ)リッド判定回路、12はバスアービタ、13は割り
込み制御回路である。
In FIG. 1, 1 is an MPLI, 2 is a ROM that stores a high-speed reception processing program, 3 is a RAM that stores received data, and 4GJ data transmission/reception control deep (hereinafter referred to as A).
(denoted as DLC), 5 is the RAM and ADLC
The DMAC 16 that transfers data between the two is a register group that stores the next DMAC setting value, 7 is a read/write control circuit, 8 is a dip select control circuit, 9 is a sequence circuit, 10 is a start/stop control circuit, and 11 is a frame 12 is a bus arbiter, and 13 is an interrupt control circuit.

本実施例では、第2図に示すように、まず、ステップ1
として、DMAC5の初期化を行い、RAMa上にある
最初に受信するデータを格納すべきバッファの先頭アド
レスと最大受信データ長をそれぞれ、DMAC5の71
〜レスレジスタとハイドカウンタレジスタにセツトシ、
前記RAM3上にある2番目に受信するデータを格納ず
へきバッファの先頭アドレスと最大受信データ長をレジ
スタ群6にセットする。
In this embodiment, as shown in FIG.
, initialize the DMAC 5, and set the start address and maximum received data length of the buffer in which the first received data on RAMa should be stored, respectively, to 71 of the DMAC 5.
~Set in the response register and hide counter register,
The start address and maximum received data length of the buffer for storing the second received data on the RAM 3 are set in the register group 6.

ステップ2として、データを受信した時、次に受信する
データを格納すべきバッファの先頭アドレスと最大受信
データ長が前記レジスタ群6から前記D M A C5
のアドレスレジスタとバイ]・カウンタレジスタに、ハ
ードウェアにより自動的にセットされ、受信割り込みが
かかる。
As step 2, when data is received, the start address and maximum received data length of the buffer in which the next received data is to be stored are transferred from the register group 6 to the DMA C5.
The address register and byte counter register are automatically set by hardware, and a reception interrupt is generated.

ステップ3として、受信割り込みがかかると、ROM2
上の高速受信処理プログラムが起動される。従来方式で
は、ここで、次に受信するデータを格納すべきバッファ
の先頭アドレスと最大受信データ長を、DMAC5のア
ドレスレジスタとハイドカウンタレジスタに直接セツト
シなけJlばなら1<かったが、木方式では、バー)・
ウェアによりレジスタ71T6からDMAC5に自動的
にセラ1−されるので、この処理を必要としない。すな
わち、ROM 2上の高速受信プログラムでは、さらに
次に受信するデータを格納すべきバッファをRAM3上
に確保し、そのバッファの先頭アドレスと最大受信デー
タ長をレジスタ11工6にセラ1−シて割り込み処理を
抜(Jる。
As step 3, when a reception interrupt occurs, ROM2
The above high-speed reception processing program is started. In the conventional method, the start address and maximum received data length of the buffer in which the next received data should be stored must be directly set in the address register and hide counter register of the DMAC5, but if Jl<1, the tree method Well then, bar)・
This process is not necessary because the data is automatically set to DMAC5 from the register 71T6 by the software. In other words, the high-speed reception program on the ROM 2 further secures a buffer in the RAM 3 to store the next data to be received, and writes the start address and maximum reception data length of the buffer to the register 11-6. Exclude interrupt processing (J).

以後、ステップ2とステップ3の手順を繰り返すことに
なる。
Thereafter, steps 2 and 3 will be repeated.

以上説明した様に、木実ブ危例構成では、従来受信割り
込み処理中に行っていた次の受信のためのDMACの設
定を、受信直後、バー]・ウェアによって自動的に行わ
せる。従って、受信間隔の短いデータ列の受信に対して
も受信とりこほしや、受信オーバーラン等を減少させる
ことができる。
As explained above, in the tree trunk configuration, the DMAC settings for the next reception, which were conventionally performed during reception interrupt processing, are automatically performed by software immediately after reception. Therefore, it is possible to reduce reception dropouts, reception overruns, etc. even when receiving data strings with short reception intervals.

以上の実施例では、予めセットずべきレジスタ群は一段
であるが、レジスタ群をn段として構成することもでき
る。この場合は、ステップ1の初期設定時にDMACと
n段のレジスタ群にセットを行えは、以後、受信毎にレ
ジスタ群の設定値がハードウェアにより自動的にシフト
され、ソフトウェアではn段目のレジスタ群のみの設定
を行えばよい。
In the above embodiment, the register group to be set in advance is one stage, but it is also possible to configure the register group to be n stages. In this case, if you set the DMAC and the n-stage register group during the initial setting in step 1, the set values of the register group will be automatically shifted by the hardware every time reception is received, and the software will automatically shift the set values of the register group to the n-stage register. You only need to set the group.

〔効 果〕〔effect〕

以上の説明のように、本発明によれば、データ受信時の
DMACの設定を高速に行うことができ、受信とりこぼ
しゃ、受信オーバーランを減少させることができる。
As described above, according to the present invention, DMAC settings can be performed at high speed when receiving data, and reception dropouts and reception overruns can be reduced.

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

第1図は受信処理回路のブロック図、第2図は受信m埋
のフローヂャートであり、1はMPU、2はROM、3
はRAM、4はADLC,5はDMAC16はレジスタ
群、7はリードライト制御回路、8はチップセレクト制
御回路、9はシーケンス回路、10はスタート・チップ
制御回路、11はフレームバリッド判定回路、12はバ
スアービタ、13は割り込み制御回路である。
Fig. 1 is a block diagram of the reception processing circuit, and Fig. 2 is a flowchart of the reception processing circuit, where 1 is the MPU, 2 is the ROM, and 3
is a RAM, 4 is an ADLC, 5 is a DMAC 16 is a register group, 7 is a read/write control circuit, 8 is a chip select control circuit, 9 is a sequence circuit, 10 is a start/chip control circuit, 11 is a frame valid judgment circuit, 12 is a The bus arbiter 13 is an interrupt control circuit.

Claims (1)

【特許請求の範囲】[Claims] 受信すべきバッファの先頭アドレスと最大受信データ長
を予めレジスタにセットしておくおことにより、次の受
信時のダイレクトメモリアクセスコントローラの設定を
ハードウェアにより行うことを特徴とする受信処理方式
A reception processing method characterized in that by setting the start address of a buffer to be received and the maximum reception data length in a register in advance, the setting of a direct memory access controller at the time of next reception is performed by hardware.
JP26246186A 1986-11-04 1986-11-04 Reception processing system Pending JPS63116541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26246186A JPS63116541A (en) 1986-11-04 1986-11-04 Reception processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26246186A JPS63116541A (en) 1986-11-04 1986-11-04 Reception processing system

Publications (1)

Publication Number Publication Date
JPS63116541A true JPS63116541A (en) 1988-05-20

Family

ID=17376105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26246186A Pending JPS63116541A (en) 1986-11-04 1986-11-04 Reception processing system

Country Status (1)

Country Link
JP (1) JPS63116541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05175999A (en) * 1991-12-19 1993-07-13 Mitsubishi Electric Corp Communication controller
US5901291A (en) * 1996-10-21 1999-05-04 International Business Machines Corporation Method and apparatus for maintaining message order in multi-user FIFO stacks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05175999A (en) * 1991-12-19 1993-07-13 Mitsubishi Electric Corp Communication controller
US5901291A (en) * 1996-10-21 1999-05-04 International Business Machines Corporation Method and apparatus for maintaining message order in multi-user FIFO stacks

Similar Documents

Publication Publication Date Title
JPS63116541A (en) Reception processing system
JPH08161254A (en) Information processing system and bus arbitration system therefor
JPS6359042A (en) Communication interface equipment
JPS622747A (en) Reception control system
JPS63116540A (en) Reception processing system
JPS63196135A (en) High speed reception processing system
JP3230339B2 (en) Communication control device
JPS6294042A (en) Communication control equipment
JP2615504B2 (en) Microcontroller
JPH03141450A (en) Peripheral equipment
JPH05266685A (en) Storage device
JPH11212856A (en) Flash memory writing method
JPS62125458A (en) Data transfer control circuit
JPH05298241A (en) Burst transfer system
JPH06152546A (en) Microprocessor
JPS58112124A (en) Dma controlling system
JPH02304648A (en) Memory controller
JPH056329A (en) Direct memory access system
JPS59100931A (en) Data transferring circuit
JPH0568732B2 (en)
JPS59231628A (en) Interruption control system of channel
JPS6010949A (en) Serial transmission data advanced processing system
JPH02227762A (en) Dma transfer device
JPS62211688A (en) Character generator/fast reader
JPS63187944A (en) Communication control equipment