KR20010048185A - Apparatus for generating interrupt - Google Patents

Apparatus for generating interrupt Download PDF

Info

Publication number
KR20010048185A
KR20010048185A KR1019990052764A KR19990052764A KR20010048185A KR 20010048185 A KR20010048185 A KR 20010048185A KR 1019990052764 A KR1019990052764 A KR 1019990052764A KR 19990052764 A KR19990052764 A KR 19990052764A KR 20010048185 A KR20010048185 A KR 20010048185A
Authority
KR
South Korea
Prior art keywords
interrupt
unit
output
gate
signal
Prior art date
Application number
KR1019990052764A
Other languages
Korean (ko)
Inventor
기경진
Original Assignee
박종섭
주식회사 하이닉스반도체
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 박종섭, 주식회사 하이닉스반도체 filed Critical 박종섭
Priority to KR1019990052764A priority Critical patent/KR20010048185A/en
Publication of KR20010048185A publication Critical patent/KR20010048185A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4831Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30094Condition code generation, e.g. Carry, Zero flag
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/20Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits characterised by logic function, e.g. AND, OR, NOR, NOT circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE: An interrupt processor is provided to process generated interrupts by generating a carry signal from N bits counter in case that an interrupt is generated for more fixed times, by combining the carry signal with an interrupt signal, and by applying the signal to a microprocessor. CONSTITUTION: An AND gate(300) receives the M number of external interrupts. The signals are logically multiplied. A buffer(310) confirms whether a microprocessor(320) generates what sort of external interrupt. The microprocessor(320) processes the external interrupt generated. In case that the interrupt is changed into '0' from '1', the microprocessor(320) receives and processes the interrupt. An OR gate(330) logically sums up an output of the AND gate(300) and a carry signal output of an N bits counter(340).

Description

인터럽트 처리장치{Apparatus for generating interrupt}Interrupt processing unit {Apparatus for generating interrupt}

본 발명은 인터럽트 처리장치에 관한 것으로서, 특히 여러개의 인터럽트를 조합하여 하나의 인터럽트를 만든 후, 마이크로 프로세서에 인가하는 방식의 인터럽트 발생장치에서 마이크로 프로세서가 인터럽트를 처리중일 때, 다른 인터럽트가 발생하면, 발생한 다른 인터럽트도 모두 처리할 수 있도록 한 인터럽트 처리장치에 관한 것이다.The present invention relates to an interrupt processing apparatus. In particular, when a microprocessor is processing an interrupt in an interrupt generator of a method of applying a microprocessor after combining several interrupts to generate a single interrupt, when another interrupt occurs, It relates to an interrupt handler that can handle all other interrupts that have occurred.

이하, 종래 기술에 따른 인터럽트 처리장치에 대하여 첨부한 도면을 참조하여 살펴보기로 하자.Hereinafter, an interrupt processing apparatus according to the prior art will be described with reference to the accompanying drawings.

도 1a는 종래 기술에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 1b는 도 1a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도이다.1A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the prior art, and FIG. 1B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 1A.

도 1a에 도시된 종래 기술은 외부 M개의 인터럽트 신호를 조합하여 마이크로 프로세서(110)로 인가하는 것이다.The prior art illustrated in FIG. 1A combines the external M interrupt signals and applies them to the microprocessor 110.

외부 인터럽트 M개는 각각 "0"일때, 인터럽트를 요구하는 신호로서, AND게이트(100)에 입력되며, AND게이트(100)의 출력신호가 마이크로 프로세서(110)에 입력된다. 따라서, 마이크로 프로세서(110)는 인터럽트 발생시 버퍼(120)를 통하여 외부 인터럽트 소스(Source)인지를 확인한 후, 인터럽트 소스일 경우 AND게이트(100)로 부터 입력되는 인터럽트 요구신호에 따라 인터럽트를 처리한다.When the M external interrupts are "0", they are inputted to the AND gate 100 as signals for requesting interrupts, and the output signal of the AND gate 100 is input to the microprocessor 110. Therefore, the microprocessor 110 checks whether the interrupt source is an external interrupt source through the buffer 120 when an interrupt occurs, and processes the interrupt according to the interrupt request signal input from the AND gate 100 in the case of the interrupt source.

이러한 종래 기술은 마이크로 프로세서(110)의 인터럽트 인식방식이 인터럽트 신호가 "1"에서 "0"으로 변하는 것을 인식하는 경우에 문제점이 발생한다.This conventional technology has a problem when the interrupt recognition method of the microprocessor 110 recognizes that the interrupt signal changes from "1" to "0".

즉, 도 1b에서와 같이, 모든 인터럽트 소스가 "1"이고, INT-0에서 인터럽트가 발생하면, AND게이트(100)출력은 '1"에서 "0"으로 변하게 된다. 이때, 마이크로 프로세서(110)는 인터럽트를 인지하고 INT-0와 관련된 인터럽트를 처리한다. INT-0의 인터럽트 처리중 INT-1이나 다른 인터럽트 소스에서 인터럽트가 발생하면, AND게이트(100)의 출력은 변화가 없으며, 마이크로 프로세서(110)는 인터럽트 발생을 인식하지 못하여 INT-1이나 다른 인터럽트 소스와 관련된 일 즉, INT-1이나 다른 인터럽트 소스에 대한 인터럽트 처리를 수행하지 못하게 되는 문제점이 있다.That is, as shown in FIG. 1B, when all interrupt sources are “1” and an interrupt occurs at INT-0, the output of the AND gate 100 is changed from “1” to “0.” At this time, the microprocessor 110 ) Recognizes the interrupt and handles the interrupt associated with INT-0. If an interrupt occurs at INT-1 or another interrupt source during INT-0 interrupt processing, the output of AND gate 100 remains unchanged and the microprocessor 110 does not recognize the occurrence of the interrupt, there is a problem that can not perform interrupt processing for work related to INT-1 or other interrupt source, that is, INT-1 or other interrupt source.

도 2a는 종래 기술에 따른 인터럽트 처리장치에 대한 회로구성의 다른 예를 나타낸 도면이고, 도 2b는 도 2a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도이다.FIG. 2A is a diagram showing another example of a circuit configuration of an interrupt processing apparatus according to the prior art, and FIG. 2B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 2A.

도 2a에 도시된 종래 기술의 다른 예는 도 1a에 도시된 기술과 유사한 것으로, 그 차이점은 외부 인터럽트가 "1"이 될 때, 인터럽트를 요구하며, 외부 인터럽트 신호를 조합하기 위하여 도 1a의 AND게이트 대신 OR게이트(200)를 사용한다는 것이다.Another example of the prior art shown in FIG. 2A is similar to the technique shown in FIG. 1A, the difference being that when the external interrupt becomes “1”, it requires an interrupt and AND of FIG. 1A to combine the external interrupt signal. OR gate 200 is used instead of the gate.

또한, 마이크로 프로세서(210)는 인터럽트 신호가 "0"에서 "1"로 변할 때, 인식한다.The microprocessor 210 also recognizes when the interrupt signal changes from " 0 " to " 1. "

따라서, 도 2a에 도시된 종래 기술 역시 도 2b에서와 같이 INT-0인터럽트 처리중에 다른 인터럽트 소스에서 인터럽트가 발생하면, 그 인터럽트를 마이크로 프로세서(210)가 인지하지 못하여 인터럽트를 처리하지 못하는 문제점이 발생한다. 따라서, 시스템의 안정성이 저하되는 커다란 문제점이 발생하게 되는 것이다.Therefore, when the interruption occurs at another interrupt source during the INT-0 interrupt processing as shown in FIG. 2B, the microprocessor 210 does not recognize the interrupt and thus fails to process the interrupt. do. Therefore, a big problem occurs that the stability of the system is degraded.

따라서, 본 발명은 상기한 종래 기술에 따른 문제점을 해결하기 위하여 안출한 것으로 본 발명의 목적은 여러개의 인터럽트를 조합하여 하나의 인터럽트를 만든 후, 마이크로 프로세서에 인가하는 방식의 인터럽트 발생장치에서 마이크로 프로세서가 인터럽트를 처리중일 때, 다른 인터럽트가 발생하면, 발생한 다른 인터럽트도 처리할 수 있도록 한 인터럽트 처리장치를 제공함에 있다.Accordingly, an object of the present invention is to solve the problems according to the prior art. The object of the present invention is to create a single interrupt by combining several interrupts, and then apply the microprocessor to a microprocessor in the interrupt generator. An interrupt handler is provided to handle other interrupts that occur when another interrupt occurs while the interrupt is being processed.

상기한 목적을 달성하기 위한 본 발명의 특징은, N비트 계수기를 이용한 것으로, 일정 시간 이상 인터럽트가 계속 발생하게 되면, 상기 N비트 계수기에서 캐리(Carry)신호를 발생시켜 인터럽트 신호와 조합하여 마이크로 프로세서로 인가함으로써, 발생된 모든 인터럽트를 처리하도록 함에 있다.In order to achieve the above object, a feature of the present invention is to use an N-bit counter, and if an interrupt is continuously generated for a predetermined time, the N-bit counter generates a carry signal and combines the interrupt signal with a microprocessor. By applying this, all interrupts generated are handled.

즉, 본 발명에 따른 인터럽트 처리장치의 특징은 인터럽트 처리장치에 있어서, 다수의 외부 인터럽트를 수신하고 수신된 다수의 인터럽트를 논리연산하는 제 1 논리 연산부와; 다수의 외부 인터럽트 신호를 저장하는 저장부와; 상기 제 1 논리연산부에서 출력되는 논리 연산 결과신호에 따라 계수를 시작하여 임의의 N비트의 출력값에 따라 캐리신호를 출력하는 계수부와; 상기 계수부에서 출력되는 캐리신호와 제 1 논리연산부에서 출력되는 신호를 논리연산하는 제 2 논리연산부와; 상기 제 2 논리연산부의 논리 연산 결과에 따라 인터럽트를 인식하고, 상기 저장부를 읽어 발생한 외부 인터럽트를 처리하는 인터럽트 처리부로 구성됨에 있다.That is, the interrupt processing apparatus according to the present invention is characterized in that the interrupt processing apparatus comprises: a first logic operation unit for receiving a plurality of external interrupts and performing a logical operation on the received plurality of interrupts; A storage unit which stores a plurality of external interrupt signals; A counting unit which starts counting according to a logic operation result signal output from the first logical calculating unit and outputs a carry signal according to an output value of any N bits; A second logic operation unit configured to perform a logical operation on the carry signal output from the coefficient unit and a signal output from the first logic operation unit; And an interrupt processor for recognizing an interrupt according to a logic operation result of the second logic operator and processing an external interrupt generated by reading the storage.

또한, 본 발명의 다른 특징은, 인터럽트 처리장치에 있어서, 다수의 외부 인터럽트를 수신하고 수신된 다수의 인터럽트를 논리연산하는 제 1 논리 연산부와; 다수의 외부 인터럽트 신호를 저장하는 저장부와; 상기 제 1 논리연산부의 출력신호를 인버팅하는 제 1 인버팅부와; 상기 제 1 인버팅부에서 인버팅된 신호에 따라 계수를 시작하여 임의의 N비트의 출력값에 따라 캐리신호를 출력하는 계수부와; 상기 계수부에서 출력되는 캐리신호를 인버팅하는 제 2 인버팅부와; 상기 제 2 인버팅부에서 인버팅된 신호와 제 1 논리연산부에서 출력되는 신호를 논리연산하는 제 2 논리연산부와; 상기 제 2 논리연산부의 논리 연산 결과에 따라 인터럽트를 인식하고, 상기 저장부를 읽어 발생한 외부 인터럽트를 처리하는 인터럽트 처리부로 구성됨에 있다.In addition, another aspect of the present invention provides an interrupt processing apparatus comprising: a first logical operation unit for receiving a plurality of external interrupts and performing a logical operation on the received plurality of interrupts; A storage unit which stores a plurality of external interrupt signals; A first inverting unit for inverting the output signal of the first logical operation unit; A counting unit which starts counting according to the signal inverted by the first inverting unit and outputs a carry signal according to an output value of any N bits; A second inverting unit for inverting the carry signal output from the counting unit; A second logic operation unit configured to perform a logic operation on the signal inverted by the second inverting unit and a signal output from the first logic operation unit; And an interrupt processor for recognizing an interrupt according to a logic operation result of the second logic operator and processing an external interrupt generated by reading the storage.

도 1a는 종래 기술에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 1b는 도 1a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도,1A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the prior art, and FIG. 1B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 1A;

도 2a는 종래 기술에 따른 인터럽트 처리장치에 대한 회로구성의 다른 예를 나타낸 도면이고, 도 2b는 도 2a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도,2A is a diagram showing another example of a circuit configuration of an interrupt processing apparatus according to the prior art, and FIG. 2B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 2A;

도 3a는 본 발명의 제 1 실시예에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 3b는 도 3a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도,3A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the first embodiment of the present invention, and FIG. 3B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG.

도 4a는 본 발명의 제 2 실시예에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 4b는 도 4a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도이다.4A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the second embodiment of the present invention, and FIG. 4B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 4A.

〈도면의 주요부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>

300, 430 : AND게이트 310 , 410 : 버퍼300, 430: AND gate 310, 410: buffer

320, 420 : 마이크로 프로세서 330, 400 : OR게이트320, 420: microprocessor 330, 400: OR gate

340, 440 : 계수기 450, 460 : NOT게이트340, 440: counter 450, 460: NOT gate

이하, 본 발명에 따른 인터럽트 처리장치에 대하여 각 실시예별로 첨부한 도면을 참조하여 상세하게 살펴보기로 한다.Hereinafter, an interrupt processing apparatus according to the present invention will be described in detail with reference to the accompanying drawings for each embodiment.

(제 1 실시예)(First embodiment)

도 3a는 본 발명의 제 1 실시예에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 3b는 도 3a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도로서, 도 3a를 참조하여 그 구성을 살펴보면, AND게이트(300), 버퍼(310), 마이크로 프로세서(320), OR게이트(330) 및 N비트 계수기(340)로 구성된다.3A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the first embodiment of the present invention. FIG. 3B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 3A. Looking at, it is composed of an AND gate 300, a buffer 310, a microprocessor 320, an OR gate 330 and an N-bit counter 340.

AND게이트(300)는 M개의 외부 인터럽트를 받아서 논리곱하는 것으로써, 외부 인터럽트는 "0"일 때 인터럽트 발생을 의미하며, 하나라도 외부 인터럽트가 발생하면, "0"을 출력한다.The AND gate 300 receives and multiplies M external interrupts. When the external interrupt is "0", the AND gate 300 generates an interrupt. When the external interrupt occurs, the AND gate 300 outputs "0".

버퍼(10)는 인터럽트 발생시 마이크로 프로세서(320)가 어떤 외부 인터럽트가 발생했는지 확인하기 위한 것으로, 마이크로 프로세서(320)는 발생한 외부 인터럽트를 처리한다.The buffer 10 is used to determine which external interrupt occurs in the microprocessor 320 when an interrupt occurs. The microprocessor 320 processes the generated external interrupt.

마이크로 프로세서(320)는 인터럽트가 "1"에서 "0"으로 변할 때, 인터럽트를 받아서 처리하는 역할을 수행한다. OR게이트(330)는 AND게이트(300)의 출력과 N비트 계수기(340)의 캐리신호 출력을 논리합하는 것으로서, 두 출력신호중 하나라도 "1"이면 "1"을 마이크로 프로세서로 출력한다.When the interrupt is changed from "1" to "0", the microprocessor 320 receives and processes the interrupt. The OR gate 330 logically sums the output of the AND gate 300 and the carry signal output of the N-bit counter 340, and outputs "1" to the microprocessor if any one of the two output signals is "1".

N비트 계수기(340)는 AND게이트(300)의 출력이 "0"일 때, 계수를 시작하여 N비트의 출력이 모두 "1"일 때, 캐리신호 "1"을 발생시켜 OR게이트(330)로 출력하는 것이다. 즉, AND게이트(300)에서 출력되는 신호가 N비트 계수기(340)의 리셋 및 인에이블(Reset/Enable)신호로 제공되어 AND게이트(300)에서 "0"가 출력되는 경우만 계수가 시작된다.The N-bit counter 340 starts counting when the output of the AND gate 300 is "0", and generates a carry signal "1" when the output of N bits is all "1", thereby generating the OR gate 330. Will output That is, the counting is started only when the signal output from the AND gate 300 is provided as a reset and enable / reset signal of the N-bit counter 340 so that "0" is output from the AND gate 300. .

이와 같은 구성을 갖는 본 발명의 제 1 실시예에 따른 인터럽트 처리장치의 동작에 대하여 설명해 보기로 하자.The operation of the interrupt processing apparatus according to the first embodiment of the present invention having such a configuration will be described.

도 3b에 도시된 바와 같이, 초기상태는 외부 인터럽트가 모두 "1"이고 AND게이트(300)의 출력과 OR게이트(330)의 출력은 "1"이며, N비트계수기(340)는 리셋(Reset)상태이기 때문에 N비트 계수기(340)의 출력은 모두 "0"이며, 캐리 출력도 "0"가 되는 것이다. 이때, 외부 인터럽트 INT-0에서 인터럽트가 발생하면, OR게이트(330)의 출력이 "1"에서 "0"으로 변하게 되는데, 마이크로 프로세서(320)는 상기 "1"에서 "0"로 변할 때, 인터럽트를 인식하고, 버퍼(310)를 읽어 발생한 외부 인터럽트를 처리하는 것이다.As shown in FIG. 3B, the initial state is that all external interrupts are "1", the output of the AND gate 300 and the output of the OR gate 330 are "1", and the N-bit counter 340 resets. ), The N bit counter 340 outputs all "0" and the carry output also becomes "0". At this time, when the interrupt occurs in the external interrupt INT-0, the output of the OR gate 330 is changed from "1" to "0", when the microprocessor 320 changes from "1" to "0", It recognizes an interrupt and reads the buffer 310 to process an external interrupt generated.

또한, 이때 부터 N비트 계수기(340)가 동작하여 일정 시간이 지나면 N비트 계수기(340)의 출력이 모두 "1이 되고 캐리 출력이 "1"이 되며, 다음 클럭 때 캐리 출력이 "0"이 되어 OR게이트(330)의 출력이 "1"에서 "0"로 변하게 된다. 이때, 마이크로 프로세서(320)는 인터럽트를 인식하고, 버퍼(310)를 읽어 발생한 외부 인터럽트를 처리한다.In addition, from this time, the N-bit counter 340 operates, and after a predetermined time, the outputs of the N-bit counter 340 are all "1" and the carry output is "1", and the carry output is "0" at the next clock. The output of the OR gate 330 changes from "1" to "0." At this time, the microprocessor 320 recognizes the interrupt and reads the buffer 310 to process the generated external interrupt.

모든 외부 인터럽트가 처리되면, AND게이트(300)의 출력은 "1"로 변하며, N비트 계수기(340)는 리셋되어 동작을 멈추게 되는 것이다. 따라서, 처음 발생한 외부 인터럽트가 처리되기 전에 다른 외부 인터럽트가 발생하더라도 그 인터럽트를 처리할 수 있는 것이다.When all external interrupts are processed, the output of AND gate 300 changes to " 1 " and N-bit counter 340 is reset to stop operation. Therefore, even if another external interrupt occurs before the first external interrupt occurs, the interrupt can be processed.

(제 2 실시예)(Second embodiment)

도 4a는 본 발명의 제 2 실시예에 따른 인터럽트 처리장치에 대한 회로구성을 나타낸 도면이고, 도 4b는 도 4a에 도시된 인터럽트 처리장치의 인터럽트 처리 타이밍도이다.4A is a diagram showing a circuit configuration of an interrupt processing apparatus according to the second embodiment of the present invention, and FIG. 4B is an interrupt processing timing diagram of the interrupt processing apparatus shown in FIG. 4A.

도 4a에 도시된 바와 같이 본 발명의 제 2 실시예는 OR게이트(400), 버퍼(410), 마이크로 프로세서(420), AND게이트(430), N비트 계수기(440) 및 NOT게이트(450, 460)로 구성된다.As shown in FIG. 4A, the second embodiment of the present invention includes an OR gate 400, a buffer 410, a microprocessor 420, an AND gate 430, an N-bit counter 440, and a NOT gate 450. 460).

OR게이트(400)는 M개의 외부 인터럽트를 받아서 논리합하는 것으로서, 외부 인터럽트는 "1"일 때 인터럽트 발생을 의미하며, OR게이트(400)는 하나라도 외부 인터럽트가 발생하면, "1"을 출력한다.The OR gate 400 receives and ORs M external interrupts. When the external interrupt is “1”, the OR gate 400 generates an interrupt. The OR gate 400 outputs “1” when any external interrupt occurs. .

버퍼(410)는 인터럽트 발생시 마이크로 프로세서(420)가 어떤 외부 인터럽트가 발생했는지 확인하기 위한 것으로, 마이크로 프로세서(420)는 발생한 외부 인터럽트를 처리한다. 마이크로 프로세서(420)는 인터럽트가 "0"에서 "1"로 변할 때, 인터럽트를 받아서 처리하는 역할을 수행한다.The buffer 410 is used to determine which external interrupt has occurred when the microprocessor 420 generates an interrupt, and the microprocessor 420 processes the generated external interrupt. The microprocessor 420 receives and processes the interrupt when the interrupt is changed from "0" to "1".

AND게이트(430)는 OR게이트(400)의 출력과 N비트 계수기(440)의 출력을 논리곱하는 것으로서, 두 출력신호중 하나라도 "0"이면, "0"을 출력한다.The AND gate 430 logically multiplies the output of the OR gate 400 and the output of the N-bit counter 440, and outputs “0” if any one of the two output signals is “0”.

N비트 계수기(440)는 OR게이트(400)의 출력이 "1"일 때, 계수를 시작하며, N비트의 출력이 모두 "1"일 때, 캐리출력신호 "1"을 발생하는 것이다.The N-bit counter 440 starts counting when the output of the OR gate 400 is "1", and generates a carry output signal "1" when all of the N-bit outputs are "1".

NOT게이트(450)는 N비트 계수기(440)에서 발생한 캐리출력신호 "1"을 "0"으로 인버팅한 후, 마이크로 프로세서(420)로 출력한다.The NOT gate 450 inverts the carry output signal " 1 " generated by the N-bit counter 440 to " 0 " and then outputs the result to the microprocessor 420.

또한, NOT게이트(460)는 OR게이트(400)의 출력신호를 인버팅하여 N비트 계수기(440)의 리셋신호 및 인에이블신호로 제공한다.In addition, the NOT gate 460 inverts the output signal of the OR gate 400 to provide the reset signal and the enable signal of the N-bit counter 440.

이와 같은 구성을 갖는 본 발명의 제 2 실시예에 따른 인터럽트 처리장치의 동작에 대하여 설명해 보기로 하자.The operation of the interrupt processing apparatus according to the second embodiment of the present invention having such a configuration will be described.

도 4b에 도시된 바와 같이, 초기상태는 외부 인터럽트가 모두 "0"이고 AND게이트(430)의 출력과 OR게이트(400)의 출력은 "0"이며, N비트계수기(440)는 리셋(Reset)상태이기 때문에 N비트 계수기(440)의 출력은 모두 "0"이며, 캐리 출력도 "0"가 되는 것이다. 이때, 외부 인터럽트 INT-0에서 인터럽트가 발생하면, AND게이트(430)의 출력이 "0"에서 "1"으로 변하게 되는데, 마이크로 프로세서(420)는 상기 "0"에서 "1"로 변할 때, 인터럽트를 인식하고, 버퍼(410)를 읽어 발생한 외부 인터럽트를 처리하는 것이다.As shown in FIG. 4B, the initial state is that all external interrupts are "0", the output of the AND gate 430 and the output of the OR gate 400 are "0", and the N-bit counter 440 resets. N bit counter 440 is all "0", and the carry output is also "0". At this time, when an interrupt occurs in the external interrupt INT-0, the output of the AND gate 430 is changed from "0" to "1", when the microprocessor 420 changes from "0" to "1", An interrupt is recognized and the external interrupt generated by reading the buffer 410 is processed.

또한, 이때 부터 N비트 계수기(440)가 동작하여 일정 시간이 지나면 N비트 계수기(440)의 출력이 모두 "1이 되고 캐리 출력이 "1"이 되며, 다음 클럭 때 캐리 출력이 "0"이 되어 AND게이트(430)의 출력이 "0"에서 "1"로 변하게 된다. 이때, 마이크로 프로세서(420)는 인터럽트를 인식하고, 버퍼(410)를 읽어 발생한 외부 인터럽트를 처리한다.In addition, since the N-bit counter 440 operates from this time, all outputs of the N-bit counter 440 become "1" and the carry output becomes "1", and the carry output becomes "0" at the next clock. As a result, the output of the AND gate 430 changes from "0" to "1." At this time, the microprocessor 420 recognizes the interrupt and reads the buffer 410 to process the generated external interrupt.

모든 외부 인터럽트가 처리되면, OR게이트(400)의 출력은 "0"으로 변하며, N비트 계수기(440)는 리셋되어 동작을 멈추게 되는 것이다. 따라서, 처음 발생한 외부 인터럽트가 처리되기 전에 다른 외부 인터럽트가 발생하더라도 그 인터 럽트를 처리할 수 있는 것이다.When all external interrupts are processed, the output of OR gate 400 changes to " 0 ", and N-bit counter 440 is reset to stop operation. Therefore, even if another external interrupt occurs before the first external interrupt is processed, the interrupt can be handled.

상기한 바와 같은 본 발명에 따른 인터럽트 처리장치는 N비트 계수기를 이용한 것으로, 일정시간 이상 인터럽트가 계속 발생하게 되면, 상기 N비트 계수기에서 캐리(Carry)신호를 발생시켜 인터럽트 신호와 조합하여 마이크로 프로세서로 인가함으로써, 발생된 모든 인터럽트를 처리하도록 하는 것이다.As described above, the interrupt processing apparatus according to the present invention uses an N-bit counter. If an interrupt continues to occur for a predetermined time, the N-bit counter generates a carry signal and combines the interrupt signal to the microprocessor. By granting, all interrupts generated are handled.

따라서, 인터럽트 처리중에 다른 인터럽트가 발생하더라도 발생된 다른 인터럽트를 처리할 수 있도록 하여 시스템의 안정성을 향상시킬 수 있는 효과를 가진 것이다.Therefore, even if another interrupt occurs during the interrupt processing, it is possible to handle the other interrupt generated, thereby improving the stability of the system.

Claims (8)

인터럽트 처리장치에 있어서,In the interrupt processor, 다수의 외부 인터럽트를 수신하고 수신된 다수의 인터럽트를 논리연산하는 제 1 논리 연산부와;A first logic calculating section for receiving a plurality of external interrupts and performing a logic operation on the received plurality of interrupts; 다수의 외부 인터럽트 신호를 저장하는 저장부와;A storage unit which stores a plurality of external interrupt signals; 상기 제 1 논리연산부에서 출력되는 논리 연산 결과신호에 따라 계수를 시작하여 임의의 N비트의 출력값에 따라 캐리신호를 출력하는 계수부와;A counting unit which starts counting according to a logic operation result signal output from the first logical calculating unit and outputs a carry signal according to an output value of any N bits; 상기 계수부에서 출력되는 캐리신호와 제 1 논리연산부에서 출력되는 신호를 논리연산하는 제 2 논리연산부와;A second logic operation unit configured to perform a logical operation on the carry signal output from the coefficient unit and a signal output from the first logic operation unit; 상기 제 2 논리연산부의 논리 연산 결과에 따라 인터럽트를 인식하고, 상기 저장부를 읽어 발생한 외부 인터럽트를 처리하는 인터럽트 처리부로 구성됨을 특징으로 하는 인터럽트 처리장치.And an interrupt processing unit for recognizing an interrupt according to a logical operation result of the second logical operation unit and processing an external interrupt generated by reading the storage unit. 제 1 항에 있어서,The method of claim 1, 상기 제 1 논리연산부는 AND게이트이고, 제 2 논리연산부는 오어게이트인 것을 특징으로 하는 인터럽트 처리방치.And the first logic operation portion is an AND gate, and the second logic operation portion is an or gate. 제 1 항 또는 제 2 항에 있어서,The method according to claim 1 or 2, 상기 계수부는 상기 제 1 논리연산부에서 출력되는 신호가 "0"일 경우 계수를 시작하여 N비트의 출력이 모두 "1"일 경우 캐리 출력신호 "0"을 상기 제 2 논리연산부로 출력하는 것을 특징으로 하는 인터럽트 처리장치.The counting unit starts counting when the signal output from the first logic calculating unit is "0" and outputs a carry output signal "0" to the second logic calculating unit when all N bits are output as "1". Interrupt processing unit. 제 1 항에 있어서,The method of claim 1, 상기 인터럽트 처리부는 상기 제 2 논리연산부의 출력이 "1"에서 "0"으로 변할 때, 인터럽트를 인식하는 것을 특징으로 하는 인터럽트 처리장치.And the interrupt processing unit recognizes an interrupt when the output of the second logic operation unit changes from "1" to "0". 인터럽트 처리장치에 있어서,In the interrupt processor, 다수의 외부 인터럽트를 수신하고 수신된 다수의 인터럽트를 논리연산하는 제 1 논리 연산부와;A first logic calculating section for receiving a plurality of external interrupts and performing a logic operation on the received plurality of interrupts; 다수의 외부 인터럽트 신호를 저장하는 저장부와;A storage unit which stores a plurality of external interrupt signals; 상기 제 1 논리연산부의 출력신호를 인버팅하는 제 1 인버팅부와;A first inverting unit for inverting the output signal of the first logical operation unit; 상기 제 1 인버팅부에서 인버팅된 신호에 따라 계수를 시작하여 임의의 N비트의 출력값에 따라 캐리신호를 출력하는 계수부와;A counting unit which starts counting according to the signal inverted by the first inverting unit and outputs a carry signal according to an output value of any N bits; 상기 계수부에서 출력되는 캐리신호를 인버팅하는 제 2 인버팅부와;A second inverting unit for inverting the carry signal output from the counting unit; 상기 제 2 인버팅부에서 인버팅된 신호와 제 1 논리연산부에서 출력되는 신호를 논리연산하는 제 2 논리연산부와;A second logic operation unit configured to perform a logic operation on the signal inverted by the second inverting unit and a signal output from the first logic operation unit; 상기 제 2 논리연산부의 논리 연산 결과에 따라 인터럽트를 인식하고, 상기 저장부를 읽어 발생한 외부 인터럽트를 처리하는 인터럽트 처리부로 구성됨을 특징으로 하는 인터럽트 처리장치.And an interrupt processing unit for recognizing an interrupt according to a logical operation result of the second logical operation unit and processing an external interrupt generated by reading the storage unit. 제 5 항에 있어서,The method of claim 5, 상기 제 1 논리연산부는 OR게이트이고, 제 2 논리연산부는 AND게이트이며, 상기 제 1, 2 인버팅부는 NOT게이트인 것을 특징으로 하는 인터럽트 처리방치.Wherein the first logic operation unit is an OR gate, the second logic operation unit is an AND gate, and the first and second inverting units are NOT gates. 제 5 항에 있어서,The method of claim 5, 상기 계수부는 상기 제 1 인버팅부에서 출력되는 신호가 "0"일 경우 계수를 시작하여 N비트의 출력이 모두 "1"일 경우 캐리 출력신호 "1"을 제 2 인버팅부로 출력하는 것을 특징으로 하는 인터럽트 처리장치.The counting unit starts counting when the signal output from the first inverting unit is "0", and outputs a carry output signal "1" to the second inverting unit when all N bits are output "1". Interrupt processing unit. 제 5 항에 있어서,The method of claim 5, 상기 인터럽트 처리부는 상기 제 2 논리연산부의 출력이 "0"에서 "1"로 변할 때, 인터럽트를 인식하는 것을 특징으로 하는 인터럽트 처리장치.And the interrupt processing unit recognizes an interrupt when the output of the second logic operation unit changes from "0" to "1".
KR1019990052764A 1999-11-25 1999-11-25 Apparatus for generating interrupt KR20010048185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990052764A KR20010048185A (en) 1999-11-25 1999-11-25 Apparatus for generating interrupt

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990052764A KR20010048185A (en) 1999-11-25 1999-11-25 Apparatus for generating interrupt

Publications (1)

Publication Number Publication Date
KR20010048185A true KR20010048185A (en) 2001-06-15

Family

ID=19621843

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990052764A KR20010048185A (en) 1999-11-25 1999-11-25 Apparatus for generating interrupt

Country Status (1)

Country Link
KR (1) KR20010048185A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06230980A (en) * 1993-01-28 1994-08-19 Mitsubishi Electric Corp Interruption circuit
KR970002671A (en) * 1995-06-15 1997-01-28 구자홍 Interrupt signal interface device using modulo counter
JPH09134294A (en) * 1995-11-08 1997-05-20 Nec Eng Ltd Interruption control circuit
KR19980043590A (en) * 1996-12-04 1998-09-05 양승택 Multiple interrupt controller with intelligent prioritization method and control method
KR19990004476A (en) * 1997-06-28 1999-01-15 김영환 Interrupt Loss Compensation Device and Method
KR100200821B1 (en) * 1994-02-16 1999-06-15 윤종용 A multiplexing circuit of interrupt signal
KR19990055561A (en) * 1997-12-27 1999-07-15 김영환 Interrupt handler
JPH11212902A (en) * 1998-01-29 1999-08-06 Hitachi Commun Syst Inc Interrupt control circuit
KR20000012547U (en) * 1998-12-18 2000-07-05 서평원 Automatic interrupt generator using counter

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06230980A (en) * 1993-01-28 1994-08-19 Mitsubishi Electric Corp Interruption circuit
KR100200821B1 (en) * 1994-02-16 1999-06-15 윤종용 A multiplexing circuit of interrupt signal
KR970002671A (en) * 1995-06-15 1997-01-28 구자홍 Interrupt signal interface device using modulo counter
JPH09134294A (en) * 1995-11-08 1997-05-20 Nec Eng Ltd Interruption control circuit
KR19980043590A (en) * 1996-12-04 1998-09-05 양승택 Multiple interrupt controller with intelligent prioritization method and control method
KR19990004476A (en) * 1997-06-28 1999-01-15 김영환 Interrupt Loss Compensation Device and Method
KR19990055561A (en) * 1997-12-27 1999-07-15 김영환 Interrupt handler
JPH11212902A (en) * 1998-01-29 1999-08-06 Hitachi Commun Syst Inc Interrupt control circuit
KR20000012547U (en) * 1998-12-18 2000-07-05 서평원 Automatic interrupt generator using counter

Similar Documents

Publication Publication Date Title
KR20010048185A (en) Apparatus for generating interrupt
KR100202170B1 (en) Receiving method and its apparatus of data for serial interface
JPH0271326A (en) Arithmetic processing system
KR100229427B1 (en) Apparatus for generating interrupt signals
JPS6041772B2 (en) Parity creation circuit
JPH08147175A (en) Interruption controller
JPS61250736A (en) Data processing device
JPS6086625A (en) Data processing device
KR960016407B1 (en) Interrupt generating circuit in mcu
JPS6347841A (en) Data flow computer
JPH0736665A (en) Arithmetic unit
JPS63155330A (en) Microprogram controller
JP2000003285A (en) Method for processing interruption and circuit therefor
JPH01303562A (en) Dual system for control computer
JPH03139738A (en) Information processor
JPS59211137A (en) Comparison system
JPH02141825A (en) Arithmetic unit
JPH04288629A (en) Operation circuit for data with parity
JPH06110652A (en) Memory system
KR940022256A (en) Interrupt signal generation method and device
JPS62186345A (en) Microprocessor i/o address circuit
JPS61114342A (en) Controller of data processor
JPH0764768A (en) Absolute value accumulator
JPH02263222A (en) Reset input system for digital signal processor
JPH05224950A (en) Interruption generating circuit for debugging

Legal Events

Date Code Title Description
N231 Notification of change of applicant
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application