JPS6341937A - Interruption control circuit for microcomputer - Google Patents

Interruption control circuit for microcomputer

Info

Publication number
JPS6341937A
JPS6341937A JP18630186A JP18630186A JPS6341937A JP S6341937 A JPS6341937 A JP S6341937A JP 18630186 A JP18630186 A JP 18630186A JP 18630186 A JP18630186 A JP 18630186A JP S6341937 A JPS6341937 A JP S6341937A
Authority
JP
Japan
Prior art keywords
interrupt
flag
flags
control circuit
instruction
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
JP18630186A
Other languages
Japanese (ja)
Inventor
Sakae Otake
大竹 榮
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 JP18630186A priority Critical patent/JPS6341937A/en
Publication of JPS6341937A publication Critical patent/JPS6341937A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To make it possible to generate interruption when processes designated beforehand are executed completely by providing plural flags and generating interruption when all flags are set. CONSTITUTION:A flag 1 and a flag 2 are flags set by execution of an instruction or occurrence of an event (timer interrupt etc.), and an AND circuit 3 drives an interrupt controlling circuit 4 only when both the flag 1 and flag 2 are '1' to make it possible to generate interrupt by the interrupt controlling circuit 4. All flags are cleared by a clear signal 20 by generation of interrupt. For instance, in the case of the sum of two data inputted from outside, two input instructions exist on a program, and an instruction to set the flag 1 or flag 2 is placed just after these input instructions. That is, interrupt is generated when the two data are all present, and an instruction for addition is executed in the interrupt processing.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は、マイクロコンピュータの割込制御回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control circuit for a microcomputer.

〔従来の技術〕[Conventional technology]

従来、マイクロコンピュータの割込制御回路は、単一の
事象発生毎に割込処理を行なっている。
Conventionally, an interrupt control circuit of a microcomputer performs interrupt processing every time a single event occurs.

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

上述したように従来のマイクロコンピュータは、単一の
事象発生毎に割込処理を行なっていたため、複数の事象
が発生した時に割込処理を行なうには、ソフトウェアの
負担が大きく不適当であった。
As mentioned above, conventional microcomputers perform interrupt processing every time a single event occurs, so it is inappropriate to perform interrupt processing when multiple events occur due to the burden on the software. .

たとえば、外部から入力される2つのデータに対して加
算や減算等の二項演算を考えると、二項演算では2つの
データが揃わない限り演算を実行することができない。
For example, if we consider a binary operation such as addition or subtraction on two data input from the outside, the binary operation cannot be performed unless the two data are aligned.

従来のマイクロコンピュータでは片方のデータが入力さ
れても、もう一方のデータが入力されるまで待ち合わせ
処理を行なわなければならず、ソフI・ウェアの負担も
大きく処理能力の低下の原因にもなっていた。
In conventional microcomputers, even if one data is input, waiting processing must be performed until the other data is input, which places a heavy burden on the software I/ware and causes a decline in processing performance. Ta.

本発明の目的は、簡単な回路でソフトウェアの負担を軽
減し、処理能力を上げることのできるマイクロコンピュ
ータの割込制御回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an interrupt control circuit for a microcomputer that can reduce the burden on software and increase processing capacity with a simple circuit.

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

本発明のマイクロコンピュータの割込制御回路の構成は
、各種の事象発生によりセットされるフラフ分複数1固
有し、それらのフラグがすべてセットされた時のみ割込
みを発生させる回路を有することを特徴とする。
The configuration of the interrupt control circuit of the microcomputer according to the present invention is characterized by having a circuit that has a plurality of flags set by the occurrence of various events and generates an interrupt only when all of these flags are set. do.

[実施例] 第1図(a)、(b)は本発明の実施例の割込制御回路
のブロック図であり、(a)はフラグの数が2個の場合
(b)はフラグの数がさらに増えた場合の拡張例である
[Embodiment] FIGS. 1(a) and 1(b) are block diagrams of an interrupt control circuit according to an embodiment of the present invention, where (a) the number of flags is two, and (b) the number of flags. This is an example of expansion when the number increases further.

第1図(a)の動作について説明する。The operation shown in FIG. 1(a) will be explained.

フラグ1及びフラグ2は命令の実行あるいは事象の発生
(タイマー割込等)によってセットされるフラグである
。AND回路3は、フラグ1及びフラグ2が共に“°1
”の時のみ割込制御回路4を駆動し、割込制御回路4に
よって割込発生が可能となる。尚、割込発生によってフ
ラグはクリア信号20により全部クリアされる。
Flag 1 and flag 2 are flags that are set by the execution of an instruction or the occurrence of an event (such as a timer interrupt). AND circuit 3 indicates that both flag 1 and flag 2 are “°1”.
”, the interrupt control circuit 4 is driven, and the interrupt control circuit 4 can generate an interrupt. Note that the flags are all cleared by the clear signal 20 when an interrupt occurs.

第1図(b)の動作はフラグの数が増えただけで同様で
ある。
The operation shown in FIG. 1(b) is the same except that the number of flags is increased.

次に、具体的な応用例について説明する。Next, a specific application example will be explained.

外部から入力される2つのデータの和を考える。この場
合、2つの入力命令がプログラム上I#を在するが、こ
れらの入力命令の直後にフラグ1あるいはフラグ2をセ
ットする命令を配置すれば良い。すなわち2つのデータ
が揃った時点で割込を発生させ、?、+1込処理の中で
加算命令を実行すれば良い。
Consider the sum of two data input from the outside. In this case, two input instructions have I# in the program, but an instruction to set flag 1 or flag 2 may be placed immediately after these input instructions. In other words, an interrupt is generated when two pieces of data are complete, and ? , it is sufficient to execute the addition instruction in the +1 inclusive processing.

し発明の効果〕 以上説明したように本発明は、フラグを複数個有し、そ
れらのフラグがすべてセットされた時に割込を発生させ
ることにより、あらかじめ指定した処理がすべて実行さ
れた時に割込を発生させることのできる効果がある。特
に、外部からの入力データに対する二項演算処理では、
データの到着順に関係なく2つのデータが揃った時点で
の処理が可能であり、ソフトウェアの負担の軽減と処理
能力の向上に大きな効果がある。
[Effects of the Invention] As explained above, the present invention has a plurality of flags and generates an interrupt when all of the flags are set, thereby generating an interrupt when all pre-specified processes have been executed. It has the effect of causing In particular, in binary operation processing on external input data,
Regardless of the order in which the data arrive, processing can be performed as soon as two sets of data are available, which has a significant effect on reducing the burden on software and improving processing capacity.

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

第1図(a>、(b)は本発明の第1および第2の実施
例の割込制御回路のブロック図である。 1.2.5〜13・・・フラグ、3・・・AND回路、
4・割込制御回路、17・・・割込制御回路、2o・・
・クリア信号。 20 ′2リアイき号 (b) 第 1 口
FIGS. 1(a) and 1(b) are block diagrams of the interrupt control circuits of the first and second embodiments of the present invention. 1.2.5 to 13...Flags, 3...AND circuit,
4. Interrupt control circuit, 17... Interrupt control circuit, 2o...
・Clear signal. 20 '2 rear number (b) 1st entry

Claims (1)

【特許請求の範囲】[Claims] 各種の事象発生によりセットされるフラグを複数個有し
、それらのフラグがすべてセットされた時のみ割込みを
発生させる回路を有することを特徴とするマイクロコン
ピュータの割込制御回路。
1. An interrupt control circuit for a microcomputer, comprising a circuit that has a plurality of flags that are set by the occurrence of various events, and generates an interrupt only when all of the flags are set.
JP18630186A 1986-08-08 1986-08-08 Interruption control circuit for microcomputer Pending JPS6341937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18630186A JPS6341937A (en) 1986-08-08 1986-08-08 Interruption control circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18630186A JPS6341937A (en) 1986-08-08 1986-08-08 Interruption control circuit for microcomputer

Publications (1)

Publication Number Publication Date
JPS6341937A true JPS6341937A (en) 1988-02-23

Family

ID=16185928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18630186A Pending JPS6341937A (en) 1986-08-08 1986-08-08 Interruption control circuit for microcomputer

Country Status (1)

Country Link
JP (1) JPS6341937A (en)

Similar Documents

Publication Publication Date Title
HUP0100013A2 (en) Method and apparatus for selecting thread switch events in a multithreaded processor
JPS6341937A (en) Interruption control circuit for microcomputer
JP2003058381A (en) Processor realizing exception processing setting by program
JP2846904B2 (en) Additional processing unit control method
JPS60263238A (en) Information processor
JPS5922146A (en) Task scheduling circuit
JPS6152493B2 (en)
JPS61136115A (en) Basic clock generating circuit of microcomputer system
JPH04158448A (en) Cyclic program start-up system
JPH02148163A (en) Multi-operating system
JPH087692B2 (en) Timer control method in virtual machine system
JPS63311442A (en) Multiple operating system
JPS6121532A (en) Scheduling method
JPH03164940A (en) Computer having plural interruption periods
JPH01185733A (en) Input/output emulation system
JPH0421150A (en) On-line processing system
JPS63129426A (en) Timer module for data flow type computer
JPH0229831A (en) Input/output interruption control system for virtual computer system
JPS62217326A (en) Computer capable of storing and switching plural os
JPS61187044A (en) Information processor
JPH02228737A (en) Process control method
JPS62233835A (en) Message managing system
JPH01180350A (en) Printing system
JPS6020271A (en) Bus control system
JPS58125162A (en) Decentralized system controller