JP2989879B2 - Line controller - Google Patents
Line controllerInfo
- Publication number
- JP2989879B2 JP2989879B2 JP2288821A JP28882190A JP2989879B2 JP 2989879 B2 JP2989879 B2 JP 2989879B2 JP 2288821 A JP2288821 A JP 2288821A JP 28882190 A JP28882190 A JP 28882190A JP 2989879 B2 JP2989879 B2 JP 2989879B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- control unit
- line
- mpu
- bus
- 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 - Fee Related
Links
Landscapes
- Bus Control (AREA)
- Computer And Data Communications (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は回線制御装置に関し、特に回線制御部及びバ
スインタフェース制御部からの割り込みに対する優先制
御方式に関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line controller, and more particularly, to a priority control method for an interrupt from a line controller and a bus interface controller.
従来のこの種の回線制御装置は、回線への送信は上位
装置からのデータを内部バスに接続されるバッファメモ
リに格納するため、また回線からの受信時はバッファメ
モリに格納されている受信データを上位装置に転送する
ため、バスインタフェース制御部からバス要求の割り込
みをMPUに出す。又、回線制御部はバッファメモリ内の
データを回線上に送信するため、また回線からの受信し
たデータをバッファメモリに格納するために割り込みを
出す。割り込みを受けたMPUは、バスの使用権を各々の
制御部に与えてデータ転送を行わせる。この場合の優先
順位はMPUに予め複数設けられている割り込み信号用入
力ピンの番号によって決定される。通常の回線制御装置
は回線のオーバーラン/アンダーランを防ぐため回線制
御部を優先度の高い入力ピンに接続している。In this type of conventional line controller, data transmitted from a higher-level device is stored in a buffer memory connected to an internal bus for transmission to a line, and received data stored in a buffer memory is received for reception from a line. The bus interface controller issues a bus request interrupt to the MPU in order to transfer the Further, the line control unit issues an interrupt to transmit the data in the buffer memory to the line and to store the data received from the line in the buffer memory. The MPU that has received the interrupt gives the right to use the bus to each control unit and causes the data to be transferred. In this case, the priority order is determined by the number of interrupt signal input pins provided in advance in the MPU. In a normal line controller, a line controller is connected to a high-priority input pin in order to prevent overrun / underrun of the line.
上述した従来の回線制御装置の優先制御は割り込み信
号線が接続されるMPUの入力ピンによって決まってお
り、常に回線制御部を優先しているので回線からの割り
込みが多くなるとバス使用権が回線制御部のみに与えら
れるようになりバスインタフェース制御部からの割り込
みは保留され、バスインタフェース制御部が動作不能と
なりデータが上位装置へ引き取られなくなりオーバラン
/アンダーランが発生するという欠点がある。The priority control of the conventional line controller described above is determined by the input pin of the MPU to which the interrupt signal line is connected, and always gives priority to the line control unit, so when the number of interrupts from the line increases, the bus use right is controlled by the line. The bus interface controller is interrupted, the bus interface controller becomes inoperable, data is not taken over to the host device, and an overrun / underrun occurs.
本発明は、全体を制御するMPUと、上位装置と予じめ
備えたバッファメモリとの間で内部バスを介してデータ
転送を行うバスインタフェース制御手段と、回線と前記
バッファメモリとの間で前記内部バスを介してデータ転
送を行う回線制御手段と、前記バスインタフェース制御
手段又は前記回線制御手段からの前記内部バス使用要求
の割り込みを別々の受け口で受け付け通常は予じめ決め
られた前記受け口の優先順位で前記MPUへの割り込み処
理をする割り込み制御手段から構成される回線制御装置
において、前記割り込み制御手段が前記別々の受け口で
受け付けた前記バスインタフェース制御手段又は前記回
線制御手段からの前記MPUへの割り込み処理待ちの前記
割り込み要求が予じめ決められた数に達した場合、前記
決められた数に達した方の前記割り込み要求について優
先的に前記MPUへの割り込み処理をする手段を有するこ
とを特徴とする。The present invention provides an MPU for controlling the whole, a bus interface control means for performing data transfer between an upper-level device and a buffer memory provided in advance via an internal bus, and A line control unit that performs data transfer via an internal bus, and an interrupt for the internal bus use request from the bus interface control unit or the line control unit, which is received at separate reception ports, and is usually a predetermined reception port. In a line control device comprising interrupt control means for performing an interrupt process to the MPU in priority order, the interrupt control means may receive the bus interface control means or the line control means received at the separate reception port from the MPU. If the number of interrupt requests waiting for interrupt processing reaches a predetermined number, Characterized in that it comprises means for the interrupt processing to preferentially the MPU for serial interrupt request.
第1図は本発明の一実施例のブロック図である。1は
マイクロプログラムで走行するMPU、2はバッファメモ
リ、3は上位装置とのデータ転送を行うバスインタフェ
ース制御部、4は回線との送受信制御を行う回線制御
部、5は内部に割り込みの優先制御機能をもつ割り込み
制御部、6は本回線制御装置内の共通内部バス、7は上
位装置とのインタフェースを有するシステムバスであ
る。FIG. 1 is a block diagram of one embodiment of the present invention. 1 is an MPU running by a microprogram, 2 is a buffer memory, 3 is a bus interface control unit that performs data transfer with a higher-level device, 4 is a line control unit that controls transmission and reception to and from a line, and 5 is a priority control of interrupts internally. An interrupt control unit having a function, 6 is a common internal bus in the line controller, and 7 is a system bus having an interface with a higher-level device.
次に本実施例の動作について説明する。回線への送信
時、バスインタフェース制御部3はシステムバス7より
データを受け取るとバッファメモリ2に転送するために
MPU1に対して割り込みを起す。割り込まれたMPU1はバス
インタフェース制御部3にバスの使用権を返し、バスを
確保できたバスインタフェース制御部3はバッファメモ
リ2に送信データをDMA転送にて格納し、転送完了後再
びMPU1に対して終了割り込みを出す。終了割り込みを受
けたMPU1は回線制御部4に起動をかける。起動された回
線制御部4はMPU1に対してバス要求を出し、バス使用権
が得られた場合バッファメモリ2から送信データをDMA
転送により引き取り、回線上に出力する。Next, the operation of this embodiment will be described. When transmitting data to the line, the bus interface control unit 3 receives the data from the system bus 7 and transfers the data to the buffer memory 2.
Generate an interrupt to MPU1. The interrupted MPU 1 returns the right to use the bus to the bus interface control unit 3, and the bus interface control unit 3 having secured the bus stores the transmission data in the buffer memory 2 by DMA transfer. And issue a termination interrupt. The MPU 1 that has received the end interrupt activates the line control unit 4. The activated line control unit 4 issues a bus request to the MPU 1 and, when the right to use the bus is obtained, transfers the transmission data from the buffer memory 2 to the DMA.
Received by transfer and output on line.
受信時は、上記説明と逆に動作する。また回線制御部
側のバス要求の割り込み信号がMPU1のL1ピンにバスイン
タフェース制御部側のバス要求の割り込み信号がMPU1の
L2ピンに接続されている。MPU1内部ではL1>L2の順に優
先制御されており回線制御部4が優先される。回線制御
部4とバスインタフェース制御部3の両方からバス要求
の割り込みがある場合、バスインタフェース制御部3の
割り込みは保留される。回線上の送信/受信の多重度が
多くなると回線制御部4からの受信のためのバス要求の
割り込み信号が頻発しバッファメモリへの受信データの
格納回数が増える一方、MPU1はバスインタフェース制御
部3にバッファメモリ内の格納済み受信データの上位装
置への転送のための起動をかけるがバスインタフェース
制御部3からの割り込みが回線制御部4からの割り込み
より優先順位が低いため保留になるケースが多くなる。
割り込み制御部5はバスインタフェース制御部3への起
動に対するバスインタフェース制御部3からの保留にな
った割込み信号が予じめ決められた数に達すると割り込
み制御回路部5内の優先制御を変更してバスインタフェ
ース制御部3の割り込みがMPU1のマイクロプログラムに
受け付けられるようにしてバスインタフェース制御部に
優先的にバス使用権を与え、バッファメモリ内の受信デ
ータを上位装置に転送可能にする。バスインタフェース
制御部3からのDMA転送が完了するとMPU1は優先順位を
元に戻して再び回線制御部4からの割り込みを受け付け
る。また回線制御部4の保留されている割り込みが一定
の数値に達した場合は優先順位を一時的に変更して割り
込みの受付を行い送受信のデータ転送を行う。At the time of reception, the operation is reverse to that described above. In addition, the interrupt signal of the bus request on the line control unit side is applied to the L1 pin of the MPU1 and the interrupt signal of the bus request on the bus interface control unit side is output to the LPU pin of the MPU1.
Connected to L2 pin. In the MPU 1, priority control is performed in the order of L1> L2, and the line control unit 4 has priority. When there is a bus request interrupt from both the line controller 4 and the bus interface controller 3, the interrupt of the bus interface controller 3 is suspended. When the multiplicity of transmission / reception on the line increases, an interrupt signal of a bus request for reception from the line control unit 4 frequently occurs and the number of times of storing the received data in the buffer memory increases, while the MPU 1 controls the bus interface control unit 3 Is activated to transfer the received data stored in the buffer memory to the higher-level device, but the interrupt from the bus interface control unit 3 has a lower priority than the interrupt from the line control unit 4 and is often suspended. Become.
The interrupt control unit 5 changes the priority control in the interrupt control circuit unit 5 when the number of interrupt signals from the bus interface control unit 3 for the activation to the bus interface control unit 3 reaches a predetermined number. In this way, the bus interface controller is given priority to use the bus by allowing the interrupt of the bus interface controller 3 to be accepted by the microprogram of the MPU 1 so that the received data in the buffer memory can be transferred to the host device. When the DMA transfer from the bus interface control unit 3 is completed, the MPU 1 returns the priority order and accepts an interrupt from the line control unit 4 again. When the number of interrupts held by the line controller 4 reaches a certain value, the priority is temporarily changed to accept the interrupt and perform data transmission and reception.
以上説明したように本発明は、割り込み制御部内5に
保留の割り込みが決められた数値に達した時は一時的に
優先順位を変更して割り込みを受け付けることで受信時
のバッファメモリ2内のデータが引き取れない、また送
信時のバッファメモリ2内に送信データが存在しないと
いうオーバラン/アンダーランを防止する効果がある。As described above, according to the present invention, when the number of pending interrupts in the interrupt control unit 5 reaches a predetermined value, the priority is temporarily changed and the interrupt is accepted, so that the data in the buffer memory 2 at the time of reception is changed. Is not obtained, and there is an effect of preventing an overrun / underrun that transmission data does not exist in the buffer memory 2 at the time of transmission.
第1図は本発明の一実施例を示すブロック図である。 1……MPU、2……バッファメモリ、3……バスインタ
フェース制御部、4……回線制御部、5……割り込み制
御部、6……内部バス、7……システムバス。FIG. 1 is a block diagram showing one embodiment of the present invention. 1 ... MPU, 2 ... Buffer memory, 3 ... Bus interface controller, 4 ... Line controller, 5 ... Interrupt controller, 6 ... Internal bus, 7 ... System bus
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 13/00 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 13/00
Claims (1)
備えたバッファメモリとの間で内部バスを介してデータ
転送を行うバスインタフェース制御手段と、回線と前記
バッファメモリとの間で前記内部バスを介してデータ転
送を行う回線制御手段と、前記バスインタフェース制御
手段又は前記回線制御手段からの前記内部バス使用要求
の割り込みを別々の受け口で受け付け通常は予じめ決め
られた前記受け口の優先順位で前記MPUへの割り込み処
理をする割り込み制御手段から構成される回線制御装置
において、前記割り込み制御手段が前記別々の受け口で
受け付けた前記バスインタフェース制御手段又は前記回
線制御手段からの前記MPUへの割り込み処理待ちの前記
割り込み要求が予じめ決められた数に達した場合、前記
決められた数に達した方の前記割り込み要求について優
先的に前記MPUへの割り込み処理をする手段を有するこ
とを特徴とする回線制御装置。An MPU for controlling the whole; a bus interface control means for performing data transfer between an upper-level device and a buffer memory provided in advance via an internal bus; A line control unit for performing data transfer via the internal bus, and an interrupt for the internal bus use request from the bus interface control unit or the line control unit which is received at a separate reception port, and the reception port usually determined in advance. A line control device comprising interrupt control means for performing an interrupt process to the MPU in the priority order, wherein the interrupt control means receives the MPU from the bus interface control means or the line control means received at the separate reception port. If the number of interrupt requests waiting for interrupt processing reaches the predetermined number, Line control apparatus characterized by comprising means for the interrupt processing to preferentially the MPU for the interrupt request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2288821A JP2989879B2 (en) | 1990-10-25 | 1990-10-25 | Line controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2288821A JP2989879B2 (en) | 1990-10-25 | 1990-10-25 | Line controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04160662A JPH04160662A (en) | 1992-06-03 |
JP2989879B2 true JP2989879B2 (en) | 1999-12-13 |
Family
ID=17735176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2288821A Expired - Fee Related JP2989879B2 (en) | 1990-10-25 | 1990-10-25 | Line controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2989879B2 (en) |
-
1990
- 1990-10-25 JP JP2288821A patent/JP2989879B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH04160662A (en) | 1992-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5968143A (en) | Information handling system for transfer of command blocks to a local processing side without local processor intervention | |
US5940866A (en) | Information handling system having a local address queue for local storage of command blocks transferred from a host processing side | |
US5497501A (en) | DMA controller using a predetermined number of transfers per request | |
EP0141742A2 (en) | Buffer system for input/output portion of digital data processing system | |
KR920018567A (en) | Data processing systems | |
US5062073A (en) | Input output control system using a fifo to record access information of control registers by a master device | |
US5481681A (en) | Data transfer operations between two asynchronous buses | |
JP3020699B2 (en) | Printing equipment | |
JPH0574111B2 (en) | ||
EP0255593B1 (en) | Data package communication systems | |
US4878173A (en) | Controller burst multiplexor channel interface | |
JP2989879B2 (en) | Line controller | |
US5805841A (en) | Symmetric parallel multi-processing bus architeture | |
JP2570847B2 (en) | Data transfer method | |
JP3399776B2 (en) | Computer and method for transferring peripheral device control data in computer | |
JPS581454B2 (en) | Input/output control method | |
JP2008502977A (en) | Interrupt method for bus controller | |
JP2962767B2 (en) | Memory access method for DMA device | |
JP3442099B2 (en) | Data transfer storage device | |
JP2539517B2 (en) | Communication control method | |
JPS6224830B2 (en) | ||
JPH05314061A (en) | Bus interface control system | |
JPH02189049A (en) | Line controller | |
JP2752456B2 (en) | Channel device | |
JP2552015B2 (en) | Data transfer device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |