JP2008269549A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

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
Application number
JP2007174858A
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 JP2007174858A priority Critical patent/JP2008269549A/en
Publication of JP2008269549A publication Critical patent/JP2008269549A/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 to each of the plurality of processing circuits. <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.

図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 factor register circuit 110, the mask circuit 120, and the priority circuit 130), the interrupt processing corresponding to the factor F1 should be executed by the first processing circuit A. An interrupt signal indicating the effect and a vector signal indicating the address (start address) of the area on the first memory circuit 300 in which the contents of the interrupt processing are stored are output. When the first processing circuit A receives the interrupt signal and the vector signal, the first processing circuit A performs the interrupt processing according to the contents of the interrupt processing stored after the head address in the first storage circuit 300. Execute.

上記した従来のマイクロコンピュータ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. Because of the assignment, the interrupt processing load of the first processing circuit A and the interrupt processing load of the second processing circuit B may not always be balanced.

本発明に係る第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 interrupt controller 10, a first processing circuit (CPU) A, a second processing circuit (CPU) B, and a first storage circuit 30. And a second memory circuit 40.

割込コントローラ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 11 circuit includes a plurality of factor registers 11 (1) to 11 (n), and a plurality of factors F1 to Fn (for example, button depression, temperature detection). Etc. (none shown) is received as input of factor generation signals S (F1) to S (Fn) indicating that they have occurred.

以下では、説明及び理解を容易にすべく、基本的に、四つの要因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 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), and similarly, the factor generation signals S (F2), S (F3), and S (F4) indicating that the factor F2, the factor F3, and the factor F4 have occurred. Is input, the factor registers 11 (2), 11 (3), and 11 (n) are set to “present”.

「あり」に設定された要因レジスタ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 selection register circuit 12 is a “processing selection register circuit”, and as shown in FIG. 2B, the factors F1 to Fn and the CPU to process the factors F1 to Fn, more precisely the factors The correspondence relationship with the CPU that should execute the interrupt processing corresponding to F1 to Fn is defined in advance. For example, the CPU selection register circuit 12 performs an interrupt process corresponding to the factors F1, F2, F3, and Fn as a first processing circuit A, a second processing circuit B, a second processing circuit B, and a first processing. It defines that each circuit A should execute.

マスク回路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 four factors F1, F2, F3, and Fn is “permitted”, “permitted”, “permitted”, and “prohibited”, respectively.

プライオリティ回路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 priority circuit 14 defines the priority (priority) of the factors to be processed by the first processing circuit A among the factors F1 to Fn. In other words, The priority for interrupt processing to be performed by the first processing circuit A is defined. The priority circuit 14 includes, for example, the first processing circuit A that causes the factors F1, F4, F6,. . . , Fn is specified to be executed. The priority circuit 14 further defines that the priority of interrupt processing corresponding to the factors F1, F4, and F6 is “high”, “medium”, and “low”, respectively, while the mask circuit 13 stipulates that the priority of the interrupt processing corresponding to the factor Fn “prohibited” is “−” (indefinite (= actual prohibition)).

プライオリティ回路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 priority circuit 14 defines the priority for the factor to be processed by the second processing circuit B among the factors F1 to Fn. The priority for interrupt processing to be performed by the processing circuit B is defined. The priority circuit 14 includes, for example, the second processing circuit B that causes factors F2, F3, F5,. . . , F (n-1) is specified to be interrupted. The priority circuit 14 further defines that the priority of interrupt processing corresponding to the factors F2, F3, and Fn is “high”, “extremely high”, and “low”, respectively, The fact that the priority of the interrupt process corresponding to the factor F5 (not shown in FIG. 2C) that is “prohibited” by the circuit 13 is “−” (indefinite (= actual prohibition)). It prescribes.

図1に戻り、プライオリティ回路14は、第1の処理回路Aに、当該第1の処理回路Aが何らかの割込処理を行う必要が生じた旨を示す割込信号Sint1、当該第1の処理回路Aが実行すべき割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svct1、及び、当該第1の処理回路Aが選択された旨を示す選択信号Ssel1を出力する。   Returning to FIG. 1, the priority circuit 14 includes an interrupt signal Sint1 indicating that the first processing circuit A needs to perform some kind of interrupt processing, and the first processing circuit A. A vector signal Svct1 indicating the start address of the area in which the contents of the interrupt processing to be executed by A and a selection signal Ssel1 indicating that the first processing circuit A is selected are output.

プライオリティ回路14は、同様にして、第2の処理回路Bに、当該第2の処理回路Bが何らかの割込処理を行う必要が生じた旨を示す割込信号Sint2、当該第2の処理回路Bが実行すべき割込処理の内容が格納されている領域の先頭アドレスを示すベクター信号Svct2、及び、当該第2の処理回路Bが選択された旨を示す選択信号Ssel2を出力する。   Similarly, the priority circuit 14 causes the second processing circuit B to receive an interrupt signal Sint2 indicating that the second processing circuit B needs to perform some interrupt processing, and the second processing circuit B. Outputs a vector signal Svct2 indicating the start address of the area in which the contents of the interrupt processing to be executed are stored, and a selection signal Ssel2 indicating that the second processing circuit B is selected.

より詳細には、例えば、要因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 mask circuit 13 receives the interrupt processing for the factors F1, F2, and F3 among the factors F1, F2, F3, and Fn. On the other hand, acceptance of the interrupt processing for the factor Fn is “prohibited”. Next, the priority circuit 14 determines from the specified contents of the CPU selection register circuit 12 (illustrated in FIG. 2B) that “the interrupt processing of the factor F1 corresponds to the first processing circuit A”, and , The fact that the interrupt processing of factor F2 and the interrupt processing of factor F3 correspond to the second processing circuit B is acquired. Furthermore, the priority circuit 14 knows that “the factor F3 has a higher priority than the factor F2” from the specified contents of the priority circuit 14 itself (shown in FIG. 2 (D2)).

その結果、プライオリティ回路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 priority circuit 14 finally executes “interrupt processing of the factor F1 to the first processing circuit A” and “executes interrupt processing of the factor F3 to the second processing circuit B. After that, it is determined that the interrupt processing of the factor F2 is to be executed by the second processing circuit B ”. As a result of the determination, the priority circuit 14 stores the first processing circuit A in which the interrupt signal Sint1 indicating that the interrupt processing of the factor F1 has occurred and the contents of the interrupt processing of the factor F1 are stored. A vector signal Svct1 indicating the start address “1001” of the area on the storage circuit 30 and a selection signal Ssel1 indicating that the first processing circuit A is selected are output. On the other hand, the priority circuit 14 stores, in the second processing circuit B, the interrupt signal Sint2 indicating that the interrupt processing of the factor F3 has occurred, and the contents of the interrupt processing of the factor F3 are stored in the second memory. The vector signal Svct2 indicating the start address “2003” of the area on the circuit 40 and the selection signal Ssel2 indicating that the second processing circuit B is selected are output.

第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 first storage circuit 30 and the second storage circuit 40. It executes based on the contents of the interrupt process. More specifically, for example, when the first processing circuit A receives the interrupt signal Sint1, the vector signal Svct1, and the selection signal Ssel1 as described above from the priority circuit 14, the address “of the first storage circuit 30” Jump to the jump destination address “3100” stored in “1001” and start executing the interrupt processing for the factor F1 stored after the address “3100”. When completing the interrupt processing of the factor F1, the first processing circuit A sets (clears) the factor register 11 (1) in the factor register circuit 11 from “present” (unresolved) to “none” (resolved). )

同様にして、第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 priority circuit 14, the address “2003” of the second storage circuit 40 is received. Is jumped to the jump destination address “5300”, and the execution of the interrupt processing for the factor F3 stored after the address “5300” is started. When the interrupt processing for the factor F3 is completed, the second processing circuit B sets the factor register 11 (3) in the factor register circuit 11 from “present” to “none”.

前記要因レジスタ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 priority circuit 14 causes the second processing circuit B to cause the second processing circuit B to execute the factor F2 interrupt processing. An interrupt signal Sint2 indicating that the interrupt processing has occurred, a vector signal Svct2 indicating the start address “2002” of the area on the second memory circuit 40 in which the contents of the interrupt processing of the factor F2 are stored, and When the second processing circuit B receives the three signals Sint2, Svct2, and Ssel2 and outputs the selection signal Ssel2 indicating that the second processing circuit B has been selected, the factor F2 The execution of the interrupt process is started.

《効果》
上述したように、実施例のマイクロコンピュータ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 priority circuit 14 outputs the interrupt signal Sint1, the vector signal Svct1, and the selection signal Ssel1 to the first processing circuit A, so that the first processing circuit A Then, the interrupt processing of the factor F1 is executed, and at the same time, the interrupt signal Sint2, the vector signal Svct2, and the selection signal Ssel2 are output to the second processing circuit B. Since the interrupt processing is executed, the first processing circuit A and the second processing circuit B can execute the interrupt processing separately as in the conventional case. In addition, unlike the conventional case, two interrupts are performed. Since the controllers 100 and 200 are not required, the circuit scale is reduced, and as a result, low cost and low power consumption can be realized. It made.

また、要因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, the processing load can be easily balanced between the first processing circuit A and the second processing circuit B.

《変形例》
図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 controller 10 of the modified example has a factor register circuit 11 and a CPU selection register circuit 12 in the same manner as the interrupt controller 10 of the above-described embodiment. Unlike the interrupt controller 10, the mask circuit 13 and the priority circuit 14 are not provided. In the microcomputer M10 of the modification, when the factor generation signals S (F1) and S (F2) indicating that the factors F1 and F2 are generated are input, the factor registers 11 (1) and 11 ( 2) is set to “Yes” (unresolved).

要因レジスタ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 selection register circuit 12 refers to the correspondence shown in FIG. It is learned that the processing circuit A should execute, and that the second processing circuit B should execute the interrupt processing corresponding to the factor F2.

前記知得の後、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 selection register circuit 12 assigns to the first processing circuit A that should execute the interrupt process corresponding to the factor F1 the interrupt that indicates that the interrupt process should be executed, as in the embodiment. An interrupt signal Sint1, a vector signal Svct1 indicating the area where the contents of the interrupt processing corresponding to the factor F1 are stored, and a selection signal Ssel1 indicating that the first processing circuit A is selected, and In the second processing circuit B that should execute the interrupt process corresponding to the factor F2, the interrupt signal Sint2 indicating that the interrupt process should be executed and the contents of the interrupt process corresponding to the factor F2 are stored. A vector signal Svct2 indicating the area in which the current signal is present and a selection signal Ssel2 indicating that the second processing circuit B has been selected are output. Hereinafter, the same effect as that of the embodiment can be obtained by performing the same operation as that of the embodiment.

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

符号の説明Explanation of symbols

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の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路であって、前記第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の複数の要因の各々が解決済みか未解決かを示す要因レジスタ回路と、
各関係が、前記複数の要因の一つと、当該一つの要因に対応する割込処理を行うべき、前記複数の処理回路の一つとの間の対応関係である複数の関係を規定する処理回路選択レジスタ回路と、
前記第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.
JP2007174858A 2007-03-29 2007-07-03 Microcomputer Withdrawn JP2008269549A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021089581A (en) * 2019-12-04 2021-06-10 株式会社デンソー Electronic control device

Cited By (2)

* Cited by examiner, † Cited by third party
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