JP2000076079A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JP2000076079A
JP2000076079A JP10249321A JP24932198A JP2000076079A JP 2000076079 A JP2000076079 A JP 2000076079A JP 10249321 A JP10249321 A JP 10249321A JP 24932198 A JP24932198 A JP 24932198A JP 2000076079 A JP2000076079 A JP 2000076079A
Authority
JP
Japan
Prior art keywords
register
standard
save
data
flow
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.)
Pending
Application number
JP10249321A
Other languages
Japanese (ja)
Inventor
Hiroyuki Taniguchi
啓之 谷口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP10249321A priority Critical patent/JP2000076079A/en
Publication of JP2000076079A publication Critical patent/JP2000076079A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To transit to interrupting processing at high a speed at the time of interruption occurrence. SOLUTION: A saving register 16 to be used for holding the same data as data held in a standard register 14 is provided in addition to the standard register 12 to be used for an ALU 12 at the time of ordinary operation, data in the standard register 16 flow to the saving register 16 by a bus control circuit 18 at the time of ordinary operation, data held in the standard register 14 flow to the saving register 16 and when an interruption occurs, the flow of data from the standard register 14 to the saving register 16 is stopped. When the interruption processing is finished, the flow of data between the standard register 14 and saving register 16 is controlled so as to let the data held in the saving register 16 flow to the standard register 14 and to hold them.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータに係り、特に割込み機能を有するマイクロコンピュ
ータに関する。
The present invention relates to a microcomputer, and more particularly, to a microcomputer having an interrupt function.

【0002】[0002]

【従来の技術】従来のマイクロコンピュータは、通常、
図5に示すように、ALU2がレジスタ4にデータを読
み書きしながら動作している。また、割込み処理が発生
した場合には、図6のように、割込み処理前のレジスタ
22に保持されたデータを、RAMに確保されるメモリ
領域6に退避して割込み処理に遷移する。
2. Description of the Related Art Conventional microcomputers usually include:
As shown in FIG. 5, the ALU 2 operates while reading / writing data from / to the register 4. When an interrupt process occurs, as shown in FIG. 6, the data held in the register 22 before the interrupt process is saved in the memory area 6 secured in the RAM, and the process proceeds to the interrupt process.

【0003】割込み処理が終了すると、メモリ領域6に
退避されていた、割込み処理前のレジスタ4の内容8を
レジスタ4に書き戻して、割込み処理前の処理を継続す
る。
When the interrupt processing is completed, the contents 8 of the register 4 before the interrupt processing saved in the memory area 6 are written back to the register 4, and the processing before the interrupt processing is continued.

【0004】従来のマイクロコンピュータでは、割込み
要求が発生した場合、ソフトウェアによってレジスタ4
に保持されたデータをメモリ領域6へ退避させ、割込み
処理が終了した後に、メモリ領域6からレジスタにデー
タを書き戻す処理が行われている。
In a conventional microcomputer, when an interrupt request occurs, the register 4 is controlled by software.
Is saved to the memory area 6, and after the interrupt processing is completed, the data is written back from the memory area 6 to the register.

【0005】[0005]

【発明が解決しようとする課題】このように従来のマイ
クロコンピュータでは、割込みが発生した際、ソフトウ
ェアによりレジスタ2に保持されたデータをRAMに確
保されるメモリ領域6の退避し、割込み処理が終了した
後、退避したデータの書き戻しを行っていた。
As described above, in the conventional microcomputer, when an interrupt occurs, the data held in the register 2 is saved by software to the memory area 6 secured in the RAM, and the interrupt processing ends. After that, the saved data was written back.

【0006】すなわち、ソフトウェアによるレジスタに
保持されたデータの退避と書き戻しの処理では、割込み
処理に遷移するまでの時間が大きくなり、瞬時に割込み
処理に遷移することが出来なかった。また、レジスタの
データの退避と書き戻しの処理をソフトウェアにより行
うことで、その分、プログラムのコードサイズが大きく
なっていた。
That is, in the process of saving and writing back the data held in the register by the software, the time until the transition to the interrupt process becomes long, and it is not possible to instantaneously transition to the interrupt process. In addition, since the data in the register is saved and written back by the software, the code size of the program is correspondingly increased.

【0007】このような問題を解決するため、特開平4
−7642号公報において、レジスタと同一の構成を持
つ退避用レジスタを設けたマイクロコンピュータが提案
されている。このマイクロコンピュータによれば、割り
込み処理に遷移するまでの時間を短縮することができ
る。しかし、このマイクロコンピュータでは、退避用レ
ジスタの内容をさらに内蔵RAMのスタックに転送して
いる。そして、割り込みから復帰するときには、スタッ
クから読み出して汎用レジスタへの書き戻しを行ってい
た。このため、このマイクロコンピュータでも、割り込
み処理から復帰する場合の処理時間が大きいことや、書
き戻し時のソフトウェアの負担が大きいなどの課題を解
決するものではなかった。
To solve such a problem, Japanese Patent Laid-Open No.
Japanese Patent Application Publication No. 7642 proposes a microcomputer provided with an evacuation register having the same configuration as a register. According to this microcomputer, it is possible to shorten the time required for transition to the interrupt processing. However, in this microcomputer, the contents of the save register are further transferred to the stack of the built-in RAM. When returning from the interrupt, the data is read from the stack and written back to the general-purpose register. For this reason, this microcomputer has not been able to solve problems such as a long processing time when returning from interrupt processing and a heavy load on software at the time of writing back.

【0008】本発明は、前記のような事情を考慮してな
されたもので、割込み発生時に高速に割込み処理に遷移
し、かつ割り込みからの復帰を高速に行うことが可能な
マイクロコンピュータを提供することを目的とする。
The present invention has been made in view of the above-described circumstances, and provides a microcomputer which can quickly transition to interrupt processing when an interrupt occurs and can return from the interrupt at high speed. The purpose is to:

【0009】[0009]

【課題を解決するための手段】本発明は、通常の動作時
に演算器が使用する標準レジスタの他に、標準レジスタ
に保持されるデータと同じデータを保持するために使用
する退避レジスタを設け、制御回路によって、通常の動
作時に標準レジスタのデータを退避レジスタに流して、
標準レジスタに保持されたデータを退避レジスタに退避
させ、割込みが発生した時に表準レジスタから退避レジ
スタへのデータの流れを停止し、割込み処理が終了した
時、退避レジスタが保持するデータを標準レジスタに流
して保持させるように、標準レジスタと退避レジスタと
の間のデータ流れを制御することで、標準レジスタに保
持されたデータが、常時、退避レジスタに保持されるよ
うにすることで、割込み発生時のレジスタの退避処理を
不要にしている。
According to the present invention, in addition to a standard register used by an arithmetic unit during normal operation, a save register used to hold the same data as the data held in the standard register is provided. The control circuit allows the data in the standard register to flow to the save register during normal operation,
Saves the data held in the standard register to the save register, stops the flow of data from the table register to the save register when an interrupt occurs, and saves the data held in the save register when the interrupt processing ends. The data flow between the standard register and the save register is controlled so that the data is held in the save register, so that the data held in the standard register is always held in the save register. This eliminates the need to save registers at the time.

【0010】ここで、退避レジスタは、標準レジスタと
の数と同数だけ設け、標準レジスタと退避レジスタの対
応するもの同士を、制御回路を介して専用バスで結合す
ることを好適とする。
Here, it is preferable that the same number of save registers as the number of standard registers be provided, and the corresponding standard registers and save registers be connected to each other by a dedicated bus via a control circuit.

【0011】[0011]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1は、本実施形態に係わるマイクロコン
ピュータ10の概略構成を示すブロック図である。図1
に示すように、マイクロコンピュータ10には、ALU
12、標準レジスタ14、退避レジスタ16、バス制御
回路18が含まれて構成される。
FIG. 1 is a block diagram showing a schematic configuration of a microcomputer 10 according to the present embodiment. FIG.
As shown in FIG.
12, a standard register 14, a save register 16, and a bus control circuit 18.

【0013】ALU12(演算器)には、ALU12が
通常の動作をする際に使用する標準レジスタ14が接続
されている。標準レジスタ14は、バス20a、バス制
御回路18、及びバス20bを介して退避レジスタ16
に接続されている。退避レジスタ16は、バス制御回路
18の制御により、バス20a,20bを介して得られ
る標準レジスタ14に保持されたデータを保持(退避)
するために使用される。
A standard register 14 used when the ALU 12 performs a normal operation is connected to the ALU 12 (arithmetic unit). The standard register 14 stores the save register 16 via the bus 20a, the bus control circuit 18, and the bus 20b.
It is connected to the. The save register 16 holds (saves) the data held in the standard register 14 obtained via the buses 20a and 20b under the control of the bus control circuit 18.
Used to

【0014】ALU12は、マイクロコンピュータ12
の外部からの割込み要求を受け付けるための割込み処理
要求30が入力される。また、ALU12は、割込み処
理要求30に応じた割込み信号32をバス制御回路18
に出力する。
The ALU 12 is a microcomputer 12
An interrupt processing request 30 for receiving an external interrupt request is input. Further, the ALU 12 sends an interrupt signal 32 corresponding to the interrupt processing request 30 to the bus control circuit 18.
Output to

【0015】バス制御回路18は、外部からの割込み処
理終了信号34とカウントクロック36が入力される。
バス制御回路18は、外部からの割込み処理終了信号3
4とALU12からの割込み信号32により、バス20
a,20bに流れる信号の方向、すなわち標準レジスタ
14と退避レジスタ16との間のデータの流れを制御す
る。
The bus control circuit 18 receives an interrupt processing end signal 34 and a count clock 36 from outside.
The bus control circuit 18 receives an external interrupt processing end signal 3
4 and the interrupt signal 32 from the ALU 12
a, 20b, that is, the data flow between the standard register 14 and the save register 16 is controlled.

【0016】バス制御回路18は、通常の動作時に標準
レジスタ14に保持されたデータを退避レジスタ16に
流して、標準レジスタ14と退避レジスタ16とが保持
するデータを同じとし、割込みが発生した時に標準レジ
スタ14から退避レジスタ16へのデータの流れを停止
し、割込み処理が終了した時、退避レジスタ16が保持
するデータを標準レジスタ14に流して保持させるよう
に、標準レジスタ14と退避レジスタ16との間のデー
タ流れを制御する。
The bus control circuit 18 causes the data held in the standard register 14 to flow to the save register 16 during normal operation, and makes the data held in the standard register 14 and the save register 16 the same. The flow of data from the standard register 14 to the save register 16 is stopped, and when the interrupt processing is completed, the data held by the save register 16 is flowed to the standard register 14 so as to be held therein. Control the flow of data between.

【0017】図2は、図1中に示す標準レジスタ14、
退避レジスタ16、及びバス制御回路18の関係を示す
詳細な構成を示すブロック図である。図2に示すよう
に、標準レジスタ14と退避レジスタ16は、同一の構
成を持っている。標準レジスタ14と退避レジスタ16
との間のバス20a,20bは、レジスタを構成するビ
ットごとにバス制御回路18を介して接続されている。
FIG. 2 shows the standard register 14 shown in FIG.
FIG. 3 is a block diagram showing a detailed configuration showing a relationship between a save register 16 and a bus control circuit 18. As shown in FIG. 2, the standard register 14 and the save register 16 have the same configuration. Standard register 14 and save register 16
Are connected via a bus control circuit 18 for each bit constituting a register.

【0018】図3は、図2中に示すバス制御回路18の
詳細な構成を示すブロック図である。図3に示すよう
に、バス制御回路18には、カウンタ40、比較器A4
2、比較器B44、及び信号方向変更回路46が設けら
れている。
FIG. 3 is a block diagram showing a detailed configuration of the bus control circuit 18 shown in FIG. As shown in FIG. 3, the bus control circuit 18 includes a counter 40 and a comparator A4.
2, a comparator B44 and a signal direction changing circuit 46 are provided.

【0019】カウンタ40は、割込み処理要求30とカ
ウントクロック36が入力される。カウンタ40には、
比較器A42と比較器B44が接続される。比較器A4
2には、カウンタ40からの出力と割込み信号32とが
入力される。比較器B44には、カウンタ40からの出
力と割込み処理要求30とが入力される。
The counter 40 receives the interrupt processing request 30 and the count clock 36. In the counter 40,
The comparator A42 and the comparator B44 are connected. Comparator A4
2, the output from the counter 40 and the interrupt signal 32 are input. The output from the counter 40 and the interrupt processing request 30 are input to the comparator B44.

【0020】信号方向変更回路46は、バス20aを介
して標準レジスタ14の各ビットと接続され、バス20
bを介して退避レジスタ16の各ビットと接続される。
信号方向変更回路46には、標準レジスタ14から退避
レジスタ16へのデータの流れを制御するスイッチA
と、退避レジスタ16から標準レジスタ14へデータ流
れを制御するスイッチBが、バス20a,20bを構成
する信号線各一本ごとに並列に接続されている。スイッ
チAは、比較器A42からの信号によってオン/オフが
制御される。スイッチBは、比較器B44からの信号に
よってオン/オフが制御される。
The signal direction changing circuit 46 is connected to each bit of the standard register 14 via the bus 20a.
It is connected to each bit of the save register 16 via b.
The signal direction changing circuit 46 includes a switch A for controlling the flow of data from the standard register 14 to the save register 16.
And a switch B for controlling a data flow from the save register 16 to the standard register 14 are connected in parallel for each signal line constituting the buses 20a and 20b. On / off of the switch A is controlled by a signal from the comparator A42. On / off of the switch B is controlled by a signal from the comparator B44.

【0021】次に、本実施形態におけるマイクロコンピ
ュータ10の動作について説明する。マイクロコンピュ
ータ10が通常の動作を行っている時には、ALU12
は、標準レジスタ14を使用して動作している。また、
バス制御回路18は、信号方向変更回路46のスイッチ
Aを比較器A42によりオンさせ、標準レジスタ14か
ら退避レジスタ16へのデータの流れを有効にしてい
る。(なお、信号方向変更回路46のスイッチBを比較
器B44によりオフさせている)。従って、ALU12
による通常の動作に伴って標準レジスタ14に書き込ま
れたデータは、退避レジスタ16にも即座に反映されて
保持される。つまり、標準レジスタ14に保持されたデ
ータが、常時、退避レジスタ16に退避されている。
Next, the operation of the microcomputer 10 in the present embodiment will be described. When the microcomputer 10 is performing a normal operation, the ALU 12
Operate using the standard register 14. Also,
The bus control circuit 18 turns on the switch A of the signal direction changing circuit 46 by the comparator A42, thereby enabling the flow of data from the standard register 14 to the save register 16. (Note that the switch B of the signal direction changing circuit 46 is turned off by the comparator B44). Therefore, ALU12
The data written in the standard register 14 as a result of the normal operation is immediately reflected in the save register 16 and held. That is, the data held in the standard register 14 is always saved in the save register 16.

【0022】一方、ALU12は、割込み処理要求30
が外部より入力されると、割込み信号32をバス制御回
路18に出力する。バス制御回路18は、比較器A42
により割込み信号32を入力する。比較器A42は、割
込み信号32に応じて信号方向変更回路46のスイッチ
Aをオフする。すなわち、標準レジスタ14から退避レ
ジスタ16へのデータの流れを停止させる。
On the other hand, the ALU 12 transmits the interrupt processing request 30
Is input from the outside, an interrupt signal 32 is output to the bus control circuit 18. The bus control circuit 18 includes a comparator A42
Input the interrupt signal 32. The comparator A42 turns off the switch A of the signal direction changing circuit 46 in response to the interrupt signal 32. That is, the flow of data from the standard register 14 to the save register 16 is stopped.

【0023】このデータの流れの停止により、割込み信
号32がバス制御回路18に入力される直前、すなわち
割込み処理が開始される前の標準レジスタ14に保持さ
れたデータが退避レジスタ16に保持されていることに
なる。従って、標準レジスタ14に保持されたデータに
対する退避処理を行なうことなく、マイクロコンピュー
タ10は、即座に割込み処理に遷移することが出来る。
Due to the stoppage of the data flow, the data held in the standard register 14 immediately before the interrupt signal 32 is input to the bus control circuit 18, ie, before the interrupt processing is started, is held in the save register 16. Will be. Accordingly, the microcomputer 10 can immediately transition to the interrupt processing without performing the save processing for the data held in the standard register 14.

【0024】割込み処理が終了すると割込み処理終了信
号34がバス制御回路18に入力される。バス制御回路
18は、比較器B44により割込み処理終了信号34を
入力する。比較器B44は、割込み処理終了信号34に
応じて信号方向変更回路46のスイッチBをオンする。
すなわち、退避レジスタ16から標準レジスタ14への
データの流れを有効にする(スイッチAはオフ状態のま
ま)。
When the interrupt processing is completed, an interrupt processing end signal 34 is input to the bus control circuit 18. The bus control circuit 18 receives the interrupt processing end signal 34 from the comparator B44. The comparator B44 turns on the switch B of the signal direction changing circuit 46 according to the interrupt processing end signal 34.
That is, the flow of data from the save register 16 to the standard register 14 is enabled (the switch A remains off).

【0025】この退避レジスタ16から標準レジスタ1
4へのデータの流れを有効にすることで、退避レジスタ
16に保持されていたデータ、すなわち割込み処理前に
退避されていたデータが標準レジスタ14に書き戻され
る。
From the save register 16 to the standard register 1
By enabling the flow of data to 4, the data held in the save register 16, that is, the data saved before the interrupt processing, is written back to the standard register 14.

【0026】標準レジスタ14にデータを書き戻す作業
が終了すると、バス制御回路18は通常の動作に戻り、
ALU12により標準レジスタ14に書き込まれたデー
タが退避レジスタ16にも反映されるように、比較器A
42によりスイッチAをオン、比較器B44によりスイ
ッチBをオフさせる。これにより、標準レジスタ14に
保持されたデータが、常時、退避レジスタ16に退避さ
れる。
When the operation of writing data back to the standard register 14 is completed, the bus control circuit 18 returns to the normal operation,
The comparator A is operated so that the data written in the standard register 14 by the ALU 12 is reflected in the save register 16.
The switch A is turned on by 42 and the switch B is turned off by the comparator B44. Thus, the data held in the standard register 14 is always saved in the save register 16.

【0027】図4は、各信号のタイミングを示すタイミ
ングチャートである。図4を参照すると、通常動作中に
割込み要求が発生すると、T0でマイクロコンピュータ
10からの割込み処理要求30がALU12に入力され
る。ALU12は、割込み処理を行い割込み信号32を
バス制御回路18に出力する。
FIG. 4 is a timing chart showing the timing of each signal. Referring to FIG. 4, when an interrupt request occurs during a normal operation, an interrupt processing request 30 from the microcomputer 10 is input to the ALU 12 at T0. The ALU 12 performs an interrupt process and outputs an interrupt signal 32 to the bus control circuit 18.

【0028】この割込み信号32の立ち下がりT1で比
較器A42がオフとなる。比較器A42の出力がオフと
なるとスイッチAもT2でオフとなる。T2がオフとな
っているので標準レジスタ14から退避レジスタ16へ
のデータの流れも停止する。ここから割込み処理に遷移
して割込み処理が実行される。
The comparator A42 is turned off at the falling edge T1 of the interrupt signal 32. When the output of the comparator A42 turns off, the switch A also turns off at T2. Since T2 is off, the flow of data from the standard register 14 to the save register 16 also stops. From here, a transition is made to interrupt processing, and interrupt processing is executed.

【0029】割込み処理が終了すると割込み処理終了信
号34がバス制御回路18のカウンタ40と比較器B4
4に入力される。この割込み処理終了信号34の立ち下
がりT3で比較器B44がオンとなる。比較器B44の
出力がオンになるとスイッチBもT4でオンとなり、退
避レジスタ16から標準レジスタ14へのデータの流れ
が有効となり、退避レジスタ16に保持されていたデー
タが標準レジスタ14に書き戻される。
When the interrupt processing is completed, the interrupt processing end signal 34 is output to the counter 40 of the bus control circuit 18 and the comparator B4.
4 is input. The comparator B44 is turned on at the falling T3 of the interrupt processing end signal 34. When the output of the comparator B44 is turned on, the switch B is also turned on at T4, the data flow from the save register 16 to the standard register 14 becomes valid, and the data held in the save register 16 is written back to the standard register 14. .

【0030】また、T3ではカウンタ40も割込み処理
終了信号34によりカウント動作を開始し、退避レジス
タ16から標準レジスタ14への書き戻しに必要な時間
だけカウントするとカウンタパルスを発生して比較器A
15と比較器B16に出力する。
At T3, the counter 40 also starts a counting operation in response to the interrupt processing end signal 34. When the counter 40 counts for a time necessary for writing back from the save register 16 to the standard register 14, a counter pulse is generated and the comparator A
15 and a comparator B16.

【0031】カウンタパルスの立ち下がりで比較器A4
2と比較器B44の出力が反転する。この反転した出力
はT6でスイッチAとスイッチBのそれぞれに入力さ
れ、スイッチAとスイッチBの状態が割込み処理前の状
態になり、バス制御回路18は通常の動作に戻り、標準
レジスタ14に書き込まれたデータが退避レジスタ16
に反映(退避)される状態になる。
At the falling edge of the counter pulse, the comparator A4
2 and the output of the comparator B44 are inverted. The inverted output is input to each of the switches A and B at T6, and the states of the switches A and B become the states before the interrupt processing, and the bus control circuit 18 returns to the normal operation and is written in the standard register 14. The saved data is stored in the save register 16
Is reflected (evacuated).

【0032】以上説明したように、この実施の形態にか
かるマイクロコンピュータでは、割り込み処理に遷移す
る場合は、標準レジスタ14の内容をバス20a、バス
制御回路18及びバス20bを介して退避レジスタ16
に書き込めばよい。一方、割り込み処理から復帰する場
合は、退避レジスタ16の内容をバス20b、バス制御
回路18及びバス20aを介して、標準レジスタに書き
戻すことができる。
As described above, in the microcomputer according to the present embodiment, when a transition is made to interrupt processing, the contents of the standard register 14 are stored in the save register 16 via the bus 20a, the bus control circuit 18 and the bus 20b.
Just write it to On the other hand, when returning from the interrupt processing, the contents of the save register 16 can be written back to the standard register via the bus 20b, the bus control circuit 18 and the bus 20a.

【0033】このため、割り込み処理に遷移するために
必要となる処理時間を短くすることができるだけでな
く、割り込み処理から復帰するために必要となる処理時
間をも短くすることができる。
For this reason, not only can the processing time required to transition to the interrupt processing be reduced, but also the processing time required to return from the interrupt processing can be reduced.

【0034】[0034]

【発明の効果】以上詳述したように本発明によれば、通
常の動作時に、演算器が動作する際に使用する標準レジ
スタが保持するデータを、常時、退避レジスタに反映さ
せることで、割込み要求が発生した時に、標準レジスタ
に保持されたデータに対する退避処理を行なうことなく
割込み処理に遷移することが可能となる。すなわち、割
込み処理の要求が発生した時に、レジスタのデータをメ
モリへ退避させるソフトウェアによる処理が不要となり
高速に割込み処理への遷移が可能となる。また、ソフト
ウエアによるレジスタの退避処理が必要なくコードサイ
ズを削減することができる。
As described above in detail, according to the present invention, during normal operation, the data held in the standard register used when the operation unit operates is always reflected in the save register, so that the interrupt can be performed. When a request occurs, it is possible to transition to interrupt processing without performing save processing for data held in the standard register. That is, when an interrupt processing request is generated, processing by software for saving the data of the register to the memory is not required, and the transition to the interrupt processing can be performed at high speed. Further, the code size can be reduced without the need for software to save the register.

【0035】さらに、本発明によれば、割り込みからの
復帰時の処理時間も短くすることができる。
Further, according to the present invention, the processing time when returning from an interrupt can be shortened.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態に係わるマイクロコンピュータの概
略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a microcomputer according to an embodiment.

【図2】図1中に示す標準レジスタ、退避レジスタ、及
びバス制御回路の関係を示すブロック図である。
FIG. 2 is a block diagram showing a relationship among a standard register, a save register, and a bus control circuit shown in FIG.

【図3】図2中に示すバス制御回路の詳細な構成を示す
ブロック図である。
FIG. 3 is a block diagram showing a detailed configuration of a bus control circuit shown in FIG. 2;

【図4】各信号のタイミングを示すタイミングチャート
である。
FIG. 4 is a timing chart showing the timing of each signal.

【図5】マイクロコンピュータの動作を説明するための
図である。
FIG. 5 is a diagram for explaining the operation of the microcomputer.

【図6】割込み処理が発生した場合のレジスタの退避処
理を説明するための図である。
FIG. 6 is a diagram illustrating a register save process when an interrupt process occurs.

【符号の説明】[Explanation of symbols]

10 マイクロコンピュータ 12 ALU 14 標準レジスタ 16 退避レジスタ 20a,20b バス 30 割込み処理要求 32 割込み信号 34 割込み処理終了信号 36 カウントクロック 40 カウンタ 42 比較器A 44 比較器B 46 信号方向変更回路 A,B スイッチ Reference Signs List 10 microcomputer 12 ALU 14 standard register 16 save register 20a, 20b bus 30 interrupt processing request 32 interrupt signal 34 interrupt processing end signal 36 count clock 40 counter 42 comparator A 44 comparator B 46 signal direction changing circuit A, B switch

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】演算器と、 通常の動作時に前記演算器が使用する標準レジスタと、 前記標準レジスタに保持されるデータと同じデータを保
持するための退避レジスタと、 通常の動作時に前記標準レジスタのデータを前記退避レ
ジスタに流して、前記標準レジスタに保持されるデータ
を前記退避レジスタに退避させ、割込みが発生した時に
前記表準レジスタから前記退避レジスタへのデータの流
れを停止し、割込み処理が終了した時、前記退避レジス
タが保持するデータを前記標準レジスタに流して保持さ
せるように、前記標準レジスタと前記退避レジスタとの
間のデータ流れを制御する制御回路とを具備したことを
特徴とするマイクロコンピュータ。
An arithmetic unit, a standard register used by the arithmetic unit during normal operation, a save register for storing the same data as the data held in the standard register, and a standard register during normal operation. In the save register, save the data held in the standard register to the save register, stop the flow of data from the reference register to the save register when an interrupt occurs, and execute interrupt processing. And a control circuit for controlling a data flow between the standard register and the save register so that the data held by the save register is caused to flow to the standard register when the save is completed. Microcomputer.
【請求項2】前記退避レジスタは、前記標準レジスタと
の数と同数だけあり、 前記標準レジスタと前記退避レジスタとは、前記制御回
路を介して対応するもの同士が専用バスで結合されてい
ることを特徴とする請求項1に記載のマイクロコンピュ
ータ。
2. The number of the save registers is equal to the number of the standard registers, and the standard registers and the save registers are connected to each other via the control circuit by a dedicated bus. The microcomputer according to claim 1, wherein:
JP10249321A 1998-09-03 1998-09-03 Microcomputer Pending JP2000076079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10249321A JP2000076079A (en) 1998-09-03 1998-09-03 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10249321A JP2000076079A (en) 1998-09-03 1998-09-03 Microcomputer

Publications (1)

Publication Number Publication Date
JP2000076079A true JP2000076079A (en) 2000-03-14

Family

ID=17191271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10249321A Pending JP2000076079A (en) 1998-09-03 1998-09-03 Microcomputer

Country Status (1)

Country Link
JP (1) JP2000076079A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004063925A1 (en) * 2003-01-09 2004-07-29 Japan Science And Technology Agency Context switching method, device, program, recording medium, and central processing unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004063925A1 (en) * 2003-01-09 2004-07-29 Japan Science And Technology Agency Context switching method, device, program, recording medium, and central processing unit
US8020169B2 (en) 2003-01-09 2011-09-13 Japan Science And Technology Agency Context switching system having context cache and a register file for the save and restore context operation

Similar Documents

Publication Publication Date Title
US20150234661A1 (en) Semiconductor integrated circuit device and system using the same
JPH07281782A (en) Clock control circuit
JP4436902B2 (en) Logic unit and integrated circuit for clearing interrupts
JP2000076079A (en) Microcomputer
JP3328638B2 (en) Memory device
US20030088724A1 (en) Asynchronous bus interface apparatus
JP2624388B2 (en) DMA device
JP4253383B2 (en) Memory device
JP2512119B2 (en) Microprocessor
JP2002244916A (en) Microcontroller
JPS5927334A (en) Direct memory access memory device
JP4478592B2 (en) Memory circuit
JPH07225739A (en) Bus interface device of pushup memory
JPH0222748A (en) Non-volatile memory control circuit
JP2000076180A (en) Bus connection device and information processing system
JPH03214275A (en) Semiconductor integrated circuit
JPH0876876A (en) Clock supply control circuit of microprocessor
JPS62168258A (en) Cpu switching circuit
JPH05265701A (en) Fifo memory
JPH08305564A (en) Microcomputer
JPH02211097A (en) Controlling circuit for step motor
JPH08106338A (en) Microcontroller
JPH03250328A (en) Information processor
JP2005092762A (en) Interface control unit, its control method, and image forming apparatus using the same
JPH10326266A (en) Microcomputer

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010313