JPH064304A - Serial data interrupt notification method - Google Patents
Serial data interrupt notification methodInfo
- Publication number
- JPH064304A JPH064304A JP16047192A JP16047192A JPH064304A JP H064304 A JPH064304 A JP H064304A JP 16047192 A JP16047192 A JP 16047192A JP 16047192 A JP16047192 A JP 16047192A JP H064304 A JPH064304 A JP H064304A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- data
- serial
- interrupt data
- recognition
- 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.)
- Withdrawn
Links
Abstract
(57)【要約】
【目的】 割り込み発生の情報をシリアルデータで通知
するためのシリアル割り込みデータ通知方式に関し、割
り込み種別の情報を付加することでより高度な割り込み
処理を行う方式を提供することを目的とする。
【構成】 システムの制御を司る中央処理装置1に、常
時にシリアル割り込みデータ収集信号をバス線3を介し
て通知する割り込みデータ収集制御部1aと、収集された
割り込みデータを保持する割り込みレジスタ1bと、該割
り込みレジスタ1bが保持する割り込みデータを認識し、
該認識結果の処理を行う割り込みデータ認識処理部1cを
備え、1回の割り込み収集動作で割り込み通知元の認識
と同時に割り込み種別を判断して処理を行うように構成
する。
(57) [Summary] [Objective] Regarding a serial interrupt data notification method for notifying information of interrupt occurrence by serial data, to provide a method for performing more advanced interrupt processing by adding information of interrupt type. To aim. [Structure] An interrupt data collection control unit 1a that constantly notifies the central processing unit 1 that controls the system of a serial interrupt data collection signal via the bus line 3, and an interrupt register 1b that holds the collected interrupt data. , Recognizes the interrupt data held by the interrupt register 1b,
An interrupt data recognition processing unit 1c for processing the recognition result is provided, and the interrupt type is determined and the processing is performed simultaneously with the recognition of the interrupt notification source in one interrupt collection operation.
Description
【0001】[0001]
【産業上の利用分野】本発明は、割り込み処理を必要と
する装置に係り、特に割り込み発生の情報をシリアルデ
ータで通知するためのシリアル割り込みデータ通知方式
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device requiring interrupt processing, and more particularly to a serial interrupt data notification system for notifying information of interrupt generation by serial data.
【0002】近年、各種の処理装置の高度化に伴い、割
り込み処理時間の短縮が要求されている。このため、常
時においてシリアル割り込みデータ収集信号を出力し、
割り込み発生元を確認する方式が提供されているが、こ
れでは何れの割り込み処理を行えばよいか分からないた
めに、さらに割り込み種別を認識する必要がある。In recent years, with the advancement of various processing devices, it has been required to shorten the interrupt processing time. Therefore, the serial interrupt data collection signal is always output,
Although a method of confirming the interrupt source is provided, it is necessary to further recognize the interrupt type because it is not known which interrupt process should be performed.
【0003】[0003]
【従来の技術】以下において、図3と図4をもちいて従
来例を説明する。図3は従来の一実施例回路の構成を示
す図であり、図4は従来の一実施例回路のタイミングを
示す図である。2. Description of the Related Art A conventional example will be described below with reference to FIGS. FIG. 3 is a diagram showing a configuration of a conventional example circuit, and FIG. 4 is a diagram showing a timing of the conventional example circuit.
【0004】図3において、11は中央処理装置(以下、
CPU装置と称す)であり、割り込みデータ収集制御部
11a と割り込み発生認識部11b および割り込み種別認識
アクセス部11c を備える。In FIG. 3, 11 is a central processing unit (hereinafter,
CPU device), and interrupt data collection control unit
11a, an interrupt generation recognition unit 11b, and an interrupt type recognition access unit 11c.
【0005】また、12-1〜12-nは同一構成をもつ複数の
入出力装置であり、この入出力装置12-1〜入出力装置12
-nのそれぞれは割り込みデータ出力部12a と割り込み種
別保持部12b を備える。そして、13はCPU装置11と入
出力装置12-1〜入出力装置12-nを結ぶバス線である。Further, 12-1 to 12-n are a plurality of input / output devices having the same structure.
Each of -n includes an interrupt data output unit 12a and an interrupt type holding unit 12b. A bus line 13 connects the CPU device 11 and the input / output devices 12-1 to 12-n.
【0006】図4において、(a) はシリアル割り込みデ
ータ収集信号を示し、(b) はシリアル割り込みデータを
示し、(c) はシリアル割り込みデータ(b) に割り当てら
れたn個のタイムスロットT1 〜Tn を示す。In FIG. 4, (a) shows a serial interrupt data collection signal, (b) shows serial interrupt data, and (c) shows n time slots T 1 assigned to the serial interrupt data (b). shows the ~T n.
【0007】また、(d) はCPU装置11のシリアル割り
込み種別の認識アクセスのタイミングであり、(e) はシ
リアル割り込み処理のタイミングである。図3と図4に
示すように、従来の割り込み通知方式においては、CP
U装置11の配下に複数の入出力装置12-1〜入出力装置12
-nがバス線13を介して接続されており、CPU装置11か
らのアクセスである割り込み通知は常時、割り込みデー
タ収集制御部11a からバス線13を通り、シリアル割り込
みデータ収集信号(a) として出力している。Further, (d) is the timing of the recognition access of the serial interrupt type of the CPU device 11, and (e) is the timing of the serial interrupt processing. As shown in FIGS. 3 and 4, in the conventional interrupt notification method, the CP
A plurality of input / output devices 12-1 to 12 under the U device 11
-n is connected via the bus line 13, and the interrupt notification, which is the access from the CPU device 11, is always output from the interrupt data collection control unit 11a through the bus line 13 as the serial interrupt data collection signal (a). is doing.
【0008】入出力装置12-1〜入出力装置12-nの各割り
込みデータ出力部12a は、CPU装置11からのシリアル
割り込みデータ収集信号(a) を受けてバス線13上の自己
のタイムスロットT1 〜Tn にシリアル割り込みデータ
(b) を出力し、このシリアル割り込みデータ(b) を受け
た割り込み発生認識部11b は割り込み発生元が入出力装
置12-1〜12-nの何れであるかを認識する。Each of the interrupt data output units 12a of the input / output devices 12-1 to 12-n receives the serial interrupt data collection signal (a) from the CPU device 11 and receives its own time slot on the bus line 13. Serial interrupt data for T 1 to T n
(b) is output, and the interrupt generation recognition unit 11b that has received the serial interrupt data (b) recognizes which of the input / output devices 12-1 to 12-n is the interrupt generation source.
【0009】ところが、図4(b) と図4(c) に示すよう
に、割り込みデータ出力部12a からタイムスロット(c)
の中の各タイムスロットT1 〜Tn に割り当てられて出
力されるシリアル割り込みデータ(b) は1ビット情報で
あるために、CPU装置11は割り込みの有無の判断しか
できない。However, as shown in FIGS. 4 (b) and 4 (c), from the interrupt data output unit 12a to the time slot (c)
Since the serial interrupt data (b) assigned and output to each of the time slots T 1 to T n in the above is 1-bit information, the CPU device 11 can only determine whether or not there is an interrupt.
【0010】従って、CPU11装置が割り込み種別を認
識するには、もう一度割り込み発生元に対して割り込み
種別を認識するためのアクセスを行わなけれならない。
このアクセスのために、CPU装置11内に割り込み種別
認識アクセス部11c が有り、入出力装置12-1〜入出力装
置12-nの何れが割り込み発生元であるかを割り込み種別
認識アクセス部11c が知ると同時に、CPU装置11は割
り込み種別保持部12b に1回のデータ収集動作の終了タ
イミング後の認識アクセス(d) のタイミングにおいて割
り込み種別の認識アクセスを行う。Therefore, in order for the CPU 11 device to recognize the interrupt type, it is necessary to access the interrupt source again to recognize the interrupt type.
For this access, there is an interrupt type recognition access unit 11c in the CPU device 11, and the interrupt type recognition access unit 11c determines which of the input / output devices 12-1 to 12-n is the interrupt source. At the same time, the CPU device 11 makes an interrupt type recognition access to the interrupt type holding unit 12b at the timing of the recognition access (d) after the end timing of one data collection operation.
【0011】さらに、この認識アクセス終了後の次の割
込処理(e) のタイミングにおいて、CPU装置11は認識
された入出力装置12-1〜入出力装置12-nの何れかに割り
込み処理を実行しに行く。Further, at the timing of the next interrupt processing (e) after the end of the recognition access, the CPU device 11 interrupts any of the recognized input / output devices 12-1 to 12-n. Go to run.
【0012】[0012]
【発明が解決しようとする課題】従って、従来例のシリ
アルデータ割り込み通知方式は、割り込み収集によりシ
リアル割り込みデータを受けても割り込み発生元の認識
しか出来ず、割り込み処理を行うためには、さらにもう
一度の割り込み種別を認識するためのアクセスを行わな
ければならず、該アクセスを待って割り込み処理に移る
といった処理時間のロスを生じるという課題がある。Therefore, in the conventional serial data interrupt notification method, even if the serial interrupt data is received by the interrupt collection, only the origin of the interrupt can be recognized. However, there is a problem that a processing time is lost such that an access for recognizing the interrupt type must be performed, and the interrupt processing is performed after waiting for the access.
【0013】本発明は、シリアル割り込みの収集に対
し、割り込み発生元の出力データに割り込み処理要の有
無の情報と同時に、割り込み種別の情報を付加すること
で割り込み種別認識のためのアクセスを不要にし、より
高度な割り込み処理を行う方式を提供することを目的と
する。According to the present invention, for collecting serial interrupts, by adding the information on whether or not interrupt processing is necessary to the output data of the interrupt source and the information on the interrupt type, access for recognizing the interrupt type is unnecessary. , The purpose is to provide a method for performing more advanced interrupt processing.
【0014】[0014]
【課題を解決するための手段】上記の目的を達成するた
め本発明では、図1に示すように、システムの制御を司
る中央処理装置1に、常時にシリアル割り込みデータ収
集信号をバス線3を介して通知する割り込みデータ収集
制御部1aと、収集された割り込みデータを保持する割り
込みレジスタ1bと、該割り込みレジスタ1bが保持する割
り込みデータを認識し、該認識結果の処理を行う割り込
みデータ認識処理部1cを備え、前記バス線3を介して前
記中央処理装置1にスレーブ接続された複数の入出力装
置2-1 〜2-n に、前記割り込みデータ収集制御部1aから
通知されたシリアル割り込み収集信号を受け、割り込み
要求がある場合は自装置の割り当てタイムスロットに割
り込みの有無と種別を含むシリアル割り込みデータを出
力する割り込みデータ出力部2aを備え、1回の割り込み
収集動作で割り込み通知元の認識と同時に割り込み種別
を判断して処理を行うように構成する。In order to achieve the above object, according to the present invention, as shown in FIG. 1, a central processing unit 1 for controlling a system is always provided with a serial interrupt data collection signal via a bus line 3. An interrupt data collection control unit 1a for notifying via, an interrupt register 1b for holding the collected interrupt data, an interrupt data recognition processing unit for recognizing the interrupt data held by the interrupt register 1b, and processing the recognition result. A serial interrupt collection signal notified from the interrupt data collection control unit 1a to a plurality of input / output devices 2-1 to 2-n that are provided with 1c and are slave-connected to the central processing unit 1 via the bus line 3. If there is an interrupt request, the interrupt data output that outputs serial interrupt data including the presence or absence of the interrupt and the type in the assigned time slot of the own device It includes a section 2a, configured to perform processing to determine simultaneously interrupt type recognition of the interrupt notification source in one interrupt collection operation.
【0015】[0015]
【作用】本発明は図1と図2に示すごとく、シリアル割
り込みデータ収集信号をCPU装置1の割り込みデータ
収集制御部1aから割り込み発生元の入出力装置2-1 〜入
出力装置2-n に送出し、割り込み要求のある装置は自装
置に割り当てた1タイムスロット上に割り込み種別を付
加した割り込みデータを出力するようにする。As shown in FIGS. 1 and 2, the present invention sends a serial interrupt data collection signal from the interrupt data collection controller 1a of the CPU device 1 to the interrupt source I / O device 2-1 to I / O device 2-n. The device which sends out the interrupt request outputs the interrupt data to which the interrupt type is added in one time slot assigned to itself.
【0016】従って、CPU装置1は割り込みデータを
収集した後において、直ちに割り込み種別の認識と処理
が可能になる。Therefore, the CPU device 1 can immediately recognize and process the interrupt type after collecting the interrupt data.
【0017】[0017]
【実施例】以下において、図1と図2をもちいて本発明
を説明する。図1は本発明の一実施例回路の構成を示す
図であり、図2は本発明の一実施例回路のタイミングを
示す図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to FIGS. FIG. 1 is a diagram showing a configuration of an embodiment circuit of the present invention, and FIG. 2 is a diagram showing a timing of the embodiment circuit of the present invention.
【0018】図1において、1はCPU装置であり、割
り込みデータ収集制御部1aと割り込みレジスタ1bおよび
割り込みデータ認識処理部1cを備える。また、2-1 〜2-
n は割り込みデータ出力部2aを備えてなる入出力部であ
り、3はCPU装置1と入出力装置2-1 〜入出力装置2-
n 間のデータ通路を形成するバス線である。In FIG. 1, reference numeral 1 is a CPU device, which comprises an interrupt data collection controller 1a, an interrupt register 1b, and an interrupt data recognition processor 1c. Also, 2-1 to 2-
n is an input / output unit including an interrupt data output unit 2a, and 3 is a CPU device 1 and an input / output device 2-1 to an input / output device 2-.
A bus line that forms a data path between n.
【0019】図2において、(a) はシリアル割り込みデ
ータ収集信号を示し、(b) は複数ビット構成のシリアル
割り込みデータを示し、(c) はこのシリアル割り込みデ
ータ(b) に割り当てられたタイムスロットを示す。ま
た、(d) はCPU装置1の割り込み処理のタイミングで
ある。In FIG. 2, (a) shows a serial interrupt data collection signal, (b) shows serial interrupt data having a plurality of bits, and (c) shows a time slot assigned to this serial interrupt data (b). Indicates. Further, (d) is the timing of the interrupt processing of the CPU device 1.
【0020】図3および図4に示した従来例と同様に、
CPU装置1からバス線3を経由して、CPU装置1の
制御を受けて監視データの収集を行う複数の入出力装置
2-1〜入出力装置2-n が接続されている。Similar to the conventional example shown in FIGS. 3 and 4,
A plurality of input / output devices for collecting monitoring data under the control of the CPU device 1 via the bus line 3 from the CPU device 1.
2-1 to I / O device 2-n are connected.
【0021】なお、シリアル割り込み要求を発生して送
出する入出力装置2-1 〜入出力装置2-n には、自装置が
シリアル割り込みデータを出力すべき複数のタイムスロ
ットT1 〜Tn が割り当てられている。It should be noted that the input / output device 2-1 to input / output device 2-n that generates and sends a serial interrupt request has a plurality of time slots T 1 to T n at which the device itself should output serial interrupt data. It is assigned.
【0022】CPU装置1内の割り込みデータ収集制御
部1aからは、常時、割り込み要求を示すシリアル割り込
みデータ収集信号(a) がバス線3を通って各入出力装置
2-1〜入出力装置2-n に対して伝えられる。From the interrupt data collection control unit 1a in the CPU device 1, a serial interrupt data collection signal (a) indicating an interrupt request is constantly sent through the bus line 3 to each input / output device.
2-1 to I / O device 2-n.
【0023】各入出力装置2-1 〜入出力装置2-n 内には
割り込みデータ出力部2aがあり、割り込み要求がある時
は自装置割り当てタイムスロットT1 〜Tn に合わせて
割り込み有無と種別を含む複数ビット構成の割り込みデ
ータ(b) を出力する。Each of the input / output devices 2-1 to 2-n has an interrupt data output section 2a, and when there is an interrupt request, the presence / absence of an interrupt is checked in accordance with the time slots T 1 to T n allocated to the device. Outputs interrupt data (b) consisting of multiple bits including the type.
【0024】この割り込みデータ(b) は図2(b) に示す
ように、‘H’で割り込み有りかつ‘L’で割り込み無
しに対応させ、また、1タイムスロットT1 〜Tn 上の
ビットをそれぞれ複数ビット(図2(b) では3ビット)
とすることで入出力装置2-1〜入出力装置2-n の種別を
表すようにつくる。[0024] The interrupt data (b), as shown in FIG. 2 (b), in correspondence to the interrupt without at the interrupt there cutlet 'L' in the 'H', also bit on one time slot T 1 through T n Each is a plurality of bits (3 bits in Fig. 2 (b))
Then, the input / output device 2-1 to the input / output device 2-n are created to represent the types.
【0025】割り込みレジスタ1bはこの割り込みデータ
(b) を受けて一旦は保持し、その後割り込みデータ認識
処理部1cで順番に処理して行く。なお、この割り込みデ
ータ(b) がある時は、常に割り込み処理待ち通知ランプ
1dを点灯して、外部に割り込み処理状態があることを通
知する。The interrupt register 1b stores the interrupt data
Upon receiving (b), the data is once held and then processed in order by the interrupt data recognition processing unit 1c. When there is this interrupt data (b), the interrupt processing wait notification lamp is always
Turn on 1d to notify the outside that there is an interrupt processing state.
【0026】[0026]
【発明の効果】以上の説明から明らかなように本発明に
よれば、常時に行う割り込みデータ収集動作のみで、割
り込み発生元および割り込み種別の認識を行うことがで
き、割り込みデータ収集後において、直ちに割り込み処
理に移る効果を奏し、各種の処理装置の処理能力の向上
に寄与するところが大きい。As is apparent from the above description, according to the present invention, the interrupt source and the interrupt type can be recognized only by the interrupt data collection operation which is always performed, and immediately after the interrupt data collection. It has an effect of shifting to interrupt processing, and largely contributes to improvement of processing capability of various processing devices.
【図1】 本発明の一実施例回路の構成を示す図であ
る。FIG. 1 is a diagram showing a configuration of an embodiment circuit of the present invention.
【図2】 本発明の一実施例回路のタイミングを示す図
である。FIG. 2 is a diagram showing a timing of a circuit according to an embodiment of the present invention.
【図3】 従来の一実施例回路の構成を示す図である。FIG. 3 is a diagram showing a configuration of a conventional example circuit.
【図4】 従来の一実施例回路のタイミングを示す図で
ある。FIG. 4 is a diagram showing a timing of a conventional example circuit.
1は中央処理装置(CPU装置) 1aは割り込みデータ収集制御部 1bは割り込みレジスタ 1cは割り込みデータ認識処理部 1dは通知ランプ 2-1 〜2-n は入出力装置 2aは割り込みデータ出力部 3はバス線 1 is a central processing unit (CPU device) 1a is an interrupt data collection control unit 1b is an interrupt register 1c is an interrupt data recognition processing unit 1d is a notification lamp 2-1 to 2-n is an input / output device 2a is an interrupt data output unit 3 is Bus line
Claims (1)
に、常時にシリアル割り込みデータ収集信号をバス線
(3) を介して通知する割り込みデータ収集制御部(1a)
と、収集された割り込みデータを保持する割り込みレジ
スタ(1b)と、該割り込みレジスタ(1b)が保持する割り込
みデータを認識し、該認識結果の処理を行う割り込みデ
ータ認識処理部(1c)を備え、 前記バス線(3) を介して前記中央処理装置(1) にスレー
ブ接続された複数の入出力装置(2-1〜2-n)に、前記割り
込みデータ収集制御部(1a)から通知されたシリアル割り
込み収集信号を受け、割り込み要求がある場合は自装置
の割り当てタイムスロットに割り込みの有無と種別を含
むシリアル割り込みデータを出力する割り込みデータ出
力部(2a)を備え、 1回の割り込み収集動作で割り込み通知元の認識と同時
に割り込み種別を判断して処理を行うようにしたことを
特徴とするシリアルデータ割り込み通知方式。1. A central processing unit for controlling the system (1)
In addition, the serial interrupt data acquisition signal is always
Interrupt data collection control unit (1a) that notifies via (3)
An interrupt register (1b) for holding the collected interrupt data, and an interrupt data recognition processing unit (1c) for recognizing the interrupt data held by the interrupt register (1b) and processing the recognition result, The interrupt data collection control unit (1a) notifies the plurality of input / output devices (2-1 to 2-n) slaved to the central processing unit (1) via the bus line (3). When a serial interrupt collection signal is received and an interrupt request is issued, an interrupt data output unit (2a) that outputs serial interrupt data including the presence or absence of an interrupt and its type in the assigned time slot of its own device is provided. A serial data interrupt notification method characterized in that the interrupt type is determined and the processing is performed simultaneously with the recognition of the interrupt notification source.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16047192A JPH064304A (en) | 1992-06-19 | 1992-06-19 | Serial data interrupt notification method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16047192A JPH064304A (en) | 1992-06-19 | 1992-06-19 | Serial data interrupt notification method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH064304A true JPH064304A (en) | 1994-01-14 |
Family
ID=15715674
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16047192A Withdrawn JPH064304A (en) | 1992-06-19 | 1992-06-19 | Serial data interrupt notification method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH064304A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116361680A (en) * | 2021-12-23 | 2023-06-30 | 新唐科技股份有限公司 | Data detection circuit and processing device |
-
1992
- 1992-06-19 JP JP16047192A patent/JPH064304A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116361680A (en) * | 2021-12-23 | 2023-06-30 | 新唐科技股份有限公司 | Data detection circuit and processing device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5958029A (en) | Method and system for efficient message validation | |
| JPH064304A (en) | Serial data interrupt notification method | |
| EP1296249A2 (en) | Method and controller for copying chain buffers from a system memory to a local memory | |
| JP5239769B2 (en) | Request order control system, request order control method, and request order control program | |
| JP3531469B2 (en) | Transaction control method and its relay device | |
| JPH11167559A (en) | Data transfer device and method for multinode system | |
| KR100427789B1 (en) | Data input / output method | |
| JPS59170951A (en) | Electronics | |
| JP3050131B2 (en) | Arbitration method | |
| JPS62111340A (en) | Communication control system | |
| JPS61214032A (en) | Interrupt control method | |
| JPH04195233A (en) | Memory lock control method for computer systems | |
| JPS63186360A (en) | Multi-cpu device | |
| JPH05108592A (en) | Unit management method in multi-CPU system | |
| JP2000307652A (en) | Wait queue monitoring control method | |
| JPH11143822A (en) | Request processor | |
| JPS62186345A (en) | Microprocessor i/o address circuit | |
| JPS61244150A (en) | High level procedure control system | |
| JPH1115778A (en) | Fast data transfer system on bus | |
| JPH0779241A (en) | Polling control system | |
| JPS5949651A (en) | Terminal control system | |
| JP2002042060A (en) | Card insertion and drawing-out detecting device | |
| JPH02219334A (en) | Exclusive control processing system | |
| JPH0916408A (en) | Interruption processing system of communication controller | |
| JPH0154737B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990831 |