JP2008269548A - Microcomputer - Google Patents
Microcomputer Download PDFInfo
- 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
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.
図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
上記した従来のマイクロコンピュータ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の複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第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
割込コントローラ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が発生したことを想定する。 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
「あり」に設定された要因レジスタ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
マスク回路13は、図2(C)に示されるように、要因F1〜Fnの許可/禁止、より詳しくは、要因F1〜Fnに対応する割込処理を許可するか禁止するかを予め規定している。マスク回路13は、例えば、要因F1、F2、F3、Fnに対応する割込処理を「許可」、「許可」、「禁止」、「禁止」する旨をそれぞれ規定している。
As shown in FIG. 2C, the
例えば、要因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
図1に戻り、プライオリティ回路14は、要因F1〜Fnのいずれかに対応する割込処理を実行すべき旨、換言すれば、何らかの割込処理を実行する必要が生じた旨を示す割込信号Sint、当該割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svctを、第1の処理回路A及び第2の処理回路Bに出力する。プライオリティ回路14は、加えて、当該割込処理を第1の処理回路A及び第2の処理回路Bのいずれに実行させるべきかを示す第1の選択信号SselをCPU選択回路20に出力する。
Returning to FIG. 1, the
より詳細には、例えば、マスク回路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
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
第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
例えば、第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
上述したように、実施例のマイクロコンピュータ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
また、要因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
《変形例1》
図3に図示されるように、上述した実施例の割込コントローラ10(図1に図示。)に代わる変形例1の割込コントローラ10では、プライオリティ回路14は、ベクター信号Svctを、第1の処理回路A及び第2の処理回路Bに出力することに加えて、切換回路15に出力し、当該切換回路15は、当該ベクター信号Svctにより規定されるアドレス、例えば、アドレス「1001」に基づき、割込処理が要因F1に起因することを知得し、その結果として、第1の処理回路Aを選択すべき旨を示す選択信号SselをCPU選択回路20に出力する。このような構成によっても、上記したと同様な効果を得ることが可能となる。
<<
As shown in FIG. 3, in the interrupt
《変形例2》
図4に図示されるように、上述した実施例の割込コントローラ10(図1に図示。)に代わる変形例2の割込コントローラ10は、要因レジスタ回路11及びCPU選択レジスタ回路12のみを含み、換言すれば、マスク回路13及びプライオリティ回路14を含まない。
<<
As shown in FIG. 4, the interrupt
変形例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
具体的には、当該割込コントローラ10では、例えば、要因レジスタ回路11中の要因レジスタ11(1)が、図2(A)に示されるように、要因F1が発生した旨を示す要因発生信号S(F1)の入力により、「あり」(未解決)に設定(セット)されると、CPU選択レジスタ回路12は、発生した要因と当該要因に対応する割込処理を実行すべきCPUとの対応関係(図2(B)に図示。)を参照する。
Specifically, in the interrupt
CPU選択レジスタ回路12は、その結果、要因F1に対応する割込処理を第1の処理回路Aが実行すべき旨を知得し、さらに、上記した実施例のプライオリティ回路14に代わって、前記割込信号Sint、前記ベクター信号Svct、及び、当該第1の処理回路Aを選択すべき旨を示す前記選択信号Sselを出力する。以下、上記した実施例と同様な動作を行うことにより、前記実施例と同様な効果を得ることができる。
As a result, the CPU
《変形例3》
図5に図示されるように、上述した変形例1の割込コントローラ10(図3に図示。)に代わる変形例3の割込コントローラ10は、変形例1と同様に、要因レジスタ回路11、CPU選択レジスタ回路12、及び、切換回路15を含むものの、変形例1と異なり、マスク回路13及びプライオリティ回路14を含まない。
<<
As illustrated in FIG. 5, the interrupt
変形例3の割込コントローラ10では、例えば、図2(A)に示されるように、要因レジスタ回路11中の要因レジスタ11(1)が、要因F1が発生した旨を示す要因発生信号S(F1)の入力により、「あり」(未解決)に設定(セット)されると、CPU選択レジスタ回路12は、図2(B)に図示された対応関係を参照する。
In the interrupt
CPU選択レジスタ回路12は、その結果、要因F1に対応する割込処理を第1の処理回路Aが実行すべきである旨を知得し、さらに、上記した変形例1のプライオリティ回路14に代わって、前記割込信号Sint及び前記ベクター信号Svctを出力する。
As a result, the CPU
切換回路15は、当該ベクター信号Svctを受けると、変形例1の切換回路15と同様に、第1の処理回路Aを選択すべき旨を示す選択信号Sselを出力する。最終的に、割込コントローラ10から上記したような割込信号Sint、ベクター信号Svct、及び選択信号Sselが出力され、以下、上記した変形例1と同様な動作を行うことにより、当該変形例1と同様な効果を得ることができる。
Upon receiving the vector signal Svct, the switching
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の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第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の選択信号により示される処理回路に、当該処理回路が選択された旨を示す第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の複数の要因のうちの第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の複数の要因のうちの第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.
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) |
-
2007
- 2007-07-03 JP JP2007174857A patent/JP2008269548A/en not_active Withdrawn
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 |