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
JPS638503B2 - - Google Patents
[go: Go Back, main page]

JPS638503B2 - - Google Patents

Info

Publication number
JPS638503B2
JPS638503B2 JP12720883A JP12720883A JPS638503B2 JP S638503 B2 JPS638503 B2 JP S638503B2 JP 12720883 A JP12720883 A JP 12720883A JP 12720883 A JP12720883 A JP 12720883A JP S638503 B2 JPS638503 B2 JP S638503B2
Authority
JP
Japan
Prior art keywords
interrupt
bus
signal
control circuit
processing
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
JP12720883A
Other languages
Japanese (ja)
Other versions
JPS6019270A (en
Inventor
Hideyo Kanayama
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 JP12720883A priority Critical patent/JPS6019270A/en
Publication of JPS6019270A publication Critical patent/JPS6019270A/en
Publication of JPS638503B2 publication Critical patent/JPS638503B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (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 [Field of the Invention] The present invention relates to a microcomputer, and more particularly to a microcomputer equipped with a bus release function and an interrupt control function.

〔従来技術〕[Prior art]

近年、集積回路技術の進歩に伴い、同一シリコ
ン基板上に、記憶装置や、割込制御、バス開放制
御、タイマカウンタシリアル送受信機能等、いろ
いろな機能を備えたマイクロコンピユータが出現
し、各種制御機器等、いろいろな用途に使用され
るようになつている。このような制御機器の処理
能力を向上させるため、複数個のマイクロコンピ
ユータを使用する、いわゆるマルチプロセツサシ
ステムが知られている。このマルチプロセツサシ
ステムにおいては、一部の記憶装置や周辺装置を
マイクロコンピユータ間で共有する構成が一般的
である。この場合、複数個のマイクロコンピユー
タが共通なバスを介して、共有の記憶装置や周辺
装置をアクセスするために、これらの使用に関し
て、マイクロコンピユータ間で競合が生じる。こ
のため、バスを使用する場合、他のマイクロコン
ピユータにバス開放要求信号を出力し、バスの使
用権を得たことを確認してからバスの使用を開始
する。一方、バス開放要求信号を受けたマイクロ
コンピユータは、処理の途中の適当なタイミング
で停止し、バスを開放し、他のマイクロコンピユ
ータにバス使用許可信号を出力する。
In recent years, with the advancement of integrated circuit technology, microcomputers have appeared that are equipped with various functions on the same silicon substrate, such as storage devices, interrupt control, bus release control, timer counter serial transmission and reception functions, and various control devices. It has come to be used for a variety of purposes. In order to improve the processing capacity of such control equipment, so-called multiprocessor systems are known that use a plurality of microcomputers. In this multiprocessor system, a configuration in which some storage devices and peripheral devices are shared between microcomputers is common. In this case, since a plurality of microcomputers access shared storage devices and peripheral devices via a common bus, competition occurs among the microcomputers regarding the use of these devices. Therefore, when using the bus, it outputs a bus release request signal to other microcomputers, confirms that it has obtained the right to use the bus, and then starts using the bus. On the other hand, the microcomputer that receives the bus release request signal stops at an appropriate timing during processing, releases the bus, and outputs a bus use permission signal to other microcomputers.

また、前述のようなマイクロコンピユータは、
通常、割込制御回路を備え、一定時間ごとに
CPU(中央処理装置)に割込要求信号を出力し、
定められた処理を実行させたり、外部からの割込
要求信号により一定の処理を実行するいわゆる割
込処理が知られている。これらの割込はCPUか
らの命令でマスク可能なマスカブル割込と、マス
ク不可能なノンマスカブル割込とがある。後者の
ノンマスカブル割込は、通常、外部機器の異常や
プログラムの暴走等の非常時の最優先割込として
用いられる。
In addition, the microcomputer mentioned above is
Usually, it is equipped with an interrupt control circuit, and
Outputs an interrupt request signal to the CPU (central processing unit),
2. Description of the Related Art So-called interrupt processing is known in which a predetermined process is executed or a certain process is executed in response to an interrupt request signal from the outside. These interrupts include maskable interrupts that can be masked by instructions from the CPU, and non-maskable interrupts that cannot be masked. The latter non-maskable interrupt is normally used as a top priority interrupt in case of an emergency such as an abnormality in an external device or a runaway program.

従来のマイクロコンピユータにおいては、前述
のノンマスカブルの割込処理実行中であつても、
バス開放要求信号により、処理の途中の適当なタ
イミングで停止してしまうため、非常時の最優先
割込処理が中断してしまい非常時の対策が十分に
できなくなるという欠点がある。
In conventional microcomputers, even when the above-mentioned non-maskable interrupt processing is being executed,
Since the bus release request signal causes the process to stop at an appropriate timing during the process, there is a drawback that the highest priority interrupt process in an emergency is interrupted, making it impossible to take sufficient measures in an emergency.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、かかる従来技術の欠点を除去
し、バス開放機能を、最優先処理中は抑制するこ
とのできる、汎用性の高いマイクロコンピユータ
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a highly versatile microcomputer that can eliminate the drawbacks of the prior art and suppress the bus release function during top-priority processing.

〔発明の構成〕[Structure of the invention]

本発明のマイクロコンピユータは、割込制御回
路と、該割込制御回路からの開放制御信号により
その機能が抑制されるバス開放制御回路とを含む
ことから構成される。
The microcomputer of the present invention includes an interrupt control circuit and a bus release control circuit whose function is suppressed by a release control signal from the interrupt control circuit.

〔実施例の説明〕[Explanation of Examples]

以下、本発明の実施例を図面を用いて詳細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の基本的な構成を示すブロツク
図である。
FIG. 1 is a block diagram showing the basic configuration of the present invention.

1は本発明のマイクロコンピユータで、割込制
御回路2と、この割込制御回路2からの開放制御
信号5によりその機能が抑制されるバス開放制御
回路3とを含んで構成されている。なお、4は
CPU、6は割込要求信号、7はバス開放要求信
号、8はバス開放許可信号である。
Reference numeral 1 designates a microcomputer according to the present invention, which includes an interrupt control circuit 2 and a bus release control circuit 3 whose function is suppressed by a release control signal 5 from the interrupt control circuit 2. Furthermore, 4 is
6 is an interrupt request signal, 7 is a bus release request signal, and 8 is a bus release permission signal.

第2図は本発明の一実施例の要部を示すブロツ
ク図である。
FIG. 2 is a block diagram showing essential parts of an embodiment of the present invention.

21は割込要求信号6のエツジ検出回路、22
は割込要求信号6を一時保留する割込保留回路、
23及び28はセツトリセツト型フリツプフロツ
プ(以下RS−F/Fと記す。)、24はD−F/
F、25,26はアンドゲート、27はインバー
タ、29はタイミング制御回路である。
21 is an edge detection circuit for the interrupt request signal 6; 22
is an interrupt holding circuit that temporarily holds the interrupt request signal 6;
23 and 28 are set-reset type flip-flops (hereinafter referred to as RS-F/F), and 24 is a D-F/F/F/F/F.
F, 25 and 26 are AND gates, 27 is an inverter, and 29 is a timing control circuit.

次に、第3図のタイムチヤートを用いて、本実
施例の動作を説明をする。
Next, the operation of this embodiment will be explained using the time chart shown in FIG.

割込制御回路2に、第3図に示す割込要求信号
6が入力されると、エツジ検出回路21の出力は
ワンシヨツトパルス信号10を出力し、RS−
F/F23をセツトする。これにより開放制御信
号5はハイレベルとなり、アンドゲート25は禁
止され、バス開放要求信号7がハイレベルとなつ
ても、アンドゲート26の出力はロウレベル、従
つて、RS−F/F28はセツトされないので、
バス開放許可信号8はロウレベルのままで、バス
を開放しない。
When the interrupt request signal 6 shown in FIG. 3 is input to the interrupt control circuit 2, the edge detection circuit 21 outputs a one-shot pulse signal 10, and the RS-
Set F/F23. As a result, the open control signal 5 becomes high level, the AND gate 25 is prohibited, and even if the bus release request signal 7 becomes high level, the output of the AND gate 26 is low level, and therefore, the RS-F/F 28 is not set. So,
The bus release permission signal 8 remains at a low level and the bus is not released.

一方、割込処理の実行は、CPU4の実行中の
一命令が終了するまで、割込保留回路22により
保留される。実行中の命令が終了すると、割込処
理が開始され、あらかじめ定められた処理の実行
後、割込復帰命令信号9により、割込処理以前の
処理に復帰する。この時点で、RS−F/F23
は割込復帰命令信号9によりリセツトされ、割込
制御信号5がロウレベルになるので、アンドゲー
ト25が有効となり、CPU4の定められたタイ
ミングで、タイミング回路29を介して出力され
るタイミング信号11により、アンドゲート26
の出力はハイレベルとなり、RS−F/F28が
セツトされるので、バス開放許可信号8がハイレ
ベルとなる。
On the other hand, execution of the interrupt process is suspended by the interrupt suspension circuit 22 until one instruction being executed by the CPU 4 is completed. When the instruction being executed ends, interrupt processing is started, and after execution of predetermined processing, an interrupt return command signal 9 returns to the processing prior to the interrupt processing. At this point, RS-F/F23
is reset by the interrupt return command signal 9, and the interrupt control signal 5 becomes low level, so the AND gate 25 is enabled and the timing signal 11 outputted via the timing circuit 29 at the predetermined timing of the CPU 4 is activated. , and gate 26
Since the output of the bus becomes high level and the RS-F/F 28 is set, the bus release permission signal 8 becomes high level.

従つて、本実施例によると、最優先のノンマス
カブル割込の処理中には、バス開放要求を抑制す
ることが可能となるため、割込処理を優先させる
ことが可能で処理の高速化が実現できる。
Therefore, according to this embodiment, it is possible to suppress bus release requests during processing of the highest priority non-maskable interrupt, so it is possible to prioritize interrupt processing and speed up processing. can.

第4図は、本発明の他の実施例の要部を示すブ
ロツク図である。
FIG. 4 is a block diagram showing the main parts of another embodiment of the present invention.

本実施例は、第2図に示した実施例の中の割込
制御回路2のRS−F/F23から出力される開
放制御信号5を、アンドゲート30により、
CPU4(第1図参照)からの命令信号12,1
3でセツトリセツトが可能な、RS−F/F31
の出力との論理積をとり開放制御信号5′として、
バス開放制御回路3へ出力されるようにしたもの
である。
In this embodiment, the open control signal 5 output from the RS-F/F 23 of the interrupt control circuit 2 in the embodiment shown in FIG.
Command signal 12, 1 from CPU 4 (see Figure 1)
RS-F/F31 that can be reset with 3 steps
The logical AND with the output of is taken as the open control signal 5',
The signal is output to the bus release control circuit 3.

従つて、本実施例によると、RS−F/F23
の出力、すなわち、開放制御信号5を有効にする
か否かが可能になり、割込処理中のバス開放機能
を許可するか否かを切換えることができる。
Therefore, according to this embodiment, RS-F/F23
It becomes possible to enable or disable the output of the bus release control signal 5, that is, the release control signal 5, and it is possible to switch whether or not to permit the bus release function during interrupt processing.

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

以上の説明で明らかなように、本発明によれ
ば、前述の構成をとることにより、バス開放回路
の機能を、最優先割込処理中は抑制することが可
能で、非常事態等の処置に非常に有効である。ま
た、割込処理よりも、バス開放機能を優先させる
ことも可能で、非常に汎用性の高いマイクロコン
ピユータを提供することができる。
As is clear from the above description, according to the present invention, by adopting the above-described configuration, it is possible to suppress the function of the bus open circuit during processing of the highest priority interrupt, which is useful for dealing with emergencies, etc. Very effective. It is also possible to give priority to the bus release function over interrupt processing, making it possible to provide a highly versatile microcomputer.

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

第1図は本発明の基本的な構成を示すブロツク
図、第2図は本発明の一実施例の要部を示すブロ
ツク図、第3図は第2図の実施例の動作を説明す
るためのタイムチヤート、第4図は本発明の他の
実施例の要部を示すブロツク図である。 1……マイクロコンピユータ、2……割込制御
回路、3……バス開放制御回路、4……CPU、
5,5′,6〜13……信号、21……エツジ検
出回路、22……割込保留回路、23,24,2
8,31……フリツプフロツプ、25,26,3
0……アンドゲート、27……インバータ、29
……タイミング制御回路。
FIG. 1 is a block diagram showing the basic configuration of the present invention, FIG. 2 is a block diagram showing essential parts of an embodiment of the present invention, and FIG. 3 is for explaining the operation of the embodiment of FIG. 2. FIG. 4 is a block diagram showing the main parts of another embodiment of the present invention. 1... Microcomputer, 2... Interrupt control circuit, 3... Bus release control circuit, 4... CPU,
5, 5', 6-13... Signal, 21... Edge detection circuit, 22... Interrupt pending circuit, 23, 24, 2
8, 31...flip flop, 25, 26, 3
0...AND gate, 27...Inverter, 29
...Timing control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 割込制御回路と、該割込制御回路からの開放
制御信号によりその機能が抑制されるバス開放制
御回路とを含むことを特徴とするマイクロコンピ
ユータ。
1. A microcomputer comprising an interrupt control circuit and a bus release control circuit whose function is suppressed by a release control signal from the interrupt control circuit.
JP12720883A 1983-07-13 1983-07-13 Microcomputer Granted JPS6019270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12720883A JPS6019270A (en) 1983-07-13 1983-07-13 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12720883A JPS6019270A (en) 1983-07-13 1983-07-13 Microcomputer

Publications (2)

Publication Number Publication Date
JPS6019270A JPS6019270A (en) 1985-01-31
JPS638503B2 true JPS638503B2 (en) 1988-02-23

Family

ID=14954393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12720883A Granted JPS6019270A (en) 1983-07-13 1983-07-13 Microcomputer

Country Status (1)

Country Link
JP (1) JPS6019270A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62137084A (en) * 1985-12-10 1987-06-19 松下電工株式会社 Electric razor
JPH0216667A (en) * 1988-07-05 1990-01-19 Yokogawa Electric Corp Processor system

Also Published As

Publication number Publication date
JPS6019270A (en) 1985-01-31

Similar Documents

Publication Publication Date Title
EP0497380B1 (en) Microcomputer having a watchdog timer
US5560018A (en) Providing external interrupt serialization compatibility in a multiprocessing environment for software written to run in a uniprocessor environment
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
JP2978539B2 (en) Data transfer control device
JPH0468461A (en) Resource management system
JPS638503B2 (en)
US6023743A (en) System and method for arbitrating interrupts on a daisy chained architected bus
JPS61226843A (en) Device for detecting interruption abnormality
JPS5998256A (en) Interruption controller
JPS62205441A (en) Microcomputer
JPS6362013B2 (en)
JP2578267B2 (en) Microcomputer system
JP2848681B2 (en) Exclusive control circuit of multiprocessor system
JPS5672753A (en) Selective processor for occupation of common bus line
JPS5840216B2 (en) Test and set method
JP2837893B2 (en) Microcomputer device
JPH08153018A (en) Semiconductor system
JPH02166549A (en) Shared memory controller
JPH0454664A (en) Controller having plural cpus
JPH047641A (en) Interruption control device
JP2846999B2 (en) Microprocessor
JPS6343560Y2 (en)
JPH05298237A (en) Access control device
JPH0256662A (en) Memory protecting system
JPH01309138A (en) In-circuit emulator