JP2008269548A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
JP2008269548A
JP2008269548A JP2007174857A JP2007174857A JP2008269548A JP 2008269548 A JP2008269548 A JP 2008269548A JP 2007174857 A JP2007174857 A JP 2007174857A JP 2007174857 A JP2007174857 A JP 2007174857A JP 2008269548 A JP2008269548 A JP 2008269548A
Authority
JP
Japan
Prior art keywords
circuit
processing
factors
interrupt
factor
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.)
Withdrawn
Application number
JP2007174857A
Other languages
Japanese (ja)
Inventor
Hirofumi Terasawa
宏文 寺澤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007174857A priority Critical patent/JP2008269548A/en
Priority to US12/053,194 priority patent/US20080244138A1/en
Publication of JP2008269548A publication Critical patent/JP2008269548A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Bus Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problems wherein an existing microcomputer involves a large circuit scale, high costs, a high power consumption and unbalanced loads of interrupt handling between processing circuits. <P>SOLUTION: A microcomputer includes a plurality of processing circuits, a factor register circuit, a processing circuit selection register circuit, a mask circuit, a priority circuit and a processing circuit selection circuit. The priority circuit outputs an interrupt signal, a vector signal and a selection signal. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数の要因に起因する複数の割込処理を行うべき複数の処理回路(例えば、CPU)を含むマイクロコンピュータに関する。   The present invention relates to a microcomputer including a plurality of processing circuits (for example, CPUs) to perform a plurality of interrupt processes caused by a plurality of factors.

図6に図示された従来のマイクロコンピュータM100では、要因F1〜Fiのうちのいずれか(例えば、要因F1)が発生すると、要因F1〜Fiを割り当てられた第1の割込コントローラ100(要因レジスタ回路110、マスク回路120、プライオリティ回路130からなる。)は、第1の処理回路Aに、要因F1に対応する割込処理を実行すべき旨を示す割込信号、及び、当該割込処理の内容が格納されている、第1の記憶回路300上の領域のアドレス(先頭アドレス)を示すベクター信号を出力する。第1の処理回路Aは、当該割込信号及びベクター信号を受けると、前記第1の記憶回路300上における前記領域に格納されている、要因F1のための割込処理の内容に従って、当該割込処理を実行する。   In the conventional microcomputer M100 shown in FIG. 6, when any of the factors F1 to Fi (for example, the factor F1) occurs, the first interrupt controller 100 (factor register) to which the factors F1 to Fi are assigned. The circuit 110, the mask circuit 120, and the priority circuit 130.) the first processing circuit A, the interrupt signal indicating that the interrupt processing corresponding to the factor F1 should be executed, and the interrupt processing. A vector signal indicating the address (start address) of the area on the first memory circuit 300 where the contents are stored is output. When the first processing circuit A receives the interrupt signal and the vector signal, the first processing circuit A performs the interrupt according to the contents of the interrupt processing for the factor F1 stored in the area on the first storage circuit 300. Execute the included process.

上記した従来のマイクロコンピュータM100では、上記したと同様にして、第2の割込コントローラ200、第2の処理回路B、及び、第2の記憶回路400が協働して、要因F(i+1)〜Fnに対応する割込処理を実行する。   In the conventional microcomputer M100 described above, in the same manner as described above, the second interrupt controller 200, the second processing circuit B, and the second memory circuit 400 cooperate to cause a factor F (i + 1). Interrupt processing corresponding to ~ Fn is executed.

しかしながら、上記した従来のマイクロコンピュータM100では、二つの処理回路A、Bに対し、二つの割込コントローラ、即ち、第1、第2の割込コントローラ100、200が必要であることから、回路規模が大きくなり、その結果、高価及び消費電力の増大となるという問題があった。   However, since the conventional microcomputer M100 described above requires two interrupt controllers, that is, the first and second interrupt controllers 100 and 200, for the two processing circuits A and B, the circuit scale. As a result, there is a problem that the cost and the power consumption increase.

また、要因F1〜Fiが第1の割込コントローラ100に固定的に(例えば、配線により)割り当てられており、また、要因F(i+1)〜Fnが第2の割込コントローラ200に固定的に割り当てられていることから、第1の処理回路Aによる割込処理の負荷と、第2の処理回路Bによる割込処理の負荷とが必ずしも均衡にならないおそれがあった。   The factors F1 to Fi are fixedly assigned to the first interrupt controller 100 (for example, by wiring), and the factors F (i + 1) to Fn are fixedly assigned to the second interrupt controller 200. Since it is assigned, the load of the interrupt process by the first processing circuit A and the load of the interrupt process by the second processing circuit B may not necessarily be balanced.

本発明に係る第1のマイクロコンピュータは、上記した課題を解決すべく、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、一の要因が発生したときに、前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、前記一の要因に対応する一の割込処理の内容が規定された領域を示すベクター信号、及び、前記一の要因に対応する一の割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力する前記処理回路選択レジスタ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、を含む。
The first microcomputer according to the present invention is to solve the above-described problems.
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. An interrupt signal indicating that an interrupt process should be executed to the plurality of processing circuits when one of the first plurality of factors occurs; A vector signal indicating an area in which the content of one interrupt process corresponding to one factor is defined, and a processing circuit that should execute the one interrupt process corresponding to the one factor. The processing circuit selection register circuit for outputting a first selection signal;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal. .

本発明に係る第2のマイクロコンピュータは、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、一の要因が発生したときに、前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記一の要因に対応する一の割込処理の内容が規定された領域を示すベクター信号を出力する前記処理回路選択レジスタ回路と、
前記ベクター信号に応答して、前記一の要因に対応する一の割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力するマルチプレクサ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、含む。
A second microcomputer according to the present invention includes:
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. An interrupt signal indicating that an interrupt process should be executed to the plurality of processing circuits when one of the first plurality of factors occurs; and The processing circuit selection register circuit for outputting a vector signal indicating a region in which the content of one interrupt process corresponding to the one factor is defined;
In response to the vector signal, a multiplexer circuit that outputs a first selection signal indicating which processing circuit should execute one interrupt process corresponding to the one factor;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal;

上記した本発明に係る第1、第2のマイクロコンピュータによれば、前記処理回路選択回路が単独で、又は、マルチプレクサ回路及び前記処理回路選択回路が協働して、前記複数の処理回路に、前記割込信号、ベクター信号、及び前記第2の選択信号を出力することにより、従来のような複数の割込コントローラを用いることなく、前記複数の処理回路に、前記割込処理を実行させることができ、この結果、当該マイクロコンピュータの回路規模が従来に比して小さくなり、安価及び低消費電力にすることが可能となる。   According to the first and second microcomputers according to the present invention described above, the processing circuit selection circuit is independent, or the multiplexer circuit and the processing circuit selection circuit cooperate to provide the plurality of processing circuits. By outputting the interrupt signal, the vector signal, and the second selection signal, the plurality of processing circuits can execute the interrupt process without using a plurality of conventional interrupt controllers. As a result, the circuit scale of the microcomputer is smaller than that of the conventional one, and it becomes possible to reduce the cost and power consumption.

加えて、前記複数の要因に対応する割込処理を、前記複数の処理回路のいずれに割り当てるかを、前記処理回路選択レジスタ回路により行うことができることから、複数の処理回路間での割込処理の負荷を均衡化することが可能となる。   In addition, since the processing circuit selection register circuit can assign to which of the plurality of processing circuits the interrupt processing corresponding to the plurality of factors, interrupt processing between the plurality of processing circuits. Can be balanced.

本発明に係る第3のマイクロコンピュータは、上記した課題を解決すべく、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
(1)前記第1の複数の要因のうち、前記マスク回路により受付が許可されている前記第2の複数の要因に該当する少なくとも二つ以上の要因が発生したときに、当該二つ以上の要因に対応する二つ以上の割込処理を行うべき優先度を予め規定しているプライオリティ回路であって、(2)(2a)前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記優先度が最も高い割込処理の内容が規定された領域を示すベクター信号を出力し、かつ、(2b)前記処理回路選択レジスタ回路に規定されている前記複数の関係に基づき、前記優先度が最も高い割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力する前記プライオリティ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、を含む。
The third microcomputer according to the present invention is to solve the above-described problems.
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. A processing circuit selection register circuit;
A mask circuit for permitting acceptance of a second plurality of factors of the first plurality of factors and prohibiting acceptance of other remaining factors;
(1) Among the first plurality of factors, when at least two or more factors corresponding to the second plurality of factors permitted to be accepted by the mask circuit are generated, the two or more factors A priority circuit preliminarily defining a priority level at which two or more interrupt processing corresponding to a factor is to be performed, and (2) (2a) that the plurality of processing circuits should execute interrupt processing. And a vector signal indicating a region in which the content of the interrupt processing having the highest priority is defined, and (2b) the plurality of the plurality of rules defined in the processing circuit selection register circuit Based on the relationship, the priority circuit that outputs a first selection signal indicating which processing circuit should execute the highest priority interrupt processing;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal. .

本発明に係る第4のマイクロコンピュータは、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
(1)前記第1の複数の要因のうち、前記マスク回路により受付が許可されている前記第2の複数の要因に該当する少なくとも二つ以上の要因が発生したときに、当該二つ以上の要因に対応する二つ以上の割込処理を行うべき優先度を予め規定しているプライオリティ回路であって、(2)前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記優先度が最も高い割込処理の内容が規定された領域を示すベクター信号を出力する前記プライオリティ回路と、
前記ベクター信号に応答して、前記優先度が最も高い割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力するマルチプレクサ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、を含む。
A fourth microcomputer according to the present invention includes:
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. A processing circuit selection register circuit;
A mask circuit for permitting acceptance of a second plurality of factors of the first plurality of factors and prohibiting acceptance of other remaining factors;
(1) Among the first plurality of factors, when at least two or more factors corresponding to the second plurality of factors permitted to be accepted by the mask circuit are generated, the two or more factors A priority circuit predefining a priority level at which two or more interrupt processing corresponding to a factor is to be performed, and (2) an interrupt indicating that the plurality of processing circuits should be executed The priority circuit for outputting a signal and a vector signal indicating an area in which the content of the interrupt processing having the highest priority is defined;
In response to the vector signal, a multiplexer circuit that outputs a first selection signal indicating which processing circuit is to execute the highest priority interrupt processing;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal. .

上記した本発明に係る第3、第4のマイクロコンピュータによれば、前記プライオリティ回路及び前記処理回路選択回路が協働して、又は、前記プライオリティ回路、マルチプレクサ回路及び前記処理回路選択回路が協働して、前記複数の処理回路に、前記割込信号、ベクター信号、及び前記第2の選択信号を出力することにより、従来のような複数の割込コントローラを用いることなく、前記複数の処理回路に、前記割込処理を実行させることができ、この結果、当該マイクロコンピュータの回路規模が従来に比して小さくなり、安価及び低消費電力にすることが可能となる。   According to the third and fourth microcomputers of the present invention described above, the priority circuit and the processing circuit selection circuit cooperate or the priority circuit, the multiplexer circuit and the processing circuit selection circuit cooperate. Then, by outputting the interrupt signal, the vector signal, and the second selection signal to the plurality of processing circuits, the plurality of processing circuits can be used without using a plurality of conventional interrupt controllers. In addition, the interrupt processing can be executed. As a result, the circuit scale of the microcomputer is smaller than that of the conventional one, and it is possible to reduce the cost and power consumption.

加えて、前記複数の要因に対応する割込処理を、前記複数の処理回路のいずれに割り当てるかを、前記処理回路選択レジスタ回路により行うことができることから、複数の処理回路間での割込処理の負荷を均衡化することが可能となる。   In addition, since the processing circuit selection register circuit can assign to which of the plurality of processing circuits the interrupt processing corresponding to the plurality of factors, interrupt processing between the plurality of processing circuits. Can be balanced.

本発明に係るマイクロコンピュータの実施例について図面を参照して説明する。   Embodiments of a microcomputer according to the present invention will be described with reference to the drawings.

《実施例》
図1は、実施例のマイクロコンピュータの構成を示す。実施例のマイクロコンピュータM10は、図1に示されるように、割込コントローラ10と、CPU選択回路20と、第1の処理回路(CPU)Aと、第2の処理回路(CPU)Bと、第1の記憶回路30と、第2の記憶回路40とを含む。
"Example"
FIG. 1 shows a configuration of a microcomputer according to the embodiment. As shown in FIG. 1, the microcomputer M10 according to the embodiment includes an interrupt controller 10, a CPU selection circuit 20, a first processing circuit (CPU) A, a second processing circuit (CPU) B, A first memory circuit 30 and a second memory circuit 40 are included.

割込コントローラ10は、要因レジスタ回路11と、CPU選択レジスタ回路12と、マスク回路13と、プライオリティ回路14とを有する。   The interrupt controller 10 includes a factor register circuit 11, a CPU selection register circuit 12, a mask circuit 13, and a priority circuit 14.

要因レジスタ回路11は、図2(A)に示されるように、複数のレジスタ11(1)〜11(n)を有し、外部から、複数の要因(例えば、ボタンの押し下げ、温度の検出等(いずれも図示せず。))F1〜Fnが発生した旨を示す複数の要因発生信号S(F1)〜S(Fn)の入力を受ける。   As shown in FIG. 2A, the factor register circuit 11 has a plurality of registers 11 (1) to 11 (n), and a plurality of factors (for example, button depression, temperature detection, etc.) from the outside. (None are shown.)) A plurality of factor generation signals S (F1) to S (Fn) indicating that F1 to Fn are generated are received.

以下では、説明及び理解を容易にすべく、基本的に、要因F1及びF2が発生したことを想定する。   In the following, for ease of explanation and understanding, it is basically assumed that the factors F1 and F2 have occurred.

要因レジスタ回路11では、例えば、要因F1が発生した旨を示す要因発生信号S(F1)が入力されると、当該要因発生信号S(F1)の入力を契機に、要因レジスタ11(1)は、「あり」(未解決)に設定(セット)される。同様にして、要因F2が発生した旨を示す要因発生信号S(F2)が入力されると、当該要因発生信号S(F2)の入力を契機に、要因レジスタ11(2)は、「あり」に設定される。   In the factor register circuit 11, for example, when a factor generation signal S (F1) indicating that the factor F1 has occurred is input, the factor register 11 (1) is triggered by the input of the factor generation signal S (F1). , “Present” (unresolved) is set (set). Similarly, when the factor generation signal S (F2) indicating that the factor F2 has occurred is input, the factor register 11 (2) is set to “Yes” when the factor generation signal S (F2) is input. Set to

「あり」に設定された要因レジスタ11(1)は、後述されるように、第1の処理回路Aが、要因F1に対応する割込処理を完了したとき、当該第1の処理回路Aによって「なし」(解決済み)に設定(クリア)される。同様にして、「あり」に設定された要因レジスタ11(2)は、後述されるように、第2の処理回路Bが、要因F2に対応する割込処理を完了したとき、当該第2の処理回路Bによって、「なし」に設定される。   As will be described later, the factor register 11 (1) set to “present” causes the first processing circuit A to execute the interrupt processing corresponding to the factor F1 when the first processing circuit A completes the interrupt processing corresponding to the factor F1. It is set (cleared) to “None” (solved). Similarly, when the second processing circuit B completes the interrupt process corresponding to the factor F2, the factor register 11 (2) set to “present”, as will be described later, The processing circuit B sets “none”.

CPU選択レジスタ回路12は、『処理回路選択レジスタ回路』であり、図2(B)に示されるように、要因F1〜Fnと、当該要因F1〜Fnを処理すべきCPU(第1の処理回路A、または、第2の処理回路B)、正確には、当該要因F1〜Fnに対応する割込処理を実行すべきCPUとの対応関係を予め規定している。CPU選択レジスタ回路12は、例えば、要因F1が発生したとき、当該要因F1のための割込処理を第1の処理回路Aが行うべき旨を規定しており、また、要因F2が発生したとき、当該要因F2のための割込処理を第2の処理回路Bが行うべき旨を規定している。   The CPU selection register circuit 12 is a “processing circuit selection register circuit”, and as shown in FIG. 2B, the factors F1 to Fn and the CPU (first processing circuit) that should process the factors F1 to Fn. A or the second processing circuit B), precisely, the correspondence relationship with the CPU that should execute the interrupt processing corresponding to the factors F1 to Fn is defined in advance. For example, when the factor F1 occurs, the CPU selection register circuit 12 defines that the first processing circuit A should perform an interrupt process for the factor F1, and when the factor F2 occurs Stipulates that the second processing circuit B should perform the interrupt processing for the factor F2.

マスク回路13は、図2(C)に示されるように、要因F1〜Fnの許可/禁止、より詳しくは、要因F1〜Fnに対応する割込処理を許可するか禁止するかを予め規定している。マスク回路13は、例えば、要因F1、F2、F3、Fnに対応する割込処理を「許可」、「許可」、「禁止」、「禁止」する旨をそれぞれ規定している。   As shown in FIG. 2C, the mask circuit 13 predefines whether to permit / inhibit the factors F1 to Fn, more specifically, whether to permit or prohibit the interrupt processing corresponding to the factors F1 to Fn. ing. For example, the mask circuit 13 defines that the interrupt processing corresponding to the factors F1, F2, F3, and Fn is “permitted”, “permitted”, “prohibited”, and “prohibited”, respectively.

例えば、要因F1、要因F2、要因F3が発生すると、要因F1に対応する割込処理、及び、要因F2に対応意する割込処理が「許可」されていることから、その結果として、前者の割込処理は、第1の処理回路Aにより実行されことが可能であり、また、後者の割込処理は、第2の処理回路Bにより実行されることが可能である。対照的に、要因F3に対応する割込処理が「禁止」されていることから、当該割込処理は、当該割込処理を本来実行すべき第2の処理回路B(図2(B)に図示。)によってであっても実行されることは無い。   For example, when the factor F1, the factor F2, and the factor F3 are generated, the interrupt processing corresponding to the factor F1 and the interrupt processing corresponding to the factor F2 are “permitted”. The interrupt process can be executed by the first processing circuit A, and the latter interrupt process can be executed by the second processing circuit B. In contrast, since the interrupt process corresponding to the factor F3 is “prohibited”, the interrupt process is executed by the second processing circuit B (FIG. 2B) that should execute the interrupt process. Even if it is shown), it is not executed.

プライオリティ回路14は、図2(D)に示されるように、要因F1〜Fn、正確には、要因F1〜Fnに対応する割込処理のプライオリティ(優先順位)を規定している。プライオリティ回路14は、例えば、要因F1、F2に対応する割込処理のプライオリティが、それぞれ、「極高」、「高」である旨を規定している。   As shown in FIG. 2D, the priority circuit 14 defines the priority (priority order) of interrupt processing corresponding to the factors F1 to Fn, more precisely, the factors F1 to Fn. For example, the priority circuit 14 defines that the priority of interrupt processing corresponding to the factors F1 and F2 is “extremely high” and “high”, respectively.

図1に戻り、プライオリティ回路14は、要因F1〜Fnのいずれかに対応する割込処理を実行すべき旨、換言すれば、何らかの割込処理を実行する必要が生じた旨を示す割込信号Sint、当該割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svctを、第1の処理回路A及び第2の処理回路Bに出力する。プライオリティ回路14は、加えて、当該割込処理を第1の処理回路A及び第2の処理回路Bのいずれに実行させるべきかを示す第1の選択信号SselをCPU選択回路20に出力する。   Returning to FIG. 1, the priority circuit 14 indicates that an interrupt process corresponding to any of the factors F1 to Fn should be executed, in other words, an interrupt signal indicating that it is necessary to execute some interrupt process. Sint, a vector signal Svct indicating the start address of the area where the contents of the interrupt processing are stored is output to the first processing circuit A and the second processing circuit B. In addition, the priority circuit 14 outputs to the CPU selection circuit 20 a first selection signal Ssel indicating which of the first processing circuit A and the second processing circuit B should execute the interrupt processing.

より詳細には、例えば、マスク回路13により「許可」されている要因F1及び要因F2が発生したとすると、プライオリティ14回路は、CPU選択レジスタ回路12に予め規定されている、「要因F1の割込処理を第1の処理回路Aに実行させるべき旨」及び「要因F2の割込処理を第2の処理回路Bに実行させるべき旨」、並びに、プライオリティ回路14に予め規定されている「要因F1のプライオリティ『極高』」及び「要因F2のプライオリティ『高』」を参照することにより、要因F1を要因F2より優先させる、即ち、要因F1の割込処理を要因F2の割込処理より優先させるべきであり、しかも、当該要因F1の割込処理を第1の処理回路Aに実行させるべきであると判断する。当該判断の結果、第1の処理回路Aを選択すべき旨を示す選択信号SselをCPU選択回路20に出力する。   More specifically, for example, if the factor F1 and the factor F2 that are “permitted” by the mask circuit 13 occur, the priority 14 circuit determines the “factor F1 allocation” defined in the CPU selection register circuit 12 in advance. "The first processing circuit A should execute the interrupt processing" and "The factor F2 interrupt processing should be executed by the second processing circuit B", and the priority circuit 14 previously defined "factor By referencing F1 priority “extremely high” and “factor F2 priority“ high ””, factor F1 has priority over factor F2, that is, factor F1 interrupt processing has priority over factor F2 interrupt processing. In addition, it is determined that the first processing circuit A should execute the interrupt processing for the factor F1. As a result of the determination, a selection signal Ssel indicating that the first processing circuit A should be selected is output to the CPU selection circuit 20.

CPU選択回路20は、プライオリティ回路14から選択信号Sselを受けると、当該選択信号Sselが示す内容に従って、第1の処理回路Aに選択信号Ssel1を出力すること、又は、第2の処理回路Bに選択信号Ssel2を出力することを行う。CPU選択回路20は、例えば、上記したような、第1の処理回路Aを選択すべき旨を示す第1の選択信号Sselを受けると、第1の処理回路Aが選択された旨を示す選択信号Ssel1を、当該第1の処理回路Aに出力する。   Upon receiving the selection signal Ssel from the priority circuit 14, the CPU selection circuit 20 outputs the selection signal Ssel1 to the first processing circuit A according to the content indicated by the selection signal Ssel, or outputs the selection signal Ssel1 to the second processing circuit B. The selection signal Ssel2 is output. When the CPU selection circuit 20 receives, for example, the first selection signal Ssel indicating that the first processing circuit A should be selected as described above, the selection indicating that the first processing circuit A is selected. The signal Ssel1 is output to the first processing circuit A.

第1の処理回路A及び第2の処理回路Bは、要因F1〜Fnに対応する割込処理を、第1の記憶回路30及び第2の記憶回路40に格納されている、前記割込処理の内容に基づいて実行する。   The first processing circuit A and the second processing circuit B perform the interrupt processing corresponding to the factors F1 to Fn stored in the first storage circuit 30 and the second storage circuit 40, respectively. Execute based on the contents of.

例えば、第1の処理回路Aは、プライオリティ回路14から、上記したような、何らかの割込処理を実行する必要が生じた旨を示す割込信号Sint、及び、当該要因F1に対応する割込処理の内容が記憶されている、第1の記憶回路30上のアドレス「1001」を示すベクター信号Svctを受け、かつ、CPU選択回路20から、上記したような、当該第1の処理回路Aが選択された旨を示す選択信号Ssel1を受けると、第1の記憶回路30のアドレス「1001」に記憶されている、ジャンプ先のアドレス「3100」にジャンプし、当該アドレス「3100」以後に格納されている、前記要因F1に対応する割込処理の内容を実行し始める。第1の処理回路Aは、前記要因F1に対応する割込処理の実行が完了すると、要因レジスタ回路11内の要因レジスタ11(1)を「あり」から「なし」に設定(クリア)する。   For example, the first processing circuit A receives the interrupt signal Sint indicating that it is necessary to execute some interrupt processing as described above from the priority circuit 14, and the interrupt processing corresponding to the factor F1. The vector signal Svct indicating the address “1001” on the first storage circuit 30 is received, and the first processing circuit A selects from the CPU selection circuit 20 as described above. Upon receipt of the selection signal Ssel1 indicating that it has been made, the jump is made to the jump destination address “3100” stored in the address “1001” of the first memory circuit 30 and stored after the address “3100”. The contents of the interrupt process corresponding to the factor F1 are started to be executed. When the execution of the interrupt process corresponding to the factor F1 is completed, the first processing circuit A sets (clears) the factor register 11 (1) in the factor register circuit 11 from “present” to “none”.

上述したように、実施例のマイクロコンピュータM10では、マスク回路13により「許可」されている要因F1及び要因F2であって、当該要因F1のプライオリティが当該要因F2のプライオリティより高い前記要因F1及び前記要因F2が発生すると、プライオリティ回路14が、何らの割込処理を行う必要性が生じた旨を表す前記割込信号Sint、及び、前記要因F1の割込処理が記憶されている領域のアドレスを示すベクター信号Svctを、第1の処理回路A及び第2の処理回路Bに出力することにより、かつ、当該プライオリティ回路14により規定されている内容に従って、当該割込処理を第1の処理回路Aに実行させるべき旨を示す選択信号SselをCPU選択回路20に出力することによって当該CPU選択回路20が、第1の処理回路Aが選択された旨を示すSsel1を当該第1の処理回路Aに出力することにより、当該第1の処理回路Aは、要因F1に対応する割込処理を実行することから、二つの割込コントローラ100、200が必要であった従来のマイクロコンピュータM100に比して回路規模が小さくなり、その結果として、安価及び低消費電力を実現することが可能となる。   As described above, in the microcomputer M10 of the embodiment, the factor F1 and the factor F2 that are “permitted” by the mask circuit 13, and the priority of the factor F1 is higher than the priority of the factor F2 and the factor F1. When the factor F2 occurs, the priority circuit 14 determines the interrupt signal Sint indicating that it is necessary to perform any interrupt processing, and the address of the area in which the interrupt processing of the factor F1 is stored. The vector signal Svct shown is output to the first processing circuit A and the second processing circuit B, and the interrupt processing is performed in accordance with the contents defined by the priority circuit 14. The CPU selection circuit 2 is output by outputting a selection signal Ssel indicating that it should be executed to the CPU selection circuit 20. However, by outputting Ssel1 indicating that the first processing circuit A has been selected to the first processing circuit A, the first processing circuit A executes an interrupt process corresponding to the factor F1. As a result, the circuit scale is reduced as compared with the conventional microcomputer M100 that requires the two interrupt controllers 100 and 200, and as a result, low cost and low power consumption can be realized.

また、要因F1〜Fnに対応する割込処理を、第1の処理回路A及び第2の処理回路Bのいずれに実行させるべきかを、CPU選択レジスタ回路12の設定内容を変えるだけで変更することが可能であることから、従来のマイクロコンピュータM100と異なり、第1の処理回路A及び第2の処理回路B間での割込処理の負荷を容易に均衡化することが可能となる。   Further, it is changed by changing only the setting contents of the CPU selection register circuit 12 which of the first processing circuit A and the second processing circuit B should execute the interrupt processing corresponding to the factors F1 to Fn. Therefore, unlike the conventional microcomputer M100, it is possible to easily balance the interrupt processing load between the first processing circuit A and the second processing circuit B.

《変形例1》
図3に図示されるように、上述した実施例の割込コントローラ10(図1に図示。)に代わる変形例1の割込コントローラ10では、プライオリティ回路14は、ベクター信号Svctを、第1の処理回路A及び第2の処理回路Bに出力することに加えて、切換回路15に出力し、当該切換回路15は、当該ベクター信号Svctにより規定されるアドレス、例えば、アドレス「1001」に基づき、割込処理が要因F1に起因することを知得し、その結果として、第1の処理回路Aを選択すべき旨を示す選択信号SselをCPU選択回路20に出力する。このような構成によっても、上記したと同様な効果を得ることが可能となる。
<< Modification 1 >>
As shown in FIG. 3, in the interrupt controller 10 of the first modification that replaces the interrupt controller 10 (shown in FIG. 1) of the above-described embodiment, the priority circuit 14 receives the vector signal Svct as a first signal. In addition to outputting to the processing circuit A and the second processing circuit B, outputting to the switching circuit 15, the switching circuit 15 is based on the address defined by the vector signal Svct, for example, the address “1001”. It is learned that the interrupt process is caused by the factor F1, and as a result, the selection signal Ssel indicating that the first processing circuit A should be selected is output to the CPU selection circuit 20. Even with such a configuration, it is possible to obtain the same effect as described above.

《変形例2》
図4に図示されるように、上述した実施例の割込コントローラ10(図1に図示。)に代わる変形例2の割込コントローラ10は、要因レジスタ回路11及びCPU選択レジスタ回路12のみを含み、換言すれば、マスク回路13及びプライオリティ回路14を含まない。
<< Modification 2 >>
As shown in FIG. 4, the interrupt controller 10 of the second modified example replacing the interrupt controller 10 (shown in FIG. 1) of the above-described embodiment includes only the factor register circuit 11 and the CPU selection register circuit 12. In other words, the mask circuit 13 and the priority circuit 14 are not included.

変形例2の要因レジスタ11は、上記した実施例の要因レジスタ11と同一の構成及び機能を有し、他方で、変形例2の当該CPU選択レジスタ回路12は、上記した実施例の要因レジスタ11と同一の構成を有するものの、異なる機能を有する。   The factor register 11 of the second modification has the same configuration and function as the factor register 11 of the above-described embodiment. On the other hand, the CPU selection register circuit 12 of the second modification includes the factor register 11 of the above-described embodiment. Have the same configuration, but different functions.

具体的には、当該割込コントローラ10では、例えば、要因レジスタ回路11中の要因レジスタ11(1)が、図2(A)に示されるように、要因F1が発生した旨を示す要因発生信号S(F1)の入力により、「あり」(未解決)に設定(セット)されると、CPU選択レジスタ回路12は、発生した要因と当該要因に対応する割込処理を実行すべきCPUとの対応関係(図2(B)に図示。)を参照する。   Specifically, in the interrupt controller 10, for example, the factor register 11 (1) in the factor register circuit 11 indicates that the factor F1 has occurred, as shown in FIG. When “present” (unresolved) is set (set) by the input of S (F1), the CPU selection register circuit 12 determines whether the generated factor and the CPU that should execute the interrupt processing corresponding to the factor are executed. Reference is made to the correspondence (shown in FIG. 2B).

CPU選択レジスタ回路12は、その結果、要因F1に対応する割込処理を第1の処理回路Aが実行すべき旨を知得し、さらに、上記した実施例のプライオリティ回路14に代わって、前記割込信号Sint、前記ベクター信号Svct、及び、当該第1の処理回路Aを選択すべき旨を示す前記選択信号Sselを出力する。以下、上記した実施例と同様な動作を行うことにより、前記実施例と同様な効果を得ることができる。   As a result, the CPU selection register circuit 12 knows that the interrupt processing corresponding to the factor F1 should be executed by the first processing circuit A. Further, in place of the priority circuit 14 of the above-described embodiment, the CPU selection register circuit 12 The interrupt signal Sint, the vector signal Svct, and the selection signal Ssel indicating that the first processing circuit A should be selected are output. Hereinafter, by performing the same operation as in the above-described embodiment, the same effect as in the above-described embodiment can be obtained.

《変形例3》
図5に図示されるように、上述した変形例1の割込コントローラ10(図3に図示。)に代わる変形例3の割込コントローラ10は、変形例1と同様に、要因レジスタ回路11、CPU選択レジスタ回路12、及び、切換回路15を含むものの、変形例1と異なり、マスク回路13及びプライオリティ回路14を含まない。
<< Modification 3 >>
As illustrated in FIG. 5, the interrupt controller 10 of Modification 3 instead of the interrupt controller 10 of Modification 1 described above (illustrated in FIG. 3) includes a factor register circuit 11, Although the CPU selection register circuit 12 and the switching circuit 15 are included, unlike the first modification, the mask circuit 13 and the priority circuit 14 are not included.

変形例3の割込コントローラ10では、例えば、図2(A)に示されるように、要因レジスタ回路11中の要因レジスタ11(1)が、要因F1が発生した旨を示す要因発生信号S(F1)の入力により、「あり」(未解決)に設定(セット)されると、CPU選択レジスタ回路12は、図2(B)に図示された対応関係を参照する。   In the interrupt controller 10 of Modification 3, for example, as shown in FIG. 2A, the factor register 11 (1) in the factor register circuit 11 causes a factor generation signal S () indicating that the factor F1 has occurred. When “present” (unsolved) is set (set) by the input of F1), the CPU selection register circuit 12 refers to the correspondence shown in FIG.

CPU選択レジスタ回路12は、その結果、要因F1に対応する割込処理を第1の処理回路Aが実行すべきである旨を知得し、さらに、上記した変形例1のプライオリティ回路14に代わって、前記割込信号Sint及び前記ベクター信号Svctを出力する。   As a result, the CPU selection register circuit 12 knows that the first processing circuit A should execute the interrupt processing corresponding to the factor F1, and further replaces the priority circuit 14 of the first modification described above. The interrupt signal Sint and the vector signal Svct are output.

切換回路15は、当該ベクター信号Svctを受けると、変形例1の切換回路15と同様に、第1の処理回路Aを選択すべき旨を示す選択信号Sselを出力する。最終的に、割込コントローラ10から上記したような割込信号Sint、ベクター信号Svct、及び選択信号Sselが出力され、以下、上記した変形例1と同様な動作を行うことにより、当該変形例1と同様な効果を得ることができる。   Upon receiving the vector signal Svct, the switching circuit 15 outputs a selection signal Ssel indicating that the first processing circuit A should be selected, like the switching circuit 15 of the first modification. Finally, the interrupt controller 10 outputs the interrupt signal Sint, the vector signal Svct, and the selection signal Ssel as described above, and thereafter performs the same operation as the above-described modification example 1 to thereby modify the modification example 1. The same effect can be obtained.

実施例のマイクロコンピュータの構成を示す図。The figure which shows the structure of the microcomputer of an Example. 要因レジスタ回路、CPU選択レジスタ回路、マスク回路、プライオリティ回路を示す図。The figure which shows a factor register circuit, CPU selection register circuit, a mask circuit, and a priority circuit. 変形例1のマイクロコンピュータの構成を示す図。The figure which shows the structure of the microcomputer of the modification 1. 変形例2のマイクロコンピュータの構成を示す図。The figure which shows the structure of the microcomputer of the modification 2. 変形例3のマイクロコンピュータの構成を示す図。The figure which shows the structure of the microcomputer of the modification 3. 従来のマイクロコンピュータの構成を示す図。The figure which shows the structure of the conventional microcomputer.

符号の説明Explanation of symbols

M10…マイクロコンピュータ、10…割込コントローラ、20…CPU選択回路、A…第1の処理回路、B…第2の処理回路、30…第1の記憶回路、40…第2の記憶回路、11…要因レジスタ回路、12…CPU選択レジスタ回路、13…マスク回路、14…プライオリティ回路。   M10: Microcomputer, 10: Interrupt controller, 20: CPU selection circuit, A ... First processing circuit, B ... Second processing circuit, 30 ... First memory circuit, 40 ... Second memory circuit, 11 ... cause register circuit, 12 ... CPU selection register circuit, 13 ... mask circuit, 14 ... priority circuit.

Claims (4)

各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、一の要因が発生したときに、前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、前記一の要因に対応する一の割込処理の内容が規定された領域を示すベクター信号、及び、前記一の要因に対応する一の割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力する前記処理回路選択レジスタ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、を含むことを特徴とするマイクロコンピュータ。
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. An interrupt signal indicating that an interrupt process should be executed to the plurality of processing circuits when one of the first plurality of factors occurs; A vector signal indicating an area in which the content of one interrupt process corresponding to one factor is defined, and a processing circuit that should execute the one interrupt process corresponding to the one factor. The processing circuit selection register circuit for outputting a first selection signal;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal. A microcomputer characterized by that.
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、一の要因が発生したときに、前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記一の要因に対応する一の割込処理の内容が規定された領域を示すベクター信号を出力する前記処理回路選択レジスタ回路と、
前記ベクター信号に応答して、前記一の要因に対応する一の割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力するマルチプレクサ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、含むことを特徴とするマイクロコンピュータ。
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. An interrupt signal indicating that an interrupt process should be executed to the plurality of processing circuits when one of the first plurality of factors occurs; and The processing circuit selection register circuit for outputting a vector signal indicating a region in which the content of one interrupt process corresponding to the one factor is defined;
In response to the vector signal, a multiplexer circuit that outputs a first selection signal indicating which processing circuit should execute one interrupt process corresponding to the one factor;
In response to the first selection signal, a processing circuit selection circuit that outputs a second selection signal indicating that the processing circuit is selected to a processing circuit indicated by the first selection signal. A microcomputer characterized by.
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
(1)前記第1の複数の要因のうち、前記マスク回路により受付が許可されている前記第2の複数の要因に該当する少なくとも二つ以上の要因が発生したときに、当該二つ以上の要因に対応する二つ以上の割込処理を行うべき優先度を予め規定しているプライオリティ回路であって、(2)(2a)前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記優先度が最も高い割込処理の内容が規定された領域を示すベクター信号を出力し、かつ、(2b)前記処理回路選択レジスタ回路に規定されている前記複数の関係に基づき、前記優先度が最も高い割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力する前記プライオリティ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、を含むことを特徴とするマイクロコンピュータ。
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. A processing circuit selection register circuit;
A mask circuit for permitting acceptance of a second plurality of factors of the first plurality of factors and prohibiting acceptance of other remaining factors;
(1) Among the first plurality of factors, when at least two or more factors corresponding to the second plurality of factors permitted to be accepted by the mask circuit are generated, the two or more factors A priority circuit preliminarily specifying a priority at which two or more interrupt processing corresponding to a factor is to be performed, and (2) (2a) that the plurality of processing circuits should execute interrupt processing. And a vector signal indicating a region in which the content of the interrupt processing having the highest priority is defined, and (2b) the plurality of the plurality of rules defined in the processing circuit selection register circuit Based on the relationship, the priority circuit that outputs a first selection signal indicating which processing circuit should execute the highest priority interrupt processing;
A processing circuit selection circuit for outputting a second selection signal indicating that the processing circuit is selected to the processing circuit indicated by the first selection signal in response to the first selection signal. A microcomputer characterized by that.
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記第1の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
(1)前記第1の複数の要因のうち、前記マスク回路により受付が許可されている前記第2の複数の要因に該当する少なくとも二つ以上の要因が発生したときに、当該二つ以上の要因に対応する二つ以上の割込処理を行うべき優先度を予め規定しているプライオリティ回路であって、(2)前記複数の処理回路に、割込処理を実行すべき旨を示す割込信号、及び、前記優先度が最も高い割込処理の内容が規定された領域を示すベクター信号を出力する前記プライオリティ回路と、
前記ベクター信号に応答して、前記優先度が最も高い割込処理を実行させるべき処理回路がいずれであるかを示す第1の選択信号を出力するマルチプレクサ回路と、
前記第1の選択信号に応答して、当該第1の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第2の選択信号を出力する処理回路選択回路と、含むことを特徴とするマイクロコンピュータ。
A plurality of processing circuits in which each interrupt processing is to perform a plurality of interrupt processing due to one of the first plurality of factors;
A factor register circuit indicating whether each of the first plurality of factors has been solved or not;
Each relationship defines a plurality of relationships that are correspondence relationships between one of the first plurality of factors and one of the plurality of processing circuits that should perform an interrupt process corresponding to the one factor. A processing circuit selection register circuit;
A mask circuit for permitting acceptance of a second plurality of factors of the first plurality of factors and prohibiting acceptance of other remaining factors;
(1) Among the first plurality of factors, when at least two or more factors corresponding to the second plurality of factors permitted to be accepted by the mask circuit are generated, the two or more factors A priority circuit predefining a priority level at which two or more interrupt processing corresponding to a factor is to be performed, and (2) an interrupt indicating that the plurality of processing circuits should be executed The priority circuit for outputting a signal and a vector signal indicating an area in which the content of the interrupt processing having the highest priority is defined;
In response to the vector signal, a multiplexer circuit that outputs a first selection signal indicating which processing circuit is to execute the highest priority interrupt processing;
In response to the first selection signal, a processing circuit selection circuit that outputs a second selection signal indicating that the processing circuit is selected to a processing circuit indicated by the first selection signal. A microcomputer characterized by.
JP2007174857A 2007-03-29 2007-07-03 Microcomputer Withdrawn JP2008269548A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2007174857A JP2008269548A (en) 2007-03-29 2007-07-03 Microcomputer
US12/053,194 US20080244138A1 (en) 2007-03-29 2008-03-21 Microcomputer

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2007086806 2007-03-29
JP2007174857A JP2008269548A (en) 2007-03-29 2007-07-03 Microcomputer

Publications (1)

Publication Number Publication Date
JP2008269548A true JP2008269548A (en) 2008-11-06

Family

ID=40048912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007174857A Withdrawn JP2008269548A (en) 2007-03-29 2007-07-03 Microcomputer

Country Status (1)

Country Link
JP (1) JP2008269548A (en)

Similar Documents

Publication Publication Date Title
JPS62257526A (en) Arithmetic and logic unit
JP2008090390A (en) Microcomputer debugging system and microcomputer
JP2008269548A (en) Microcomputer
US20030037227A1 (en) Processor enabling exception handling to be set by program
JP2007207074A (en) Operation system, thread control mechanism and information processor
JP2008269549A (en) Microcomputer
JP4114946B2 (en) Data processing device
JPH04241032A (en) System call execution device
JP2011070290A (en) Data processor
US20080244138A1 (en) Microcomputer
JP4363534B2 (en) Microcomputer and microcomputer operation setting method
JP6332091B2 (en) Electronic control unit
JPWO2004066150A1 (en) Interrupt control method and interrupt control device
US20220156074A1 (en) Electronic device and multiplexing method of spatial
JP4911842B2 (en) Interrupt control circuit
JP2004185094A (en) Microcontroller and control method of microcontroller
JP2008225710A (en) Computer system and process-switching method used in the system
JPH05143447A (en) Digital processor and control method for the processor
JP3595309B2 (en) Address generation circuit
KR100731675B1 (en) Interrupt control method and interrupt control device
JP2006236233A (en) Interrupt level selecting circuit
JP2013190929A (en) Microcomputer
JP3585940B2 (en) calculator
JP2017094214A5 (en)
JPH05143360A (en) Microcomputer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090403

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090414

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090612