KR100327980B1 - Device and method compensating interrupt loss - Google Patents
Device and method compensating interrupt loss Download PDFInfo
- Publication number
- KR100327980B1 KR100327980B1 KR1019970028594A KR19970028594A KR100327980B1 KR 100327980 B1 KR100327980 B1 KR 100327980B1 KR 1019970028594 A KR1019970028594 A KR 1019970028594A KR 19970028594 A KR19970028594 A KR 19970028594A KR 100327980 B1 KR100327980 B1 KR 100327980B1
- Authority
- KR
- South Korea
- Prior art keywords
- interrupt
- flip
- cpu
- generated
- level
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
- G06F9/4825—Interrupt from clock, e.g. time of day
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35375—Store command data into latch, buffer synchronized to clock
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bus Control (AREA)
Abstract
Description
본 발명은 MC68계열의 CPU를 사용할 때 두 종류 이상의 인터럽트가 발생할 경우 먼저 발생한 인터럽트를 처리하는 동안 발생하는 인터럽트의 유실현상을 보상하는 인터럽트 유실 보상장치 및 방법에 관한 것이다.The present invention relates to an interruption loss compensation device and method for compensating for the loss of interruption occurring during the processing of an interrupt occurring when two or more kinds of interrupts occur when using an MC68 CPU.
종래 MC68계열의 CPU는 도1에 나타낸 바와 같이 인터럽트가 발생하면 현재 발생한 인터럽트 레벨과 현재 수행하는 인터럽트 레벨을 비교하여 낮거나 같으면 인터럽트를 발생시키며, 이때 소우스로부터 발생된 인터럽트를 유실하게 된다.As shown in FIG. 1, a conventional MC68 CPU compares an interrupt level that is currently generated with an interrupt level that is currently generated and generates an interrupt when the interrupt level is equal to or lower than that.
그러나 현재 발생한 인터럽트가 현재 수행하는 인터럽트보다 높으면, 현재 발생한 인터럽트 구문으로 수행문을 이동한다.However, if the current interrupt is higher than the current interrupt, the execution statement moves to the interrupt statement that occurred.
따라서, 종래에는 CPU가 다시 인터럽트를 인식하려면 소우스에서 인터럽트를 다시 발생해야만 하는 문제가 있었다.Therefore, in the related art, there is a problem that the interrupt must be generated again in the source in order for the CPU to recognize the interrupt again.
본 발명은 종래의 이와 같은 문제점을 해결하기 위한 것으로, 같은 등급의 인터럽트가 발생하거나 현재 수행문보다 낮은 등급의 인터럽트가 발생할 경우 발생되는 인터럽트를 저장하였다가 현재의 수행문을 수행한 후에 저장되어 있는 인터럽트를 처리할 수 있도록 함으로써 인터럽트 유실현상을 방지할 수 있도록 한 인터럽트 유실 보상장치 및 방법을 제공하는데 그 목적이 있다.The present invention is to solve such a problem in the prior art, the interrupt generated when the interrupt of the same class or a lower class than the current statement occurs is stored after performing the current statement It is an object of the present invention to provide an interrupt loss compensator and a method for preventing interruption by allowing interrupts to be handled.
이와 같은 목적을 달성하기 위한 본 발명 인터럽트 유실 보상장치는, 발생한 인터럽트를 복수개의 래치수단에 저장하고 이 래치수단의 출력을 앤드 게이트로 논리곱하여 해당 레벨의 인터럽트 발생을 CPU에 알려줌으로써 여러 개의 인터럽트를 동일 레벨에 연결할 경우 발생되던 인터럽트 유실현상을 방지하며, 상기 래치수단의 출력을 제1 저장수단에 일시 저장하여 상기 CPU에서 현재 발생한 인터럽트와 현재 수행중인 수행문의 레벨에 따라 인터럽트를 수행할 수 있도록 하며, 제2 저장수단을 이용하여 현재 발생한 인터럽트의 수행이 시작되기전 인식한 인터럽트의 래치수단을 클리어시켜 수행중 발생하는 인터럽트까지도 저장이 가능하도록 구성함을 특징으로 한다.In order to achieve the above object, the interruption loss compensating apparatus of the present invention stores a plurality of interrupts generated in a plurality of latch means, multiplies the output of the latch means by AND gates, and informs the CPU of the interrupt generation at a corresponding level. It prevents interrupt loss that occurred when connected to the same level, and temporarily stores the output of the latch means in the first storage means so that the interrupt can be performed according to the level of the interrupt currently occurring in the CPU and the execution statement currently being executed. By using the second storage means, it is possible to clear the latch means of the interrupt recognized before the execution of the interrupt currently generated so that the interrupt generated during the execution can be stored.
또한, 본 발명 인터럽트 유실 보상방법은, 인터럽트 발생시 D플립플롭 인터럽트를 래치하는 제1단계와, 인터럽트 소우스를 논리곱하여 CPU에 인터럽트 발생을 보고하며 CPU에서 제1 버퍼를 통해 인터럽트 레벨을 인식하는 제2단계와, 현재 발생한 인터럽트 레벨과 현재 수행하는 인터럽트 레벨을 비교하여 낮거나 같으면 상기 D플립플롭 인터럽트 래치단계로 돌아가고 높으면 현재 발생한 인터럽트 구문으로 수행문을 이동하는 제3단계와, 상기 제3단계 수행 후 해당 인터럽트 래치된 D플립플롭을 클리어하는 제4단계로 이루어짐을 특징으로 한다.In addition, the interrupt loss compensation method of the present invention includes a first step of latching a D flip-flop interrupt when an interrupt is generated, a method of reporting an interrupt occurrence to the CPU by multiplying the interrupt source and recognizing the interrupt level through the first buffer in the CPU. Comparing step 2 with the current interrupt level and the current interrupt level to return to the D flip-flop interrupt latch step if the level is low or equal, and moving the execution statement to the interrupt statement currently generated if the level is high, and performing the third step; Thereafter, a fourth step of clearing the interrupt latched D flip-flop is performed.
도1은 종래의 인터럽트 처리 방법을 수행하기 위한 동작흐름도,1 is an operation flowchart for performing a conventional interrupt processing method;
도2는 본 발명에 따른 인터럽트 유실 보상장치의 블록도,2 is a block diagram of an interrupt loss compensator according to the present invention;
도3은 본 발명에 따른 인터럽트 유실 보상방법의 동작흐름도,3 is an operation flowchart of an interrupt loss compensation method according to the present invention;
<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>
1 : CPU DFF1-DFFn : D플립플롭1: CPU DFF1-DFFn: D flip flop
AND1 :앤드 게이트 BUFER1 : 제1 버퍼AND1: And gate BUFER1: First buffer
BUFFER2 : 재2 버퍼BUFFER2: Re2 Buffer
이하, 본 발명 인터럽트 유실 보상장치 및 방법의 바람직한 실시예를 첨부된 도면을 참고로 하여 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명에 따른 인터럽트 유실 보상장치의 블록 구성도를 도시한 것으로, 데이터 입력단(D)에는 항상 하이(H)상태가 유지되고 인터럽트 소우스가 클럭단에 입력되며 인터럽트 발생을 저장하기 위한 래치수단인 복수개의 D플립플롭(DFF1-DFFn)과, 상기 D플립플롭(DFF1-DFFn)의 출력을 논리곱하여 해당 레벨의 인터럽트를 CPU(1)로 알리기 위한 앤드 게이트(AND1)와, 상기 CPU(1)에서 현재 발생한 인터럽트와 현재 수행중인 수행문의 레벨에 따라 인터럽트를 수행할 수 있도록 상기 D플립플롭(DFF1-DFFn)의 출력을 일시 저장하는 저장수단인 제1 버퍼(BUFER1)와, 상기 CPU(1)의 제어에 따라 현재 발생한 인터럽트의 수행이 시작되기전 인식한 인터럽트의 D플립플롭(DFF1-DFFn)을 클리어시켜 수행중 발생하는 인터럽트까지도 저장이 가능하도록 하는 저장수단인 제2 버퍼(BUFFER2)로 구성된다.2 is a block diagram of an interrupt loss compensator according to an embodiment of the present invention, in which a high H state is always maintained at a data input terminal D, an interrupt source is input to a clock terminal, and an interrupt generation signal is stored. AND gates AND1 for informing the
이와 같이 구성된 본 발명은 CPU사용시 인터럽트가 발생할 경우 인터럽트 소우스가 상기 D플립플롭(DFF1-DFFn)의 클럭단으로 입력된다.According to the present invention configured as described above, when an interrupt occurs when the CPU is used, an interrupt source is input to the clock stages of the D flip-flops DFF1 to DFFn.
상기 D플립플롭(DFF1-DFFu)의 단자( /Q)는 정상적인 초기상태에서는 하이레벨을 나타내지만 이와 같이 인터럽트 소우스가 발생하여 D플립플롭(DFF1-DFFn)에 클럭으로 입력되면 단자( /Q)상태가 로우레벨로 변환된다.The terminal (/ Q) of the D flip-flop (DFF1-DFFu) has a high level in a normal initial state, but when an interrupt source is generated and input to the D flip-flop (DFF1-DFFn) as a clock, the terminal (/ Q) The state is switched to low level.
따라서, 앤드 게이트(AND1)의 출력은 상기 D플립플롭(DFF1-DFFn)의 출력이 하나라도 로우레벨로 변환될 경우 로우레벨이 되어 해당 레벨의 인터럽트를 CFU(1)로 보내게 된다.Accordingly, the output of the AND gate AND1 becomes low when any one of the outputs of the D flip-flops DFF1 to DFFn is converted to the low level, and the interrupt of the corresponding level is sent to the
상기 CPU(1)는 앤드 게이트(AND1)의 출력에 의해 발생하는 인터럽트 요구에 의해 인터럽트가 발생한 것을 인식하고 도 3의 동작 흐름도와 같이 현재 발생한 인터럽트 레벨과 현재 수행하고 있는 수행문의 인터럽트 레벨을 비교한다.The
만일, 현재 발생한 인터럽트의 레벨보다 현재 수행하고 있는 수행문의 레벨이 더 높을 경우에는 수행문을 완료하고 제1 버퍼(BUFFER1)를 통해 발생한 인터럽트 소우스를 확인하여 해당 인터럽트 래치된 디플립플롭(DFF1-DFFn)을 제2 버퍼(BUFER2)를 이용하여 클리어시킨다.If the level of the currently executing statement is higher than the level of the currently generated interrupt, the execution statement is completed and the interrupt source generated through the first buffer BUFFER1 is checked to determine the interrupt latched flip-flop DFF1-. DFFn is cleared using the second buffer BUFER2.
즉, 발생한 인터럽트의 수행이 시작되기전 CPU(1)는 제2 버퍼(BUFFER2)를 이용하여 인식한 인터럽트의 D플립플롭(DFF1-DFFn)을 클리어시켜 인터럽트 수행중 발생되는 인터럽트가 저장될 수 있도록 한다.That is, before the execution of the generated interrupt starts, the
그러나 발생한 인터럽트의 레벨이 현재 수행중인 수행문의 인터럽트 레벨보다 낮거나 같을 경우에는 현재 수행하고 있는 수행문을 중지하고 상기 D플립플롭(DFF1-DFFn) 인터럽트 래치 단계로 돌아간다.However, if the level of the generated interrupt is lower than or equal to the interrupt level of the currently executing statement, the currently executing statement is stopped and the process returns to the D flip-flop (DFF1-DFFn) interrupt latching step.
이상에서 설명한 바와 같은 본 발명은 인터럽트 저장기능을 갖춰 현재 수행중인 수행문보다 레벨이 낮은 인터럽트의 발생시에도 발생한 인터럽트를 저장시켜 두었다가 수행될 수 있도록 함으로써 인터럽트의 유실현상을 방지할 수 있는 효과가 있다.As described above, the present invention has an interrupt storing function, and thus an interrupt occurrence can be prevented by storing and executing an interrupt generated even when an interrupt having a lower level than an execution statement is being executed.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970028594A KR100327980B1 (en) | 1997-06-28 | 1997-06-28 | Device and method compensating interrupt loss |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970028594A KR100327980B1 (en) | 1997-06-28 | 1997-06-28 | Device and method compensating interrupt loss |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990004476A KR19990004476A (en) | 1999-01-15 |
KR100327980B1 true KR100327980B1 (en) | 2002-08-14 |
Family
ID=37478443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970028594A KR100327980B1 (en) | 1997-06-28 | 1997-06-28 | Device and method compensating interrupt loss |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100327980B1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010048185A (en) * | 1999-11-25 | 2001-06-15 | 박종섭 | Apparatus for generating interrupt |
KR20040006374A (en) * | 2002-07-12 | 2004-01-24 | 우상하 | Sports equipment for stretching |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR940002711A (en) * | 1992-07-31 | 1994-02-19 | 정용문 | Interrupt handler and its method |
JPH07219784A (en) * | 1994-01-28 | 1995-08-18 | Meidensha Corp | Interruption control system |
JPH08185328A (en) * | 1994-12-28 | 1996-07-16 | Yokogawa Electric Corp | Interruption controller |
JPH0926885A (en) * | 1995-05-12 | 1997-01-28 | Sgs Thomson Microelectron Ltd | Circuit and method for control for multiple priority interrupt request with reference to microprocessor |
-
1997
- 1997-06-28 KR KR1019970028594A patent/KR100327980B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR940002711A (en) * | 1992-07-31 | 1994-02-19 | 정용문 | Interrupt handler and its method |
JPH07219784A (en) * | 1994-01-28 | 1995-08-18 | Meidensha Corp | Interruption control system |
JPH08185328A (en) * | 1994-12-28 | 1996-07-16 | Yokogawa Electric Corp | Interruption controller |
JPH0926885A (en) * | 1995-05-12 | 1997-01-28 | Sgs Thomson Microelectron Ltd | Circuit and method for control for multiple priority interrupt request with reference to microprocessor |
Also Published As
Publication number | Publication date |
---|---|
KR19990004476A (en) | 1999-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11100224B2 (en) | Interference detection device and detection sensitivity adjusting method thereof | |
KR100327980B1 (en) | Device and method compensating interrupt loss | |
KR20010102343A (en) | Low power scan flipflop | |
KR100197433B1 (en) | Interrupt signal generating apparatus | |
KR960012981B1 (en) | Transmission system | |
KR100304976B1 (en) | Interrupt generator | |
KR200317564Y1 (en) | Apparatus for preventing error during transfer working information in double unit structure | |
KR960004062B1 (en) | Error data writing preventing apparatus and method | |
KR100274644B1 (en) | Apparatus for interfacing data | |
JPH02193439A (en) | In-device monitoring | |
KR0179765B1 (en) | Noise removing apparatus and method of plc interrupt module | |
KR100538282B1 (en) | Method for debugging realtime parallel program using check point | |
CN116306418A (en) | Timing sequence convergence method and device, electronic equipment and storage medium | |
KR940009744B1 (en) | Input scanning method | |
KR100210796B1 (en) | Method for embodying history function in an ess | |
KR910009906B1 (en) | Method and circuit for triple memory | |
KR200323622Y1 (en) | Interrupt arbitration logic | |
JP2679685B2 (en) | Core file generation method | |
KR860001785B1 (en) | System program protection circuit of z80 cpu | |
KR920003491Y1 (en) | Printers data omission protection circuit | |
KR19990080251A (en) | Interrupt Loss Prevention Device | |
KR20070098200A (en) | Semiconductor integrated circuit test device and method thereof | |
KR930004912B1 (en) | Dialer circuit and control method for melody circuit | |
KR970000254B1 (en) | Clock-doubling apparatus | |
CN117978394A (en) | Fault processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20070222 Year of fee payment: 6 |
|
LAPS | Lapse due to unpaid annual fee |