JPS62274955A - Hdlc line control system - Google Patents
Hdlc line control systemInfo
- Publication number
- JPS62274955A JPS62274955A JP61118742A JP11874286A JPS62274955A JP S62274955 A JPS62274955 A JP S62274955A JP 61118742 A JP61118742 A JP 61118742A JP 11874286 A JP11874286 A JP 11874286A JP S62274955 A JPS62274955 A JP S62274955A
- Authority
- JP
- Japan
- Prior art keywords
- control circuit
- circuit
- dma
- transfer
- switching
- 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.)
- Granted
Links
- 238000012546 transfer Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 101100243951 Caenorhabditis elegans pie-1 gene Proteins 0.000 description 1
- 102100024099 Disks large homolog 1 Human genes 0.000 description 1
- 101001053984 Homo sapiens Disks large homolog 1 Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
Landscapes
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
(産業上の利用分野)
本発明は、ハイレベルデータリンク制御(1−1DLC
)回線にお番ノる受信制御方式に関するものである。Detailed Description of the Invention 3. Detailed Description of the Invention (Field of Industrial Application) The present invention provides high-level data link control (1-1DLC
) This relates to a reception control method that controls the line.
(従来の技術)
従来、高速1」D L C回線の送受信動作を制御する
場合は処理速麿の高いプロセッサーを回線制御専用プロ
セツサとして、主プロ廿ツ4ノと別に位置づt」る構成
になっており、実時間処理のきびしい受信制御において
は、HDLG受信回路とダイレクトメモリアクセス(D
MA)制御回路の間、又は+1D L C受信回線とH
DLC受信回路との間に、受信データを一時的に蓄積づ
る多段のバッファ回路を設けて、受信データの追突を防
止していた。(Prior art) Conventionally, when controlling the transmission and reception operations of a high-speed DLC line, a high-speed processor was used as a dedicated processor for line control and was placed separately from the main processors. The HDLG receiving circuit and direct memory access (D
MA) Between the control circuit or +1D LC reception line and H
A multi-stage buffer circuit for temporarily storing received data was provided between the DLC receiving circuit and the received data to prevent collision.
(発明が解決しようとする問題点)
しかしながら前記構成では、主プロセツサの内蔵プ[]
グラムが膨大となり、その負担が大きくなるばかりでな
く、ハード構成が複雑となり、かつハード量も増大(る
という問題点があった。(Problem to be Solved by the Invention) However, in the above configuration, the built-in processor of the main processor []
The problem was that not only did the amount of RAM become enormous, which increased the burden, but also the hardware configuration became complex and the amount of hardware increased.
本発明は前記問題点を除去し、複数の高速HDl−C回
線を制御するにあたって、主プロ1?ツサの負担をでき
るかぎり少なくし、かつ小規模なハード構成となし1q
るl−I D L C回線の制御方式を提供することを
目的とする。The present invention eliminates the above-mentioned problems and provides a method for controlling multiple high-speed HDl-C lines. Minimize the burden on the handle as much as possible, and use a small-scale hardware configuration with no 1q
The purpose of this invention is to provide a control method for an l-I DLC line.
(問題点を解決するための手段)
本発明では前記問題点を解決Jるノごめ、HDI−C回
線を介して順次送られるデータ信号を受信するH D
l−C回線制御方式において、受信回路どメモリとの間
に2個並列に配冒したDMA制御回路と、受信データ中
より終了フラグパターンを検出する手段と、前記終了フ
ラグパターンを検出した時、又はDMA制御回路からの
処理完了信号を受けた時、動作中のDMA制御回路を動
作禁止状態にするとともに、受信データ等を他方のDM
A制御回路に切替えて送出する手段と、動作中でないr
1MA制御回路に対しで新しい転送指示情報を設定し、
これを動作可能の状態にする手段とを設けた。(Means for Solving the Problems) The present invention solves the above-mentioned problems.
In the L-C line control system, two DMA control circuits are arranged in parallel between the receiving circuit and the memory, means for detecting an end flag pattern from received data, and when the end flag pattern is detected, Or, when receiving a processing completion signal from the DMA control circuit, the operating DMA control circuit is disabled and the received data etc. are transferred to the other DM.
Means for switching to the A control circuit and transmitting
Set new transfer instruction information for the 1MA control circuit,
A means for making this operational is provided.
(作 用)
本発明によれば、受信されたデータは一方のDMA制御
回路を介してメモリに転送され、その間、次のフレーム
のデータに関J−る転送パイ1〜数等の転送指示情報が
他方のDMA制御回路にセットされ、データの1フレー
ムの終了フラグパターンが検出された時、あるいは前記
一方のDMA制御回路に設定した転送パイ1〜数の転送
が完了した時に他方のl) M A制御回路に切替えら
れ、次のフレームのデータ転送が行なわれる。(Function) According to the present invention, received data is transferred to the memory via one of the DMA control circuits, and during this time, transfer instruction information such as transfer numbers related to the data of the next frame is transferred. is set in the other DMA control circuit, and when the end flag pattern of one frame of data is detected, or when the transfer of the transfer pie 1 to number set in the one DMA control circuit is completed, the other l) M The control circuit is switched to the A control circuit, and data transfer for the next frame is performed.
(実施例)
第1図は本発明方式の一実施例を示すもので、図中、1
はl−I D L C受信回路、2はl−I D L
C終了フラグ検出回路、3はDMA転送要求切替回路、
4は切替制御回路、5.6はDMA制御回路、7は主プ
ロセッυ、8はメモリ、9は1−I D L C受信回
線、10はバスである。(Example) Figure 1 shows an example of the method of the present invention.
is l-I DLC receiving circuit, 2 is l-I D L
C end flag detection circuit; 3 is a DMA transfer request switching circuit;
4 is a switching control circuit, 5.6 is a DMA control circuit, 7 is a main processor υ, 8 is a memory, 9 is a 1-IDLC receiving line, and 10 is a bus.
また、第2図はl−I D L C受信回線9にお()
る受信データとD M A 1li11160回路5.
6の動作とのタイミングを示す。In addition, Fig. 2 shows the l-I DLC receiving line 9 ().
5. Receive data and DMA 11160 circuit.
The timing with operation 6 is shown below.
)−I D I C受信回路1は、l−I D I−C
受信回線9に= 3 −
り受信したデータを文字(8ビツト)単位に組立てると
ともに、該組立て終了後、l’)M△転送要求信@S1
をI’)MA転送要求切替回路3に送出し、さらに前記
組立てた受信データ1〕を送出する。)-I D I-C receiving circuit 1 is l-I D I-C
The data received on the receiving line 9 is assembled into characters (8 bits), and after the assembly is completed, l') M△ transfer request signal @S1
I') is sent to the MA transfer request switching circuit 3, and further the assembled received data 1] is sent out.
1」DIc終了フラグ検出回路2は、1−1D L C
受信回線9の受信データ中の終了フラグパターンを検出
し、切替制御回路4に検出信号S2を出力覆る。1” DIc end flag detection circuit 2 is 1-1D L C
The end flag pattern in the received data of the receiving line 9 is detected and a detection signal S2 is output to the switching control circuit 4.
DMA転送要求切替回路3は、切替制御回路4の制御に
基づいて、HDIC受信回路1よりのDMA転送要求信
号S1および受信データDをDMA制御回路5,6のい
ずれか一方に送出する。The DMA transfer request switching circuit 3 sends the DMA transfer request signal S1 and the received data D from the HDIC receiving circuit 1 to either one of the DMA control circuits 5 and 6 under the control of the switching control circuit 4.
切替制御回路4は、前記検出信号S2、DMA制御回路
5,6よりのDMA処理完了信号S3□64、および主
プロセツサ7よりのDMA動作禁止解除コマンド$5を
受信し、l) M A転送要求切替回路3に切替信号S
6を送出し、DMA制御回路5,6にその動作禁止を指
示するDMA動作禁止制御信号s7.s8を送出する。The switching control circuit 4 receives the detection signal S2, the DMA processing completion signal S3□64 from the DMA control circuits 5 and 6, and the DMA operation prohibition release command $5 from the main processor 7, and requests l) M A transfer request. Switching signal S to switching circuit 3
6 and instructs the DMA control circuits 5 and 6 to prohibit their operations. Send s8.
D M A Will til1回路5,6は、一時に
いずれか一方のみが動作し、l−I D L C受信回
路1とメモリ8との間のデータ転送を制御する。該DM
A1II11御回路5.6は予め設定された1フレ一ム
分のデータ転送処理が終了した時、DMA処理完了信@
S3゜S4を出力する。Only one of the DMA Will Till 1 circuits 5 and 6 operates at a time to control data transfer between the 1-I DLC receiving circuit 1 and the memory 8. The DM
The A1II11 control circuit 5.6 sends a DMA processing completion signal @ when the data transfer processing for one frame set in advance is completed.
Output S3°S4.
主プロセツサ7は、DMA制御回路5,6に転送アドレ
ス、転送バイト数等の転送指示情報を送出し、1@D
L C回線9の手順管即を行ない、また、HDLC受信
回路1等の制御を行ない、さらにDMA制御回路5,6
の動作禁止を解除J゛るDM△動作禁止解除コマンドS
5を切替制御回路4に送出する。なお、ここで、受信デ
ータの転送バイト数は予め知ることができないので、最
大値を設定するものとする。The main processor 7 sends transfer instruction information such as a transfer address and the number of bytes to be transferred to the DMA control circuits 5 and 6, and
It manages the procedures of the LC line 9, controls the HDLC receiving circuit 1, etc., and also controls the DMA control circuits 5 and 6.
Cancel the operation prohibition of J゛ruDM△Operation prohibition release command S
5 to the switching control circuit 4. Note that here, since the number of transferred bytes of received data cannot be known in advance, the maximum value is set.
メモリ8は、1」D L C受信回路1で受信し、組立
てた受信データDを蓄積する。The memory 8 stores received data D received by the 1'' DLC receiving circuit 1 and assembled.
次に動作について説明する。Next, the operation will be explained.
受信したデータはl−I D L C受信回線9より1
−IDL C受信回路1に取込まれ、文字単位(8bi
t )に組立てられる。該組立てが終了すると、HDL
C受信回路1は、DMA転送要求切替回路3を介して、
DMA制御回路5,6のうちの受信待機中の回路、例え
ばDMA制御回路5にDMA転送要求信号S1を送出し
、さらに受信データ1〕を送出する。該受信データDは
I)MA制御回路5を通じてメモリ8に転送される。以
下、同様な処理が所定の1フレ一ム分、続(プて行なわ
れる。The received data is 1 from l-I DLC reception line 9.
- IDL C reception circuit 1 takes in the character unit (8bit
t). When the assembly is completed, the HDL
The C receiving circuit 1, via the DMA transfer request switching circuit 3,
A DMA transfer request signal S1 is sent to a circuit waiting for reception among the DMA control circuits 5 and 6, for example, the DMA control circuit 5, and further the received data 1] is sent out. The received data D is transferred to the memory 8 via I) the MA control circuit 5; Thereafter, similar processing is continued for one predetermined frame.
次に、HD L C受信回線9上の受信データ中の終了
フラグパターンをl−I D L C終了フラグ検出回
路2が検出し、終了フラグ検出信号S2が出力されるか
、あるいはDMA制御回路5に設定した転送バイト数の
データ転送が完了したことを示すDMA処理完了信号S
3が出力された場合、切替制御回路4は切替信号S6を
DMA転送要求切替回路3に送出し、DMA転送要求信
号S1.受信データDをDMA制御回路6へ送出するよ
うDMA転送要求切替回路3を切替えるとともに、DM
A制御回路5.6の動作状態を切替える。Next, the l-I DLC end flag detection circuit 2 detects the end flag pattern in the received data on the HD LC reception line 9, and outputs the end flag detection signal S2, or the DMA control circuit 5 DMA processing completion signal S indicating that data transfer of the number of transfer bytes set in
3 is output, the switching control circuit 4 sends the switching signal S6 to the DMA transfer request switching circuit 3, and the DMA transfer request signal S1. The DMA transfer request switching circuit 3 is switched to send the received data D to the DMA control circuit 6, and the DMA
Switch the operating state of the A control circuit 5.6.
ここで、実際の受信データのバイト数が、DMA mi
制御回路5に設定した値よりも小さい場合、DMA処理
完了信号S3より先に、終了フラグ検出信号S2が出力
される。Here, the number of bytes of actual received data is DMA mi
If it is smaller than the value set in the control circuit 5, the end flag detection signal S2 is output before the DMA processing completion signal S3.
切替えられk D M A制御回路6にはDMA制御回
路5の動作中に予め転送指示情報が送出されているため
、直ちに次の受信データから前記同様なデータ転送が開
始される。また、今まで動作していたDMA制御回路5
はDMA動作禁止制御信号87ににり動作が禁止される
。Since transfer instruction information has been sent to the DMA control circuit 6 in advance during operation of the DMA control circuit 5, the same data transfer as described above is immediately started from the next received data. In addition, the DMA control circuit 5 that has been operating until now
The operation is prohibited by the DMA operation prohibition control signal 87.
また、切替えられたDMA制御回路6が転送動作中に、
主プロセツサ7Gま次の受信データの転送アドレス、転
送バイト数の転送指示情報等をDMA l1ill 1
10回路5に設定する。Furthermore, during the transfer operation of the switched DMA control circuit 6,
The main processor 7G sends the next received data transfer address, transfer instruction information such as the number of transfer bytes, etc. to DMA l1ill 1
Set to 10 circuits 5.
この設定が完了した時点で、主プロセツサ7はDMA動
作禁止解除コマンドS5を送出し、DMA制御回路5の
DMA動作禁止状態を解除し、次のデータ受信動作にそ
なえる。When this setting is completed, the main processor 7 sends a DMA operation prohibition release command S5, cancels the DMA operation inhibition state of the DMA control circuit 5, and prepares for the next data reception operation.
このようにl) M A制御回路5.6を交互に動作さ
せ、一方のDMA制御回路が動作中に他方のDMA制御
回路に対して、新しい転送指示を行なうことにJ:す、
連続的に受信動作を行なうことができる。In this way, the M A control circuits 5.6 are operated alternately, and while one DMA control circuit is in operation, a new transfer instruction is issued to the other DMA control circuit.
Reception operations can be performed continuously.
(発明の効果)
以上説明したように本発明によれば、連続して送出され
る受信データを、2個のDMA制御回路をフレーム毎に
交Hに切替えて転送Jるようになしたため、主プロセツ
サは、転送動作を行なっていない、即ち時間的に余裕の
あるDMA制御回路にアクセスして転送指示情報を送出
することができ、従って、主プロセツザ自体の処理速度
もそれほど高速でなくてもよく、処理能力の低いプロセ
ッサを使用でき、また、バッファ回路も不要であり、少
ないハードウェアで構成(ることができる等の利点があ
る。(Effects of the Invention) As explained above, according to the present invention, continuously transmitted received data is transferred by switching the two DMA control circuits to alternating current for each frame. The processor can send out transfer instruction information by accessing a DMA control circuit that is not performing a transfer operation, that is, it has time to spare, and therefore the processing speed of the main processor itself does not have to be very high. , a processor with low processing power can be used, a buffer circuit is not required, and it can be configured with less hardware.
第1図は本発明のHDLC回線制御方式の一実施例を示
す回路図、第2図はHDLC受信回線における受信デー
タとDMA制御回路の動作とのタイミングを示す説明図
である。
1・・・HD L C受信回路、2・・・終了フラグ検
出回路、3・・・DMA転送要求切替回路、4・・・切
替側御回路、5.6・・・D M A III m回路
、7・・・主プロセツサ、8・・・メモリ、9・・・l
−I D L C受信回線。
特許出願人 沖電気工業株式会社
日本電信電話株式会社FIG. 1 is a circuit diagram showing an embodiment of the HDLC line control method of the present invention, and FIG. 2 is an explanatory diagram showing the timing of received data on the HDLC receiving line and the operation of the DMA control circuit. DESCRIPTION OF SYMBOLS 1... HD LC reception circuit, 2... End flag detection circuit, 3... DMA transfer request switching circuit, 4... Switching side control circuit, 5.6... DMA III m circuit , 7... Main processor, 8... Memory, 9... l
-IDLC reception line. Patent applicant Oki Electric Industry Co., Ltd. Nippon Telegraph and Telephone Corporation
Claims (1)
順次送られるデータ信号を受信するHDLC回線制御方
式において、 受信回路とメモリとの間に2個並列に配置したダイレク
トメモリアクセス(DMA)制御回路と、受信データ中
より終了フラグパターンを検出する手段と、 前記終了フラグパターンを検出した時、又はDMA制御
回路からの処理完了信号を受けた時、動作中のDMA制
御回路を動作禁止状態にするとともに、受信データ等を
他方のDMA制御回路に切替えて送出する手段と、 動作中でないDMA制御回路に対して新しい転送指示情
報を設定し、これを動作可能の状態にする手段とを設け
た ことを特徴とするHDLC回線制御方式。[Claims] In an HDLC line control system that receives data signals sent sequentially via a high-level data link control (HDLC) line, there is a direct memory access (HDLC) system in which two direct memory access circuits are arranged in parallel between the receiving circuit and the memory. a DMA) control circuit; a means for detecting an end flag pattern from received data; and when detecting the end flag pattern or receiving a processing completion signal from the DMA control circuit, operating a DMA control circuit that is currently in operation. means for setting the DMA control circuit in a prohibited state and switching the received data etc. to the other DMA control circuit and transmitting it; and means for setting new transfer instruction information to the DMA control circuit that is not in operation to enable it. An HDLC line control method characterized by the provision of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61118742A JPH0734561B2 (en) | 1986-05-23 | 1986-05-23 | HDLC line control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61118742A JPH0734561B2 (en) | 1986-05-23 | 1986-05-23 | HDLC line control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62274955A true JPS62274955A (en) | 1987-11-28 |
JPH0734561B2 JPH0734561B2 (en) | 1995-04-12 |
Family
ID=14743937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61118742A Expired - Fee Related JPH0734561B2 (en) | 1986-05-23 | 1986-05-23 | HDLC line control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0734561B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5585941A (en) * | 1978-12-21 | 1980-06-28 | Nec Corp | Dma system for data transmission and reception unit |
-
1986
- 1986-05-23 JP JP61118742A patent/JPH0734561B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5585941A (en) * | 1978-12-21 | 1980-06-28 | Nec Corp | Dma system for data transmission and reception unit |
Also Published As
Publication number | Publication date |
---|---|
JPH0734561B2 (en) | 1995-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0358163B1 (en) | Interrupt controller | |
JPH0670787B2 (en) | Command transfer control system between processors | |
JPS62274955A (en) | Hdlc line control system | |
JPH05128279A (en) | One-chip microcomputer | |
JPH03204254A (en) | Data receiver | |
JPH05197662A (en) | Information processor | |
JP2638505B2 (en) | Bus interface device | |
JPS6410146B2 (en) | ||
JP3088341B2 (en) | High-speed data transfer method on bus | |
JPS61262870A (en) | Bus controlling system | |
JPH02201569A (en) | Inter-microprocessor communication system | |
JPH0282342A (en) | Data communication equipment | |
JPS61246863A (en) | Data transfer system | |
JPH02285447A (en) | Data transfer control system | |
JPH0496852A (en) | Buffer memory connection control circuit | |
JPH06274451A (en) | Bus system | |
JPH02285448A (en) | Data transfer control system | |
JPH02219166A (en) | Multi-microprocessor system | |
JPH103463A (en) | Inter-processor communication method | |
JPH0497422A (en) | Data processing circuit | |
JPH03108930A (en) | Asynchronous communication system | |
JPS63106856A (en) | Extending device for distance of channel interface | |
JPH04172549A (en) | Digital data processor | |
JPH0193236A (en) | Communication system | |
JPS62245356A (en) | Data transfer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |