JP2008269549A - Microcomputer - Google Patents
Microcomputer Download PDFInfo
- Publication number
- JP2008269549A JP2008269549A JP2007174858A JP2007174858A JP2008269549A JP 2008269549 A JP2008269549 A JP 2008269549A JP 2007174858 A JP2007174858 A JP 2007174858A JP 2007174858 A JP2007174858 A JP 2007174858A JP 2008269549 A JP2008269549 A JP 2008269549A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- processing
- interrupt
- factors
- 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
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Bus Control (AREA)
Abstract
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.
図4に図示された従来のマイクロコンピュータM100では、要因F1〜Fiのうちのいずれか、例えば、要因F1が発生した旨を示す要因発生信号S(F1)の入力を受けると、要因F1〜Fiを割り当てられた第1の割込コントローラ100(要因レジスタ回路110、マスク回路120、プライオリティ回路130からなる。)は、第1の処理回路Aに、要因F1に対応する割込処理を実行すべき旨を示す割込信号、及び、当該割込処理の内容が格納されている、第1の記憶回路300上の領域のアドレス(先頭アドレス)を示すベクター信号を出力する。第1の処理回路Aは、当該割込信号及びベクター信号を受けると、前記第1の記憶回路300上における前記先頭アドレス以後に格納されている、割込処理の内容に従って、当該割込処理を実行する。
In the conventional microcomputer M100 shown in FIG. 4, when any one of the factors F1 to Fi, for example, the factor generation signal S (F1) indicating that the factor F1 is generated is received, the factors F1 to Fi are received. Is assigned to the first interrupt controller 100 (including the
上記した従来のマイクロコンピュータ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
しかしながら、上記した従来のマイクロコンピュータM100では、二つの処理回路A、Bに対し、二つの割込コントローラ、即ち、第1、第2の割込コントローラ100、200が必要であることから、回路規模が大きくなり、その結果、高価及び消費電力の増大となるという問題があった。
However, since the conventional microcomputer M100 described above requires two interrupt controllers, that is, the first and
また、要因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
本発明に係る第1のマイクロコンピュータは、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、少なくとも二つ以上の要因が発生したときに、前記複数の処理回路の各毎に、割込処理を実行すべき旨を示す割込信号、前記ニつ以上の要因に対応するニつ以上の割込処理のうち、当該複数の処理回路が実行すべき割込処理の内容が規定された位置を示すベクター信号、及び、当該処理回路が選択された旨を示す選択信号を出力する前記処理回路選択レジスタ回路と、を含む。
A first 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;
A processing circuit selection that defines a plurality of relations, each of which is a correspondence relation between one of the plurality of factors and one of the plurality of processing circuits to perform an interrupt process corresponding to the one factor An interrupt indicating that an interrupt process should be executed for each of the plurality of processing circuits when at least two or more of the first plurality of factors occur in the register circuit A signal, a vector signal indicating a position where the contents of the interrupt processing to be executed by the plurality of processing circuits among the two or more interrupt processing corresponding to the two or more factors, and the processing circuit And a processing circuit selection register circuit that outputs a selection signal indicating that is selected.
本発明に係る第1のマイクロコンピュータによれば、前記処理回路選択レジスタ回路が、前記複数の処理回路の各毎に、前記割込信号、前記ベクター信号、及び、前記選択信号を出力することにより、従来と同様に、前記複数の処理回路の各毎に、当該処理回路が行うべき割込処理を実行させることができ、他方で、従来と異なり、従来のような二つの割込コントローラが必要無く、その結果、安価及び低消費電力にすることが可能となる。 According to the first microcomputer of the present invention, the processing circuit selection register circuit outputs the interrupt signal, the vector signal, and the selection signal for each of the plurality of processing circuits. As in the prior art, for each of the plurality of processing circuits, the interrupt processing to be performed by the processing circuit can be executed. On the other hand, unlike the prior art, two conventional interrupt controllers are required. As a result, low cost and low power consumption can be achieved.
また、前記複数の要因、即ち、当該複数の要因に対応する複数の割込処理を前記複数の処理回路のいずれに割り当てるかを、前記処理回路選択レジスタ回路により行うことができることから、前記複数の処理回路間での割込処理の負荷を容易に均衡化することが可能となる。 In addition, since the plurality of factors, that is, to which of the plurality of processing circuits a plurality of interrupt processes corresponding to the plurality of factors can be assigned, can be performed by the processing circuit selection register circuit. It becomes possible to easily balance the load of interrupt processing between the processing circuits.
本発明に係る第2のマイクロコンピュータは、上記した課題を解決すべく、
各割込処理が第1の複数の要因の一つに起因する複数の割込処理を行うべき複数の処理回路と、
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
前記第2の複数の要因のうち、前記マスク回路により受付が許可されている前記第2の複数の要因に該当する少なくとも二つ以上の要因が発生したときに、前記複数の処理回路の各毎に、前記ニつ以上の要因に対応するニつ以上の割込処理を行うべき優先度を予め規定しているプライオリティ回路であって、前記複数の処理回路の各毎に、割込処理を実行すべき旨を示す割込信号、当該複数の処理回路にとって優先度が最も高い割込処理の内容が規定された位置を示すベクター信号、及び、当該処理回路が選択された旨を示す選択信号を出力する前記プライオリティ回路と、を含む。
The second microcomputer according to the present invention is to solve the above 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;
A processing circuit selection that defines a plurality of relations, each of which is a correspondence relation between one of the plurality of factors and one of the plurality of processing circuits to perform an interrupt process corresponding to the one factor A 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;
When at least two or more factors corresponding to the second plurality of factors accepted by the mask circuit among the plurality of second factors occur, each of the plurality of processing circuits In addition, a priority circuit predefining a priority level at which two or more interrupt processing corresponding to the two or more factors should be performed, and executes the interrupt processing for each of the plurality of processing circuits. An interrupt signal indicating that the processing is to be performed, a vector signal indicating a position where the content of the interrupt processing having the highest priority for the plurality of processing circuits is defined, and a selection signal indicating that the processing circuit is selected And outputting the priority circuit.
上記した本発明に係る第2のマイクロコンピュータによれば、前記プライオリティ回路が、前記マスク回路、前記処理回路選択レジスタ回路、及び、当該プライオリティ回路の各々に規定されている内容を参照して、前記複数の処理回路の各毎に、前記割込信号、前記ベクター信号、及び、前記選択信号を出力することにより、従来と同様に、前記複数の処理回路の各毎に、当該処理回路にとって最も優先度が高い割込処理を実行させることができ、他方で、従来と異なり、従来のような二つの割込コントローラが必要無く、その結果、安価及び低消費電力にすることが可能となる。 According to the second microcomputer of the present invention described above, the priority circuit refers to the contents defined in each of the mask circuit, the processing circuit selection register circuit, and the priority circuit. By outputting the interrupt signal, the vector signal, and the selection signal for each of the plurality of processing circuits, each of the plurality of processing circuits has the highest priority for the processing circuit, as in the prior art. On the other hand, unlike conventional systems, two conventional interrupt controllers are not necessary, and as a result, low cost and low power consumption can be achieved.
また、前記複数の要因、正確には、当該複数の要因に対応する複数の割込処理を前記複数の処理回路のいずれに割り当てるかを、前記処理回路選択レジスタ回路により行うことができることから、前記複数の処理回路間での割込処理の負荷を容易に均衡化することが可能となる。 Further, since the plurality of factors, more precisely, to which of the plurality of processing circuits a plurality of interrupt processes corresponding to the plurality of factors can be assigned by the processing circuit selection register circuit, It is possible to easily balance the load of interrupt processing among a plurality of processing circuits.
本発明に係るマイクロコンピュータの実施例について図面を参照して説明する。 Embodiments of a microcomputer according to the present invention will be described with reference to the drawings.
《構成及び動作》
図1は、実施例のマイクロコンピュータの構成を示す。実施例のマイクロコンピュータM10は、図1に示されるように、割込コントローラ10と、第1の処理回路(CPU)Aと、第2の処理回路(CPU)Bと、第1の記憶回路30と、第2の記憶回路40とを含む。
<Configuration and operation>
FIG. 1 shows a configuration of a microcomputer according to the embodiment. As shown in FIG. 1, the microcomputer M <b> 10 of the embodiment includes an
割込コントローラ10は、要因レジスタ回路11と、CPU選択レジスタ回路12と、マスク回路13と、プライオリティ回路14とを有する。
The
要因レジスタ11回路は、図2(A)に示されるように、複数の要因レジスタ11(1)〜11(n)を有し、複数の要因F1〜Fn(例えば、ボタンの押し下げ、温度の検出等(いずれも図示せず。))が発生した旨を示す要因発生信号S(F1)〜S(Fn)の入力を受ける。
As shown in FIG. 2A, the
以下では、説明及び理解を容易にすべく、基本的に、四つの要因F1、F2、F3、Fnが発生したことを想定する。 In the following, it is assumed that basically four factors F1, F2, F3, and Fn have occurred in order to facilitate explanation and understanding.
要因レジスタ回路11では、例えば、要因F1が発生した旨を示す要因発生信号S(F1)が入力されると、当該要因発生信号S(F1)の入力を契機に、要因レジスタ11(1)は、「あり」(未解決)に設定(セット)され、同様にして、要因F2、要因F3、要因F4が発生した旨を示す要因発生信号S(F2)、S(F3)、S(F4)が入力されると、要因レジスタ11(2)、11(3)、11(n)は、「あり」に設定される。
In the
「あり」に設定された要因レジスタ11(1)は、当該要因F1に対応する割込処理が、後述されるように、第1の処理回路Aにより実行された後、当該第1の処理回路Aによって、「なし」(解決済み)に設定(クリア)される。「あり」に設定された要因レジスタ11(2)、11(3)、11(n)もまた、同様にして、要因F2、F3、Fnに対応する割込処理が、後述されるように、第2の処理回路B、第2の処理回路B、第1の処理回路Aによりそれぞれ実行された後、当該第2の処理回路B、第2の処理回路B、第1の処理回路Aによって、それぞれ、「なし」(解決済み)に設定(クリア)される。 The factor register 11 (1) set to “present” causes the first processing circuit after the interrupt processing corresponding to the factor F1 is executed by the first processing circuit A as will be described later. A is set (cleared) to “none” (resolved). Similarly, the factor registers 11 (2), 11 (3), and 11 (n) set to “present” also perform interrupt processing corresponding to the factors F2, F3, and Fn, as will be described later. After being executed by the second processing circuit B, the second processing circuit B, and the first processing circuit A, respectively, by the second processing circuit B, the second processing circuit B, and the first processing circuit A, Each is set (cleared) to “none” (resolved).
CPU選択レジスタ回路12は、『処理選択レジスタ回路』であり、図2(B)に示されるように、要因F1〜Fnと、当該要因F1〜Fnを処理すべきCPU、正確には、当該要因F1〜Fnに対応する割込処理を実行すべきCPUとの対応関係を予め規定している。CPU選択レジスタ回路12は、例えば、要因F1、F2、F3、Fnに対応する割込処理を、第1の処理回路A、第2の処理回路B、第2の処理回路B、第1の処理回路Aがそれぞれ実行すべき旨を規定している。
The CPU
マスク回路13は、図2(C)に示されるように、要因F1〜Fnの許可/禁止、より詳しくは、要因F1〜Fnに対応する割込処理を許可するか禁止するかを予め規定している。マスク回路13は例えば、四つの要因F1、F2、F3、Fnに対応する割込処理を、それぞれ、「許可」、「許可」、「許可」、「禁止」する旨を規定している。
As shown in FIG. 2C, the
プライオリティ回路14は、図2(D1)に示されるように、要因F1〜Fnのうち第1の処理回路Aが処理すべき要因についてのプライオリティ(優先度)を規定しており、換言すれば、第1の処理回路Aが行うべき割込処理についてのプライオリティを規定している。プライオリティ回路14は、例えば、第1の処理回路Aが、要因F1、F4、F6、...、Fnに対応する割込処理を行うべき旨を規定している。プライオリティ回路14は、さらに、要因F1、F4、F6に対応する割込処理のプライオリティが、それぞれ、「高」、「中」、「低」である旨を規定しており、他方で、マスク回路13により「禁止」されている要因Fnに対応する割込処理のプライオリティが、「−」(不定(=事実上の禁止))である旨を規定している。
As shown in FIG. 2 (D1), the
プライオリティ回路14は、また、図2(D2)に示されるように、要因F1〜Fnのうち第2の処理回路Bが処理すべき要因についてのプライオリティを規定しており、換言すれば、第2の処理回路Bが行うべき割込処理についてのプライオリティを規定している。プライオリティ回路14は、例えば、第2の処理回路Bが、要因F2、F3、F5、...、F(n−1)に対応する割込処理を行うべき旨を規定している。プライオリティ回路14は、さらに、要因F2、F3、Fnに対応する割込処理のプライオリティが、それぞれ、「高」、「極高」、「低」である旨を規定しており、他方で、マスク回路13により「禁止」されている要因F5(図2(C)に図示せず。)に対応する割込処理のプライオリティが、「−」(不定(=事実上の禁止))である旨を規定している。
As shown in FIG. 2 (D2), the
図1に戻り、プライオリティ回路14は、第1の処理回路Aに、当該第1の処理回路Aが何らかの割込処理を行う必要が生じた旨を示す割込信号Sint1、当該第1の処理回路Aが実行すべき割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svct1、及び、当該第1の処理回路Aが選択された旨を示す選択信号Ssel1を出力する。
Returning to FIG. 1, the
プライオリティ回路14は、同様にして、第2の処理回路Bに、当該第2の処理回路Bが何らかの割込処理を行う必要が生じた旨を示す割込信号Sint2、当該第2の処理回路Bが実行すべき割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svct2、及び、当該第2の処理回路Bが選択された旨を示す選択信号Ssel2を出力する。
Similarly, the
より詳細には、例えば、要因F1、F2、F3、Fnが発生すると、マスク回路13により、当該要因F1、F2、F3、Fnのうち、要因F1、F2、F3の割込処理の受付は、「許可」され、他方で、要因Fnの割込処理の受付は、「禁止」される。次に、プライオリティ回路14は、CPU選択レジスタ回路12の規定内容(図2(B)に図示。)から、「要因F1の割込処理と第1の処理回路Aとが対応する旨」、並びに、「要因F2の割込処理及び要因F3の割込処理と第2の処理回路Bとが対応する旨」を知得する。さらに、プライオリティ回路14は、当該プライオリティ回路14自身の規定内容(図2(D2)に図示。)から、「要因F3が要因F2よりプライオリティが高い旨」を知得する。
More specifically, for example, when the factors F1, F2, F3, and Fn occur, the
その結果、プライオリティ回路14は、最終的に、「要因F1の割込処理を第1の処理回路Aに実行させること」、及び、「要因F3の割込処理を第2の処理回路Bに実行させた後に、要因F2の割込処理を第2の処理回路Bに実行させること」を決定する。当該決定により、プライオリティ回路14は、第1の処理回路Aに、要因F1の割込処理が発生した旨を示す割込信号Sint1、要因F1の割込処理の内容が格納された、第1の記憶回路30上の領域の先頭アドレス「1001」を示すベクター信号Svct1、及び、第1の処理回路Aが選択された旨を示す選択信号Ssel1を出力する。プライオリティ回路14は、他方で、第2の処理回路Bに、要因F3の割込処理が発生した旨を示す割込信号Sint2、要因F3の割込処理の内容が格納された、第2の記憶回路40上の領域の先頭アドレス「2003」を示すベクター信号Svct2、及び、第2の処理回路Bが選択された旨を示す選択信号Ssel2を出力する。
As a result, the
第1の処理回路A及び第2の処理回路Bは、基本的に、要因F1〜Fnに対応する割込処理を、第1の記憶回路30及び第2の記憶回路40に格納されている、前記割込処理の内容に基づき実行する。より詳しくは、例えば、第1の処理回路Aは、プライオリティ回路14から、上記したような割込信号Sint1、ベクター信号Svct1、及び、選択信号Ssel1を受けると、第1の記憶回路30のアドレス「1001」に記憶されている、ジャンプ先のアドレス「3100」にジャンプし、当該アドレス「3100」以後に格納されている、要因F1の割込処理の実行を開始する。第1の処理回路Aは、要因F1の割込処理を完了すると、要因レジスタ回路11内の要因レジスタ11(1)を「あり」(未解決)から「なし」(解決済み)に設定(クリア)する。
The first processing circuit A and the second processing circuit B basically store the interrupt processing corresponding to the factors F1 to Fn in the
同様にして、第2の処理回路Bは、プライオリティ回路14から、上記したような割込信号Sint2、ベクター信号Svct2、及び、選択信号Ssel2を受けると、第2の記憶回路40のアドレス「2003」に記憶されている、ジャンプ先のアドレス「5300」にジャンプし、当該アドレス「5300」以後に格納されている、要因F3の割込処理の実行を開始する。第2の処理回路Bは、要因F3の割込処理を完了すると、要因レジスタ回路11内の要因レジスタ11(3)を「あり」から「なし」に設定する。
Similarly, when the second processing circuit B receives the interrupt signal Sint2, the vector signal Svct2, and the selection signal Ssel2 from the
前記要因レジスタ11(3)が「なし」に設定されと、プライオリティ回路14は、要因F2の割込処理を第2の処理回路Bに実行させるべく、第2の処理回路Bに、要因F2の割込処理が発生した旨を示す割込信号Sint2、要因F2の割込処理の内容が格納された、第2の記憶回路40上の領域の先頭アドレス「2002」を示すベクター信号Svct2、及び、第2の処理回路Bが選択された旨を示す選択信号Ssel2を出力し、第2の処理回路Bは、当該三つの信号Sint2、Svct2、Ssel2を受けると、上記したと同様にして、要因F2の割込処理の実行を開始する。
When the factor register 11 (3) is set to “none”, the
《効果》
上述したように、実施例のマイクロコンピュータM10は、プライオリティ回路14が、第1の処理回路Aに、割込信号Sint1、ベクター信号Svct1、選択信号Ssel1を出力することにより、第1の処理回路Aに、要因F1の割込処理を実行させ、同時に、第2の処理回路Bに、割込信号Sint2、ベクター信号Svct2、選択信号Ssel2を出力することにより、プライオリティが要因F2より高い要因F3の割込処理を実行させることから、従来と同様に、第1の処理回路A及び第2の処理回路Bに割込処理を別個に実行させることができ、加えて、従来と異なり、二つの割込コントローラ100、200を必要としないことから、回路規模が小さくなり、その結果として、安価及び低消費電力を実現することが可能となる。
"effect"
As described above, in the microcomputer M10 of the embodiment, the
また、要因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
《変形例》
図3に示されるように、変形例の割込コントローラ10は、上記した実施例の割込コントローラ10と同様に、要因レジスタ回路11及びCPU選択レジスタ回路12を有し、他方で、実施例の割込コントローラ10と異なり、マスク回路13及びプライオリティ回路14を有しない。変形例のマイクロコンピュータM10では、要因F1、F2が発生した旨を示す要因発生信号S(F1)、S(F2)が入力されると、要因レジスタ回路11の要因レジスタ11(1)、11(2)は、「あり」(未解決)に設定される。
<Modification>
As shown in FIG. 3, the interrupt
要因レジスタ11(1)、11(2)の設定後、CPU選択レジスタ回路12は、図2(B)に図示の対応関係を参照することにより、要因F1に対応する割込処理を第1の処理回路Aが実行すべきであり、また、要因F2に対応する割込処理を第2の処理回路Bが実行すべきであることを知得する。
After setting the factor registers 11 (1) and 11 (2), the CPU
前記知得の後、CPU選択レジスタ回路12は、実施例と同様に、要因F1に対応する割込処理を実行すべき第1の処理回路Aに、割込処理を実行すべき旨を表す割込信号Sint1、要因F1に対応する割込処理の内容が格納されている領域を示すベクター信号Svct1、及び、当該第1の処理回路Aが選択された旨を示す選択信号Ssel1を出力し、また、要因F2に対応する割込処理を実行すべき第2の処理回路Bに、割込処理を実行すべき旨を表す割込信号Sint2、要因F2に対応する割込処理の内容が格納されている領域を示すベクター信号Svct2、及び、当該第2の処理回路Bが選択された旨を示す選択信号Ssel2を出力する。以下、実施例と同様な動作を行うことにより、実施例と同様な効果を得ることができる。
After the knowledge, the CPU
M10…マイクロコンピュータ、10…割込コントローラ、A…第1の処理回路、B…第2の処理回路、30…第1の記憶回路、40…第2の記憶回路、11…要因レジスタ回路、12…CPU選択レジスタ回路、13…マスク回路、14…プライオリティ回路。 M10: Microcomputer, 10: Interrupt controller, A: First processing circuit, B: Second processing circuit, 30: First storage circuit, 40: Second storage circuit, 11: Factor register circuit, 12 ... CPU selection register circuit, 13 ... mask circuit, 14 ... priority circuit.
Claims (2)
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第1の複数の要因のうち、少なくとも二つ以上の要因が発生したときに、前記複数の処理回路の各毎に、割込処理を実行すべき旨を示す割込信号、前記二つ以上の要因に対応する二つ以上の割込処理のうち、当該複数の処理回路が実行すべき割込処理の内容が規定された位置を示すベクター信号、及び、当該処理回路が選択された旨を示す選択信号を出力する前記処理回路選択レジスタ回路と、を含むことを特徴とするマイクロコンピュータ。 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;
A processing circuit selection that defines a plurality of relations, each of which is a correspondence relation between one of the plurality of factors and one of the plurality of processing circuits to perform an interrupt process corresponding to the one factor An interrupt indicating that an interrupt process should be executed for each of the plurality of processing circuits when at least two or more of the first plurality of factors occur in the register circuit A signal, a vector signal indicating a position where the contents of the interrupt processing to be executed by the plurality of processing circuits among the two or more interrupt processing corresponding to the two or more factors, and the processing circuit And a processing circuit selection register circuit for outputting a selection signal indicating that is selected.
前記第1の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第1の複数の要因のうちの第2の複数の要因の受付を許可し、かつ、他の残りの要因の受付を禁止するマスク回路と、
前記第2の複数の要因のうち、前記マスク回路により受付が許可されている前記第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;
A processing circuit selection that defines a plurality of relations, each of which is a correspondence relation between one of the plurality of factors and one of the plurality of processing circuits to perform an interrupt process corresponding to the one factor A 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;
When at least two or more factors corresponding to the second plurality of factors accepted by the mask circuit among the plurality of second factors occur, each of the plurality of processing circuits And a priority circuit preliminarily defining a priority level at which two or more interrupt processing corresponding to the two or more factors should be performed, and executing the interrupt processing for each of the plurality of processing circuits. An interrupt signal indicating that the processing is to be performed, a vector signal indicating a position where the content of the interrupt processing having the highest priority for the plurality of processing circuits is defined, and a selection signal indicating that the processing circuit is selected And a priority circuit for outputting the microcomputer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007174858A JP2008269549A (en) | 2007-03-29 | 2007-07-03 | Microcomputer |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007086807 | 2007-03-29 | ||
JP2007174858A JP2008269549A (en) | 2007-03-29 | 2007-07-03 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008269549A true JP2008269549A (en) | 2008-11-06 |
Family
ID=40048913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007174858A Withdrawn JP2008269549A (en) | 2007-03-29 | 2007-07-03 | Microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008269549A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021089581A (en) * | 2019-12-04 | 2021-06-10 | 株式会社デンソー | Electronic control device |
-
2007
- 2007-07-03 JP JP2007174858A patent/JP2008269549A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021089581A (en) * | 2019-12-04 | 2021-06-10 | 株式会社デンソー | Electronic control device |
JP7342669B2 (en) | 2019-12-04 | 2023-09-12 | 株式会社デンソー | electronic control unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7386646B2 (en) | System and method for interrupt distribution in a multithread processor | |
US8959317B2 (en) | Processor and method for saving designated registers in interrupt processing based on an interrupt factor | |
JPH0454255B2 (en) | ||
JP2004157636A (en) | Data processing apparatus | |
JP2008090390A (en) | Microcomputer debugging system and microcomputer | |
JP2008269549A (en) | Microcomputer | |
US20030037227A1 (en) | Processor enabling exception handling to be set by program | |
JP2007207074A (en) | Operation system, thread control mechanism and information processor | |
JP4114946B2 (en) | Data processing device | |
JP2008269548A (en) | Microcomputer | |
US20030023799A1 (en) | Interrupt processing apparatus | |
JPH04241032A (en) | System call execution device | |
JP6332091B2 (en) | Electronic control unit | |
JP2008225710A (en) | Computer system and process-switching method used in the system | |
JPH09282188A (en) | Interruption processing method and system using the method | |
JP5561294B2 (en) | Microcomputer | |
Moisuc et al. | Hardware event handling in the hardware real-time operating systems | |
JP2006236233A (en) | Interrupt level selecting circuit | |
WO2004066150A1 (en) | Interrupt control method and interrupt control device | |
JP4911842B2 (en) | Interrupt control circuit | |
JPH07105022A (en) | Microcomputer | |
JP5561295B2 (en) | Microcomputer | |
JP2009110128A (en) | Interruption control method | |
JP2006146641A (en) | Multi-thread processor and multi-thread processor interruption method | |
JP2021060871A (en) | Microcomputer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20100907 |