JPS6239776B2 - - Google Patents

Info

Publication number
JPS6239776B2
JPS6239776B2 JP56048773A JP4877381A JPS6239776B2 JP S6239776 B2 JPS6239776 B2 JP S6239776B2 JP 56048773 A JP56048773 A JP 56048773A JP 4877381 A JP4877381 A JP 4877381A JP S6239776 B2 JPS6239776 B2 JP S6239776B2
Authority
JP
Japan
Prior art keywords
interrupt
processing
request signal
unit
interrupt request
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
Application number
JP56048773A
Other languages
Japanese (ja)
Other versions
JPS57164339A (en
Inventor
Yukihiro Nishiguchi
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4877381A priority Critical patent/JPS57164339A/en
Publication of JPS57164339A publication Critical patent/JPS57164339A/en
Publication of JPS6239776B2 publication Critical patent/JPS6239776B2/ja
Granted 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)
  • Bus Control (AREA)

Description

【発明の詳細な説明】 本発明は情報処理装置に関し、特に複数種類の
割込み処理機能を有する情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device, and particularly to an information processing device having multiple types of interrupt processing functions.

プリンタやキー入力装置等の周辺機器を制御し
たり、マルチプロセツサ処理等を実行するような
情報処理装置には、複数の割込み処理を実行でき
る機能が要求されている。このため、従来の装置
は複数の割込み処理プログラムの中から所望のプ
ログラムを選択して実行できるように構成されて
おり、プログラムの選択は割込み要求信号によつ
て行なつていた。割込み要求信号は本装置に割込
み処理を実行させたい他の装置から発生され、本
装置はその要求信号を受け付けると、それによつ
て指定される割込み処理プログラムを選択して実
行するように設計されている。最近では、複数の
割込み要求信号に対して優先順位を与え、高順位
の割込み要求信号を優先に処理するように回路設
計された装置もある。この装置の場合には、優先
順位の低い割込み要求信号が高い方の割込み要求
信号でマスク(入力禁止)されるように割込み要
求信号受付部にマスクレジスタを設けているのが
一般的である。
Information processing apparatuses that control peripheral devices such as printers and key input devices or perform multiprocessor processing are required to have the ability to execute multiple interrupt processes. For this reason, conventional devices are configured to be able to select and execute a desired program from among a plurality of interrupt processing programs, and the selection of the program is performed using an interrupt request signal. An interrupt request signal is generated from another device that wants this device to perform interrupt processing, and this device is designed to select and execute the interrupt processing program specified by the request signal when it receives the request signal. There is. Recently, there are some devices whose circuits are designed to give priority to a plurality of interrupt request signals and to process the higher priority interrupt request signal preferentially. In the case of this device, a mask register is generally provided in the interrupt request signal receiving section so that an interrupt request signal with a lower priority is masked (input prohibited) by an interrupt request signal with a higher priority.

更に、周辺機器を付随したり、上記情報処理装
置を複数個含むような情報処理システムにあつて
は、情報処理装置自体の処理内容も複雑化、高度
化する傾向にある。このため、処理のタイミング
(時間)制御も非常に複雑になつてくる。しかも
複数の割込み処理をも実行しなければならないと
なると、簡便なソフトウエア制御だけでは困難で
ある。
Furthermore, in information processing systems that are accompanied by peripheral devices or include a plurality of the above information processing devices, the processing contents of the information processing devices themselves tend to become more complex and sophisticated. For this reason, timing (time) control of processing also becomes extremely complicated. Moreover, if a plurality of interrupt processes have to be executed, it is difficult to perform simple software control alone.

従つて、できる限り効率よく処理を遂行できる
ように、ソフトウエアの負担を軽減して、効率の
良いタイミング制御を行なうことが望まれる。し
かしながら、従来知られている割込処理機能付の
情報処理装置はこの要求を十分に満足するもので
はなく、特に割込みレベルが複雑あるものは処理
タイミングのずれが多く、急を要する割込み処理
であつても長時間待たされたり、あるいは無関係
な割込み処理が突然実行されたりして、処理効率
が悪く時として誤まつた処理を実行する危険性が
高かつた。
Therefore, it is desirable to reduce the burden on software and perform efficient timing control so that processing can be performed as efficiently as possible. However, conventionally known information processing devices with an interrupt processing function do not fully satisfy this requirement, especially those with complex interrupt levels, which have many processing timing lags and require urgent interrupt processing. However, there was a high risk that the processing efficiency would be poor and that incorrect processing would sometimes be executed, due to long waiting times or unrelated interrupt processing being suddenly executed.

この本発明の目的は、プログラム処理特に複数
の割込み処理を含むような場合に、処理のタイミ
ング制御が容易でかつソフトウエアの負担を軽減
し、効率の良い割込み処理を実行する情報処理装
置を提供することにある。又、それに伴なう他の
目的として、消費電力を節約し、誤まつた割込み
処理を実行することのない信頼度の高い情報処理
装置を提供することである。
An object of the present invention is to provide an information processing device that can easily control the timing of processing, reduce the burden on software, and execute efficient interrupt processing in program processing, especially when multiple interrupt processing is involved. It's about doing. Another object of the present invention is to provide a highly reliable information processing device that saves power consumption and does not execute interrupt processing by mistake.

本発明は複数の割込み処理を実行する機能を備
えた情報処理装置において、前記割込み処理を指
示する要求信号を受付ける受付部と、受付けられ
た要求信号のうち所望の信号を選択する選択部
と、割込み処理を実行する処理部と、この処理部
の動作を一時停止させる停止部と、前記選択部で
選択された前記要求信号によつて前記停止部を制
御し停止状態を解除して前記処理部を動作状態に
する制御部と、停止状態が解除された前記処理部
に対してその停止解除に用いられた割込要求信号
によつて指定される割込処理を行なうか否かを決
定する割込処理決定部とを含み、前記処理部の停
止状態を解除した後、選択された割込要求信号に
基づく割込処理を行なうか否かの決定をすること
を特徴とする情報処理装置。
The present invention provides an information processing device having a function of executing a plurality of interrupt processes, comprising: a receiving unit that accepts a request signal instructing the interrupt process; a selecting unit that selects a desired signal from among the accepted request signals; a processing unit that executes interrupt processing; a stop unit that temporarily stops the operation of the processing unit; and a stop unit that controls the stop unit and releases the stopped state based on the request signal selected by the selection unit. a control unit that puts the processing unit into an operating state, and an interrupt that determines whether or not to perform an interrupt process specified by the interrupt request signal used to cancel the stop state for the processing unit whose stop state has been released. 1. An information processing apparatus, comprising: an interrupt processing determining section, and determining whether or not to perform interrupt processing based on a selected interrupt request signal after releasing the stopped state of the processing section.

本発明によれば、処理部の動作を停止させるこ
とが可能な停止制御部を有しているため、不必要
な処理時間あるいは、1つの処理終了後次の処理
命令が与えられるまでの待ち時間、もしくは急を
要する割込み処理が発生する以前のタイミング期
間等に処理部の動作を一時停止せしめておくこと
ができる。従つて無駄な処理の実行や、非処理時
間時の消費電力を著しく低減することができる。
更に、緊急割込が発生するであろうことが予想さ
れる場合には、現在実行している処理を退避させ
て一時中断せしめ、割込み処理のために待機させ
ておくことができ、その割込み要求があれば即刻
その作業に取りかかることができる。従つて、緊
急度の高い割込み処理が冗らに待たされるという
こともなくなり、高速な処理を遂行することがで
きる。又、停止制御部の停止解除制御は選択部に
よつて選択された割込み要求信号、即ち要求され
る割込み処理を指定する信号によつて行なわれて
いるので、突発的あるいは不定期に発生した別の
割込み要求信号によつて処理部が占有されてしま
うという不都合も全くない。
According to the present invention, since the stop control section is provided that can stop the operation of the processing section, unnecessary processing time or waiting time until the next processing command is given after the completion of one processing is eliminated. Alternatively, the operation of the processing section can be temporarily stopped during a timing period before urgent interrupt processing occurs. Therefore, execution of unnecessary processing and power consumption during non-processing time can be significantly reduced.
Furthermore, if it is predicted that an emergency interrupt will occur, the currently executing process can be saved and temporarily suspended, and placed on standby for interrupt processing. If so, you can start working on it immediately. Therefore, interrupt processing with a high degree of urgency is not made to wait unnecessarily, and high-speed processing can be performed. In addition, since the stop control unit's stop release control is performed by the interrupt request signal selected by the selection unit, that is, the signal that specifies the requested interrupt processing, it is possible to There is no inconvenience that the processing section is occupied by the interrupt request signal.

さらに、本発明は選択された割込要求信号で処
理部の停止状態を解除した後、その停止解除に用
いられた割込要求信号に基いて実際の割込処理を
行なうか否かを決定する手段を有している。この
ため、所望の割込要求信号で処理部の停止状態を
解除した後、その割込を実行することも又しない
ことも自由に制御できる。すなわち、処理部の停
止状態のみを所望の割込要求があつた場合にのみ
解除できるという操作を可能とし、それによつて
後述するように割込処理の制御範囲を拡大できる
という効果を得ることができる。
Further, in the present invention, after the processing unit is released from the stopped state by the selected interrupt request signal, it is determined whether or not to perform actual interrupt processing based on the interrupt request signal used to release the processing unit from the stopped state. have the means. Therefore, after the processing section is released from the stopped state by a desired interrupt request signal, it is possible to freely control whether or not to execute the interrupt. In other words, it is possible to perform an operation in which the stopped state of the processing unit can be canceled only when a desired interrupt request is received, thereby achieving the effect of expanding the control range of interrupt processing as described later. can.

本発明は、以上の説明からも明らかなように、
複数の割込み処理機能を有し、所定のサイクル毎
に所望の割込み処理を高速に実行するコントロー
ラが得られ、プリンタやキー入力装置のような端
末装置の制御系として極めて有用である。
As is clear from the above description, the present invention includes:
The present invention provides a controller that has a plurality of interrupt processing functions and executes desired interrupt processing at high speed in each predetermined cycle, and is extremely useful as a control system for terminal devices such as printers and key input devices.

以下にプリンタを端末装置としてその一部に含
むシステムを対象として、そのプリンタコントロ
ーラとして本発明の情報処理装置(以下、プロセ
ツサという)を用いた場合の一実施例を図面を用
いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which an information processing apparatus (hereinafter referred to as a processor) of the present invention is used as a printer controller for a system including a printer as a terminal device will be described below with reference to the drawings.

第1図は本発明の一実施例を示すプロセツサの
要部ブロツク図を示している。1はプログラムメ
モリ(例えばROM)およびデータメモリ(例え
ばRAM)をまとめて表現したメモリ部である。
2は各種レジスタや演算制御回路を含んだ処理部
である。3はタイマ回路、4は例えば他のプロセ
ツサからのシリアルデータを入出力するシリアル
インターフエイス回路で、マルチプロセツサシス
テムにおいて有用な機能となる。5は割込み制御
回路で、ここにはタイマ回路3からの割込み要求
信号INTT、シリアルインターフエイス回路4か
らの割込み要求信号INTS、及び外部周辺端末装
置(例えばプリンタ100,CRT200)から
の割込み要求信号6(INT1,INT2)が入力さ
れ、これらの割込み要求信号に応じて後述するよ
うな各種の処理を行なう。7は処理部2(あるい
は場合によつてはメモリ部1)の動作を一時停止
(以下、ホールトという)させたり、それを解除
したりする制御を行なうホールト制御回路で割込
み制御回路5の出力端が一部接続される。
FIG. 1 shows a block diagram of essential parts of a processor showing one embodiment of the present invention. Reference numeral 1 denotes a memory unit that collectively represents a program memory (for example, ROM) and a data memory (for example, RAM).
2 is a processing section including various registers and an arithmetic control circuit. 3 is a timer circuit, and 4 is a serial interface circuit for inputting/outputting serial data from, for example, another processor, which is a useful function in a multiprocessor system. 5 is an interrupt control circuit, which receives an interrupt request signal INTT from the timer circuit 3, an interrupt request signal INTS from the serial interface circuit 4, and an interrupt request signal 6 from an external peripheral terminal device (for example, printer 100, CRT 200). (INT1, INT2) are input, and various processes as described later are performed in response to these interrupt request signals. Reference numeral 7 denotes a halt control circuit that controls the temporary suspension (hereinafter referred to as halt) and release of the operation of the processing unit 2 (or memory unit 1 in some cases), and is the output terminal of the interrupt control circuit 5. are partially connected.

次に、割込み制御回路5の詳細を第2図に示
す。第2図において、前述した割込み要求信号
INT1,INT2,INTT,INTS,はそれぞれアン
ド回路8,9,10,11,の一方の入力端に入
力されている。12は所望の割込み要求信号を選
択する機能を有する選択部で、各々1ビツトのマ
スクレジスタ12―1,12―2,12―3,1
2―4,により構成されている。出力としてはレ
ジスタの内容の反転出力が取り出され、それぞれ
対応するアンド回路8,9,10,11,の他の
方の入力端に入力される。したがつて、割込みマ
スクレジスタビツト12―1,12―2,12―
3,12―4,をリセツトすることにより、各ビ
ツトの反転出力は、ハイレベルとなるので、その
レベルが入力されているアンド回路につながる割
込み要求信号INT1,LNT2,INTT,INTS,
のみが有効となり、以下に述べるようにホールト
状態を解除する信号として、及び割込み処理を指
示する信号として使用される。尚、割込みマスク
レジスタビツト12―1,12―2,12―3,
12―4,をセツト(ハイレベルにする)した場
合は、各ビツトの反転出力はロウレベルとなるの
で対応するアンド回路8,9,10,11,の出
力はすべてロウレベルとなり、割込み要求信号
INT1,INT2,INTT,INTS,が入力されても
それは無効となり、以下に述べるようにホールト
状態を解除することも又割込み指示を与えること
もできない。アンド回路8,9,10,11の各
出力はオア回路13に入力されると共に、割込み
指示のためにアンド回路16,17,18,1
9,の一方にも入力されている。オア回路13の
出力はセツト・リセツトフリツプ・フロツプ(以
下“SRT/F”という)15のリセツト入力端
に接続されている。このSRF/F15は処理部
のホールト状態を設定するための命令(以下“ホ
ールト命令”という)によつてセツトされるよう
に、そのセツト端にはホールト命令制御信号20
が入力される。SRF/F15はその出力でホー
ルト制御回路を制御し、SRF/F15がセツト
されるとホールト状態を設定して処理部の動作を
一時停止させる。一方、リセツトされるとホール
ト状態を解除して処理部を動作可能状態にする。
14もSRF/Fで、そのセツトは割込み許可命
令(以下、“EI命令”という)によるコントロー
ル信号21で行なわれ、リセツトは割込み禁止命
令(以下“DI命令”という)によるコントロー
ル信号22で行なわれる。このSRF/F14の
出力はアンド回路16,17,18,19,の他
方の入力端に共通に供給される。SRF/F14
がセツトされるとその出力がハイレベルとなり、
アンド回路16,17,18,19,の出力状態
はアンド回路8〜11の出力状態によつて定ま
る。一方、SRF/F14がリセツトされていれ
ば、マスクレジスタによつて選択された割込要求
信号であつてもそこで禁止されてしまう。
SRF/F14がセツトされていて、割込み要求
信号が入力されると、選択された割込み要求信号
のみが対応するAND回路16〜19から出力さ
れ、これは割込み処理用サブルーチン(例えば
ROM等のメモリに予め定められている割込み処
理プログラム)を読み出すためのその先頭番地を
指定するための信号として使用される。最も簡単
な例を挙げれば各割込み処理用サブルーチンをテ
ーブルとしてメモリに格納しておき、各テーブル
の先頭アドレスをテーブル数分のレジスタに設定
しておいて、そのレジスタの読み出し信号として
AND回路16〜19の出力を用いるように設定
すればよい。
Next, details of the interrupt control circuit 5 are shown in FIG. In FIG. 2, the interrupt request signal mentioned above is
INT1, INT2, INTT, and INTS are input to one input terminal of AND circuits 8, 9, 10, and 11, respectively. Reference numeral 12 denotes a selection unit having a function of selecting a desired interrupt request signal, and includes mask registers 12-1, 12-2, 12-3, and 12-1, each having 1 bit.
It is composed of 2-4. As an output, an inverted output of the contents of the register is taken out and inputted to the other input terminal of the corresponding AND circuit 8, 9, 10, 11, respectively. Therefore, interrupt mask register bits 12-1, 12-2, 12-
By resetting 3, 12-4, the inverted output of each bit becomes high level, so the interrupt request signals INT1, LNT2, INTT, INTS,
This signal is valid and is used as a signal to release the halt state and as a signal to instruct interrupt processing, as described below. Furthermore, interrupt mask register bits 12-1, 12-2, 12-3,
When 12-4 is set (made high level), the inverted output of each bit becomes low level, so the outputs of the corresponding AND circuits 8, 9, 10, and 11 all become low level, and the interrupt request signal
Even if INT1, INT2, INTT, and INTS are input, they are invalid, and as described below, the halt state cannot be released or an interrupt instruction can be given. The outputs of AND circuits 8, 9, 10, and 11 are input to an OR circuit 13, and AND circuits 16, 17, 18, and 1 are input for interrupt instructions.
9, is also input to one side. The output of the OR circuit 13 is connected to the reset input terminal of a set/reset flip-flop (hereinafter referred to as "SRT/F") 15. This SRF/F15 has a halt command control signal 20 at its set end so that it is set by a command for setting the halt state of the processing section (hereinafter referred to as "halt command").
is input. The SRF/F15 controls the halt control circuit with its output, and when the SRF/F15 is set, a halt state is set and the operation of the processing section is temporarily stopped. On the other hand, when it is reset, the halt state is released and the processing section becomes operational.
14 is also an SRF/F, which is set by a control signal 21 caused by an interrupt enable instruction (hereinafter referred to as "EI instruction"), and reset by a control signal 22 caused by an interrupt disable instruction (hereinafter referred to as "DI instruction"). . The output of this SRF/F 14 is commonly supplied to the other input terminals of AND circuits 16, 17, 18, and 19. SRF/F14
When set, its output becomes high level,
The output states of AND circuits 16, 17, 18, and 19 are determined by the output states of AND circuits 8-11. On the other hand, if the SRF/F 14 is reset, even the interrupt request signal selected by the mask register will be inhibited there.
When the SRF/F14 is set and an interrupt request signal is input, only the selected interrupt request signal is output from the corresponding AND circuits 16 to 19, and this is processed by the interrupt processing subroutine (e.g.
It is used as a signal to specify the start address for reading an interrupt processing program (predetermined in memory such as ROM). To give the simplest example, each interrupt processing subroutine is stored in memory as a table, the start address of each table is set in a register for the number of tables, and the read signal for that register is used as a read signal.
It is only necessary to set the outputs of the AND circuits 16 to 19 to be used.

ここで、第2図の回路に入力される割込み要求
信号の種類とその入力条件を明示する。
Here, the types of interrupt request signals input to the circuit of FIG. 2 and their input conditions will be clearly explained.

INT1…プリンタ100から発生され、プリン
トアウトデータ受入のための要求信号で、印字す
べきデータを第1図のプロセツサから転送しても
らうためにプロセツサにデータ転送を実行させる
べき割込み処理を依頼する信号。
INT1: A request signal generated by the printer 100 to accept printout data, and a signal requesting interrupt processing to cause the processor to execute data transfer in order to transfer the data to be printed from the processor shown in FIG. .

INT2…CRT200から発生され、表示用デ
ータ受入のための要求信号で、プロセツサに
CRTデータ転送を実行させるべき割込み処理を
依頼する信号。
INT2...A request signal generated from the CRT200 and sent to the processor to accept display data.
A signal that requests interrupt processing to execute CRT data transfer.

INTT…タイマ回路からの割込み要求信号で所
定のサイクル毎にプロセツサに割込みをかけ、所
定のサイクル毎に繰り返し実行させるべき処理の
開始タイミングを与える。この例では、キー入力
装置に対するキー入力走査処理に相当する。
INTT... Interrupts the processor every predetermined cycle with an interrupt request signal from the timer circuit, and gives the start timing of a process to be repeatedly executed every predetermined cycle. In this example, this corresponds to key input scanning processing for a key input device.

INTS…マルチプロセツサシステムを構成する
他のプロセツサから、あるいは他のプロセツサへ
転送される割込み要求信号で、複数のプロセツサ
が協動して一連のプログラムを実行する時に、プ
ロセツサ相互間で必要なデータあるいは命令を授
受するような場合に発生される。この例では、部
分的なプログラムの実行依頼、その結果を受け取
るための転送依頼、プロセツサが付随するメモリ
に格納されている情報の転送依来等である。
INTS: An interrupt request signal transferred from or to other processors that make up a multiprocessor system. When multiple processors cooperate to execute a series of programs, this is an interrupt request signal that is used to transmit data between processors. Or, it occurs when giving and receiving commands. In this example, the requests include a request to execute a partial program, a transfer request to receive the result, and a request to transfer information stored in a memory attached to the processor.

次に、マスクレジスタの設定条件を説明する。
個々のマスクレジスタ12―1,〜12―4,に
は第1図の処理部2から転送されるデータが書き
込まれ、夫々対応する割込み要求信号に選択を行
なう。この場合、プロセツサが決定した割込み要
求信号のみが許可される。ハードウエアとしては
1ビツトRSF/Fで夫々のレジスタが構成され
る。従つて、割込み要求信号の優先順位を判断す
る回路構成は全く不要であり、回路構成が著しく
簡易化されている。プロセツサは選択すべき割込
み要求信号を時間によつて決定したり、あるいは
プログラムによつて決定したりする。尚、1つの
割込み処理の実行中に他の緊急な割込み処理を受
付けられるように、AND回路8〜11へ入力さ
れる割込み要求信号を一部分岐させて、緊急優先
判別回路(点線ブロツク23)に入力するように
してもよい。しかし、この場合でも、現在実行中
の割込み処理の順序を示すアドレススを退避させ
た後、マスクレジスタ12の内容変更、即ち緊急
割込み要求信号を選択できるようにマスクレジス
タを制御するようにするか、それとも後述するよ
うにSRF/F14をリセツトして、緊急優先判
別回路23で許可した割込み要求信号24を用い
て緊急の割込み処理を実行するようにすればよ
い。こうすれば、複数の割込み要求が同時に発生
した時でも、マスクレジスタ12で選択されてい
るのものを許可することができるとともに、緊急
割込みも受付けることができる。
Next, the setting conditions of the mask register will be explained.
Data transferred from the processing section 2 of FIG. 1 is written into the individual mask registers 12-1 to 12-4, and selection is made to the corresponding interrupt request signal. In this case, only the interrupt request signal determined by the processor is permitted. As for hardware, each register is configured with 1-bit RSF/F. Therefore, there is no need for a circuit configuration for determining the priority order of interrupt request signals, and the circuit configuration is significantly simplified. The processor determines which interrupt request signal to select depending on time or by a program. In addition, in order to accept other urgent interrupt processing while one interrupt processing is being executed, some of the interrupt request signals input to the AND circuits 8 to 11 are branched and sent to the urgent priority determination circuit (dotted line block 23). You may also input it. However, even in this case, after saving the address indicating the order of interrupt processing currently being executed, the contents of the mask register 12 can be changed, that is, the mask register can be controlled so that the emergency interrupt request signal can be selected. Or, as will be described later, the SRF/F 14 may be reset and the interrupt request signal 24 permitted by the emergency priority determination circuit 23 may be used to execute emergency interrupt processing. In this way, even when a plurality of interrupt requests occur simultaneously, the one selected by the mask register 12 can be permitted, and emergency interrupts can also be accepted.

次に、ホールト命令実行条件について説明す
る。この命令は周期的に所定の割込み要求信号が
入力されることがわかつている場合、あるいはプ
ロセツサが処理すべきプログラムを受け付けてい
ないかもしくは有していない場合(即ち、空き状
態の場合)等に実行される命令である。この命令
を実行すると、プロセツサの処理部もしくはメモ
リ部(但し、スタテイツクメモリの場合)への基
本クロツク信号の供給を停止して、それを非動作
状態(待ち状態)にする。この結果、待ち時間な
くして割込み処理を実行できるとともに、空き状
態時の消費電力を節約することができる。尚、前
記の様に周期毎に所定の割込み要求信号が入力さ
れることがわかつている場合、例えばプリントア
ウトデータ転送用の割込み処理(INT1)におい
ては、その周期内で実行できるプログラム(例え
ばプリントアウトデータの作成処理)のみを実行
させるようにして、その処理実行後はホールト状
態にしておくようにする。この結果INT1による
割込み処理は何等待ち時間をもつことなく、即刻
割込み処理に移行できる。又、割込み処理までの
電力消費もない。
Next, the halt instruction execution conditions will be explained. This command is used when it is known that a predetermined interrupt request signal will be input periodically, or when the processor is not accepting or does not have a program to process (in other words, when it is in an empty state). It is an instruction to be executed. When this command is executed, the supply of the basic clock signal to the processing section or memory section (in the case of static memory) of the processor is stopped and it is placed in a non-operating state (waiting state). As a result, interrupt processing can be executed without waiting time, and power consumption in the idle state can be saved. Note that when it is known that a predetermined interrupt request signal is input every cycle as described above, for example, in the printout data transfer interrupt processing (INT1), a program that can be executed within that cycle (for example, print Only the out data creation process) is executed, and after that process is executed, the system is placed in a halt state. As a result, the interrupt processing by INT1 can immediately proceed to the interrupt processing without any waiting time. Furthermore, there is no power consumption until interrupt processing.

次に、EI,DI命令実行条件について説明す
る。この命令を実行するSRF/F14は主とし
て割込みによる誤動作を防止するための安全回路
として設けたものである。これは、プロセツサの
信頼性を高める意味では重要な付加機構となる。
即ち、マスクレジスタ12で一旦選択された割込
み要求信号をタイミング制御するための回路で、
プロセツサが他のプログラム処理を実行している
時、もしくは割込みに基づく現処理の退避ができ
ていない時に割込みを受付けることを禁止するた
めの働きをする。従つて、リセツト状態に設定さ
れているSRF/F14を現処理の退避が完了し
た後、あるいはマスクレジスタ12への内容書き
込みが終了した後にリセツトが解除され、AND
回路16〜19がアクテイブになるようにする。
又、この回路は割込みを全く受付けたくない時や
現在処理している割込み処理にかえて、優先判別
回路23によつて制御された高優先の割込みを実
行する時に、現割込みを一時停止しておく時等に
有用である。この回路は、通常はマスクレジスタ
がセツトされた後にセツトされるようにする方が
望ましい。
Next, the EI and DI instruction execution conditions will be explained. The SRF/F 14 that executes this instruction is provided primarily as a safety circuit to prevent malfunctions due to interrupts. This is an important additional mechanism in terms of increasing the reliability of the processor.
That is, it is a circuit for controlling the timing of the interrupt request signal once selected by the mask register 12.
It works to prohibit acceptance of interrupts when the processor is executing other program processing or when the current processing based on the interrupt has not been saved. Therefore, after the SRF/F 14, which is set in the reset state, has finished saving the current processing or after the contents have been written to the mask register 12, the reset state is released and the AND
Allow circuits 16-19 to become active.
Also, this circuit temporarily suspends the current interrupt when you do not want to accept any interrupts or when you want to execute a high-priority interrupt controlled by the priority determination circuit 23 instead of the interrupt processing that is currently being processed. It is useful when storing. It is usually desirable for this circuit to be set after the mask register is set.

以下に、このプロセツサの割込み動作を示すた
めに割込み要求信号INT1に基づくプリントアウ
トデータ転送用の割込み処理について説明する。
In order to show the interrupt operation of this processor, the interrupt processing for printout data transfer based on the interrupt request signal INT1 will be described below.

まず、マスクレジスタ12―1がリセツトされ
他のマスクレジスタはセツトされる。この後、
EI命令が実行されSRF/F14がセツトされ
る。この状態でINT1信号が入力されると、
AND回路8の出力によつてSRF/F15がリセ
ツトされ、ホールト制御回路は基本クロツク信号
の供給を開始する。同時に、SRF/F14の出
力はハイレベルであるので、アンド回路16,1
7,18,19はアクテイブの状態にある。従つ
て、AND回路8の出力が入力されるAND回路1
6の出力によつてプリントアウトデータ転送用実
行用のサブルーチンがコールされる。ここでアン
ド回路9,10,11,の出力は割込みマスクレ
ジスタビツト12―2,12―3,12―4,に
よつて常にロウレベル固定されているため、たと
え割込み要求信号INT2,INTT,INTS,が発生
したとしても、その信号ではホールト状態を解除
することができないことに注目されたい。ホール
ト状態は割込み要求信号INT1によつてのみ解除
でき、プリントアウトデータ転送が強制的に実行
される。他の割込み要求信号に対してもそれに対
応するマスクレジスタの内容によつて同様の動作
となる。
First, mask register 12-1 is reset and other mask registers are set. After this,
The EI instruction is executed and SRF/F14 is set. When the INT1 signal is input in this state,
The SRF/F 15 is reset by the output of the AND circuit 8, and the halt control circuit starts supplying the basic clock signal. At the same time, since the output of SRF/F14 is high level, AND circuits 16 and 1
7, 18, and 19 are in an active state. Therefore, AND circuit 1 to which the output of AND circuit 8 is input
The output of step 6 calls a printout data transfer execution subroutine. Here, the outputs of the AND circuits 9, 10, 11 are always fixed at low level by the interrupt mask register bits 12-2, 12-3, 12-4, so even if the interrupt request signals INT2, INTT, INTS, Note that even if a signal occurs, the halt state cannot be released by that signal. The halt state can only be canceled by the interrupt request signal INT1, and printout data transfer is forcibly executed. Similar operations occur for other interrupt request signals depending on the contents of the corresponding mask registers.

一方、ホールト命令を実行する以前にDI命令
を実行した場合はSRF/Fがリセツトされてい
るので、アンド回路16,17,18,19,の
出力は常にロウレベルとなつている。したがつて
前記EI命令を実行して後にホールト命令を実行
してホールト状態にした場合と同様に割込みマス
クレジスタビツト12―1,12―2,12―
3,12―4を使用して、ホールト状態を解除す
る割込み要求信号を選択して解除することができ
るがアンド回路16,17,18,19,の出力
によつてすべての割込み処理の実行が禁止されて
いるため、プロセツサは割込みを受付けずに、前
記ホールト命令の次にプログラムされている命令
を実行する。故に、SRF/F14の状態によつ
てホールト状態解除後のプロセツサの動作をも選
択制御することができる。これは、ホールト制御
回路を、割込み信号に対する速応の目的以外に、
プロセツサの動作を一時的に停止させ、割込み要
求信号の入力をもとにしてそれとは無関係のプロ
グラムを引きつづき実行させるような間欠動作を
可能にする上で多大な利点が得られる。
On the other hand, if the DI instruction is executed before the halt instruction is executed, the SRF/F is reset, so the outputs of the AND circuits 16, 17, 18, and 19 are always at a low level. Therefore, interrupt mask register bits 12-1, 12-2, 12-
3 and 12-4 can be used to select and release the interrupt request signal that releases the halt state, but all interrupt processing can be executed by the outputs of AND circuits 16, 17, 18, and 19. Since the interrupt is prohibited, the processor executes the instruction programmed after the halt instruction without accepting the interrupt. Therefore, depending on the state of the SRF/F 14, the operation of the processor after the halt state is released can also be selectively controlled. This allows the halt control circuit to be used for purposes other than quick response to interrupt signals.
A great advantage is obtained in that it enables intermittent operation in which the operation of the processor is temporarily stopped and an unrelated program continues to be executed based on the input of an interrupt request signal.

プロセツサはプリントアウトデータ転送用のサ
ブルーチンを終了すると、次のプリントアウトデ
ータを作成する処理を実行し、その終了後はホー
ルト状態を保持するようにして、周期的に発生さ
れるINT1信号に速応できる体制を整えておくよ
うにする。
When the processor finishes the printout data transfer subroutine, it executes processing to create the next printout data, and after that, it maintains the halt state and quickly responds to the periodically generated INT1 signal. Make sure you have a system in place.

この様に本実施例によれば、複数の割込みレベ
ルに対して所望の割込みのみを選択して受付け、
それによつてホールト状態を解除して即座に割込
み処理を実行できるため、割込みの誤動作もなく
かつ高速に処理することができ、複数の端末装置
をコントロールするプロセツサとして特に有効で
ある。又、割込み信号の入力タイミングが予めプ
ロセツサ側でわかつているようなシステムにおい
ては、前述したように特に有効である。
In this way, according to this embodiment, only desired interrupts are selected and accepted among multiple interrupt levels, and
As a result, the halt state can be released and interrupt processing can be executed immediately, so that interrupt processing can be performed at high speed without malfunctioning, and is particularly effective as a processor that controls a plurality of terminal devices. Further, as described above, this is particularly effective in a system in which the input timing of an interrupt signal is known in advance on the processor side.

尚、他の割込み処理に対しても同様の効果があ
ることは明らかであろう。更に、優先判別回路2
3を付加すれば、より高度な割込み処理を上記の
作用効果を有したまま実行できることも又明らか
である。又、この優先処理においては、前記回路
23のかわりにマスクレジスタ12を制御するよ
うにしてもよいが、その場合でもマスクされた割
込要求信号でホールト制御するようにすることが
望ましい。
It should be noted that it is clear that similar effects can be obtained for other interrupt processing as well. Furthermore, the priority determination circuit 2
It is also clear that by adding 3, more advanced interrupt processing can be executed while maintaining the above effects. Further, in this priority processing, the mask register 12 may be controlled instead of the circuit 23, but even in that case, it is desirable to perform halt control using a masked interrupt request signal.

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

第1図は本発明の一実施例を示す機能ブロツク
図である。 1……メモリ部、2……処理部、3……タイマ
回路、4……シリアルインターフエイス回路、5
……割込み制御回路、6……外部割込み要求信
号、7……ホールト制御回路、100……プリン
タ、200……CRT。 第2図は本発明の一実施例による割込み制御回
路の詳細を示す回路ブロツク図である。 8,9,10,11,16,17,18,19
……アンド回路、12……割込みマスクレジス
タ、13……オア回路、14,15……SRフリ
ツプフロツプ、20……ホールト命令制御信号、
21……EI命令制御信号、22……DI命令制御
信号、23……優先判別回路。
FIG. 1 is a functional block diagram showing one embodiment of the present invention. 1... Memory section, 2... Processing section, 3... Timer circuit, 4... Serial interface circuit, 5
... Interrupt control circuit, 6 ... External interrupt request signal, 7 ... Halt control circuit, 100 ... Printer, 200 ... CRT. FIG. 2 is a circuit block diagram showing details of an interrupt control circuit according to an embodiment of the present invention. 8, 9, 10, 11, 16, 17, 18, 19
... AND circuit, 12 ... Interrupt mask register, 13 ... OR circuit, 14, 15 ... SR flip-flop, 20 ... Halt command control signal,
21...EI command control signal, 22...DI command control signal, 23...priority determination circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 複数の割込み処理を実行する機能を備えた情
報処理装置において、前記割込み処理を指示する
要求信号を受付ける受付部と、受付けられた要求
信号のうち所望の信号を選択する選択部と、割込
み処理を実行する処理部と、この処理部の動作を
一時停止させる停止部と、前記選択部で選択され
た前記要求信号によつて前記停止部を制御し停止
状態を解除して前記処理部を動作状態にする制御
部と、停止状態が解除された前記処理部に対して
その停止解除に用いられた割込要求信号によつて
指定される割込処理を行なうか否かを決定する割
込処理決定部とを含み、前記処理部の停止状態を
解除した後、選択された割込要求信号に基づく割
込処理を行なうか否かの決定をすることを特徴と
する情報処理装置。
1. In an information processing device having a function of executing a plurality of interrupt processes, an accepting unit that accepts a request signal instructing the interrupt process, a selecting unit that selects a desired signal from among the accepted request signals, and an interrupt process. a processing unit that executes a processing unit; a stop unit that temporarily stops the operation of the processing unit; and a stop unit that controls the stop unit according to the request signal selected by the selection unit to release the stopped state and operate the processing unit. an interrupt process for determining whether or not to perform an interrupt process specified by an interrupt request signal used to cancel the stop state for the processing unit whose stop state is released; 1. An information processing apparatus, comprising: a determining unit, and determining whether or not to perform interrupt processing based on a selected interrupt request signal after releasing the stopped state of the processing unit.
JP4877381A 1981-04-01 1981-04-01 Information processor Granted JPS57164339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4877381A JPS57164339A (en) 1981-04-01 1981-04-01 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4877381A JPS57164339A (en) 1981-04-01 1981-04-01 Information processor

Publications (2)

Publication Number Publication Date
JPS57164339A JPS57164339A (en) 1982-10-08
JPS6239776B2 true JPS6239776B2 (en) 1987-08-25

Family

ID=12812588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4877381A Granted JPS57164339A (en) 1981-04-01 1981-04-01 Information processor

Country Status (1)

Country Link
JP (1) JPS57164339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0252681A (en) * 1988-08-12 1990-02-22 Paru:Kk Panel for decoration and display for pinball machine to use same panel for decoration

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59136899A (en) * 1983-01-26 1984-08-06 株式会社日立製作所 Data processing system
JP2822782B2 (en) * 1992-05-20 1998-11-11 日本電気株式会社 Single chip microcomputer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4992960A (en) * 1973-01-10 1974-09-04
JPS5126426A (en) * 1974-08-30 1976-03-04 Hitachi Ltd

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4992960A (en) * 1973-01-10 1974-09-04
JPS5126426A (en) * 1974-08-30 1976-03-04 Hitachi Ltd

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0252681A (en) * 1988-08-12 1990-02-22 Paru:Kk Panel for decoration and display for pinball machine to use same panel for decoration

Also Published As

Publication number Publication date
JPS57164339A (en) 1982-10-08

Similar Documents

Publication Publication Date Title
JP2867717B2 (en) Microcomputer
US4602327A (en) Bus master capable of relinquishing bus on request and retrying bus cycle
US4847751A (en) Multi-task execution control system
EP0166272A2 (en) Processor bus access
JPH0520263A (en) Data transfer controller
JPS6239776B2 (en)
US20050149771A1 (en) Processor control circuit, information processing apparatus, and central processing unit
JPS5965306A (en) Sequence controller
JPS60252977A (en) Information processor
JP2508026B2 (en) Timer control method
JP2691560B2 (en) Refresh control method for D-RAM
JPS6022383B2 (en) input/output control device
JPS61101865A (en) Multi-microprocessor system
JPH05165541A (en) Electronic circuit
JPH0236971B2 (en)
JPH0376497B2 (en)
JP2000090045A (en) Data transfer system, direct memory access controller and method and record medium
JPH06105439B2 (en) Program management method
JPH03201152A (en) Prefetch control system
JPH0239817B2 (en) WARIKOMISEIGYOHOSHIKI
JPH0534700B2 (en)
JPH0475153A (en) Multi-reception print control method
JPH01206446A (en) Common bus control system
JPS63129446A (en) Interruption control system
JP2002082784A (en) Printer controller, its method, printer and storage medium in which computer readable program is stored