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
JPH0748753B2 - Line control device - Google Patents
[go: Go Back, main page]

JPH0748753B2 - Line control device - Google Patents

Line control device

Info

Publication number
JPH0748753B2
JPH0748753B2 JP63158074A JP15807488A JPH0748753B2 JP H0748753 B2 JPH0748753 B2 JP H0748753B2 JP 63158074 A JP63158074 A JP 63158074A JP 15807488 A JP15807488 A JP 15807488A JP H0748753 B2 JPH0748753 B2 JP H0748753B2
Authority
JP
Japan
Prior art keywords
line
interrupt
priority
interrupt request
scan
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
Application number
JP63158074A
Other languages
Japanese (ja)
Other versions
JPH029252A (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 JP63158074A priority Critical patent/JPH0748753B2/en
Publication of JPH029252A publication Critical patent/JPH029252A/en
Publication of JPH0748753B2 publication Critical patent/JPH0748753B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は複数の回線を順次スキャンして、この回線から
の割込要求を順次処理する回線制御装置に関する。
The present invention relates to a line control device for sequentially scanning a plurality of lines and sequentially processing interrupt requests from the lines.

[従来の技術] 第2図は通信制御装置の概略構成図である。第2図にお
いて、1は中央処理装置(以下、CPUという)、2は基
本ユニット(以下、CCEという)、31、32、…、3nは回
線接続ユニット(以下、LUという)である。
[Prior Art] FIG. 2 is a schematic configuration diagram of a communication control device. In FIG. 2, 1 is a central processing unit (hereinafter referred to as CPU), 2 is a basic unit (hereinafter referred to as CCE), 3 1 , 3 2 , ..., 3 n are line connection units (hereinafter referred to as LU). .

CPU1とCCE2とはインタフェースバス4を介して接続さ
れ、CCE2と各LU31、32、…、3nとはインタフェースバス
5を介して並列に接続されている。
The CPU 1 and the CCE 2 are connected via the interface bus 4, and the CCE 2 and each of the LU 3 1 , 3 2 , ..., 3 n are connected in parallel via the interface bus 5.

次に、第3図は第2図に示したCCE2の概略構成図であ
る。第3図において、6はCCE2を制御するマイクロプロ
セッサ、7は回線制御情報を記憶しているローカルメモ
リ(以下、LMという)、8は回線番号を記憶しているラ
インナンバレジスタ(以下、LNRという)、9はインタ
フェース制御部(以下、INTという)、10は回線走査回
路(以下、SCANという)である。
Next, FIG. 3 is a schematic configuration diagram of the CCE2 shown in FIG. In FIG. 3, 6 is a microprocessor for controlling CCE2, 7 is a local memory (hereinafter referred to as LM) which stores line control information, and 8 is a line number register (hereinafter referred to as LNR) which stores a line number. ), 9 is an interface control unit (hereinafter referred to as INT), and 10 is a line scanning circuit (hereinafter referred to as SCAN).

マイクロプロセッサ6とINT9とはインタフェースバス11
を介して接続され、INT9とCPU1とはインタフェースバス
12を介して接続されている。又、マイクロプロセッサ6
とSCAN10とはインタフェースバス13を介して接続され、
マイクロプロセッサ6とLM7とはデータバス14を介して
接続され、さらに、マイクロプロセッサ6とLM7及びLNR
8とはアドレスバス16を介してそれぞれ接続されてい
る。
Interface bus 11 between microprocessor 6 and INT9
Interface bus between INT9 and CPU1
Connected via 12. Also, the microprocessor 6
And SCAN10 are connected via the interface bus 13,
The microprocessor 6 and the LM7 are connected via a data bus 14, and the microprocessor 6 and the LM7 and LNR are further connected.
8 are connected to each other via an address bus 16.

マイクロプロセッサ6は例えばビットスライスマイクロ
プロセッサ等の高速のマイクロプロセッサで構成されて
おり、汎用的に使用できる手順制御プログラムが内蔵さ
れている制御メモリ(以下、CMという)17を有してい
る。
The microprocessor 6 is composed of, for example, a high-speed microprocessor such as a bit slice microprocessor, and has a control memory (hereinafter referred to as CM) 17 in which a procedure control program that can be used for general purpose is built.

次に、第4図は第3図に示した従来のSCAN10のブロック
図である。このSCAN10は本願出願人が先に出願した『回
線走査方式』(特開昭61−56547号)に記載したもので
ある。
Next, FIG. 4 is a block diagram of the conventional SCAN 10 shown in FIG. The SCAN 10 is described in "Line Scanning System" (Japanese Patent Laid-Open No. 61-56547) previously filed by the applicant of the present application.

SCAN10はそれぞれ4本ずつの回線が接続されている4個
の回線基板22a、22b、22c及び22d、並びにソフトウェア
割込記憶回路23が接続されている。これらの各回線は0
番から15番までの回線番号により特定される。
The SCAN 10 is connected with four circuit boards 22a, 22b, 22c and 22d to which four lines are respectively connected, and a software interrupt storage circuit 23. 0 for each of these lines
It is specified by the line number from No. 15 to 15.

第4図において、24はスキャンモードレジスタ、25はRO
M、26は走査レジスタ、27は共通制御回路、31a、31b、3
1c、31dは回線アダプタ、32a、32b、32c、32dはプライ
オリティエンコーダ(以下、ENCという)、33a、33b、3
3c、33dは割込回路(以下、INTという)、34a、34b、34
c、34dはAND回路、41はアドレス切替回路、42は割込メ
モリである。
In FIG. 4, 24 is a scan mode register and 25 is RO.
M, 26 are scan registers, 27 is a common control circuit, 31a, 31b, 3
1c, 31d are line adapters, 32a, 32b, 32c, 32d are priority encoders (hereinafter referred to as ENCs), 33a, 33b, 3
3c and 33d are interrupt circuits (hereinafter referred to as INT), 34a, 34b and 34
c and 34d are AND circuits, 41 is an address switching circuit, and 42 is an interrupt memory.

スキャンモードレジスタ24は優先スキャンを行なう優先
スキャン回線数及びスキャンスキップを行なうスキャン
スキップ回線数を保持している。
The scan mode register 24 holds the number of priority scan lines for priority scan and the number of scan skip lines for scan skip.

優先スキャンとは、高速回線をスキャンする割合を他の
回線よりも多くして、高速回線からの割込要求を優先的
に受け付ける機能である。
The priority scan is a function that scans the high-speed line more frequently than other lines and preferentially receives an interrupt request from the high-speed line.

又、スキャンスキップとは、未使用回線スロットの回線
走査を抑止することにより、回線走査を効率的に行なう
機能である。
The scan skip is a function of efficiently performing line scanning by suppressing line scanning of unused line slots.

優先スキャンを行なう回線(以下、優先スキャンを行な
う回線を優先回線といい、優先スキャンを行なわない回
線を非優先回線という)は、優先スキャン回線数によ
り、回線番号0から昇順に設定する。例えば、優先スキ
ャン回線数を2に設定すると、回線番号0及び1の回線
が優先回線になる。
Lines that perform priority scanning (hereinafter, lines that perform priority scanning are referred to as priority lines, and lines that do not perform priority scanning are referred to as non-priority lines) are set in ascending order from line number 0 according to the number of priority scanning lines. For example, if the number of priority scan lines is set to 2, the lines with line numbers 0 and 1 will be the priority lines.

又、スキャンスキップを行なう回線(以下、スキャンス
キップ回線という)は、スキャンスキップ回線数に従っ
て回線番号15から降順に設定する。例えば、スキャンス
キップ回線数を4に設定すると、回線番号15、14、13及
び12の回線がスキャンスキップ回線になる。
Lines for which scan skip is performed (hereinafter referred to as scan skip lines) are set in descending order from line number 15 according to the number of scan skip lines. For example, when the number of scan skip lines is set to 4, the lines with line numbers 15, 14, 13 and 12 are scan skip lines.

優先スキャン回線数及びスキャンスキップ回線数は、シ
ステム生成時にメモリ(図示せず)に設定される優先ス
キャン回線数及びスキャンスキップ回線数、並びにマイ
クロプロセッサ(図示せず)が検出した各回線の実装、
未実装状態に応じてスキャンモードレジスタ24にセット
される。
The number of priority scan lines and the number of scan skip lines are the number of priority scan lines and the number of scan skip lines set in the memory (not shown) at the time of system generation, and the mounting of each line detected by the microprocessor (not shown),
It is set in the scan mode register 24 according to the unmounted state.

ROM25はスキャンモードレジスタ24から信号線群S6及びS
7を介して入力される優先スキャン回線数及びスキャン
スキップ回線数、並びに走査レジスタ25から信号線群S
11及びS9を介して入力される優先走査スロット数及び回
線走査タイムスロット番号(回線走査を行なう回線番
号)に基づいて、回線走査比率を指定する優先走査スロ
ット値及び回線走査を行なう回線番号を示す回線走査タ
イムスロット番号を出力する。
The ROM 25 stores the signal line groups S 6 and S from the scan mode register 24.
The number of priority scan lines and the number of scan skip lines input via 7 and the signal line group S from the scan register 25.
Based on the number of priority scan slots and line scan time slot number (line number for line scan) input via 11 and S 9 , specify the priority scan slot value that specifies the line scan ratio and the line number for line scan. Outputs the indicated line scan time slot number.

なお、回線走査比率とは、非優先回線に対して回線走査
タイムスロットを1回割り当てる間に、優先回線に対し
て回線走査タイムスロットを何回割り当てるのかを示す
ものである。
The line scan ratio indicates how many times the line scan time slot is assigned to the priority line while the line scan time slot is assigned once to the non-priority line.

例えば、回線走査比率が4のときは、非優先回線に対し
て回線走査タイムスロットを1回割り当てる間に、優先
回線に対して回線走査タイムスロットを4回割り当てる
ことになる。
For example, when the line scan ratio is 4, the line scan time slot is assigned to the priority line four times while the line scan time slot is assigned to the non-priority line once.

回線走査比率が4の場合、信号線群S11の優先走査タイ
ムスロット値は、全回線を1回走査する間に0から1、
2、3というように変化する。優先回線は優先走査タイ
ムスロット値が変化する度毎にスキャンされる。従っ
て、回線走査が1周する間に、優先回線が4回スキャン
され、非優先回線が1回スキャンされることになる。
When the line scanning ratio is 4, the priority scanning time slot value of the signal line group S 11 is 0 to 1 while scanning all lines once,
It changes like a few. The priority line is scanned every time the priority scanning time slot value changes. Therefore, the priority line is scanned four times and the non-priority line is scanned once during one round of line scanning.

走査レジスタ26はROM25が出力する優先走査スロット値
及び回線走査スロット番号を共通制御回路27から出力さ
れる走査クロックに従ってサンプリングし、信号線群S8
及びS11に回線走査タイムスロット番号及び優先走査ス
ロット数を出力する。
The scan register 26 samples the priority scan slot value and line scan slot number output from the ROM 25 in accordance with the scan clock output from the common control circuit 27, and outputs the signal line group S 8
And S 11 output the line scan time slot number and the priority scan slot number.

回線走査タイムスロット番号が出力される信号線群S
8は、SCAN10の最大収容回線数16回線に対応して、それ
ぞれ23、22、21、20の重み付けがされた4本の信号線か
ら構成されている。このため、信号線群S8の出力する信
号により、回線番号0番から15番までを表わすことがで
きる。
Signal line group S from which line scan time slot number is output
8, corresponding to the Max line number 16 lines of SCAN10, and a respective 2 3, 2 2, 2 1, 2 0 4 signal lines weighted is the. Therefore, the line numbers 0 to 15 can be represented by the signals output from the signal line group S 8 .

回線アダプタ31aは情報設定回路35及び比較回路36を有
している。情報設定回路35は自己に割り当てられた回線
番号0を信号線群S1に出力するとともに、信号線S10
回線の実装、未実装状態を出力する。又、比較回路36は
信号線S10に実装状態が出力されているときにイネーブ
ルとなり、信号線群S9に出力された自己の回線番号と信
号線S8に出力された回線走査タイムスロット番号とを比
較し、両方の番号が一致すると信号線Sa割込許可信号を
出力する。
The line adapter 31a has an information setting circuit 35 and a comparison circuit 36. The information setting circuit 35 outputs the line number 0 assigned to itself to the signal line group S 1 and outputs the mounted / unmounted state of the line to the signal line S 10 . Further, the comparison circuit 36 is enabled when the mounting state is output to the signal line S 10 , and the line number of its own output to the signal line group S 9 and the line scanning time slot number output to the signal line S 8 . comparing the door, both numbers to output a signal line S a interrupt enable signal to match.

なお、他の回線アダプタ31b〜31dも回線アダプタ31aと
同様に情報設定回路及び比較回路が設けられており、信
号線Sb、Sc、Sdに割込許可信号を出力する。
The other line adapters 31b~31d are also similarly information setting circuit and the comparison circuit and the line adapter 31a is provided, the signal line S b, S c, and outputs the interrupt enable signal to the S d.

ENC32aは回線番号0の回線(図示せず)からの割込コー
ド(割込要求)IPT01、IPT02、…、IPT0nのうち、最も
プライオリティが高い割込コードを出力する。ENC32b〜
32dも同様の構成である。
The ENC 32a outputs the interrupt code with the highest priority among the interrupt codes (interrupt request) IPT 01 , IPT 02 , ..., IPT 0n from the line (not shown) with the line number 0. ENC32b ~
32d has the same configuration.

AND回路34a〜34dはそれぞれ割込許可信号が出力されて
いるときに、割込コードが出力されると、共通制御回路
27に割込コードを出力する。
Each of the AND circuits 34a to 34d outputs a common control circuit when an interrupt code is output while the interrupt enable signal is being output.
The interrupt code is output to 27.

次に、従来のSCAN10の動作について、第5図及び第6図
のタイミングチャートを参照して説明する。
Next, the operation of the conventional SCAN 10 will be described with reference to the timing charts of FIGS. 5 and 6.

まず、優先回線数が0、未使用回線数が0、即ち16回線
全てが実装されているときの動作について、第5図を参
照して説明する。
First, the operation when the number of priority lines is 0 and the number of unused lines is 0, that is, when all 16 lines are mounted will be described with reference to FIG.

優先回線数及び未使用回線数がいずれも0のときは、ス
キャンモードレジスタ24は信号線群S6及びS7に0を出力
する。従って、走査レジスタ26は走査クロックに従っ
て、回線走査タイムスロット番号を順次出力して、回線
走査を行なう。
When both the number of priority lines and the number of unused lines are 0, the scan mode register 24 outputs 0 to the signal line groups S 6 and S 7 . Therefore, the scan register 26 sequentially outputs line scan time slot numbers in accordance with the scan clock to perform line scan.

又、優先回線数が0なので、優先走査スロット数が0か
ら1、2、3と変化して再び0になるまでの間に、各回
線アダプタに対してそれぞれ1回の回線走査タイムスロ
ット番号が与えられることになる。
Also, since the number of priority lines is 0, one line scan time slot number is assigned to each line adapter until the number of priority scan slots changes from 0 to 1, 2, 3 and becomes 0 again. Will be given.

回線走査タイムスロット番号は各回線の情報設定回路が
記憶している回線番号とそれぞれ比較され、回線番号が
一致した回線アダプタのみに割込要求の権利が付与され
ることになる。例えば、回線アダプタ31aは比較回路36
が回線走査タイムスロット番号と情報設定回路35の回線
番号とを比較して、回線番号が一致すると、割込許可信
号を出力する。
The line scanning time slot number is compared with the line number stored in the information setting circuit of each line, and only the line adapter having the same line number is granted the interrupt request right. For example, the line adapter 31a has a comparison circuit 36
Compares the line scanning time slot number with the line number of the information setting circuit 35, and outputs an interrupt permission signal when the line numbers match.

割込許可信号の出力により、割込コードが共通制御回路
27に出力される。さらに、共通制御回路27からマイクロ
プロセッサ6に割込要求が出力され、マイクロプロセッ
サ6が割込処理を実行することになる。
Interrupt control signal output by interrupt enable signal
It is output to 27. Further, the common control circuit 27 outputs an interrupt request to the microprocessor 6, and the microprocessor 6 executes the interrupt processing.

次に、優先回線数が2、未使用回線数が4、即ち収容回
線数が12回線のときの動作について、第6図のタイミン
グチャートを参照して説明する。
Next, the operation when the number of priority lines is 2, the number of unused lines is 4, that is, when the number of accommodated lines is 12 will be described with reference to the timing chart of FIG.

優先回線数が2、スキップ回線数が4のときは、スキャ
ンモードレジスタ24が信号線群S6及びS7に2及び15を出
力する。
When the number of priority lines is 2 and the number of skip lines is 4, the scan mode register 24 outputs 2 and 15 to the signal line groups S 6 and S 7 .

従って、優先回線(回線番号0及び1の回線)に対して
は、優先走査スロット数が変化する度毎に、回線走査タ
イムスロット番号が出力されることになる。又、非優先
回線(回線番号3〜11の回線)に対しては、優先走査ス
ロット数が0から1、2、3と変化して再び0になるま
での間に、1回だけ回線走査タイムスロット番号が出力
されることになる。さらに、スキャンスキップ回線(回
線番号12〜15の回線)に対して、回線走査タイムスロッ
ト番号は出力されない。この結果、回線走査比率は4に
なるとともに、スキャンスキップ回線に対する回線走査
は抑止される。
Therefore, the line scan time slot number is output to the priority lines (lines with line numbers 0 and 1) every time the number of priority scan slots changes. For non-priority lines (lines with line numbers 3 to 11), the line scan time is changed only once before the number of priority scan slots changes from 0 to 1, 2, and 3 and becomes 0 again. The slot number will be output. Furthermore, the line scan time slot numbers are not output to the scan skip lines (lines with line numbers 12 to 15). As a result, the line scan ratio becomes 4, and the line scan for the scan skip line is suppressed.

上述した割込要求が出力されると、第7図のフローチャ
ートに示すように、マイクロプロセッサ6は割込要求の
種類を示す割込コードを読み込み、割込コード0、1、
…、nに応じた処理を実行する。
When the above-mentioned interrupt request is output, as shown in the flowchart of FIG. 7, the microprocessor 6 reads an interrupt code indicating the type of interrupt request, and interrupt codes 0, 1,
..., the process according to n is performed.

ところで、多回線制御においては、所定時間内に各回線
からの割込処理を実行する必要があるので、1回の処理
時間に制約が設けられている。このため、長い処理時間
を要する処理は分割割込処理として実行する。即ち、分
割割込処理は回線からの割込要求により実行する処理及
びソフトウェア割込要求により実行する処理から構成さ
れている。
By the way, in the multi-line control, since it is necessary to execute the interrupt process from each line within a predetermined time, there is a restriction on the processing time for one time. Therefore, a process that requires a long processing time is executed as a split interrupt process. That is, the split interrupt process is composed of a process executed by an interrupt request from the line and a process executed by a software interrupt request.

第8図は分割割込処理を実行するときのマイクロプロセ
ッサ6の動作を示すフローチャートである。
FIG. 8 is a flow chart showing the operation of the microprocessor 6 when executing the divided interrupt processing.

(1)共通制御回路27は回線スキャンにより回線0から
の割込要求IPT01を検出すると、走査クロックの出力を
停止して回線スキャンを抑止するとともに、マイクロプ
ロセッサ6に割込コードを出力する。
(1) When the common control circuit 27 detects the interrupt request IPT 01 from the line 0 by the line scan, it stops the output of the scanning clock to suppress the line scan and outputs the interrupt code to the microprocessor 6.

(2)マイクロプロセッサ6の割込コードを読み込ん
で、回線0からの割込要求に対応する処理B1の実行を開
始する。処理B1の実行を終了すると、マイクロプロセッ
サ6はアドレス切替回路41を介して、回線番号0をアド
レスとして割込メモリ42をアクセスして、対応するビッ
トをセットする。これは、ソフトウェア割込セット命令
の実行により行なわれる。
(2) The interrupt code of the microprocessor 6 is read, and the execution of the process B 1 corresponding to the interrupt request from the line 0 is started. When the execution of the process B 1 is completed, the microprocessor 6 accesses the interrupt memory 42 with the line number 0 as an address through the address switching circuit 41 and sets the corresponding bit. This is done by executing a software interrupt set instruction.

(3)マイクロプロセッサ6が処理B1を終了すると、SC
AN10は再び回線スキャンを開始する。回線スキャンとし
ているときに、アドレス切替回路41は走査レジスタ26が
出力する回線走査タイムスロット番号を割込メモリ42の
アドレスとして出力する。従って、回線番号0の回線が
スキャンされると、割込メモリ42に記憶されているソフ
トウェア割込要求がENC32a〜32dに出力される。ソフト
ウェア割込要求は最もプライオリティが高いので、共通
制御回路27はこれを検出する。
(3) When the microprocessor 6 completes the process B 1 , SC
AN10 starts the line scan again. During the line scan, the address switching circuit 41 outputs the line scan time slot number output from the scan register 26 as the address of the interrupt memory 42. Therefore, when the line with the line number 0 is scanned, the software interrupt request stored in the interrupt memory 42 is output to the ENCs 32a to 32d. Since the software interrupt request has the highest priority, the common control circuit 27 detects this.

(4)共通制御回路27はソフトウェア割込要求を検出す
ると、走査クロックの出力を停止して回線スキャンを抑
止するとともに、マイクロプロセッサ6に割込コードを
出力する。
(4) When the common control circuit 27 detects the software interrupt request, it stops the output of the scan clock to suppress the line scan and outputs the interrupt code to the microprocessor 6.

マイクロプロセッサ6は割込コードを読み込んで、ソフ
トウェア割込要求であることを認識し、処理B2を実行す
る。
The microprocessor 6 reads the interrupt code, recognizes that it is a software interrupt request, and executes the process B 2 .

(5)処理B2を終了すると、マイクロプロセッサ6はア
ドレス切替回路41を介して、回線番号0をアドレスとし
て割込メモリ42をアクセスして、対応するビットをリセ
ットする。これは、ソフトウェア割込リセット命令の実
行により行なわれる。
(5) When the process B 2 is completed, the microprocessor 6 accesses the interrupt memory 42 with the line number 0 as an address through the address switching circuit 41 and resets the corresponding bit. This is done by executing a software interrupt reset instruction.

なお、割込処理をもっと多くの分割割込処理B1、B2
…、Bnに分割したときは、分割割込処理Bnの処理が終了
するまで、このビットはセットされたままになってい
る。
In addition, the interrupt process is divided into more divided interrupt processes B 1 , B 2 ,
.., B n , this bit remains set until the processing of the division interrupt processing B n is completed.

[発明が解決しようとする課題] ところで、上述したように分割割込処理は、一回目の割
込により処理B1、二回目の割込により処理B2を実行す
る。この場合、分割割込処理の実行中に、回線番号0の
回線から新たな割込要求が出力されることがある。ソフ
トウェア割込は回線からの割込要求IPT01〜IPT0nに対し
て、最も高いプライオリティに設定されている。従っ
て、ソフトウェア割込による分割割込処理が終了するま
での間は、回線からの新たな割込要求は受け付けられな
い。
[Problems to be Solved by the Invention] By the way, as described above, in the split interrupt process, the process B 1 is executed by the first interrupt, and the process B 2 is executed by the second interrupt. In this case, a new interrupt request may be output from the line with line number 0 during the execution of the split interrupt process. Software interrupt is set to the highest priority for interrupt requests IPT 01 to IPT 0n from the line. Therefore, a new interrupt request from the line cannot be accepted until the division interrupt process by the software interrupt is completed.

しかし、回線制御LSIに対する送受信データの読出/書
込処理要求に対応する処理が待たされてしまうと、高ト
ラフィック時にオーバラン、アンダーランが発生する場
合があるという問題点があった。
However, if the processing corresponding to the read / write processing request for the transmission / reception data to the line control LSI is made to wait, there is a problem that overrun or underrun may occur during high traffic.

本発明は上記問題点を解決するためになされたもので、
ソフトウェア割込による割込処理を実行していても、回
線からの新たな処理要求を受け付けることができる回線
制御装置を提供することを目的とする。
The present invention has been made to solve the above problems,
An object of the present invention is to provide a line control device capable of accepting a new process request from a line even when executing an interrupt process by software interrupt.

[課題を解決するための手段] 本発明に係る回線制御装置は、回線割込要求の出力によ
り実行される第1の処理及び該第1の処理の実行終了後
に出力されるソフトウェア割込要求の出力により実行さ
れる第2の処理から構成された分割割込処理を含み、か
つそれぞれプライオリティが設定されている複数の処理
にそれぞれ対応する回線からの割込要求を、回線スキャ
ンにより出力する複数の割込要求出力手段と、前記割込
要求に対応する処理を実行する割込処理実行手段とを有
する回線制御装置において、前記ソフトウェア割込要求
に対応する第2の処理のプライオリティを設定するプラ
イオリティ設定手段と、前記回線スキャンにより前記ソ
フトウェア割込要求が出力されると回線からの割込要求
の有無を判定し、回線からの割込要求有と判定された場
合には前記回線からの割込要求の出力により実行される
第3の処理のプライオリティと前記第2の処理のプライ
オリティとを比較して、前記第3の処理のプライオリテ
ィが高ければ前記第3の処理を優先して前記割込処理実
行手段に実行させ、前記第2の処理のプライオリティが
高ければ前記第2の処理を前記割込処理実行手段に実行
させ、回線からの割込要求無と判定された場合には前記
第2の処理を前記割込処理実行手段に実行させる処理制
御手段と、を備えている。
[Means for Solving the Problem] A line control device according to the present invention is directed to a first process executed by output of a line interrupt request and a software interrupt request output after completion of execution of the first process. A plurality of interrupt requests from a line including a divided interrupt process composed of a second process executed by output and corresponding to a plurality of processes each having a priority set are output by a line scan. In a line controller having interrupt request output means and interrupt processing execution means for executing processing corresponding to the interrupt request, a priority setting for setting the priority of the second processing corresponding to the software interrupt request. Means for determining whether there is an interrupt request from the line when the software interrupt request is output by the line scan, and determines that there is an interrupt request from the line. When it is determined, the priority of the third processing executed by the output of the interrupt request from the line is compared with the priority of the second processing, and if the priority of the third processing is high, the The interrupt processing execution means is given priority to execute the third processing, and if the priority of the second processing is high, the second processing is executed by the interrupt processing execution means, and an interrupt request from the line is issued. And processing control means for causing the interrupt processing execution means to execute the second processing when it is determined to be absent.

[作 用] 上記構成の回線制御装置は、回線スキャンにより、割込
要求出力手段が割込要求を出力すると、割込処理実行手
段が割込要求に対応する処理を実行する。割込要求によ
り分割割込処理が実行されると、ソフトウェア割込要求
が出力される。このとき、プライオリティ設定手段がソ
フトウェア割込要求に対応する処理のプライオリティを
設定する。さらに、回線スキャンによりソフトウェア割
込要求が出力されると回線からの割込要求の有無を判定
し、回線からの割込要求有と判定された場合には回線か
らの割込要求の出力により実行される第3の処理のプラ
イオリティと第2の処理のプライオリティとを比較し
て、第3の処理のプライオリティが高ければ第3の処理
を優先して割込処理実行手段に実行させ、第2の処理の
プライオリティが高ければ第2の処理を割込処理実行手
段に実行させ、回線からの割込要求無と判定された場合
には第2の処理を割込処理実行手段に実行させる。
[Operation] In the line control device having the above configuration, when the interrupt request output means outputs an interrupt request by a line scan, the interrupt process execution means executes the process corresponding to the interrupt request. When the split interrupt process is executed by the interrupt request, a software interrupt request is output. At this time, the priority setting means sets the priority of the process corresponding to the software interrupt request. Furthermore, if a software interrupt request is output by a line scan, it is determined whether there is an interrupt request from the line, and if it is determined that there is an interrupt request from the line, it is executed by outputting an interrupt request from the line. The priority of the third process and the priority of the second process are compared, and if the priority of the third process is high, the third process is prioritized to be executed by the interrupt process executing means, and the second process is executed. If the priority of the processing is high, the second processing is executed by the interruption processing execution means, and if it is judged that there is no interruption request from the line, the second processing is executed by the interruption processing execution means.

[実施例] 以下、本発明の一実施例を添付図面を参照して詳細に説
明する。
[Embodiment] An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

第1図は本発明の一実施例に係る回線制御装置のブロッ
ク図である。
FIG. 1 is a block diagram of a line control device according to an embodiment of the present invention.

なお、第1図において、第4図と同様の機能を果たす部
分については同一の符号を付し、その説明は省略する。
又、第1図において、61はCPU、62はメモリ、63はイン
ターフェースである。
Incidentally, in FIG. 1, parts having the same functions as those in FIG. 4 are designated by the same reference numerals, and the description thereof will be omitted.
Further, in FIG. 1, 61 is a CPU, 62 is a memory, and 63 is an interface.

メモリ62は分割割込処理のうちソフトウェア割込要求の
セット及びリセットを設定するソフトウェア割込要求設
定プログラム64、ソフトウェア割込要求により実行する
処理のプライオリティを設定するプライオリティ設定プ
ログラム65及び回線スキャンにより、回線からの割込要
求及びソフトウェア割込要求が出力されると、プライオ
リティが高い方の処理を実行させる比較プログラム66を
記憶している。
The memory 62 is a software interrupt request setting program 64 that sets and sets a software interrupt request in the divided interrupt processing, a priority setting program 65 that sets the priority of processing executed by the software interrupt request, and a line scan. When an interrupt request and a software interrupt request from the line are output, the comparison program 66 for executing the process with the higher priority is stored.

次に、第1図に示した回線制御装置の動作について、第
9図のフローチャートを参照して説明する。
Next, the operation of the line controller shown in FIG. 1 will be described with reference to the flowchart of FIG.

第9図のフローチャートは分割割込処理Bを処理B1とB2
とに分割して処理しているときに、処理B2よりもプライ
オリティの高い処理Aの割込要求が出力された場合の動
作を示すものである。
In the flowchart of FIG. 9, the divided interrupt process B is processed as processes B 1 and B 2.
It shows the operation when an interrupt request of the process A having a higher priority than the process B 2 is output during the processing divided into and.

なお、処理B1は回線からの割込要求により実行する処理
で、処理B2はソフトウェア割込要求により実行する処理
である。
Process B 1 is a process executed by an interrupt request from the line, and process B 2 is a process executed by a software interrupt request.

(1)共通制御回路27は回線スキャンにより回線0から
の割込要求IPT01を検出すると、走査クロックの出力を
停止して回線スキャンを抑止するとともに、マイクロプ
ロセッサ6に割込要求を出力する。マイクロプロセッサ
6は割込コードを読み込んで、回線0からの割込要求に
対応する処理B1の実行を開始する。
(1) When the common control circuit 27 detects the interrupt request IPT 01 from the line 0 by the line scan, it stops the output of the scanning clock to suppress the line scan and outputs the interrupt request to the microprocessor 6. The microprocessor 6 reads the interrupt code and starts execution of the process B 1 corresponding to the interrupt request from the line 0.

マイクロプロセッサ6は処理B1の実行を終了すると、次
に実行すべき処理、即ち処理B2のプライオリティをLM7
(第3図参照)に格納し、ソフトウェア割込要求を発生
させる。
When the microprocessor 6 finishes executing the process B 1 , the priority of the process to be executed next, that is, the process B 2 is set to LM7.
(See FIG. 3) to generate a software interrupt request.

(3)マイクロプロセッサ6が処理B1の実行を終了する
と、SCAN10は再び回線スキャンを開始する。回線スキャ
ンしているときに、アドレス切替回路41は走査レジスタ
26が出力する回線走査タイムスロット番号を割込メモリ
42のアドレスとして出力する。
(3) When the microprocessor 6 finishes executing the process B 1 , the SCAN 10 starts the line scan again. During line scanning, the address switching circuit 41 operates as a scan register.
Interrupt memory for line scan time slot number output by 26
Output as 42 address.

回線番号0の回線がスキャンされると、割込メモリ42に
記憶されているソフトウェア割込要求がENC32aに出力さ
れる。この場合、回線番号0の回線が高レベルの割込要
求IPT01を出力しても、プライオリティエンコーダ32aは
ソフトウェア割込要求のコードを出力することになる。
When the line with the line number 0 is scanned, the software interrupt request stored in the interrupt memory 42 is output to the ENC 32a. In this case, even if the line with the line number 0 outputs the high-level interrupt request IPT 01 , the priority encoder 32a outputs the software interrupt request code.

なお、高レベルの割込要求とは回線制御用LSIからの1
キャラクタ送受信完了割込等であり、高レベルの割込要
求に応じた割込処理をある一定の時間内に行なわない
と、回線エラーが発生する。特に、高速回線において
は、短期間に処理を行なわないと回線上でオーバラン、
アンダーランが発生する。
The high-level interrupt request means 1 from the line control LSI.
If it is a character transmission / reception completion interrupt or the like and the interrupt processing in response to a high-level interrupt request is not performed within a certain period of time, a line error occurs. Especially in high-speed lines, if you do not process in a short time, overruns on the line,
Underrun occurs.

共通制御回路27はソフトウェア割込要求を検出すると、
走査クロックの出力を停止して回線スキャンを抑止する
とともに、マイクロプロセッサ6に割込要求を出力す
る。
When the common control circuit 27 detects the software interrupt request,
The output of the scan clock is stopped to suppress the line scan, and an interrupt request is output to the microprocessor 6.

マイクロプロセッサ6はソフトウェア割込要求に対応す
る処理の実行に際して、回線からの割込要求の有無を判
断する。回線からの割込要求有無の判断は、例えば割込
メモリ42の対応するビットを一時的にリセットし、ソフ
トウェア割込要求を解除した状態で、再度ENC32aの出力
を読み込むことで実現できる。
When executing the process corresponding to the software interrupt request, the microprocessor 6 determines whether or not there is an interrupt request from the line. Determination of interrupt requests whether from the line, for example temporarily resets the appropriate bit in the interrupt memory 42, while releasing the software interrupt request can be realized by reading the output of the re ENC32 a.

マイクロプロセッサ6は回線からの割込要求が出力され
ているので、その割込要求に対応する処理Aのプライオ
リティとLM7に記憶されているソフトウェア割込要求に
対応する処理B2のプライオリティを比較する。マイクロ
プロセッサ6は処理Aのプライオリティが処理B2のプラ
イオリティより高いので、処理Aを2回目の処理として
実行する。
Since the microprocessor 6 outputs the interrupt request from the line, it compares the priority of the process A corresponding to the interrupt request with the priority of the process B 2 corresponding to the software interrupt request stored in the LM7. . Since the microprocessor 6 priority process A is higher than the priority of the process B 2, it executes the process A as the second processing.

マイクロプロセッサ6が処理Aの実行を終了すると、SC
AN10は再度回線スキャンする。マイクロプロセッサ6は
回線から新たに割込要求がないので、処理B2を3回目の
処理として実行する。
When the microprocessor 6 finishes executing the process A, SC
AN10 scans the line again. Since there is no new interrupt request from the line, the microprocessor 6 executes the process B 2 as the third process.

[発明の効果] 以上説明したように本発明によれば、分割割込処理の実
行に伴い、ソフトウェア割込要求のプライオリティを設
定しておき、ソフトウェア割込要求が出力されると回線
からの割込要求の有無を判定し、回線からの割込要求有
と判定された場合には回線からの割込要求の出力により
実行される処理のプライオリティとソフトウェア割込要
求の処理のプライオリティとを比較して、回線からの割
込要求のプライオリティが高ければ回線からの割込要求
の処理を優先して実行し、ソフトウェア割込要求の処理
のプライオリティが高ければソフトウェア割込要求の処
理を実行し、回線からの割込要求無と判定された場合に
はソフトウェア割込要求の処理を実行するようにしたの
で、オーバーラン、アンダーランが発生しない回線制御
装置が得られるという効果を奏する。
[Effects of the Invention] As described above, according to the present invention, the priority of the software interrupt request is set in accordance with the execution of the divided interrupt processing, and when the software interrupt request is output, the interrupt from the line is issued. Whether or not there is an interrupt request is determined, and when it is determined that there is an interrupt request from the line, the priority of the process executed by the output of the interrupt request from the line and the priority of the process of the software interrupt request are compared. If the priority of the interrupt request from the line is high, the interrupt request from the line is processed with priority, and if the priority of the software interrupt request is high, the software interrupt request is processed. When it is determined that there is no interrupt request from the software, the software interrupt request processing is executed. The effect of being able to obtain an arrangement is obtained.

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

第1図は本発明の一実施例に係る回線制御装置のブロッ
ク図、第2図は通信制御装置の概略構成図、第3図は第
2図に示した基本ユニットの概略構成図、第4図は従来
の回線制御装置の概略構成図、第5図及び第6図は第2
図に示した従来の回線制御装置の動作を示すタイミング
チャート、第7図及び第8図は従来の回線制御装置によ
る分割割込処理のフローチャート、第9図は第1図に示
した回線制御装置の動作を示すフローチャートである。 10……回線走査回路(SCAN)、22a、22b、22c、22d……
回線基板、23……ソフトウェア割込記憶回路、24……ス
キャンモードレジスタ、25……ROM、26……走査レジス
タ、27……共通制御回路、31a、31b、31c、31d……回線
アダプタ、32a、32b、32c、32d……プライオリティエン
コーダ、33a、33b、33c、33d……割込回路、34a、34b、
34c、34d……AND回路、35……情報設定回路、36……比
較回路、41……アドレス切替回路、42……割込メモリ、
61……CPU、62……メモリ、63……インターフェイス、6
4……ソフトウェア割込要求設定プログラム、65……プ
ライオリティ設定プログラム、66……比較プログラム。
1 is a block diagram of a line control device according to an embodiment of the present invention, FIG. 2 is a schematic configuration diagram of a communication control device, FIG. 3 is a schematic configuration diagram of the basic unit shown in FIG. 2, and FIG. FIG. 5 is a schematic configuration diagram of a conventional line control device, and FIGS. 5 and 6 are second diagrams.
Timing charts showing the operation of the conventional line controller shown in the figure, FIGS. 7 and 8 are flowcharts of the split interrupt processing by the conventional line controller, and FIG. 9 is the line controller shown in FIG. 3 is a flowchart showing the operation of FIG. 10 …… Line scanning circuit (SCAN), 22a, 22b, 22c, 22d ……
Circuit board, 23 ... Software interrupt storage circuit, 24 ... Scan mode register, 25 ... ROM, 26 ... Scan register, 27 ... Common control circuit, 31a, 31b, 31c, 31d ... Line adapter, 32a , 32b, 32c, 32d ... Priority encoder, 33a, 33b, 33c, 33d ... Interrupt circuit, 34a, 34b,
34c, 34d …… AND circuit, 35 …… information setting circuit, 36 …… comparison circuit, 41 …… address switching circuit, 42 …… interrupt memory,
61 …… CPU, 62 …… Memory, 63 …… Interface, 6
4 …… Software interrupt request setting program, 65 …… Priority setting program, 66 …… Comparison program.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】回線割込要求の出力により実行される第1
の処理及び該第1の処理の実行終了後に出力されるソフ
トウェア割込要求の出力により実行される第2の処理か
ら構成された分割割込処理を含み、かつそれぞれプライ
オリティが設定されている複数の処理にそれぞれ対応す
る回線からの割込要求を、回線スキャンにより出力する
複数の割込要求出力手段と、 前記割込要求に対応する処理を実行する割込処理実行手
段とを有する回線制御装置において、 前記ソフトウェア割込要求に対応する第2の処理のプラ
イオリティを設定するプライオリティ設定手段と、 前記回線スキャンにより前記ソフトウェア割込要求が出
力されると回線からの割込要求の有無を判定し、回線か
らの割込要求有と判定された場合には前記回線からの割
込要求の出力により実行される第3の処理のプライオリ
ティと前記第2の処理のプライオリティとを比較して、
前記第3の処理のプライオリティが高ければ前記第3の
処理を優先して前記割込処理実行手段に実行させ、前記
第2の処理のプライオリティが高ければ前記第2の処理
を前記割込処理実行手段に実行させ、回線からの割込要
求無と判定された場合には前記第2の処理を前記割込処
理実行手段に実行させる処理制御手段と、 を備えたことを特徴とする回線制御装置。
1. A first method executed by outputting a line interrupt request.
And a divided interrupt process composed of a second process executed by the output of the software interrupt request output after the execution of the first process, and a plurality of priorities are set. In a line control device having a plurality of interrupt request output means for outputting an interrupt request from a line corresponding to each process by a line scan, and an interrupt process execution means for executing a process corresponding to the interrupt request A priority setting means for setting the priority of the second processing corresponding to the software interrupt request; and, if the software interrupt request is output by the line scan, it is judged whether or not there is an interrupt request from the line, When it is determined that there is an interrupt request from the above, the priority of the third process executed by the output of the interrupt request from the line and the previous By comparing the priority of the second process,
If the priority of the third process is high, the third process is prioritized to be executed by the interrupt process execution means, and if the priority of the second process is high, the second process is executed. And a processing control means for causing the interruption processing execution means to execute the second processing when it is determined that there is no interruption request from the line. .
JP63158074A 1988-06-28 1988-06-28 Line control device Expired - Fee Related JPH0748753B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63158074A JPH0748753B2 (en) 1988-06-28 1988-06-28 Line control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63158074A JPH0748753B2 (en) 1988-06-28 1988-06-28 Line control device

Publications (2)

Publication Number Publication Date
JPH029252A JPH029252A (en) 1990-01-12
JPH0748753B2 true JPH0748753B2 (en) 1995-05-24

Family

ID=15663728

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63158074A Expired - Fee Related JPH0748753B2 (en) 1988-06-28 1988-06-28 Line control device

Country Status (1)

Country Link
JP (1) JPH0748753B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0657025B2 (en) * 1984-08-28 1994-07-27 沖電気工業株式会社 Line scanning method
JPS6342547A (en) * 1986-08-08 1988-02-23 Nec Corp Line control unit

Also Published As

Publication number Publication date
JPH029252A (en) 1990-01-12

Similar Documents

Publication Publication Date Title
KR900005453B1 (en) Lockout operation method and device for shared resources
US4001790A (en) Modularly addressable units coupled in a data processing system over a common bus
US6081867A (en) Software configurable technique for prioritizing interrupts in a microprocessor-based system
US4261033A (en) Communications processor employing line-dedicated memory tables for supervising data transfers
EP0786726A2 (en) Interrupt sharing technique for PCMCIA cards
KR101050019B1 (en) Memory interface for systems with multiple processors and one memory system
US5056011A (en) Direct memory access controller with expedited error control
KR100708096B1 (en) How to adjust the bus system and its execution order
JPH09185514A (en) Interruption device
US5051946A (en) Integrated scannable rotational priority network apparatus
US6292853B1 (en) DMA controller adapted for transferring data in two-dimensional mapped address space
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
JP4322116B2 (en) Method of interface between external memory and processor supporting burst mode
JPH0748753B2 (en) Line control device
US5278965A (en) Direct memory access controller
JP2797760B2 (en) Parallel processing computer system
JP3105554B2 (en) Interrupt controller
JPH04346140A (en) Access controller for shared memory
JPH09167117A (en) Microcomputer and real-time system using the same
JPH022771A (en) Line scanning circuit
EP0454096B1 (en) Interrupt control circuit and microcomputer system comprising the same
JP2667285B2 (en) Interrupt control device
JPS6336543B2 (en)
JP2913702B2 (en) Access reception control method of multiprocessor system
JPS6022248A (en) Interruption controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees