JPH04160662A - Line controller - Google Patents

Line controller

Info

Publication number
JPH04160662A
JPH04160662A JP28882190A JP28882190A JPH04160662A JP H04160662 A JPH04160662 A JP H04160662A JP 28882190 A JP28882190 A JP 28882190A JP 28882190 A JP28882190 A JP 28882190A JP H04160662 A JPH04160662 A JP H04160662A
Authority
JP
Japan
Prior art keywords
control means
line
mpu
interrupt
buffer memory
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
Application number
JP28882190A
Other languages
Japanese (ja)
Other versions
JP2989879B2 (en
Inventor
Masaaki Chinju
鎮守 正昭
Wataru Kobayashi
亘 小林
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP2288821A priority Critical patent/JP2989879B2/en
Publication of JPH04160662A publication Critical patent/JPH04160662A/en
Application granted granted Critical
Publication of JP2989879B2 publication Critical patent/JP2989879B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To prevent the rejection of data reading from a buffer memory at the time of receiving and to prevent the absence of transmitting data in the buffer memory at the time of transmitting by temporarily changing priority order and receiving an interruption when the number of interruptions held in an interruption control part reaches a prescribed value. CONSTITUTION:This line control device is constituted of an MPU 1 for controlling the whole system, a bus interface control means 3 for transferring data between a master device and the buffer memory 2 through an internal bus 6, a line control means 4 for transferring data between a line and the memory 2, and the interruption control means 5 for receiving an internal bus using request interruption outputted from the means 3 and executing interrupting processing to the MPU 1 in the previously determined priority order. A means for interrupting the MPU 1 with priority when the number of interruption processing queue interruption requests reaches the previously determined value is also included. Consequently, the generation of over run/under run in which data can not be loaded to the master device can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は回線制御装置に関し、特に回線制御部及びバス
インタフェース制御部からの割り込みに対する優先制御
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line control device, and particularly to a priority control system for interrupts from a line control unit and a bus interface control unit.

〔従来の技術〕[Conventional technology]

従来のこの種の回線制御装置は、回線への送信は上位装
置からのデータを内部バスに接続されるバッファメモリ
に格納するため、また回線からの受信時はバッファメモ
リに格納されている受信データを上位装置に転送するた
め、バスインタフェース制御部からバス要求の割り込み
をMPUに出す。又、回線制御部はバッファメモリ内の
データを回線上に送信するため、また回線からの受信し
たデータをバッファメモリに格納するために割り込みを
出す。割り込みを受けたMPUは、バスの使用権を各々
の制御部に与えてデータ転送を行わせる。この場合の優
先順位はMPUに予め複数設けられている割り込み信号
用入力ピンの番号によって決定される。通常の回線制御
装置は回線のオーバーラン/アンダーランを防ぐため回
線制御部を優先度の高い入力ピンに接続している。
Conventional line control devices of this type store data from a host device in a buffer memory connected to the internal bus when transmitting to the line, and store received data stored in the buffer memory when receiving from the line. In order to transfer the data to the host device, the bus interface control unit issues a bus request interrupt to the MPU. The line control unit also issues an interrupt in order to transmit data in the buffer memory onto the line and to store data received from the line in the buffer memory. Upon receiving the interrupt, the MPU gives the right to use the bus to each control unit to perform data transfer. The priority order in this case is determined by the numbers of the interrupt signal input pins provided in advance in the MPU. A normal line control device connects the line control section to a high priority input pin to prevent line overrun/underrun.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の回線制御装置の優先制御は割り込み信号
線が接続されるMPUの入力ピンによって決まっており
、常に回線制御部を優先しているので回線からの割り込
みが多くなるとバス使用権が回線制御部のみに与えられ
るようになりバスインタフェース制御部からの割り込み
は保留され、バスインタフェース制御部が動作不能とな
りデータが上位装置へ引き取られなくなりオーバラン/
アンダーランが発生するという欠点がある。
The priority control of the conventional line control device mentioned above is determined by the input pin of the MPU to which the interrupt signal line is connected, and the line control unit is always given priority, so when the number of interrupts from the line increases, the right to use the bus is transferred to the line control unit. Interrupts from the bus interface control unit are suspended, and the bus interface control unit becomes inoperable and data is not received by the host device, resulting in an overrun/interrupt.
This has the disadvantage that underrun occurs.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、全体を制御するMPUと、上位装置と予じめ
備えたバッファメモリとの間で内部バスを介してデータ
転送を行うバスインタフェース制御手段と、回線と前記
バッファメモリとの間で前記内部バスを介してデータ転
送を行う回線制御手段と、前記バスインタフェース制御
手段又は前記回線制御手段からの前記内部バス使用要求
の割り込みを別々の受け口で受け付は通常は予じめ決め
られた前記受け口の優先順位で前記MPUへの割り込み
処理をする割り込み制御手段から構成される回線制御装
置において、前記割り込み制御手段が前記割々の受け口
で受け付けた前記バスインタフェース制御手段又は前記
回線制御手段からの前記MPUへの割り込み処理待ちの
前記割り込み要求が予じめ決められた数に達した場合、
前記法められた数に達した方の前記割り込み要求につい
て優先的に前記MPUへの割り込み処理をする手段を存
することを特徴とする。
The present invention provides an MPU that controls the entire system, a bus interface control unit that transfers data via an internal bus between a host device and a buffer memory provided in advance, and a bus interface control unit that transfers data between a line and the buffer memory. The line control means that transfers data via the internal bus and the interrupt of the internal bus use request from the bus interface control means or the line control means are normally accepted by separate receivers. In a line control device comprising an interrupt control means for processing interrupts to the MPU in priority order of acceptors, the interrupt control means receives requests from the bus interface control means or the line control means that are accepted by the respective acceptors. When the number of interrupt requests waiting for interrupt processing to the MPU reaches a predetermined number,
The present invention is characterized in that it includes means for processing interrupts to the MPU preferentially for the interrupt requests that have reached the predetermined number.

〔実施例〕〔Example〕

第1図は本発明の一実施例のブロック図である。1はマ
イクロプログラムで走行するMPU12はバッファメモ
リ、3は上位装置とのデータ転送を行うバスインタフェ
ース制御部、4は回線との送受信制御を行う回線制御部
、5は内部に割り込みの優先制御機能をもつ割り込み制
御部、6は本回線制御装置内の共通内部バス、7は上位
装置とのインタフェースを有するシステムバスである。
FIG. 1 is a block diagram of one embodiment of the present invention. Reference numeral 1 denotes an MPU 12 that runs on a microprogram, which is a buffer memory, 3 a bus interface control unit that transfers data with a host device, 4 a line control unit that controls transmission and reception with a line, and 5 an internal interrupt priority control function. 6 is a common internal bus within the line control device, and 7 is a system bus having an interface with a host device.

次に本実施例の動作について説明する。回線への送信時
、バスインタフェース制御部3はシステムバス7よりデ
ータを受け取るとバッファメモリ2に転送するためにM
PU1に対して割り込みを起す。割り込まれたMPUI
はバスインタフェース制御部3にバスの使用権を返し、
バスを確保でキタバスインタフェース制御部3はバッフ
ァメモリ2に送信データをDMA転送にて格納し、転送
完了後再びMPUIに対して終了割り込みを出す。終了
割り込みを受けたMPU 1は回線制御部4に起動をか
ける。起動された回線制御部4はMPU1に対してバス
要求を出し、バス使用権が得られた場合バッファメモリ
2から送信データをDMA転送により引き取り、回線上
に出力する。
Next, the operation of this embodiment will be explained. When transmitting to the line, the bus interface control unit 3 receives data from the system bus 7 and transfers it to the buffer memory 2.
Generates an interrupt to PU1. Interrupted MPUI
returns the right to use the bus to the bus interface control unit 3,
After securing the bus, the Kitabus interface control unit 3 stores the transmission data in the buffer memory 2 by DMA transfer, and once the transfer is completed, issues an end interrupt to the MPUI again. The MPU 1 that 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 if the right to use the bus is obtained, it takes over the transmission data from the buffer memory 2 by DMA transfer and outputs it onto the line.

受信時は、上記説明と逆に動作する。また回線制御部側
のバス要求の割り込み信号がMPU 1のL1ピンにパ
スインタフニー貢制御部側のバス要求の割り込み信号が
MPUIのL2ピンに接続されている。MPU 1内部
ではLL>L2の順に優先制御されており回線制御部4
が優先される。回線制御部4とバスインタフェース制御
部3の両方からバス要求の割り込みがある場合、バスイ
ンタフェース制御部3の割り込みは保留される。回線上
の送信/受信の多重度が多くなると回線制御部4からの
受信のためのバス要求の割り込み信号が頻発しバッファ
メモリへの受信データの格納回数が増える一方、MPU
Iはバスインタフェース制御部3にバッファメモリ内の
格納済み受信データの上位装置への転送のための起動を
かけるがバスインタフェース制御部3からの割り込みが
回線制御部4からの割り込みより優先順位が低いため保
留になるケースが多くなる。割り込み制御部5はバスイ
ンタフェース制御部3への起動に対するバスインタフェ
ース制御部3からの保留になった割−〇− 込み信号が予じめ決められた数に達すると割り込み制御
回路部5内の優先制御を変更してバスインタフェース制
御部3の割り込みがMPUIのマイクロプログラムに受
け付けられるようにしてバスインタフェース制御部に優
先的にバス使用権を与え、バッファメモリ内の受信デー
タを上位装置に転送可能にする。バスインタフェース制
御部3からのDMA転送が完了するとMPUIは優先順
位を元に戻して再び回線制御部4からの割り込みを受け
付ける。また回線制御部4の保留されている割り込みが
一定の数値に達した場合は優先順位を一時的に変更して
割り込みの受付を行い送受信のデータ転送を行う。
At the time of reception, the operation is opposite to that described above. Further, an interrupt signal for a bus request on the line control section side is connected to the L1 pin of the MPU 1, and an interrupt signal for a bus request on the path interface control section side is connected to the L2 pin of the MPUI. Inside the MPU 1, priority control is performed in the order of LL>L2, and the line control unit 4
is given priority. If there are bus request interrupts from both the line control section 4 and the bus interface control section 3, the interrupt from the bus interface control section 3 is suspended. When the multiplicity of transmission/reception on the line increases, bus request interrupt signals for reception from the line control unit 4 occur frequently, and the number of times received data is stored in the buffer memory increases.
I activates the bus interface control unit 3 to transfer the received data stored in the buffer memory to the host device, but the interrupt from the bus interface control unit 3 has a lower priority than the interrupt from the line control unit 4. Therefore, many cases are put on hold. When the number of pending interrupt signals from the bus interface control unit 3 reaches a predetermined number in response to activation of the bus interface control unit 3, the interrupt control unit 5 prioritizes them within the interrupt control circuit unit 5. The control is changed so that interrupts from the bus interface control unit 3 are accepted by the MPUI microprogram, giving priority to the bus use right to the bus interface control unit, making it possible to transfer the received data in the buffer memory to the host device. do. When the DMA transfer from the bus interface control unit 3 is completed, the MPUI restores the priority order and accepts interrupts from the line control unit 4 again. Further, when the number of pending interrupts of the line control unit 4 reaches a certain value, the priority is temporarily changed, the interrupt is accepted, and data transmission/reception is performed.

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

以上説明したように本発明は、割り込み制御部内5に保
留の割り込みが決められた数値に達した時は一時的に優
先順位を変更して割り込みを受け付けることで受信時の
バッファメモリ2内のデータが引き取れない、また送信
時のバッファメモリ2内に送信データが存在しないとい
うオーバラン/アンダーランを防止する効果がある。
As explained above, in the present invention, when the number of pending interrupts in the interrupt control unit 5 reaches a predetermined number, the priority order is temporarily changed and the interrupt is accepted. This has the effect of preventing overruns/underruns in which data cannot be picked up or there is no transmission data in the buffer memory 2 at the time of transmission.

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

第1図は本発明の一実施例を示すブロック図である。 1・・・MPU12・・・バッファメモリ、3・・・バ
スインタフェース制御部、4・・・回線制御部、S・・
・割り込み制御部、6・・・内部バス、7・・・システ
ムバス。
FIG. 1 is a block diagram showing one embodiment of the present invention. 1...MPU12...Buffer memory, 3...Bus interface control unit, 4...Line control unit, S...
- Interrupt control unit, 6... internal bus, 7... system bus.

Claims (1)

【特許請求の範囲】[Claims] 全体を制御するMPUと、上位装置と予じめ備えたバッ
ファメモリとの間で内部バスを介してデータ転送を行う
バスインタフェース制御手段と、回線と前記バッファメ
モリとの間で前記内部バスを介してデータ転送を行う回
線制御手段と、前記バスインタフェース制御手段又は前
記回線制御手段からの前記内部バス使用要求の割り込み
を別々の受け口で受け付け通常は予じめ決められた前記
受け口の優先順位で前記MPUへの割り込み処理をする
割り込み制御手段から構成される回線制御装置において
、前記割り込み制御手段が前記別々の受け口で受け付け
た前記バスインタフェース制御手段又は前記回線制御手
段からの前記MPUへの割り込み処理待ちの前記割り込
み要求が予じめ決められた数に達した場合、前記決めら
れた数に達した方の前記割り込み要求について優先的に
前記MPUへの割り込み処理をする手段を有することを
特徴とする回線制御装置。
An MPU that controls the whole, a bus interface control means that transfers data via an internal bus between a host device and a buffer memory provided in advance, and a bus interface control unit that transfers data between a line and the buffer memory via the internal bus. a line control means for data transfer, and a line control means that receives interrupts for requests for use of the internal bus from the bus interface control means or the line control means through separate receivers; In a line control device comprising interrupt control means for processing interrupts to an MPU, the interrupt control means waits for processing of interrupts to the MPU from the bus interface control means or the line control means accepted at the separate reception ports. When the number of interrupt requests reaches a predetermined number, the device is characterized by having means for processing the interrupt to the MPU preferentially for the interrupt requests that have reached the predetermined number. Line control device.
JP2288821A 1990-10-25 1990-10-25 Line controller Expired - Fee Related JP2989879B2 (en)

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 true JPH04160662A (en) 1992-06-03
JP2989879B2 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)

Also Published As

Publication number Publication date
JP2989879B2 (en) 1999-12-13

Similar Documents

Publication Publication Date Title
US6014729A (en) Shared memory arbitration apparatus and method
US4860244A (en) Buffer system for input/output portion of digital data processing system
US4488226A (en) Method and apparatus for high speed asynchronous serial data transfer
US4887075A (en) Local area network system with a multi-computer system coupled thereto and method for controlling the same
US5930483A (en) Method and apparatus for communications control on a small computer system interface
US4878173A (en) Controller burst multiplexor channel interface
US5206935A (en) Apparatus and method for fast i/o data transfer in an intelligent cell
JP2008502977A (en) Interrupt method for bus controller
JPH04160662A (en) Line controller
US7506079B2 (en) Data processor and data communication method
EP0568678B1 (en) Device for transmission of data
JPS6224830B2 (en)
JPH0113575B2 (en)
JPH05314061A (en) Bus interface control system
KR100290092B1 (en) Device for interfacing input/output bus for processing defer reply signal
EP1416393B1 (en) Processor interface having a stream register and a FIFO
JPS58182737A (en) Information processor
JPS61101868A (en) Masking system of mutual interruption for duplex processor
JPH0313026A (en) Line controller
JPH0581167A (en) Data transmission processor
JP2000298639A (en) Transmitting circuit, receiving circuit, interface circuit, system controller, input-output controller and information processor
JPS61210465A (en) Buffer control device
JPH0642233B2 (en) Data transfer control method
JPH1141297A (en) Dma controller using programmable sequencer
JPH0528105A (en) Data transfer system

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