JP2001166951A5 - - Google Patents

Download PDF

Info

Publication number
JP2001166951A5
JP2001166951A5 JP1999350193A JP35019399A JP2001166951A5 JP 2001166951 A5 JP2001166951 A5 JP 2001166951A5 JP 1999350193 A JP1999350193 A JP 1999350193A JP 35019399 A JP35019399 A JP 35019399A JP 2001166951 A5 JP2001166951 A5 JP 2001166951A5
Authority
JP
Japan
Prior art keywords
register
interrupt
irr
priority
stored
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.)
Granted
Application number
JP1999350193A
Other languages
Japanese (ja)
Other versions
JP2001166951A (en
JP4250283B2 (en
Filing date
Publication date
Application filed filed Critical
Priority to JP35019399A priority Critical patent/JP4250283B2/en
Priority claimed from JP35019399A external-priority patent/JP4250283B2/en
Publication of JP2001166951A publication Critical patent/JP2001166951A/en
Publication of JP2001166951A5 publication Critical patent/JP2001166951A5/ja
Application granted granted Critical
Publication of JP4250283B2 publication Critical patent/JP4250283B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【特許請求の範囲】
【請求項1】
複数の割込入力からの割込要求を記憶するとともに、割込処理が開始されると対応するビットの値がリセットされるIRRレジスタと、
現在処理中の割込処理に対応する割込入力を記憶するISRレジスタと、
割込処理が開始された時点のIRRレジスタの値を記憶するILRレジスタと、
現在処理中の割込処理が終了する毎に、前記IRRレジスタ、前記ISRレジスタおよび前記ILRレジスタの値に基づき、複数の前記割込入力に対して優先順位の割り当てをし直し、次に処理すべき最も優先順位の高い割込入力からの割込要求を判定する優先順位割当回路と、
全体の動作を制御するとともに、マイクロプロセッサとのインタフェースをとる制御回路とを備えていることを特徴とする割込処理回路。
【請求項2】
前記優先順位割当回路が、前記割込要求が記憶された前記IRRレジスタの値が前記ILRレジスタに記憶されたビットに対して、前記リセットされたIRRレジスタの値が記憶されたビットに比較して高い優先順位を与えることを特徴とする請求項1記載の割込処理回路。
【請求項3】
前記優先順位割当回路が、前記IRRレジスタに前記割込要求が記憶され、かつ、前記割込要求が記憶された前記IRRレジスタの値が前記ILRレジスタに記憶されたビットに対して高い優先順位を与え、その後に、前記IRRレジスタに前記割込要求が記憶され、かつ、前記リセットされたIRRレジスタの値が前記ILRレジスタに記憶されたビットに対して優先順位を与えることを特徴とする請求項1記載の割込処理回路。
[Claims]
[Claim 1]
An IRR register that stores interrupt requests from multiple interrupt inputs and resets the corresponding bit value when interrupt processing is started.
An ISR register that stores the interrupt input corresponding to the interrupt process currently being processed,
The ILR register that stores the value of the IRR register when the interrupt process is started, and
Each time the interrupt process currently being processed is completed, the priority is reassigned to the plurality of interrupt inputs based on the values of the IRR register, the ISR register, and the ILR register, and then the interrupt process is processed. A priority assignment circuit that determines an interrupt request from the interrupt input with the highest priority to be
An interrupt processing circuit characterized in that it controls the entire operation and is provided with a control circuit that interfaces with a microprocessor.
2.
The priority allocation circuit compares the value of the IRR register in which the interrupt request is stored to the bit in which the value of the reset IRR register is stored in comparison with the bit in which the value of the IRR register is stored in the ILR register. The interrupt processing circuit according to claim 1, wherein a high priority is given.
3.
The priority assignment circuit gives a higher priority to the bits in which the interrupt request is stored in the IRR register and the value of the IRR register in which the interrupt request is stored is stored in the ILR register. The claim is characterized in that the interrupt request is stored in the IRR register and the value of the reset IRR register gives priority to the bits stored in the IRR register. 1. The interrupt processing circuit according to 1.

【0018】
【課題を解決するための手段】
上記目的を達成するために、本発明は、複数の割込入力からの割込要求を記憶するとともに、割込処理が開始されると対応するビットの値がリセットされるIRRレジスタと、現在処理中の割込処理に対応する割込入力を記憶するISRレジスタと、割込処理が開始された時点のIRRレジスタの値を記憶するILRレジスタと、現在処理中の割込処理が終了する毎に、前記IRRレジスタ、前記ISRレジスタおよび前記ILRレジスタの値に基づき、複数の前記割込入力に対して優先順位の割り当てをし直し、次に処理すべき最も優先順位の高い割込入力からの割込要求を判定する優先順位割当回路と、全体の動作を制御するとともに、マイクロプロセッサとのインタフェースをとる制御回路とを備えていることを特徴とする割込処理回路を提供するものである。
ここで、前記優先順位割当回路が、前記割込要求が記憶された前記IRRレジスタの値が前記ILRレジスタに記憶されたビットに対して、前記リセットされたIRRレジスタの値が記憶されたビットに比較して高い優先順位を与えることが好ましい。
あるいは、前記優先順位割当回路が、前記IRRレジスタに前記割込要求が記憶され、かつ、前記割込要求が記憶された前記IRRレジスタの値が前記ILRレジスタに記憶されたビットに対して高い優先順位を与え、その後に、前記IRRレジスタに前記割込要求が記憶され、かつ、前記リセットされたIRRレジスタの値が前記ILRレジスタに記憶されたビットに対して優先順位を与えることが好ましい。
0018
[Means for solving problems]
In order to achieve the above object, the present invention stores an interrupt request from a plurality of interrupt inputs, an IRR register in which the value of the corresponding bit is reset when the interrupt process is started, and an IRR register currently processed. The ISR register that stores the interrupt input corresponding to the interrupt process inside, the ILR register that stores the value of the IRR register when the interrupt process starts, and each time the interrupt process currently being processed ends. , The priority is reassigned to the plurality of interrupt inputs based on the values of the IRR register, the ISR register, and the ILR register, and the interrupt input having the highest priority to be processed next is assigned. It provides an interrupt processing circuit characterized by including a priority assignment circuit for determining an interrupt request and a control circuit for controlling the overall operation and taking an interface with a microprocessor.
Here, the priority assignment circuit changes the value of the IRR register in which the interrupt request is stored into a bit in which the value of the reset IRR register is stored with respect to the bit in which the value of the IRR register is stored in the ILR register. It is preferable to give a higher priority in comparison.
Alternatively, the priority assignment circuit gives higher priority to the bit in which the interrupt request is stored in the IRR register and the value of the IRR register in which the interrupt request is stored is stored in the ILR register. It is preferable to give the order, and then give the priority to the bit in which the interrupt request is stored in the IRR register and the value of the reset IRR register is stored in the ILR register.

続いて、優先順位判定回路24は、優先順位レジスタ22からの信号PRIに基づいて、ANDゲート28からの出力が‘1’、すなわち、現在処理中の割込処理とほぼ同時に割込要求され、もしくは、前回の割込処理が開始されてから、終了されるまでの間に割込要求がなされ、まだ割込処理が開始されていない最も優先順位の高い割込入力IR0〜5を判定する。その判定結果は、判定出力信号としてISRレジスタ18および優先順位変更回路26へ入力される。 Subsequently, the priority determination circuit 24 is requested to interrupt the output from the AND gate 28 based on the signal PRI from the priority register 22, that is, interrupt processing at almost the same time as the interrupt processing currently being processed. Alternatively, the interrupt request is made between the start of the previous interrupt process and the end of the previous interrupt process, and the interrupt input IRs 0 to 5 having the highest priority for which the interrupt process has not yet been started are determined. The determination result is input to the ISR register 18 and the priority order changing circuit 26 as a determination output signal.

【図9】 (a)〜(d)は、図に示す従来の割込処理回路の動作に対応する一実施例の表である。 9 (a) ~ (d) is a table of an example corresponding to the operation of the conventional interrupt processing circuit shown in FIG.

JP35019399A 1999-12-09 1999-12-09 Interrupt processing circuit Expired - Lifetime JP4250283B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35019399A JP4250283B2 (en) 1999-12-09 1999-12-09 Interrupt processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35019399A JP4250283B2 (en) 1999-12-09 1999-12-09 Interrupt processing circuit

Publications (3)

Publication Number Publication Date
JP2001166951A JP2001166951A (en) 2001-06-22
JP2001166951A5 true JP2001166951A5 (en) 2007-01-25
JP4250283B2 JP4250283B2 (en) 2009-04-08

Family

ID=18408856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35019399A Expired - Lifetime JP4250283B2 (en) 1999-12-09 1999-12-09 Interrupt processing circuit

Country Status (1)

Country Link
JP (1) JP4250283B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100817047B1 (en) 2004-02-27 2008-03-26 삼성전자주식회사 Interrupt controller
JP2007310438A (en) * 2006-05-16 2007-11-29 Kawasaki Microelectronics Kk Interruption processing circuit
JP5144407B2 (en) * 2008-07-07 2013-02-13 株式会社オートネットワーク技術研究所 Signal processing apparatus, signal processing method, and relay apparatus

Similar Documents

Publication Publication Date Title
JP5040050B2 (en) Multi-channel DMA controller and processor system
JPH09218847A (en) Method and device for reducing bus arbitration waiting time
JPH04211855A (en) Apparatus and method for controlling communication bus in data processing system
KR101673247B1 (en) Processor with assignable general purpose register set
US7380027B2 (en) DMA controller and DMA transfer method
JP2001166951A5 (en)
US20060155893A1 (en) Methods and apparatus for sharing memory bandwidth
JP2002024158A (en) Data transfer device and microcomputer
JP2001166951A (en) Interruption processing circuit
JPH05342142A (en) Direct memory access control system
JP3068528B2 (en) Interrupt request signal control circuit and interrupt mask circuit used therefor
JP2005173859A (en) Memory access control circuit
JPH04264652A (en) Dma control system
JP2001005721A (en) Method for filter processing by securing memory for ring buffer by dsp and its filter processing system
JP4002093B2 (en) Bus arbiter device and bus arbiter method
JPH04145510A (en) Single-chip microcomputer
JP3212830B2 (en) Interrupt request signal control circuit
JPH0532771B2 (en)
JP2005032036A (en) Device for automatically setting interruption interval value for channel card
JPH07105022A (en) Microcomputer
JPS61202258A (en) Channel processing system
JPH03273437A (en) Interruption processor
JPS6398055A (en) Input/output control system
JPS6230452B2 (en)
JPH0589034A (en) Bus control circuit