Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0452972B2 - - Google Patents
[go: Go Back, main page]

JPH0452972B2 - - Google Patents

Info

Publication number
JPH0452972B2
JPH0452972B2 JP60052656A JP5265685A JPH0452972B2 JP H0452972 B2 JPH0452972 B2 JP H0452972B2 JP 60052656 A JP60052656 A JP 60052656A JP 5265685 A JP5265685 A JP 5265685A JP H0452972 B2 JPH0452972 B2 JP H0452972B2
Authority
JP
Japan
Prior art keywords
instruction
interrupt
cycle
background register
execution cycle
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 - Lifetime
Application number
JP60052656A
Other languages
Japanese (ja)
Other versions
JPS61211745A (en
Inventor
Tooru Watanabe
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP5265685A priority Critical patent/JPS61211745A/en
Publication of JPS61211745A publication Critical patent/JPS61211745A/en
Publication of JPH0452972B2 publication Critical patent/JPH0452972B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロコンピユータに関し、特に新
規なその割込制御回路を提案するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to microcomputers, and particularly proposes a novel interrupt control circuit thereof.

〔発明の背景〕[Background of the invention]

同一コードにて指定されるレジスタの2つを切
換信号を与えることにより選択的に使用する技術
がある。両レジスタは同一コードで指定され、切
換信号によつて使い別けられるので恰も紙の表裏
のように看做せる処から一方をフオアグラウンド
レジスタ、他方をバツクグラウンドレジスタと称
している。
There is a technique for selectively using two registers specified by the same code by applying a switching signal. Since both registers are designated by the same code and can be used differently by a switching signal, one is called the foreground register and the other is called the background register because they can be seen as two sides of a paper.

これら両レジスタを、常時はフオアグラウンド
レジスタが用いられ、特別な命令を与えたときに
前記切換信号を発生させてバツクグラウンドレジ
スタを指定するようになすことが考えられる。こ
の命令、BANK命令が実行されている間にマイ
クロコンピユータの内部又は外部を原因とする割
込が発生すると次に割込処理が行われることにな
る。そうするとBANK命令によつてバツクグラ
ウンドレジスタが指定されたままの状態となり爾
後の処理に不都合を生じることがある。
It is conceivable that the foreground register is normally used for both of these registers, and that when a special command is given, the switching signal is generated to specify the background register. If an interrupt caused by an internal or external source of the microcomputer occurs while this instruction or BANK instruction is being executed, the next interrupt processing will be performed. In this case, the background register remains specified by the BANK instruction, which may cause problems in subsequent processing.

〔目的〕〔the purpose〕

本発明はこのような不都合を解消するためにな
されたものであつて割込処理を、BANK命令に
続く命令であつて、バツクグラウンドレジスタに
対する書込,読出等を指令する命令の実行終了を
待つて行わせることとしたものである。
The present invention has been made to solve this problem, and the present invention waits for the completion of execution of the instruction following the BANK instruction, which instructs writing to, reading from, etc., to the background register. This is what we decided to do.

〔構成〕〔composition〕

本発明に係るマイクロコンピユータはバツクグ
ラウンドレジスタを指定する第1命令の実行中
に、その内部又は外部からの割込が発生した場合
に、前記第1命令に続く第2命令の実行終了迄割
込を保留させる構成としたことを特徴とする。
In the microcomputer according to the present invention, when an internal or external interrupt occurs during the execution of a first instruction that specifies a background register, the microcomputer interrupts the execution of the first instruction until the execution of the second instruction following the first instruction is completed. It is characterized by having a configuration in which the information is held on hold.

〔実施例〕〔Example〕

以下本発明をその実施例を示す図面に基いて詳
述する。第1図は本発明のマイクロコンピユータ
の要部たる割込実行制御信号作成回路のロジツク
図である。
The present invention will be described in detail below based on drawings showing embodiments thereof. FIG. 1 is a logic diagram of an interrupt execution control signal generating circuit which is a main part of a microcomputer according to the present invention.

BANK命令を実行することによつて発生する
BANK信号BANKを入力とするインバータ1の
出力と、割込要求信号IRQと、この回路で作成す
べき割込実行制御信号IECを入力とするインバー
タ2の出力とを3入力とする3入力ANDゲート
3の出力を第1クロツクCL1にて駆動されるク
ロツクドインバータ4に与え、その出力を第2ク
ロツクCL2にて駆動されるクロツクドインバー
タ5に与え、このクロツクドインバータ5の出力
を信号IECとして図示しないプロセツサ部へ与え
るべくなしてある。
Occurs by executing the BANK instruction
A 3-input AND gate whose three inputs are the output of inverter 1 which receives the BANK signal BANK, the interrupt request signal IRQ, and the output of inverter 2 which receives the interrupt execution control signal IEC to be created by this circuit. 3 is applied to a clocked inverter 4 driven by the first clock CL1, and its output is applied to a clocked inverter 5 driven by the second clock CL2, and the output of this clocked inverter 5 is It is designed to be given to a processor section (not shown) as a signal IEC.

第2図はこの回路の動作説明のためのタイムチ
ヤートである。
FIG. 2 is a time chart for explaining the operation of this circuit.

クロツクCL2はその立上りにて命令実行サイ
クルの始点を、クロツクCL1はその立下りにて
同終点を規定する。いまBANK命令がサイクル
T1にて実行されたものとすると第2図ハ,ニに
示すようにがハイレベルとなり、インバ
ータ1出力、つまりがローレベルとなる。
このため当該サイクルT1において割込要求があ
つて信号IRQがハイレベルとなつていても第2図
チに示すように出力の信号IECはローレベルのま
まである。サイクルT2に入りがハイレ
ベルになるとANDゲート3の3入力がハイレベ
ルとなつて第2図トに示すようにこのゲート3の
出力はハイレベルとなる。従つてサイクルT2の
クロツクCL1及びサイクルT3のクロツクCL2
にてこれがインバータ5の出力側に現れるので、
その結果信号IECはサイクルT3にてハイレベル
となる。
The rising edge of the clock CL2 defines the starting point of the instruction execution cycle, and the falling edge of the clock CL1 defines the ending point. Assuming that the BANK instruction is executed in cycle T1, as shown in FIG.
Therefore, even if an interrupt request is made in the cycle T1 and the signal IRQ is at a high level, the output signal IEC remains at a low level as shown in FIG. When the cycle T2 is entered, the three inputs of the AND gate 3 become high level, and the output of this gate 3 becomes high level as shown in FIG. Therefore, clock CL1 of cycle T2 and clock CL2 of cycle T3
This appears on the output side of inverter 5, so
As a result, the signal IEC becomes high level in cycle T3.

これによりBANK命令の次の、バツクグラウ
ンドレジスタに対する書込,読出等を意味する命
令はサイクルT2にて実行され、それが終了した
サイクルT3にて割込が実行されることになる。
As a result, the next instruction after the BANK instruction, which means writing, reading, etc. to the background register, is executed in cycle T2, and an interrupt is executed in cycle T3 when the instruction is completed.

〔効果〕〔effect〕

以上のように本発明によれば本来連続的に実行
されるべき命令、つまりバツクグラウンドレジス
タを指定するBANK命令と、指定したバツクグ
ラウンドレジスタに関する処理の命令(書込命
令,読出命令等)が割込処理に先立つて実行され
るので前述の如き不都合がなくなり、円滑な処理
が可能となる。
As described above, according to the present invention, instructions that should originally be executed continuously, that is, the BANK instruction that specifies a background register, and instructions for processing related to the specified background register (write instructions, read instructions, etc.) are divided. Since it is executed prior to the loading process, the above-mentioned inconvenience is eliminated and smooth processing is possible.

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

第1図は本発明のマイクロコンピユータの要部
たる割込実行制御信号作成回路のロジツク図、第
2図はその動作説明のためのタイムチヤートであ
る。 1,2……インバータ、3……ANDゲート、
4,5……クロツクドインバータ。
FIG. 1 is a logic diagram of an interrupt execution control signal generating circuit which is a main part of the microcomputer of the present invention, and FIG. 2 is a time chart for explaining its operation. 1, 2...Inverter, 3...AND gate,
4, 5...Clocked inverter.

Claims (1)

【特許請求の範囲】[Claims] 1 バツクグラウンドレジスタの指定を行えるよ
うにしたマイクロコンピユータにおいて、前記バ
ツクグラウンドレジスタを指定する第1命令の実
行サイクル中に発生する信号に基づき、その内部
又は外部から発生した割り込み要求信号の通過を
禁止するゲート回路と、該ゲート手段の出力を命
令実行サイクルの期間内に取り込み次の命令実行
サイクルで出力する遅延回路とを備え、前記第1
命令の実行サイクル中に発生した割り込みが、前
記第1命令に続く前記バツクグラウンドレジスタ
を使用する第2命令の実行終了迄保留されること
を特徴とするマイクロコンピユータ。
1 In a microcomputer that is capable of specifying a background register, prohibiting the passage of an interrupt request signal generated internally or externally based on a signal generated during the execution cycle of the first instruction specifying the background register. a delay circuit that captures the output of the gate means within an instruction execution cycle and outputs it in the next instruction execution cycle;
A microcomputer characterized in that an interrupt that occurs during an instruction execution cycle is suspended until execution of a second instruction that uses the background register following the first instruction is completed.
JP5265685A 1985-03-15 1985-03-15 Microcomputer Granted JPS61211745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5265685A JPS61211745A (en) 1985-03-15 1985-03-15 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5265685A JPS61211745A (en) 1985-03-15 1985-03-15 Microcomputer

Publications (2)

Publication Number Publication Date
JPS61211745A JPS61211745A (en) 1986-09-19
JPH0452972B2 true JPH0452972B2 (en) 1992-08-25

Family

ID=12920899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5265685A Granted JPS61211745A (en) 1985-03-15 1985-03-15 Microcomputer

Country Status (1)

Country Link
JP (1) JPS61211745A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4847765A (en) * 1986-12-22 1989-07-11 General Electric Company Hybrid interrupt handling for computer-controlled imaging system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5720864A (en) * 1980-07-11 1982-02-03 Hitachi Ltd Vector processor

Also Published As

Publication number Publication date
JPS61211745A (en) 1986-09-19

Similar Documents

Publication Publication Date Title
JPS6019028B2 (en) information processing equipment
JPH0452972B2 (en)
KR940009377B1 (en) Information processing device
JPS629926B2 (en)
EP0305527A1 (en) High-speed floating point arithmetic unit
JPS6070550A (en) Disc device
KR920006612B1 (en) Information processing device
JPH01134627A (en) Instruction extending system for microprocessor
JPS6230452B2 (en)
JPH0412851B2 (en)
JPS6119065B2 (en)
JPH0559449B2 (en)
JPS5954091A (en) Electronic computer
JP2508979B2 (en) Bus controller
JPS59161750A (en) Break control system of debugging device
JPH09101891A (en) Information processing device and sequencer for exception processing
JPH1144731A (en) Ic testing device
JPS60159958A (en) Data transfer controlling circuit
JPH0675789A (en) Information processor
JPH01255037A (en) Electronic computer
JPH0223457A (en) Input/output control circuit
JPH04205425A (en) Data processor and its data processing method
JPH02289011A (en) Information processor
JPS63304330A (en) Automatic production circuit for nmi
JPS6231439A (en) Instruction reprocessing control system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term