JPH01184546A - Single chip microcomputer - Google Patents

Single chip microcomputer

Info

Publication number
JPH01184546A
JPH01184546A JP63011357A JP1135788A JPH01184546A JP H01184546 A JPH01184546 A JP H01184546A JP 63011357 A JP63011357 A JP 63011357A JP 1135788 A JP1135788 A JP 1135788A JP H01184546 A JPH01184546 A JP H01184546A
Authority
JP
Japan
Prior art keywords
request
processing
interrupt
counter
priority
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.)
Pending
Application number
JP63011357A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Katayose
片寄 強
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
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP63011357A priority Critical patent/JPH01184546A/en
Publication of JPH01184546A publication Critical patent/JPH01184546A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize the reduction of the holding time of a processing request by providing an interruption request counter and a control means to designate the priority order of an interruption request selectively based on the content of the counter. CONSTITUTION:A processing request generating source 4 is connected to a CPU 2 via an interruption request control part 1. The interruption request control part 1 is provided with the interruption request counter 9 of N bits and a priority order control part 102. The interruption request counter 9 counts the generating number of times of an interruption request signal from the processing request source 4, and the priority order control part 102 designates the priority order of the interruption request based on the content of the interruption request counter 9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシングルチップマイクロコンピュータに関する
もので、より詳細にはシングルチップマイクロコンピュ
ータの割り込み要求制御システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a single-chip microcomputer, and more particularly to an interrupt request control system for a single-chip microcomputer.

〔従来の技術〕[Conventional technology]

近年集積回路製造技術の進歩にともない、単一半導体基
盤上にコンピュータ機能を集積したシングルチップマイ
クロコンピュータ(以下SMCと記す)においても高度
集積化が進み単一半導体基盤上に集積される機能もより
高度化してきている。
In recent years, with advances in integrated circuit manufacturing technology, single-chip microcomputers (hereinafter referred to as SMCs), which integrate computer functions on a single semiconductor substrate, have become highly integrated, and the functions that can be integrated on a single semiconductor substrate have become more and more integrated. It is becoming more sophisticated.

例えばタイマカウンタ、A/D変換回路、シリアル送受
信回路等、周辺装置も多種類の装置が複数チャネル設け
られ、より高機能化が進められている。
For example, peripheral devices such as timer counters, A/D conversion circuits, serial transmission/reception circuits, and the like are provided with multiple channels and are becoming more sophisticated.

このため中央処理装置(以下CPUと記す)が単に命令
動作によるデータ処理を高速に実行制御するだけでなく
、周辺装置等の処理要求に対しても効率的かつ高速にデ
ータ処理を実行制御する必要が生じている。
For this reason, it is necessary for the central processing unit (hereinafter referred to as CPU) to not only execute and control data processing based on command operations at high speed, but also to execute and control data processing efficiently and at high speed in response to processing requests from peripheral devices, etc. is occurring.

従来CPUが周辺装置等の処理要求に応じて高速にデー
タ処理を開始、実行制御するための手段として割込みと
いう手法が広く用いられている。
Conventionally, a method called an interrupt has been widely used as a means for a CPU to start and control execution of data processing at high speed in response to a processing request from a peripheral device or the like.

割込みはCPUが周辺装置等処理要求発生源から非同期
に発生する処理要求を検知すると現在実行中のプログラ
ム処理を中断し、処理要求に対応したデータ処理を行う
割込みサービスプログラムのルーチンに制御を移すもの
である。
When the CPU detects a processing request that is generated asynchronously from a processing request source such as a peripheral device, an interrupt interrupts the currently executing program and transfers control to the interrupt service program routine that processes data corresponding to the processing request. It is.

割込み処理では、元のプログラム処理を正常に再開でき
るように、レジスタ、プログラムカウンタ(以下PCと
記す)、ステータスワード(以下PSWと記す)等をス
タックと呼ばれるメモリ部に退避しておく。割込みサー
ビスプログラムのルーチンの終了時、命令処理によって
スタックに退避しておいたレジスタ、pc、psw等の
情報を回復して元のプログラム実行に復帰する。
In interrupt processing, registers, program counters (hereinafter referred to as PC), status words (hereinafter referred to as PSW), etc. are saved in a memory section called a stack so that the original program processing can be resumed normally. When the routine of the interrupt service program ends, information such as registers, pc, psw, etc. saved in the stack by instruction processing is recovered and the original program execution is resumed.

また、複数の周辺ハードウェアを備えたことにより、複
数の処理要求が同時に発生し、競合状態となることも多
い。このため割込み処理システムを備えたSMCでは、
個々の地理要求に優先順位を設定し、割込み要求制御部
においてこの優先順位に基づき競合状態を裁定し最も優
先順位の高い処理要求をただ一つ選択し、割り込み要求
としてCPUに伝える、といった構成をとる。
Additionally, by providing multiple peripheral hardware, multiple processing requests occur simultaneously, often resulting in a competitive situation. For this reason, in an SMC equipped with an interrupt processing system,
The configuration is such that a priority is set for each geographic request, and the interrupt request control unit judges the conflicting state based on this priority, selects only one processing request with the highest priority, and transmits it to the CPU as an interrupt request. Take.

一方、プログラムの内容によっては、割込み処理を受は
付は禁止にしたい場合がある6例えば他の割込みサービ
スプログラムを既に実行中の場合で、既実行中の割込み
サービスプログラム処理が最も緊急度が高い時や、スタ
ック容量の制約から、新たに割込みを受付よりスタック
が深くなることを避けたい場合等である。
On the other hand, depending on the content of the program, you may want to prohibit acceptance of interrupt processing6.For example, if another interrupt service program is already being executed, the interrupt service program processing that is already being executed has the highest level of urgency. This may be the case when it is desired to avoid the stack becoming deeper than accepting new interrupts due to time constraints or stack capacity constraints.

このため割込み処理システムを備えたSMCでは割込み
処理要求の実行禁止/許可制御するための割込み許可フ
ラグ(EI)を備え、割込み許可フラグの内容を命令に
より任意に設定することで、各種処理要求の割込みによ
る実行制御の禁止、許可制御を行い、目的とする応用機
器に適したシステムを構成する。
For this reason, an SMC equipped with an interrupt processing system is equipped with an interrupt enable flag (EI) to control execution of interrupt processing requests. Prohibiting and enabling execution control using interrupts is performed to configure a system suitable for the target application equipment.

なお、周辺装置等から割り込み要求制御部への割込み要
求と割込み要求制御部からCPUへの割り込み要求とを
区別するため以降周辺装置等からの割込み要求を単に処
理要求と記す。
Note that in order to distinguish between an interrupt request from a peripheral device or the like to the interrupt request control section and an interrupt request from the interrupt request control section to the CPU, an interrupt request from a peripheral device or the like will be simply referred to as a processing request.

次に具体例を用いて従来のSMOにおける割込み処理シ
ステムについて説明する。
Next, an interrupt processing system in a conventional SMO will be explained using a specific example.

第4図は従来のSMCにおける割込み処理システム要部
を示すブロック図で以下の構成要素からなる。
FIG. 4 is a block diagram showing the main parts of an interrupt processing system in a conventional SMC, which consists of the following components.

割込み要求制御部lは、 各種周辺装置からの処理要求80発生を記憶する割込み
要求フラグ11を含む割込み要求フラグレジスタIFR
(以下IFRと記す)101と、各処理要求に対応した
IFRIOIのフラグ内容から優先順位制御を行う優先
順位制御部102と、 各処理要求に対応してベクタ情報を含むベクタコード定
数部103と、 CPU2に対し割込み要求INTRQ6 (以下INT
RQ6と記す)を発生し割込み処理起動を促すと共に、
CPU2からの割込みアクノリッジ信号INTACK7
 (以下INTACK7と記す)に応じて、所定のベク
タ情報をバス5に出力する動作と、また処理要求を受は
付けたIFRIOI中の要求フラグをクリアする動作と
を制御する各種制御ロジック、とを含み各レジスタはバ
ス5を介してCPU2よりリード/ライト制御される。
The interrupt request control unit l includes an interrupt request flag register IFR that includes an interrupt request flag 11 that stores the occurrence of processing requests 80 from various peripheral devices.
(hereinafter referred to as IFR) 101, a priority control unit 102 that performs priority control based on the flag contents of IFRIOI corresponding to each processing request, a vector code constant unit 103 containing vector information corresponding to each processing request, Interrupt request INTRQ6 (hereinafter INT
RQ6) is generated to prompt the start of interrupt processing, and
Interrupt acknowledge signal INTACK7 from CPU2
(hereinafter referred to as INTACK7), various control logics control the operation of outputting predetermined vector information to the bus 5 and the operation of clearing the request flag in the IFRIOI that has accepted the processing request. Each register is read/write controlled by the CPU 2 via the bus 5.

CPU2は、 内部にPC,PSW、ALU、命令デコーダ。CPU2 is Internal PC, PSW, ALU, instruction decoder.

各種制御レジスタ、割込み許可フラグEI(以下EIと
記す)等を含み、割込み要求制御部1のINTRQ6を
検出して割込み要求制御部1を制御する動作を含む、各
種命令の実行制御と割込み処理制御実行とに必要なSM
C全体の動作制御を行う。
Execution control of various instructions and interrupt processing control, including various control registers, interrupt enable flag EI (hereinafter referred to as EI), etc., and including the operation of detecting INTRQ6 of interrupt request control unit 1 and controlling interrupt request control unit 1. SM required for execution
Controls the entire operation of C.

メモリ部3は、 プログラムメモリと、CPU2による命令実行結果のデ
ータ格納領域と、割込み処理起動の際のpc、psw、
レジスタ類の退避に使用されるスタックとを含み、CP
U2の制御によりバス5を介してデータの入出力を行う
The memory unit 3 includes a program memory, a data storage area for instruction execution results by the CPU 2, and pc, psw,
CP includes a stack used for saving registers.
Data is input/output via bus 5 under the control of U2.

第5図は第4図の割込み要求制御部1のIFR101、
及び優先順位制御部102の構成概要を示すブロック図
である。
FIG. 5 shows the IFR 101 of the interrupt request control unit 1 in FIG.
2 is a block diagram showing an outline of the configuration of a priority control unit 102. FIG.

ここでは簡単のため処理要求が3ソース(8a。Here, for simplicity, the processing requests are 3 sources (8a.

8b、8c)の場合について示しである。8b and 8c) are shown.

IPRIOIは、割込み要求フラグlla、llb。IPRIOI are interrupt request flags lla and llb.

11cから構成されており、各割込み要求フラグは、周
辺装置等、処理要求発生源からの各処理要求8a、8b
、8cによりセットさh1優先順位制御部102からの
フラグ選択信号10a、10b、10cとCPUからの
INTAC!に7により選択的にリセットされる。
11c, and each interrupt request flag corresponds to each processing request 8a, 8b from a processing request generation source such as a peripheral device.
, 8c from the h1 priority control unit 102 and the flag selection signals 10a, 10b, 10c from the CPU and INTAC! 7.

優先順位制御部102は同時に複数の処理要求が発生し
ていればその中から最も優先順位の高い処理要求をただ
一つ選択し、IFRIOI及び第4図のベクタコード定
数部103にフラグ選択信号10a、10b、10cの
内から先に選択した処理要求に対する選択信号をアクテ
ィブにして伝え、同時にCPU2に対してINTRQ6
により割込み処理起動を促す、といった動作を行うため
の各種制御pシックから構成される。
If multiple processing requests occur simultaneously, the priority control unit 102 selects only one processing request with the highest priority among them, and sends a flag selection signal 10a to IFRIOI and the vector code constant unit 103 in FIG. , 10b, 10c, and transmits the selection signal for the processing request selected first from among them, and at the same time sends INTRQ6 to the CPU2.
It is composed of various control p-switches for performing operations such as prompting the activation of interrupt processing.

ここでは処理要求の優先順位は 処理要求8a>処理要求sb>処理要求8cの順にハー
ドウェアで固定されており処理要求8a、8b、8cが
同時に発生した場合には必ず優先順位のより高い処理要
求8aが選択される。
Here, the priority order of processing requests is fixed by hardware in the order of processing request 8a>processing request sb>processing request 8c, and when processing requests 8a, 8b, and 8c occur simultaneously, the processing request with a higher priority is always requested. 8a is selected.

前記フラグ選択信号10a、10b、10cは第4図の
CPU2からINTACK7が伝えられるまでホールド
される。
The flag selection signals 10a, 10b, and 10c are held until INTACK7 is transmitted from the CPU 2 in FIG. 4.

次に第4図、第5図を用いて割込み処理動作を説明する
Next, the interrupt processing operation will be explained using FIGS. 4 and 5.

まずCPU2においてあらかじめ命令処理によりEIエ
フラグセットされており、割込み要求受は付は許可状態
にあり、INTRQ6の発生をチエツクしながら所定の
プログラム処理を実行している場合について説明する。
First, a case will be described in which the EI EFF flag is set in advance by instruction processing in the CPU 2, interrupt request reception is enabled, and predetermined program processing is executed while checking the occurrence of INTRQ6.

各処理要求発生源において、タイマカウンタのオーバー
フロー動作、またはシリアルデータの送受信動作等によ
り割込み要求が発生すると各処理要求発生源は処理要求
8を発生し割込み要求制御部1内のIPRIOIに含ま
れる割込み要求フラグをセットする。
When an interrupt request occurs in each processing request generation source due to a timer counter overflow operation or a serial data transmission/reception operation, each processing request generation source generates a processing request 8 and interrupts the interrupt included in the IPRIOI in the interrupt request control unit 1. Set the request flag.

割込み要求制御部1内の優先順位制御部102では各割
込み要求フラグの内容を基に、優先順位制御を行い、I
NTRQ6を7クテイプにして割込み処理要求をCPU
2に伝える。
The priority control unit 102 in the interrupt request control unit 1 performs priority control based on the contents of each interrupt request flag, and
Set NTRQ6 to 7 tapes and send interrupt processing requests to the CPU.
Tell 2.

CPU2はEIエフラグセットされ割込み要求の受は付
は許可状態であるのでINTRQ6がアクティブになる
と実行中のプログラム処理を中断し、pc、psw、各
種レジスタ類の内容をバス5を介してメモリ部3のスタ
ックに退避し、割込み要求制御部lに対してINTAC
K7を伝え、割込みサービスプログラムのベクタコード
情報を出力させ、また処理要求に対応したIFRIOI
の割込みフラグをクリアする。
Since the CPU 2 has the EI flag set and is enabled to accept interrupt requests, when INTRQ6 becomes active, it interrupts the program processing in progress and stores the contents of the pc, psw, and various registers in the memory section via the bus 5. 3 and sends an INTAC to the interrupt request control unit l.
IFRIOI that transmits K7, outputs vector code information of the interrupt service program, and responds to processing requests.
Clear the interrupt flag.

続いてCPU2は得られたベクタコード情報を基に割込
みサービスプログラムに分岐し、EIエフラグ割込み禁
止状態に設定した後プログラム処理により処理要求に対
応した所定の実行制御をおこなう。割込みサービスプロ
グラム実行中は通常EIエフラグ割込み禁止状態に設定
するので他の処理要求は割込み要求フラグがセットされ
たまま割込みサービスプログラムの終了時まで保留され
る。
Next, the CPU 2 branches to the interrupt service program based on the obtained vector code information, sets the EI E-flag interrupt disabled state, and performs predetermined execution control corresponding to the processing request through program processing. While the interrupt service program is being executed, the EI flag is normally set to the interrupt disabled state, so other processing requests are held pending with the interrupt request flag set until the interrupt service program ends.

割込みサービスプログラムが終了するときには割込みサ
ービスプログラムからの専用復帰命令(RETI命令等
)の実行処理によりメモリ部3のスタックに退避したp
c、pws、レジスタ類の内容を回復すると共に、Eエ
フラグを再び割込み許可状態に戻し実行を中断したプロ
グラム処理に復帰する。
When the interrupt service program ends, the p saved in the stack of the memory unit 3 by executing a dedicated return instruction (RETI instruction, etc.) from the interrupt service program.
The contents of the c, pws, and registers are restored, and the E-flag is returned to the interrupt enabled state again to return to the program processing where execution was interrupted.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した、従来のSMCでは、処理要求の優先順位が固
定されている。
In the conventional SMC described above, the priority order of processing requests is fixed.

また、ハードウェア的に処理要求の発生回数をカウント
“する手段が用意されていない。
Furthermore, there is no hardware-based means for counting the number of times a processing request has occurred.

従って優先順位を高く設定した処理要求と優先順位を低
く設定した処理要求とが競合した場合に、  ゛優先順
位を低く設定した処理要求は常により優先順位を高く設
定した処理要求の割込みサービスプログラムが終了する
まで割込み処理実行が保留される。
Therefore, if there is a conflict between a processing request with a higher priority and a processing request with a lower priority, the processing request with a lower priority will always be interrupted by the interrupt service program of the processing request with a higher priority. Execution of interrupt processing is suspended until it is completed.

例えば、最も優先順位を低く設定した処理要求が発生し
、対応する割込みサービスプログラムの処理実行が開始
するまでの待ち時間について考えると、SMCの周辺ハ
ードウェア、処理要求発生源が増加するに従い他の処理
要求が同時発生する可能性が高くなるので、最も優先順
位を低く設定した処理要求に対応する割込みサービスプ
ログラムの処理の開始、実行が保留される時間が長くな
る可能性も高い。またある処理要求の割込みサービスプ
ログラムが終了するまでの間に新たにより優先順位の高
い設定の処理要求が発生する可能性も高く、結果として
保留時間がより長くなってしまい、必要な処理制御の開
始、実行がいつまでも行われない、といった問題があっ
た。
For example, considering the waiting time from when a processing request with the lowest priority is generated until the corresponding interrupt service program starts processing, as the number of SMC peripheral hardware and processing request generation sources increases, other Since the possibility that processing requests will occur simultaneously increases, there is also a high possibility that the start and execution of the processing of the interrupt service program corresponding to the processing request set with the lowest priority will be suspended for a longer period of time. In addition, there is a high possibility that a new processing request with a higher priority setting will occur until the interrupt service program for a certain processing request is finished, resulting in a longer hold time and the necessary processing control. , there was a problem that the execution would not be carried out forever.

また、以上の様に処理要求が保留されている期間が長い
と再び同一の処理要求発生源から、処理要求が発生する
場合があるが、従来のSMCにおける割込み要求フラグ
は1回の処理要求の発生を記憶するだけの機能しかなく
複数回の処理要求発生を記憶することはできないので新
たな処理要求発生は検出することができない。このため
、ソフトウェアタイマー(カウンタ)のインクリメント
処理を割込みサービスプログラムで実行するようなシス
テムの場合、カウントミスが発生する、といった欠点が
ある。
In addition, as described above, if a processing request is suspended for a long time, a processing request may be generated again from the same processing request source, but the interrupt request flag in the conventional SMC is Since the function is only to store the occurrence of a processing request and it is not possible to store the occurrence of a plurality of processing requests, it is not possible to detect the occurrence of a new processing request. Therefore, in the case of a system in which the increment process of a software timer (counter) is executed by an interrupt service program, there is a drawback that a counting error occurs.

このような問題を避ける為、従来はデータの処理効率を
ある程度犠牲にして一回の処理要求の発生から次の処理
要求の発生までに十分余裕のあるシステムとするか、ま
たは全ての処理要求に対する割込み処理起動までの最大
保留時間を発生し得る全ての場合について厳密に算出し
、保留期間中に再び同一の処理要求が発生することの無
いよう適切な応用システムを設計する必要があった。
In order to avoid such problems, conventionally, data processing efficiency has been sacrificed to some extent to create a system with enough margin between the occurrence of one processing request and the next processing request, or It was necessary to strictly calculate the maximum pending time until starting an interrupt process for all possible cases, and to design an appropriate application system to prevent the same processing request from occurring again during the pending period.

しかし高度な応用システムの実現要求に対するSMCの
多機能化、高速化に伴い適切な処理要求の保留時間を考
慮して設計することが難しくなってきていた。
However, as SMCs have become more multi-functional and faster in response to the demands for realizing advanced application systems, it has become difficult to design them in consideration of appropriate processing request hold times.

なお、処理要求の発生から割込みサービスプログラムの
処理実行までの保留時間をプログラム処理の実行状態に
応じて最適化する目的から、処理要求の優先順位をソフ
トウェア手段により任意に設定できる割込み制御システ
ムを採用したSMCもある。、しかしながら、プログラ
ムの実行状態を監視する為の処理負担が常に伴うこと、
及び−度ソフトウェア手段により処理要求の優先順位を
設定してから、次に処理要求の優先順位を設定、変更す
るまでの期間については、最も優先順位を低く設定した
処理要求について、優先順位がハードウェア的に固定さ
れた割込み制御システムを備えたSMOの場合と同様の
欠点を有しており、処理要求の保留時間の短縮を実現す
る上では有効に対応しきれなくなっている。
Furthermore, in order to optimize the hold time from the generation of a processing request to the execution of interrupt service program processing according to the execution status of the program processing, an interrupt control system is adopted that allows the priority of processing requests to be arbitrarily set using software means. There are also SMCs that have done so. ,However, there is always a processing burden to monitor the execution status of the program.
- During the period from when the priority of a processing request is set by software means until the next time the priority of a processing request is set or changed, the priority of the processing request set to the lowest priority is This has the same drawbacks as the SMO with a hardware-fixed interrupt control system, and is no longer effective in reducing the pending time of processing requests.

〔発明の従来技術に対する相違点の内容〕本発明による
SMOは、割込み制御部に、割込み要求発生源からの割
込み要求信号の発生′  回数をカウントするNビット
の割込み要求カウンタと、 前記割込み要求カウンタの内容に基づいて割込み要求の
優先順位を選択的に指定する制御手段、とを有する事に
より、 従来のSMCに比して 処理要求が保留された期間中に再び同一の処理要求の発
生したことを検出することが可能になるとともに、低い
優先順位に設定した処理要求でも複数回同一の処理要求
が発生した場合にはハードウェア手段により自動的に処
理要求の優先順位を高くすることで割込み処理起動を促
し必要なデータ処理をおこなうことを可能にする、とい
う相違点を有する。
[Contents of Differences between the Invention and the Prior Art] The SMO according to the present invention includes, in an interrupt control unit, an N-bit interrupt request counter that counts the number of times an interrupt request signal is generated from an interrupt request source; control means for selectively specifying the priority of the interrupt request based on the content of the interrupt request.Compared to conventional SMC, the same processing request does not occur again during the period in which the processing request is suspended. In addition, even if the processing request is set to a low priority, if the same processing request occurs multiple times, the priority of the processing request is automatically raised by hardware means. The difference is that it prompts startup and enables necessary data processing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明におけるシングルチップマイクロコンピュータは
、複数の割込み要求発生源に対応し、割込み要求発生源
からの割込み要求信号の発生回数を記憶するNビットの
割込み要求カウンタと、前記割込み要求カウンタの内容
に基づいて割込み要求の優先順位を選択的に指定する制
御手段、とを備えている。
The single-chip microcomputer according to the present invention includes an N-bit interrupt request counter that corresponds to a plurality of interrupt request generation sources and stores the number of times an interrupt request signal has been generated from the interrupt request generation sources, and a and control means for selectively specifying the priority of the interrupt request.

〔実施例−1〕 次に、本発明の第1の実施例を図面を参照して説明する
[Example-1] Next, a first example of the present invention will be described with reference to the drawings.

第1図は本発明によるSMCの割込み制御システム要部
を示すブロック図で以下の構成要素からなる。
FIG. 1 is a block diagram showing the main parts of the SMC interrupt control system according to the present invention, and is composed of the following components.

割込み要求制御部1は、 各種周辺装置等処理要求発生源4からの処理要求8の発
生を記憶する割込み要求カウンタ9を含む割込み要求レ
ジスタIFR201(以下IF’R201と記す)と、 各処理要求に対応した割込み要求カウンタの内容から優
先順位を行う優先順位制御部102と、各処理要求に対
応したベクタ情報を含むベクタコード定数部103と、 CPU2に対し割込み要求INTRQ6 (、以下IN
TRQ6と記す)を発生し割込み処理起動を促すと共に
、CPU2からの割込みアクノリッジ信号INTACK
7 (以下INTACKと記す)に応じて、所定のベク
タ情報をバス5に出力する動作と、処理要求を受は付け
たIFR201中の割込み要求カウンタをクリアする動
作、とを制御する各種制御ロジックとを含む。
The interrupt request control unit 1 includes an interrupt request register IFR 201 (hereinafter referred to as IF'R 201) including an interrupt request counter 9 that stores the generation of processing requests 8 from processing request sources 4 such as various peripheral devices, and an interrupt request register IFR 201 (hereinafter referred to as IF'R 201). A priority control unit 102 that determines the priority order based on the contents of the corresponding interrupt request counter, a vector code constant unit 103 that includes vector information corresponding to each processing request, and an interrupt request INTRQ6 (hereinafter IN
TRQ6) is generated to prompt the start of interrupt processing, and an interrupt acknowledge signal INTACK from CPU2 is generated.
7 (hereinafter referred to as INTACK), various control logics that control the operation of outputting predetermined vector information to the bus 5 and the operation of clearing the interrupt request counter in the IFR 201 that has accepted or accepted the processing request. including.

IFR20ルジスタはバス5を介してCPU2よりリー
ド/ライト制御可能である。
The IFR20 register can be read/written by the CPU 2 via the bus 5.

CPU2は内部にPC,PSW、ALU、命令デコーダ
、各種制御レジスタ、EIフラグ等を含み、割込み要求
制御部1のINTRQ6を検出して割込み要求制御部1
を制御する動作を含む、各種命令の実行制御と割込み処
理制御実行とに必要なSMC全体の動作制御を行う。
The CPU 2 internally includes a PC, a PSW, an ALU, an instruction decoder, various control registers, an EI flag, etc., and detects INTRQ6 of the interrupt request controller 1 and outputs the interrupt request controller 1.
The SMC controls the entire operation of the SMC, which is necessary for controlling the execution of various instructions and controlling interrupt processing.

メモリ部3は、プログラムメモリと、CPU2による命
令実行結果のデータ格納領域と、割込み処理起動の際の
pc、psw、レジスタ類の退避に使用されるスタック
とを含み、CPU2の制御によりバス5を介してデータ
の入出力を行う。
The memory unit 3 includes a program memory, a data storage area for instruction execution results by the CPU 2, and a stack used for saving PC, psw, and registers when starting an interrupt process, and uses the bus 5 under the control of the CPU 2. Data input/output is performed through.

第2図は第1図のIFR201と優先順位制御部102
についての構成を示すブロック図である。
Figure 2 shows the IFR 201 and priority control unit 102 in Figure 1.
FIG. 2 is a block diagram showing the configuration of.

ここでは説明のため3つの処理要求8a、8b。Here, three processing requests 8a and 8b are used for explanation.

8cに夫々対応する2ビツトの割込み要求カウンタ9a
、9b、9cを備える場合について説明する。
2-bit interrupt request counter 9a corresponding to 8c.
, 9b, and 9c will be described.

なお、割込み要求カウンタ9a、9b、9cは同一のハ
ードウェアで構成されており、機能動作は等価である為
ここでは割込み要求カウンタ9aについて説明する。ま
た第1図のCPTJ2によるリード/ライト制御に必要
な信号は省略しである。
Note that the interrupt request counters 9a, 9b, and 9c are constructed of the same hardware and have equivalent functions, so only the interrupt request counter 9a will be described here. Also, signals necessary for read/write control by CPTJ2 in FIG. 1 are omitted.

割込み要求カウンタ9aは処理要求8aがアクティブに
なる毎にカウントアツプし、カウンタデクリメント信号
120aによってデクリメントされる。
The interrupt request counter 9a counts up every time the processing request 8a becomes active, and is decremented by a counter decrement signal 120a.

割込み要求カウンタ9aのカウンタ値により二種類の要
求信号が発生する。
Two types of request signals are generated depending on the counter value of the interrupt request counter 9a.

第一は割込み要求カウンタ9aのピッ)0からの下位レ
ベル要求信号122aで通常処理要求8aが1回入力さ
れるとアクティブとなり、優先順位制御回路102へ伝
えられる。
The first is a lower level request signal 122a from the interrupt request counter 9a, which becomes active when the normal processing request 8a is input once, and is transmitted to the priority control circuit 102.

第二は割込み要求カウンタ9aのビット1からの上位レ
ベル要求信号121aで処理要求8aが2回以上入力さ
れるとアクティブとなり、第2図の優先順位制御回路1
02へ伝えられる。
The second is an upper level request signal 121a from bit 1 of the interrupt request counter 9a, which becomes active when the processing request 8a is input two or more times, and is activated by the priority control circuit 1 of FIG.
This will be communicated to 02.

優先順位制御部102における優先順位処理は上位レベ
ル要求信号121 a>上位レベル要求信号12 l 
b>上位レベル要求信号121c>下位レベル要求信号
122a>下位レベル要求信号122b>下位レベル要
求信号122cとなり一意に決定される。
The priority processing in the priority control unit 102 is as follows: upper level request signal 121a>upper level request signal 12l
b>upper level request signal 121c>lower level request signal 122a>lower level request signal 122b>lower level request signal 122c, which is uniquely determined.

また、カウンタ指定線10a、10b、10cは各々排
他的にいずれかがアクティブとなるよう優先順位制御回
路 8aに対応した上位レベル要求信号121a、下位レベ
ル要求信号122aのいずれがアクティブになるとカウ
ンタ指定線10aがアクティブとなる。同様に上位レベ
ル要求信号121bまたは下位レベル要求信号122b
がアクティブになるとカウンタ指定線10bがアクティ
ブ、上位レベル要求信号121cまたは下位レベル要求
信号122Cのいずれが7グテイプになってもカウンタ
指定線10cがアクティブとなる。
Further, the counter designation lines 10a, 10b, and 10c are configured such that one of them becomes active exclusively, so that when either the upper level request signal 121a or the lower level request signal 122a corresponding to the priority control circuit 8a becomes active, the counter designation lines 10a, 10b, and 10c are activated. 10a becomes active. Similarly, the upper level request signal 121b or the lower level request signal 122b
When becomes active, the counter designation line 10b becomes active, and the counter designation line 10c becomes active even if either the upper level request signal 121c or the lower level request signal 122C becomes 7 times.

カウンタ指定線10a、10b、10cとINTACK
7により処理要求に対応した書割込み要求カウンタ9a
、9b、9cのカウンタデクリメント信号120a、1
20b、120cが指定される。
Counter designation lines 10a, 10b, 10c and INTACK
7, the write interrupt request counter 9a corresponds to the processing request.
, 9b, 9c counter decrement signals 120a, 1
20b and 120c are designated.

次に第1図、第2図を用いて動作を説明する。Next, the operation will be explained using FIGS. 1 and 2.

第一にまず、全ての割込み要求カウンタが初期状態“0
”にありCPU、のEIエフラグ割込み許可状態に設定
され、この時に複数の処理要求、処理要求8aと処理要
求8bが発生した場合について説明する。
First, all interrupt request counters are in the initial state “0”.
A case where the CPU is set to the EI EFFRAG interrupt enabled state and a plurality of processing requests, processing request 8a and processing request 8b, are generated at this time will be described.

この時には処理要求8a、8bに対応したIFR201
の割込み要求カウンタ9a、9bがともに1インクリメ
ントされ下位レベル要求信号122a、122bがアク
ティブとなり優先順位制御部102に伝えられる。ここ
で処理要求の受は付は優先順位は、処理要求8&〉処理
要求8bすなわち 下位レベル要求信号122 a>下位レベル要求信号1
22bの優先順位であるので処理要求8aが選択されカ
ウンタ指定線10aをアクティブにするとともに、IN
TRQ6をアクティブにしてCPU2に伝える。
At this time, IFR201 corresponding to processing requests 8a and 8b
The interrupt request counters 9a and 9b are both incremented by 1, and the lower level request signals 122a and 122b become active and are transmitted to the priority control unit 102. Here, the priority order for accepting processing requests is processing request 8&> processing request 8b, that is, lower level request signal 122a>lower level request signal 1
22b, the processing request 8a is selected and the counter designation line 10a is activated, and the IN
Activate TRQ6 and inform CPU2.

優先順位制御部102ではCPU2からのINTACK
7が伝えられるまでカウンタ指定線のレベルを保持する
The priority control unit 102 receives the INTACK from the CPU 2.
The level of the counter designation line is held until 7 is transmitted.

CPU2はINTRQ6がアクティブになると実行中の
プログラム処理を中断し、pc、psw。
When INTRQ6 becomes active, the CPU 2 interrupts the program processing being executed and sends pc and psw.

各種レジスタ類の内容をバス5を介してメモリ部3のス
タックに退避し、割込み要求制御部1に対してINTA
CK7を伝え、処理要求8aに対応した割込みサービス
プログラムのベクタコード情報を出力させるとともに、
カウンタデクリメント信号120aをアクティブにして
IFR201内の割込み要求カウンタ9aを1デクリメ
ントする。
The contents of various registers are saved to the stack of the memory section 3 via the bus 5, and the INTA is sent to the interrupt request control section 1.
It transmits CK7 and outputs the vector code information of the interrupt service program corresponding to processing request 8a,
The counter decrement signal 120a is activated and the interrupt request counter 9a in the IFR 201 is decremented by one.

割込み要求カウンタ9bの値は1のまま変化しない。The value of the interrupt request counter 9b remains 1 and does not change.

続いてCPU2は得られたベクタコード情報を基に割込
みサービスプログラムに分岐し、Eエフラグを割込み禁
止状態に設定した後プログラム処理により処理要求8a
に対応した所定の実行制御をおこなう0割込みサービス
プログラムが終了するトキには割込みサービスプログラ
ムからの専用復帰命令(RETI命令等)の実行処理に
よりメモリ部3のスタックに退避したpc、psw、 
 レジスタ類の内容を回復すると共に、EIエフラグ再
び割込み許可状態に戻し実行を中断したプログラム処理
に復帰する。
Next, the CPU 2 branches to the interrupt service program based on the obtained vector code information, and after setting the E-flag to an interrupt disabled state, the CPU 2 issues a processing request 8a through program processing.
When the 0-interrupt service program that performs predetermined execution control corresponding to the interrupt service program ends, the pc, psw,
At the same time as restoring the contents of the registers, the EI ef flag is returned to the interrupt enabled state and the program processing where execution was interrupted is resumed.

第二に、処理要求8bがすでに一度発生しており、割込
み要求カウンタ9bが“1”の時、すなわち下位レベル
要求信号122bはすでにアクティブとなっているが保
留されている時に、複数の処理要求8a、8bが再び発
生した場合について説明する。
Second, when the processing request 8b has already occurred once and the interrupt request counter 9b is "1", that is, when the lower level request signal 122b is already active but is pending, multiple processing requests A case where 8a and 8b occur again will be explained.

この時には処理要求8a、8bにより割込み要求カウン
タ9a、9bが1インクリメントされ下位レベル要求信
号122aがアクティブ、上位レベル!’ 求(1号1
21bがアクティブとなり優先順位制御102に伝えら
れる。
At this time, the interrupt request counters 9a and 9b are incremented by 1 due to the processing requests 8a and 8b, and the lower level request signal 122a is active and the upper level! ' Request (No. 1
21b becomes active and is communicated to the priority control 102.

ここで処理要求の受は付は優先順位は、処理要求sb>
処理要求8aすなわち 上位レベル要求信号12 l b>下位レベル要求信号
122aの優先順位であるため処理要求8bが選択され
カウンタ指定線10bがアクティブとなる。
Here, the priority for accepting processing requests is processing request sb>
Since the priority order is processing request 8a, that is, upper level request signal 12lb>lower level request signal 122a, processing request 8b is selected and counter designation line 10b becomes active.

続いてINTRQ6がアクティブとなりCPU2に割込
み処理起動を促し、CPU2はEIエフラグ割込み許可
状態であるのでINTRQ6がアクティブになると実行
中のプログラム処理を中断し、PC,PSW、レジスタ
レジスタ類の内容をバス5を介してメモリ部3のスタッ
クに退避し、割込み要求制御部lに対してINTACK
7を伝え、処理要求8bに対応した割込みサービスプロ
グラムのベクタコード情報を出力させるとともに、カウ
ンタデクリメント信号120bをアクティブにしてIF
R201内の割込み要求カウンタ9bを1デクリメント
する。割込み要求カウンタ9aの値は“1”のまま変化
せず保留される。
Next, INTRQ6 becomes active and prompts the CPU2 to start interrupt processing. Since the CPU2 is in the EI EFFRAG interrupt enabled state, when INTRQ6 becomes active, it interrupts the program processing being executed and transfers the contents of the PC, PSW, and registers to the bus 5. is saved to the stack of memory unit 3 via INTACK to interrupt request control unit l.
7, outputs the vector code information of the interrupt service program corresponding to the processing request 8b, and activates the counter decrement signal 120b.
The interrupt request counter 9b in R201 is decremented by 1. The value of the interrupt request counter 9a remains unchanged at "1" and is held pending.

割込みサービスプログラムにおいてCPU2は割込み要
求カウンタ9bの内容を読み出し、値が“0″になって
いないため、処理要求8bが保留されている時に再度処
理要求8bが発生したことを検出することができる。
In the interrupt service program, the CPU 2 reads the contents of the interrupt request counter 9b, and since the value is not "0", it is possible to detect that the processing request 8b has occurred again while the processing request 8b is pending.

以後の割込みサービスプログラム処理と中断したプログ
ラム処理への復帰処理、及び保留された処理要求8aの
割込み処理については第一の説明の場合と同様である。
The subsequent interrupt service program processing, return processing to the interrupted program processing, and interrupt processing for the suspended processing request 8a are the same as in the first explanation.

 ・ 上述の様に、割込み要求カウンタのカウント数により、
自動的に対応する処理要求の優先順位を引上げる為、従
来のSMCのように処理要求が保留され、いつまでも割
込みによる処理が実行されないといった問題を解決する
ことができても、処理要求が複数回発生した時には優先
順位を引き上げ、優先順位制御部にて高位レベルの処理
要求が発生したのと同様に処理制御を行うことで処理要
求の保留時間を短縮する。
- As mentioned above, depending on the count of the interrupt request counter,
In order to automatically raise the priority of the corresponding processing request, even if it is possible to solve the problem of the conventional SMC where processing requests are held on hold and processing due to interrupts is not executed forever, processing requests may be issued multiple times. When a processing request occurs, the priority is raised and the priority control unit performs processing control in the same way as when a high-level processing request occurs, thereby shortening the pending time of the processing request.

また、割込み要求カウンタにより処理要求の発生回数を
カウントすることで、複数回処理要求が発生したことと
、発生回数とを検出することが可能である。
Furthermore, by counting the number of times a processing request has occurred using an interrupt request counter, it is possible to detect that a processing request has occurred multiple times and the number of times that a processing request has occurred.

従って、例えばソウトウエアタイマー(カウンタ)のイ
ンクリメント処理を割込みサービスプログラムで実行す
るようなシステムの場合、カウント数を割込み要求カウ
ンタ9bの値から補正して正常なカウント値を得ること
ができる。
Therefore, for example, in the case of a system in which the increment process of a software timer (counter) is executed by an interrupt service program, a normal count value can be obtained by correcting the count number from the value of the interrupt request counter 9b.

以上が本発明における第1の実施例である。The above is the first embodiment of the present invention.

〔実施例−2〕 次に、本発明によるSMO第二の実施例について、図面
を参照して説明する。
[Embodiment 2] Next, a second embodiment of the SMO according to the present invention will be described with reference to the drawings.

第3図は本発明によるSMCの第二の実施例における割
込み要求制御部lの要部を示すブロック図であり、割込
み要求制御部lに、個々の処理要求について優先順位を
指定する優先順位指定フラグ202a、202b、20
2cを含む優先順位指定レジスタ202をもつSMCに
対し本発明を適用するものである。
FIG. 3 is a block diagram showing the main parts of the interrupt request control unit l in the second embodiment of the SMC according to the present invention. Flags 202a, 202b, 20
The present invention is applied to an SMC having a priority order designation register 202 including 2c.

つまり、第一の実施例との相違は、第3図より明らかな
ように割込み要求制御部lにて第一の実施例における構
成要素に加え、優先順位指定レジスタ202を持つこと
にある。他の構成要素は同一であるのでここでは説明を
省略する。
That is, the difference from the first embodiment is that, as is clear from FIG. 3, the interrupt request control section 1 has a priority order designation register 202 in addition to the components in the first embodiment. Since the other components are the same, their explanation will be omitted here.

ここでは説明のため第一の実施例と同様に3つの処理要
求8a、8b、8cに夫々対応する割込み要求カウンタ
9a、9b、9cと、優先順位指定レジスタ202内に
優先順位指定フラグ202a、202b、202cを備
える場合について説明する。
For the sake of explanation, interrupt request counters 9a, 9b, 9c corresponding to three processing requests 8a, 8b, 8c, respectively, and priority designation flags 202a, 202b in the priority designation register 202, as in the first embodiment. , 202c will be described.

なお、割込み要求カウンタ9a、9b、9cと優先順位
指定部102は第一の実施例と同一のハードウェアで構
成されており、機能動作は等価である為ここでは優先順
位指定フラグについて説明する。またCPUによる各レ
ジスタ指定部のリード/ライト制御に必要な信号は省略
しである。
It should be noted that the interrupt request counters 9a, 9b, 9c and the priority order designation unit 102 are constructed of the same hardware as in the first embodiment, and their functions and operations are equivalent, so the priority order designation flag will be explained here. Also, signals necessary for read/write control of each register designation section by the CPU are omitted.

優先順位指定フラグ202a、202b、202CはC
PU2からバス5を介してリード/ライトが可能であり
、ソフトウェア処理に依って処理要求に対応したフラグ
の内容を予め “1”=上位レベル要求 または “0″=下位レベル要求 と指定する。
Priority designation flags 202a, 202b, and 202C are C
Read/write is possible from the PU 2 via the bus 5, and the content of the flag corresponding to the processing request is specified in advance by software processing as "1" = upper level request or "0" = lower level request.

上記処理によって対応した処理要求の優先順位を上位レ
ベル要求に指定するかまたは下位レベル要求に指定する
かを選択的に実行することにより、SMCの動作内容に
合わせ割込み処理をよりフレキシブルに実行させる。
By selectively specifying the priority of the corresponding processing request as an upper-level request or a lower-level request through the above processing, interrupt processing can be executed more flexibly in accordance with the operation contents of the SMC.

本第二の実施例においては第一の実施例と同様に割込み
要求カウンタの内容により処理要求の発生回数に応じて
処理要求の優先順位をハードウェア手段により自動的に
上位レベル要求に指定することが可能で、また割込みサ
ービスプログラムにおいてCPU2は割込み要求カウン
タの内容を読み出し、処理要求が保留されている時に再
度同一の処理要求が発生したことと、発生回数を検出す
ることができる。従って、第一の実施例と同様な効果を
得ることができる。
In the second embodiment, as in the first embodiment, the priority of the processing request is automatically designated as a higher level request by hardware means according to the number of occurrences of the processing request based on the contents of the interrupt request counter. In addition, in the interrupt service program, the CPU 2 can read the contents of the interrupt request counter and detect whether the same processing request has occurred again while the processing request is pending and the number of times the same processing request has occurred. Therefore, the same effects as the first embodiment can be obtained.

また、従来の優先順位指定フラグによる制御に必要な優
先順位制御部102のハードウェアをそのまま使用する
ことが可能なため、追加するハードウェア量は割込み要
求カウンタと、割込み要求カウンタからの上位レベル要
求信号と、優先順位指定フラグからの上位レベル要求信
号との論理和を作る為の単純なゲート回路のみでよい。
In addition, since the hardware of the priority control unit 102 required for control using conventional priority designation flags can be used as is, the amount of additional hardware is limited to the interrupt request counter and the upper level requests from the interrupt request counter. Only a simple gate circuit is required to create the logical sum of the signal and the higher level request signal from the priority designation flag.

以上が本発明における第2の実施例である。The above is the second embodiment of the present invention.

なお、本発明の詳細な説明を、処理要求の発生源を3ソ
ース、割込み要求カウンタのビット数を2ビツト、優先
順位の制御を上位レベル、下位レベルの2レベルとして
行ったが処理要求の発生源は何ソースであってもよく、
また割込み要求カウンタのビット数及び優先順位の制御
レベル数は、本実施例−1、実施例−2の数に限らない
ことは勿論である。
Note that although the detailed explanation of the present invention has been made assuming that there are three sources of processing requests, that the number of bits of the interrupt request counter is 2 bits, and that the priority level is controlled at two levels: upper level and lower level, The source can be any source,
Furthermore, it goes without saying that the number of bits of the interrupt request counter and the number of priority control levels are not limited to the numbers in Example-1 and Example-2.

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

上述のように本発明のSMCでは、割込み要求カウンタ
のカウント数により、自動的に対応する処理要求の優先
順位を引上げる為、頻繁に処理要求が発生するような応
用システムにおいて、従来のSMCのように優先順位が
低く設定されてしまっていたため処理要求が保留され、
いつまでも割込みによる処理が実行されないといった欠
点を榊決している。
As mentioned above, the SMC of the present invention automatically raises the priority of the corresponding processing request based on the count number of the interrupt request counter. Because the priority was set low, the processing request was put on hold.
Sakaki has resolved the drawback that interrupt processing is not executed forever.

また、割込み要求カウンタにより処理要求の発生回数を
カウントすることで、複数回処理要求が発生したことと
、発生回数を検出することが可能である。
Further, by counting the number of times a processing request has been generated using an interrupt request counter, it is possible to detect that a plurality of processing requests have been generated and the number of times that a processing request has been generated.

従って、従来の割込み制御システムを備えたSMeのよ
うにデータの処理効率をある程度犠牲にして一回の処理
要求の発生から次の処理要求の発生までに十分余裕のあ
るシステムとしたり、全ての処理要求に対する割込み処
理起動までの最大保留時間を発生し得る全ての場合につ
いて厳密に算出したりする必要はなく、応用システム設
計の負担を軽減する。例えばソフトウェアタイマ(カウ
ンタ)をインクリメント処理を割込鳳要求カウンタ値か
ら補正して正常なカウント値を得る、と云った処理が可
能となる。
Therefore, like SMe with a conventional interrupt control system, it is possible to sacrifice some data processing efficiency to create a system that has enough margin between the occurrence of one processing request and the next processing request, or There is no need to strictly calculate the maximum pending time until starting interrupt processing in response to a request for all possible cases, which reduces the burden on application system design. For example, it becomes possible to perform a process of incrementing a software timer (counter) and correcting it from the interrupt request counter value to obtain a normal count value.

さらに、従来の優先順位制御処理のハードウェアを持つ
SMOに本発明を適用する場合には、優先順位制御のた
めのハードウェアをほとんど変更する事なく利用するこ
とが可能で必要最小限の回路を追加するだけですむため
コストパフォーマンスのよいSMCを提供することがで
きる。
Furthermore, when applying the present invention to an SMO that has conventional priority control processing hardware, the hardware for priority control can be used with almost no changes, and the minimum necessary circuit can be used. Since it is only necessary to add an SMC, it is possible to provide an SMC with good cost performance.

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

第1図は本発明の第1実施例におけるSMOの割込み制
御システム要部を示すブロック図、第2図は第1図の実
施例におけるIFR201と、優先順位制御部102、
についての詳細のブロック図、 第3図は第2の実施例におけるSM’CのIFR201
、優先順位制御部102、優先順位指定レジスタ202
についての詳細のブロック図、第4図は従来のSMCに
おける割込み処理システム要部を示すブロック図である
。 第5図は第5図の割込み要求制御部1のIPR。 201、及び優先順位制御部102の構成を示す詳細ブ
ロック図である。 1・・・・・・割込み要求制御部、2・・団・CPU、
3・・・・・・メモリ部、4・・・・・・処理要求発生
源、5・・・・・・バス、6・−・・−INTRQ、7
・旧・・INTACK、8.8a。 8 b 、 8 c ・・−・処理要求、J 9 a、
 9 b、9 c・・・・・・割込み要求カウンタ、1
0a、10b、10C・・・・・・カウンタ指定線、1
1.lla、llb。 11c・・・・・・割込み要求フラグ、101,201
・・・・・・IFR%102・・・・・・優先順位制御
部、120a。 120b、120c・・・・・・カウンタディクリメン
ト信号、121a、121b、121cm上位レベル要
求信号線、122a、122b、122c・・・・・・
下位レベル要求信号線、202a、202b。 202c・・・・・・優先順位指定フラグ、202・・
・・・・優先順位指定レジスタ。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram showing the main parts of the SMO interrupt control system in the first embodiment of the present invention, and FIG. 2 shows the IFR 201, priority control unit 102, and
FIG. 3 is a detailed block diagram of the SM'C IFR201 in the second embodiment.
, priority control unit 102, priority specification register 202
FIG. 4 is a block diagram showing main parts of an interrupt processing system in a conventional SMC. FIG. 5 shows the IPR of the interrupt request control unit 1 shown in FIG. 201 and a detailed block diagram showing the configurations of the priority control unit 102. FIG. 1...Interrupt request control unit, 2...Group/CPU,
3...Memory unit, 4...Processing request source, 5...Bus, 6...-INTRQ, 7
- Old...INTACK, 8.8a. 8b, 8c...processing request, J9a,
9 b, 9 c...Interrupt request counter, 1
0a, 10b, 10C...Counter designation line, 1
1. lla, llb. 11c...Interrupt request flag, 101, 201
...IFR%102...Priority control unit, 120a. 120b, 120c... Counter decrement signal, 121a, 121b, 121cm upper level request signal line, 122a, 122b, 122c...
lower level request signal lines, 202a, 202b; 202c...Priority designation flag, 202...
...Priority specification register. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】 中央処理装置とプログラム及びデータを含むメモリ部と
割り込み制御回路とを有するシングルチップマイクロコ
ンピュータにおいて 割り込み要求発生源からの割り込み要求信号の発生回数
を記憶するNビットの割り込み要求カウンタと、 前記割り込み要求カウンタの内容に基づいて割り込み要
求の優先順位を選択的に指定する制御手段、 とを備えることを特徴とするシングルチップマイクロコ
ンピュータ。
[Scope of Claims] An N-bit interrupt request counter that stores the number of times an interrupt request signal is generated from an interrupt request source in a single-chip microcomputer that has a central processing unit, a memory section containing programs and data, and an interrupt control circuit. A single-chip microcomputer comprising: a control means for selectively specifying a priority order of interrupt requests based on the contents of the interrupt request counter.
JP63011357A 1988-01-19 1988-01-19 Single chip microcomputer Pending JPH01184546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63011357A JPH01184546A (en) 1988-01-19 1988-01-19 Single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63011357A JPH01184546A (en) 1988-01-19 1988-01-19 Single chip microcomputer

Publications (1)

Publication Number Publication Date
JPH01184546A true JPH01184546A (en) 1989-07-24

Family

ID=11775777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63011357A Pending JPH01184546A (en) 1988-01-19 1988-01-19 Single chip microcomputer

Country Status (1)

Country Link
JP (1) JPH01184546A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5093358A (en) * 1973-12-19 1975-07-25
JPS51109741A (en) * 1975-03-22 1976-09-28 Hitachi Ltd
JPS5384656A (en) * 1976-12-30 1978-07-26 Fujitsu Ltd Precedence control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5093358A (en) * 1973-12-19 1975-07-25
JPS51109741A (en) * 1975-03-22 1976-09-28 Hitachi Ltd
JPS5384656A (en) * 1976-12-30 1978-07-26 Fujitsu Ltd Precedence control system

Similar Documents

Publication Publication Date Title
JPS5841538B2 (en) Multiprocessor system instructions
US7581051B2 (en) Method for delivering interrupts to user mode drivers
US4598356A (en) Data processing system including a main processor and a co-processor and co-processor error handling logic
WO1999038074A1 (en) Method and apparatus for handling multiple level-triggered and edge-triggered interrupts
WO1999027434A1 (en) Using firmware to enhance the functionality of a controller
JP2822782B2 (en) Single chip microcomputer
US7689991B2 (en) Bus management techniques
US6990669B1 (en) Real-time scheduler
JPH01184546A (en) Single chip microcomputer
JPH01214939A (en) Single-chip microcomputer
JPH01137359A (en) Processor control system
JP3105554B2 (en) Interrupt controller
JPS6223895B2 (en)
JPH0340416B2 (en)
JPH0736820A (en) I/o controller
JPH0354374B2 (en)
JPH0869382A (en) Semiconductor device
JPS5831465A (en) Processor controlling system
JPS63205748A (en) Channel controlling system for computer system
JPH01159736A (en) Single chip microcomputer
JPS6143747B2 (en)
JPS59172042A (en) Information processing device
JPH02144653A (en) Data processor
JPH02108149A (en) Exclusive control mechanism for multiprocessor
JPS59225429A (en) Channel processing unit