KR101356700B1 - Recognize method of interrupt generation - Google Patents

Recognize method of interrupt generation Download PDF

Info

Publication number
KR101356700B1
KR101356700B1 KR1020080027882A KR20080027882A KR101356700B1 KR 101356700 B1 KR101356700 B1 KR 101356700B1 KR 1020080027882 A KR1020080027882 A KR 1020080027882A KR 20080027882 A KR20080027882 A KR 20080027882A KR 101356700 B1 KR101356700 B1 KR 101356700B1
Authority
KR
South Korea
Prior art keywords
interrupt
external
level
signal
state
Prior art date
Application number
KR1020080027882A
Other languages
Korean (ko)
Other versions
KR20090102434A (en
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 KR1020080027882A priority Critical patent/KR101356700B1/en
Publication of KR20090102434A publication Critical patent/KR20090102434A/en
Application granted granted Critical
Publication of KR101356700B1 publication Critical patent/KR101356700B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • 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

Abstract

인터럽트 발생의 인식 방법이 개시된다. 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 외부 장치에서 출력되는 외부 인터럽트 신호의 논리 레벨을 감지하는 단계, 인터럽트 발생에 따라 변화되는 외부 인터럽트 신호의 논리 레벨에 따라서, 초기 상태와 변화 상태를 설정하는 단계, 상기 변화 상태를 상기 인터럽트 발생의 트리거 레벨로 설정하는 단계, 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 상기 트리거 레벨을 상기 초기 상태로 재설정하는 단계를 구비한다. 상기 초기 상태는 상기 인터럽트가 최초로 발생하기 이전에 상기 외부 인터럽트 신호의 값이 되며, 상기 변화 상태는 상기 인터럽트가 발생하였을 때의 상기 외부 인터럽트 신호의 값이 된다. 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 레벨 트리거 방식의 인터럽트 발생 장치를 이용하여 추가적인 장치 추가 없이 에지 트리거 방식의 인터럽트 발생이 가능하도록 할 수 있다. A method of recognizing interrupt occurrence is disclosed. According to an embodiment of the present disclosure, a method of recognizing an interrupt occurrence may include detecting a logic level of an external interrupt signal output from an external device, and an initial state and a changed state according to a logic level of an external interrupt signal changed according to an interrupt occurrence. And setting the change state to a trigger level of the interrupt generation, and after the external interrupt signal transitions to the trigger level, resetting the trigger level to the initial state. The initial state is a value of the external interrupt signal before the interrupt is first generated, and the change state is a value of the external interrupt signal when the interrupt occurs. An interrupt generation recognition method according to an embodiment of the present invention may enable an edge triggered interrupt to be generated without adding an additional device by using a level triggered interrupt generator.

Description

인터럽트 발생의 인식 방법{Recognize method of interrupt generation} Recognize method of interrupt generation

본 발명은 인터럽트 발생의 인식 방법에 관한 것으로, 특히 레벨 트리거 방식의 인터럽트 발생 장치를 이용하여 추가적인 장치 추가 없이 에지 트리거 방식의 인터럽트 발생이 가능하도록 할 수 있는 인터럽트 발생의 인식 방법에 관한 것이다.The present invention relates to a method for recognizing an interrupt occurrence, and more particularly, to a method for recognizing an interrupt occurrence that can enable an edge triggered interrupt generation without an additional device by using a level triggered interrupt generation device.

일반적인 하드웨어 장치 내에 구비되는, 두 개 이상의 장치(device) 사이에 있어서, 상기 두 개 이상의 장치들의 동작 동기를 맞추는 것은 필수적으로 요구된다. 즉, 주 장치(main device)와 부 장치(sub device)가 있을 경우, 부 장치에 발생한 특정 사건을 주 장치가 인식하고, 그에 따라 주 장치가 부 방치에서 발생한 특정 사건을 해결해주는 동작이 필요하다. 예를 들어, 주 장치로써 중앙 처리 장치가 있고 부 장치로써 키보드가 존재할 경우, 외부 사용자가 키보드의 특정키를 누르면, 중앙 처리 장치는 상기 특정키를 누름에 따라서 발생하여야 할 동작을 수행하게 된다. 여기서, 부 장치는 주 장치의 외부에 구비되는 외부 장치가 된다. Between two or more devices, provided in a general hardware device, it is essential to synchronize the operation of the two or more devices. That is, when there is a main device and a sub device, the main device recognizes a specific event occurring in the sub device, and accordingly, an operation is required in which the main device solves a specific event occurring in the sub neglect. . For example, if there is a central processing unit as a main device and a keyboard as a secondary device, when an external user presses a specific key of the keyboard, the central processing unit performs an operation that should occur as the specific key is pressed. Here, the sub device is an external device provided outside the main device.

이렇게, 부 장치에서 특정 사건이 발생한 경우, 주 장치는 상기 특정 사건을 인터럽트(interrupt) 요청으로 받아들인다. 그리고, 부 장치의 인터럽트 요청에 응 답하여 인터럽트의 특정 요청을 파악하고, 그에 따른 인터럽트 서비스 루틴(ISR: interrupt service routine)을 수행한다. Thus, when a specific event occurs in the secondary device, the primary device accepts the specific event as an interrupt request. Then, in response to the interrupt request of the secondary device, the specific request of the interrupt is identified, and an interrupt service routine (ISR) is performed accordingly.

주 장치에서 인터럽트를 인식 및 처리하는 방식은 크게 레벨 트리거(LT: level trigger) 방식과 에지 트리거(ET: edge-trigger) 방식이 있다. 도 1a 및 도 1b에서 각각 레벨 트리거 방식과 에지 트리거 방식에 따른 인터럽트 인식 방법을 상세히 설명하도록 한다. There are two main ways to recognize and handle interrupts in the main device: level trigger (LT) and edge-trigger (ET). 1A and 1B, an interrupt recognition method according to a level trigger method and an edge trigger method will be described in detail.

도 1a는 레벨 트리거 방식의 인터럽트 발생의 인식 방법을 설명하기 위한 도면이다. 1A is a diagram for explaining a method of recognizing interrupt generation in a level trigger method.

레벨 트리거 방식은 인터럽트의 발생을 알리기 위한 신호(외부 신호)의 특정 신호 레벨을 인식함으로써, 인터럽트의 발생을 인식하는 방식이다. The level trigger method recognizes the occurrence of an interrupt by recognizing a specific signal level of a signal (an external signal) for notifying the occurrence of an interrupt.

여기서, 외부 신호란 부 장치(sub device)에서 출력되는 신호로, 인터럽트 발생에 관한 정보를 가진 신호이다. Here, the external signal is a signal output from a sub device, and is a signal having information on interrupt generation.

도 1a를 참조하면, 외부 신호(101)가 논리 하이 레벨로 되면, 일정 주기로 인터럽트 발생을 알리게 된다. 외부 신호가 특정 레벨(논리 하이 레벨)일 경우, 일정 동작 주기(T)로 인터럽트 요청이 발생하는 것이다. 레벨 트리거 방식이므로, 외부 신호가 논리 하이 레벨로 되는 시간 구간 동안에 인터럽트가 발생하게 되는된다. 그에 따라서, 주 장치(main device)는 인터럽트 요청에 따라 요구되는 동작을 수행하게 된다. 여기서, 인터럽트 요청에 따라 요구되는 동작을 수행하는 것을 인터럽트 서비스 루틴(ISR: interrupt service routine) 수행이라고 한다. Referring to FIG. 1A, when the external signal 101 reaches a logic high level, an interrupt occurrence is notified at regular intervals. When the external signal is at a certain level (logical high level), an interrupt request is generated at a predetermined operating period (T). Since the level trigger method, an interrupt is generated during a time interval when the external signal becomes a logic high level. Accordingly, the main device performs the required operation according to the interrupt request. In this case, performing an operation required according to an interrupt request is called performing an interrupt service routine (ISR).

도 1a를 참조하면, 103, 105, 107 시점 각각에서 인터럽트 요청이 발생하며, 주 장치는 상술한 부 장치의 인터럽트 발생을 인식하게 된다. 그에 따라서, 주 장치는 103 시점에 발생한 인터럽트 발생을 인식하여 제1 ISR 수행(111)을 하고, 105 시점에서 발생한 인터럽트 발생을 인식하여 제2 ISR 수행(113)을 하게 된다. Referring to FIG. 1A, an interrupt request is generated at each of 103, 105, and 107 time points, and the main device recognizes the interrupt occurrence of the above-described sub device. Accordingly, the main device recognizes the interrupt occurrence occurring at 103 and performs the first ISR 111, and recognizes the interrupt occurrence occurring at 105 and performs the second ISR 113.

여기서, 레벨 트리거 방식은 주 장치의 ISR 수행과 부 장치의 외부 신호 레벨이 동기화되어야 한다. 즉, 외부 신호 레벨이 논리 하이(활성화 레벨)되어 그에 따라 ISR 이 수행이 완료되고 나면, 외부 신호 레벨이 다시 논리 로우(비활성화 레벨)로 되어야 한다. Here, in the level trigger method, the ISR performance of the primary device and the external signal level of the secondary device should be synchronized. In other words, after the external signal level is logic high (activation level) and thus the ISR is completed, the external signal level must be logic low (disabled level) again.

주 장치의 ISR 수행과 부 장치의 외부 신호 레벨이 동기화하지 않을 경우, 외부 신호는 계속하여 활성 상태를 유지하게 되며, 주 장치는 반복적으로 ISR 수행을 하게 된다. 그에 따라서, 주 장치인 중앙 처리 장치는 특정 ISR을 수행하는 동안에는 다른 동작을 하지 못하게 되는 문제가 발생한다. If the ISR performance of the primary device and the external signal level of the secondary device are not synchronized, the external signal continues to be active, and the primary device repeatedly performs ISR. Accordingly, a problem arises in that the central processing unit, which is the main unit, cannot perform other operations while performing a specific ISR.

여기서, 주 장치의 ISR 수행과 부 장치의 외부 신호 레벨이 동기화되도록 하기 위해서는 별도의 동기화 스킴(synchronization scheme)이 필요하다. 또한, 동기화를 시키기 위하여 동기화를 알리는 신호가 외부적으로 장착된 부 장치에서 주 장치로 전달되기 위한 별도의 포트(port)도 필요하다. 즉, 부가적인 하드웨어 장치 및 소프트웨어 장치가 요구되는 것이다. 이러한 부가적인 장치 추가는 인터럽트 처리 장치의 제작비용 증가를 가져올 수밖에 없는 문제가 있다. Here, a separate synchronization scheme is required to synchronize the ISR of the primary device and the external signal level of the secondary device. In addition, in order to synchronize, a separate port for transmitting a signal for synchronizing is transmitted from an externally mounted secondary device to a primary device. That is, additional hardware devices and software devices are required. This additional device adds a problem of increasing the manufacturing cost of the interrupt processing device.

또한, 레벨 트리거 방식은 외부 신호가 특정 레벨(예를 들어, 논리 하이)을 유지할 경우 인터럽트를 발생시키도록 되어 있다. 따라서, 외부 신호가 논리 하이로 되는 구간이 주 장치에서 인터럽트 발생 인식에 필요한 시간동안 짧은 주기로 발생하였다면, 주 장치는 부 장치의 인터럽트 발생을 놓치게 되는 문제가 있다. 즉, 외부 신호가 특정 레벨로 되는 구간이 짧을 경우 인터럽트가 발생하지 않는 것이다. In addition, the level trigger method is configured to generate an interrupt when an external signal maintains a certain level (eg, logic high). Therefore, if the section in which the external signal becomes logic high occurs in a short period for the time required for the interrupt generation recognition in the main device, the main device misses the interrupt generation of the secondary device. That is, interruption does not occur when the section in which the external signal becomes a specific level is short.

또한, 레벨 트리거 방식은 인터럽트 발생을 인식하여 특정 ISR 수행을 하는 동안에는, 인터럽트 마스킹(interrupt masking- 인터럽트 발생을 감지하지 않도록 함)을 하여 상기 특정 ISP 수행이 이뤄지는 동안에는 다른 인터럽트가 발생되는 것을 방지한다. 도 1a를 참조하면, 103 인터럽트 요청에 응답하여 ISR 수행(111)을 하는 동안에는, t1 내지 t2 동안 발생한 또 다른 인터럽트(미도시)에 대하여는 반응하지 않는 것이다. 따라서, 인터럽트 마스킹으로 인하여, 인터럽트의 발생을 놓칠 수 있는 문제가 있다. In addition, the level trigger method recognizes the occurrence of an interrupt and performs interrupt masking (interrupt masking-not detecting an interrupt occurrence) while performing a specific ISR to prevent another interrupt from being generated while performing the specific ISP. Referring to FIG. 1A, while performing ISR 111 in response to an interrupt request 103, it does not respond to another interrupt (not shown) generated during t1 to t2. Therefore, due to interrupt masking, there is a problem that missed generation of interrupts.

도 1b는 에지 트리거 방식의 인터럽트 발생을 설명하기 위한 도면이다. FIG. 1B is a diagram for explaining interrupt generation in an edge trigger method. FIG.

도 1b를 참조하면, 에지 트리거 방식은 인터럽트의 발생을 알리기 위한 신호(외부 신호)의 상태 변화를 인식함으로써, 인터럽트의 발생을 인식하는 방법이다. 예를 들어, 외부 신호가 논리 로우에서 논리 하이로 상태 변화(transition)할 경우, 논리 하이에서 논리 로우로 상태 변화할 경우, 인터럽트가 발생한 것으로 인식할 수 있다. Referring to FIG. 1B, the edge trigger method is a method of recognizing occurrence of an interrupt by recognizing a state change of a signal (an external signal) for notifying occurrence of an interrupt. For example, when an external signal transitions from a logic low to a logic high, and when a state changes from a logic high to a logic low, an interrupt may be recognized.

여기서, 외부 신호란 주 장치(main device)의 외부에 장착된 부 장치(sub device)에서 출력되는 신호로, 인터럽트 발생에 관한 정보를 가진 신호이다. Here, the external signal is a signal output from a sub device mounted outside the main device, and is a signal having information on interrupt generation.

에지 트리거 방식은 외부 신호의 위상 변화가 발생할 때만 인터럽트가 발생하므로, 레벨 트리거 방식에서와 같이 동기화에 필요한 장치나, 인터럽트 마스킹을 위한 동작 및 장치가 필요 없게 된다. Since the edge trigger method generates an interrupt only when a phase change of an external signal occurs, there is no need for a device necessary for synchronization or an operation and device for interrupt masking as in the level trigger method.

도 1b를 참조하면, 레벨 트리거 방식은 외부 신호가 논리 로우에서 논리 하이로 위상 변화하는 시점(t10)에서 인터럽트 요청(155)을 발생시킨다. 그러면, 주 장치는 상기 요청(155)을 인식하여 ISR을 수행(161)하게 된다. Referring to FIG. 1B, the level trigger method generates an interrupt request 155 at a time t10 at which an external signal phase changes from a logic low to a logic high. Then, the host device recognizes the request 155 and performs an ISR (161).

153 부분은 외부 신호에 노이즈가 발생한 것을 나타낸다. 노이즈가 발생하면 외부 신호의 위상이 순간적으로 변화하게 된다. 그러나, 에지 트리거 방식에서는 위상 변화만 있으면 인터럽트가 발생한 것으로 인식하므로, 주 장치는 노이즈 발생에 따른 외부 신호의 위상 변화에 응답하여 인터럽트 발생을 인식하고 ISR을 수행하게 된다. 도 1b에서는 노이즈 발생(153)에 따른 ISR 수행은 도시하지 않았다. A part 153 indicates that noise occurs in an external signal. When noise occurs, the phase of the external signal changes instantaneously. However, the edge trigger method recognizes that an interrupt has occurred when only a phase change occurs, and thus the main device recognizes an interrupt occurrence and performs ISR in response to a phase change of an external signal caused by noise. In FIG. 1B, ISR performance according to noise generation 153 is not illustrated.

따라서, 에지 트리거 방식에서는, 노이즈 발생에 따른 인터럽트 발생을 방지하기 위하여, 외부 신호에 포함된 노이즈를 필터링할 수 있는 장치를 추가적으로 구비시켜야만 하는 문제가 있다. Accordingly, in the edge trigger method, there is a problem in that an apparatus capable of filtering noise included in an external signal must be additionally provided in order to prevent interruption caused by noise.

또한, 외부 신호가 논리 로우에서 논리 하이로 상태 변화하는 경우(라이징 에지(rising edge)) 및 논리 하이에서 논리 로우로 상태 변화하는 경우(폴링 에지(falling edge))에서 모두 인터럽트가 발생하도록 설정된 외부 장치의 경우, 주 장치는 상술한 두 경우의 에지에 대하여 어떠한 에지인지를 인식하여야만 한다. 따라서, 어떠한 에지인지(폴링 에지인지, 라이징 에지인지)를 판단하기 위한 장치를 추가적으로 사용하여야 하는 것이다.In addition, the external is configured to generate an interrupt both when the external signal changes state from logic low to logic high (rising edge) and when the state changes from logic high to logic low (falling edge). In the case of a device, the main device must recognize which edge is the edge of the two cases described above. Therefore, it is necessary to additionally use an apparatus for determining which edge (polling edge or rising edge).

예를 들어, 핸드폰 장치의 홀드 키(hold key: 사용자가 핸드폰 기기에 잠금 설정 및 잠금 해지를 요청하기위한 키)의 이용에 있어서, 외부 신호는 라이징 에지 및 폴링 에지에서 모두 인터럽트를 발생하게 된다. 즉, 잠금 설정하였을 때 외부 신호가 논리 하이 레벨이 되도록 설정하고, 반대로 잠금 해지가 되어있을 때 외부 신호가 논리 로우 레벨이 되도록 설정하였다고 하자. 그러면, 외부 신호의 라이징 에지에서 인터럽트가 발생하면 주 장치는 '잠금 설정'으로 인식하고, 폴링 제이에서 인터럽트가 발생하면 주 장치는 '잠금 해지'로 인식하게 된다. For example, in the use of a hold key of a cellular phone device (a key for a user to lock and unlock a cell phone device), an external signal generates an interrupt at both the rising edge and the falling edge. That is, it is assumed that the external signal is set to the logic high level when the lock is set, and the external signal is set to the logic low level when the lock is released. Then, when an interrupt occurs at the rising edge of the external signal, the main device recognizes the lock setting, and when an interrupt occurs in the polling jay, the main device recognizes the unlock.

그러나, 돌발 상황으로 인하여 외부 신호가 상태 변화하였으나, 주 장치가 인터럽트 발생을 인식하지 못한 경우, 홀드 키는 반대로 작동하게 된다. 이러한 상황을 방지하기 위해서는, 인터럽트 발생 및 인식 시 현재의 외부 신호 상태를 파악하여야만 한다. 그러나, 이러한 외부 신호 상태 파악을 위해서는 추가적인 장치(예를 들어, GPIO: General Port I/O)를 장착시켜야만 하는 문제가 있다. However, if an external signal changes state due to a sudden situation, but the main device does not recognize the occurrence of an interrupt, the hold key operates in reverse. To prevent this situation, it is necessary to know the current state of the external signal when interrupts are generated and recognized. However, there is a problem that an additional device (for example, General Port I / O) must be installed to determine the external signal state.

또한, 에지 트리거 방식에서는 인터럽트 서비스 루틴(ISR)을 초기화시키기 이전에 발생한 외부 신호의 상태 변화에 대해서는 인터럽트를 발생시키지 않는다. 주 장치가 인터럽트 동작 장치를 초기화하기 이전에 발생한 부 장치의 인터럽트 요청은, 주 장치에서 받아들여질 수 없는 것이다. In addition, the edge trigger method does not generate an interrupt for a state change of an external signal generated before the interrupt service routine (ISR) is initialized. An interrupt request from a secondary device that occurred before the primary device initialized the interrupt operation device is unacceptable to the primary device.

예를 들어, PDA 폰에 들어가는 MMC 카드를 인식하기 위해서는 외부 신호의 상태 변화를 이용한다. MMC 카드(부 장치)가 PDA 폰(주 장치)에 삽입되었을 때는 외부 신호를 논리 하이 레벨로 설정하며, 배출되었을 때는 외부 신호를 논리 로우 레벨로 설정하는 것이다. 그러나, PDA 폰을 껐다가 다시 켰을 때, PDA 폰은 PDA 폰 내부에 상기 MMC 카드가 장착되어 있는 상태인지 장착이 해제된 상태인지를 알 수 없다. 에지 트리거 방식에서는 외부 신호의 '상태 변화' 자체를 인식할 뿐이지 특 정 레벨을 인식하지는 못하기 때문이다. For example, a state change of an external signal is used to recognize an MMC card entering a PDA phone. When the MMC card (sub device) is inserted into the PDA phone (main device), it sets the external signal to a logic high level, and when it is ejected, it sets the external signal to a logic low level. However, when the PDA phone is turned off and then on again, the PDA phone does not know whether the MMC card is mounted or released in the PDA phone. This is because the edge trigger method recognizes the 'state change' of the external signal itself, but not the specific level.

따라서, 에지 트리거 방식은 외부 장치의 초기화로 인하여, 외부 신호의 초기 상태를 인식하지 못하는 문제점이 있는 것이다. Therefore, the edge trigger method has a problem that the initial state of the external signal is not recognized due to the initialization of the external device.

본 발명이 이루고자 하는 기술적 과제는 레벨 트리거 방식의 인터럽트 발생 장치를 이용하여 추가적인 장치 추가 없이 에지 트리거 방식의 인터럽트 발생이 가능하도록 할 수 있는 인터럽트 발생의 인식 방법을 제공하는데 있다. An object of the present invention is to provide a method of recognizing interrupt generation that can enable the generation of interrupts in the edge trigger method without the addition of additional devices by using the level trigger type interrupt generator.

본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 외부 장치에서 출력되는 외부 인터럽트 신호의 논리 레벨을 감지하는 단계, 인터럽트 발생에 따라 변화되는 외부 인터럽트 신호의 논리 레벨에 따라서, 초기 상태와 변화 상태를 설정하는 단계, 상기 변화 상태를 상기 인터럽트 발생의 트리거 레벨로 설정하는 단계, 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 상기 트리거 레벨을 상기 초기 상태로 재설정하는 단계를 구비한다. According to an embodiment of the present disclosure, a method of recognizing an interrupt occurrence may include detecting a logic level of an external interrupt signal output from an external device, and an initial state and a changed state according to a logic level of an external interrupt signal changed according to an interrupt occurrence. And setting the change state to a trigger level of the interrupt generation, and after the external interrupt signal transitions to the trigger level, resetting the trigger level to the initial state.

상기 초기 상태는 상기 인터럽트가 최초로 발생하기 이전에 상기 외부 인터럽트 신호의 값이 되며, 상기 변화 상태는 상기 인터럽트가 발생하였을 때의 상기 외부 인터럽트 신호의 값이 된다. The initial state is a value of the external interrupt signal before the interrupt is first generated, and the change state is a value of the external interrupt signal when the interrupt occurs.

바람직하게, 상기 외부 인터럽트 신호는 상기 외부 장치에 상기 인터럽트가 발생하였는지 여부에 대한 정보를 가진 신호이며, 상기 외부 인터럽트 신호의 일 신호 레벨 및 다른 신호 레벨이 각각 상기 인터럽트 발생 및 상기 인터럽트 비 발생의 정보를 포함한다. Preferably, the external interrupt signal is a signal having information on whether the interrupt has occurred in the external device, and one signal level and the other signal level of the external interrupt signal are information of the interrupt occurrence and the interrupt ratio generation, respectively. It includes.

바람직하게, 상기 인터럽트 발생 방법은 상기 외부 인터럽트 신호가 상기 트 리거 레벨로 천이하면, 상기 외부 장치에 인터럽트가 발생한 것으로 판단하고, 상기 외부 장치에서 인터럽트로 요청한 특정 동작을 수행하는 단계를 더 구비할 수 있다. Preferably, the interrupt generation method may further include determining that an interrupt has occurred in the external device when the external interrupt signal transitions to the trigger level, and performing a specific operation requested by the interrupt from the external device. have.

바람직하게, 상기 인터럽트 발생 방법은 상기 특정 동작을 수행한 후, 인터럽트 계류 레지스터 내에 저장되어 있는 해당 인터럽트 정보 값을 리셋시키는 단계를 더 구비할 수 있다. Preferably, the interrupt generation method may further include resetting a corresponding interrupt information value stored in an interrupt pending register after performing the specific operation.

바람직하게, 상기 인터럽트 발생 방법은 상기 트리거 레벨을 상기 초기 상태로 재설정하는 단계 이후에, 상기 외부 인터럽트 신호가 상기 재 샐정된 트리거 레벨로 천이하면, 상기 외부 장치에서 인터럽트로 요청한 특정 동작을 수행하는 단계를 더 구비할 수 있다. Preferably, the interrupt generation method, after the step of resetting the trigger level to the initial state, if the external interrupt signal transitions to the rescheduled trigger level, performing the specific operation requested by the interrupt from the external device; It may be further provided.

바람직하게, 상기 인터럽트 발생 방법은 상기 외부 인터럽트 신호의 논리 레벨이 상기 트리거 레벨과 동일하지 않을 경우, 상기 변화상태를 상기 트리거 레벨로 유지시켜 상기 인터럽트 발생시를 대비하는 단계를 더 구비할 수 있다. Preferably, the interrupt generation method may further include maintaining the change state at the trigger level when the logic level of the external interrupt signal is not the same as the trigger level to prepare for the interrupt occurrence.

바람직하게, 상기 인터럽트 발생 방법은 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 인터럽트 마스킹 동작을 수행하지 않는 것을 특징으로 한다. Preferably, the interrupt generation method does not perform an interrupt masking operation after the external interrupt signal transitions to the trigger level.

바람직하게, 상기 초기 상태 및 변화 상태를 설정하는 단계는 상기 외부 장치가 상기 외부 인터럽트 신호의 라이징 에지 상태에서 상기 인터럽트를 발생시키는 경우, 상기 초기 상태 및 상기 변화 상태를 각각 논리 로우 및 논리 하이로 설정할 수 있다. Preferably, the setting of the initial state and the change state may include setting the initial state and the change state to logic low and logic high, respectively, when the external device generates the interrupt in the rising edge state of the external interrupt signal. Can be.

바람직하게, 상기 초기 상태 및 변화 상태를 설정하는 단계는 상기 외부 장치가 상기 외부 인터럽트 신호의 폴링 에지 상태에서 상기 인터럽트를 발생시키는 경우, 상기 초기 상태 및 상기 변화 상태를 각각 논리 하이 및 논리 로우로 설정할 수 있다. Preferably, the setting of the initial state and the change state may include setting the initial state and the change state to logic high and logic low, respectively, when the external device generates the interrupt at the falling edge state of the external interrupt signal. Can be.

본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 인터럽트 발생을 위한 초기화 단계에서 초기 상태와 변화 상태를 설정하고, 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤 상기 트리거 레벨을 상기 초기 상태로 재설정함으로써, 레벨 트리거 방식의 인터럽트 발생 장치를 이용하여 추가적인 장치 추가 없이 에지 트리거 방식의 인터럽트 발생이 가능하도록 할 수 있다. An interrupt generation recognition method according to an embodiment of the present invention sets an initial state and a changed state in an initialization step for interrupt generation, and resets the trigger level to the initial state after an external interrupt signal transitions to the trigger level. By using the level trigger type interrupt generator, it is possible to enable the edge trigger type interrupt generation without adding an additional device.

또한, 노이즈 제거 필터를 별도로 구비하지 않아도 에지 트리거 방식의 인터럽트를 발생할 수 있다. 또한, 인터럽트 발생을 처리하는 동안에 별도의 인터럽트 마스킹 동작을 하지 않아도 되어, 동작 속도 성능이 향상되는 효과가 있다. In addition, an edge trigger type interrupt may be generated even without a noise removing filter. In addition, an interrupt masking operation does not need to be performed while the interrupt is being generated, thereby improving the operation speed performance.

본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시예를 예시하는 첨부 도면 및 도면에 기재된 내용을 참조하여야 한다. In order to fully understand the present invention, operational advantages of the present invention, and objects achieved by the practice of the present invention, reference should be made to the accompanying drawings and the accompanying drawings which illustrate preferred embodiments of the present invention.

이하, 첨부한 도면을 참조하여 본 발명이 바람직한 실시예를 설명함으로써, 본 발명을 상세히 설명한다. 각 도면에 제시된 동일한 참조부호는 동일한 부재를 나타낸다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings. Like reference symbols in the drawings denote like elements.

도 2는 본 발명에서 이용되는 인터럽트 발생 및 처리 장치를 설명하기 위한 도면이다. 2 is a diagram for explaining an interrupt generation and processing apparatus used in the present invention.

본 발명에 따른 인터럽트 발생의 인식 방법은 레벨 트리거 방식으로 구동되는 인터럽트 발생 및 처리 장치를 이용한다. The interrupt generation recognition method according to the present invention uses an interrupt generation and processing apparatus driven by a level trigger method.

도 2를 참조하면, 인터럽트 발생 및 처리 장치는 주 장치(270) 내에 포함될 수 있다. 주 장치(270)의 외부에 구비되는 부 장치(210)는 인터럽트의 발생을 외부 신호를 통하여 주 장치(270)에 알린다. Referring to FIG. 2, an interrupt generating and processing device may be included in the main device 270. The sub device 210 provided outside the main device 270 notifies the main device 270 of the occurrence of an interrupt via an external signal.

부 장치(210)는 내부에 도시된 플로우차트에 따라서 동작한다. 먼저, 부 장치(210)는 일정 동작 주기 단위로 인터럽트의 발생을 모니터링 한다(211 단계). 인터럽트가 발생하지 않았으면 계속하여 211 단계의 모니터링 동작을 수행한다. The sub-device 210 operates according to the flowchart shown therein. First, the secondary device 210 monitors generation of an interrupt in units of a predetermined operation cycle (step 211). If the interrupt has not occurred, the monitoring operation of step 211 is continued.

인터럽트가 발생하였으면, 외부 인터럽트 신호의 논리 레벨이 변경되도록 한다(213 단계). 213 단계의 제어 동작에 의하여, 외부 인터럽트 신호(221)는 논리 레벨이 변경되어 220 신호선을 통하여 주 장치(270)로 전송된다. If an interrupt has occurred, the logic level of the external interrupt signal is changed (step 213). By the control operation of step 213, the external interrupt signal 221 is changed in logic level and transmitted to the main device 270 through the 220 signal line.

주 장치(270) 내에 구비된 인터럽트 발생 및 처리 장치(250)는 내부에 도시된 플로우차트에 따라서 동작한다. The interrupt generating and processing apparatus 250 provided in the main apparatus 270 operates according to the flowchart shown therein.

먼저, 외부 인터럽트 신호(221)를 전송받고, 인터럽트인지를 판단한다(251 단계). 251 단계는 도 3a의 305 단계 내지 320 단계(305, 310, 315, 320 단계)에서 구체적으로 설명하도록 한다. First, the external interrupt signal 221 is received and it is determined whether the interrupt (step 251). Operation 251 will be described in detail with reference to operations 305 to 320 (305, 310, 315, and 320) of FIG. 3A.

해당 인터럽트 서비스 루틴(ISR)을 호출하고, 상기 해당 인터럽트 서비스 루틴(ISR)을 실행한다(253 단계 및 255 단계). 253 단계 및 255 단계는 도 2의 325, 330, 및 335 단계에서 구체적으로 설명하도록 한다. The interrupt service routine (ISR) is called and the interrupt service routine (ISR) is executed (steps 253 and 255). Steps 253 and 255 are described in detail in steps 325, 330, and 335 of FIG. 2.

주 장치(270)는 인터럽트 계류 레지스터(260)를 더 구비할 수 있다. 인터럽트 계류 레지스터(260)는 인터럽트가 발생하면, 상기 발생 상태를 개별 레지스터에 저장하는 장치가 된다. 예를 들어, 제1 동작에 대하여 인터럽트가 발생하면 261 레지스터 셀 값은 논리 하이로 설정될 수 있다. 그리고, 인터럽트가 발생하지 않은 상태를 논리 로우로 설정할 수 있다. 예시적으로, 제1 동작은 키보드의 'A' 자판을 눌렀을 때, 제2 동작은 키보드의 'B' 자판을 눌렀을 때, 또는 제3 동작은 키보드의 'C' 자판을 눌렀을 때 등이 될 수 있다. 이러한, 인터럽트 요청에 대하여, 인터럽트 발생 및 처리 장치(250)는 'A' 자판을 누름에 따라서 발생한 인터럽트 요청에 응답하여, 모니터에 문자 'A'가 디스플레이 되도록 인터럽트 서비스 루틴을 실행시킬 수 있다. The main device 270 may further include an interrupt pending register 260. The interrupt pending register 260 is a device that stores the generation state in a separate register when an interrupt occurs. For example, if an interrupt occurs for the first operation, the 261 register cell value may be set to logic high. In addition, an interrupt-free state can be set to logic low. For example, the first operation may be when the 'A' keyboard is pressed, the second operation may be when the 'B' keyboard is pressed, the third operation may be when the 'C' keyboard is pressed, or the like. have. In response to the interrupt request, the interrupt generation and processing apparatus 250 may execute the interrupt service routine so that the letter 'A' is displayed on the monitor in response to the interrupt request generated by pressing the 'A' keyboard.

도 3a는 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다. 3A is a flowchart illustrating a method of recognizing an interrupt occurrence according to an embodiment of the present invention.

도 3a를 참조하면, 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 외부 인터럽트 신호의 논리 레벨을 감지한다(305 단계). 전술한 바와 같이 외부 인터럽트 신호는 논리 로우 또는 논리 하이 레벨을 가질 수 있다. 외부 인터텁트 신호의 논리 레벨을 파악하는 것이다. Referring to FIG. 3A, a method of recognizing interrupt generation according to an embodiment of the present invention detects a logic level of an external interrupt signal (step 305). As described above, the external interrupt signal may have a logic low or logic high level. The logic level of the external interrupt signal is determined.

본원에서 이용하는 인터럽트 발생 및 처리 장치는 도 2에서 전술한 바와 같이 레벨 트리거 방식의 인터럽트 발생 및 처리 장치이다. 따라서, 별도의 장치를 추가하지 않아도, 외부 인터럽트 신호의 특정 시점에서의 논리 레벨을 파악할 수 있다. 그에 따라서, 후속 단계에서 상기 외부 인터럽트 신호의 최초 상태를 파악하여, 310 단계의 초기 상태 및 변화 상태를 설정하게 됨으로써, 전술한 종래 기술의 문제점(레벨 트리거 방식에서의, 외부 신호 상태 인식 문제 및 외부 신호의 초기 상태 인식 문제)을 해결할 수 있게 된다. The interrupt generation and processing apparatus used herein is a level trigger type interrupt generation and processing apparatus as described above in FIG. Therefore, the logic level at a specific point in time of the external interrupt signal can be grasped without adding a separate device. Accordingly, in the subsequent step, the initial state of the external interrupt signal is identified, and the initial state and the change state of step 310 are set, so that the above-described problems of the prior art (the external signal state recognition problem and the external in the level trigger method) are established. Problem of initial state recognition of a signal).

305 단계에서, 외부 인터럽트 신호의 초기 논리 레벨을 감지함으로써, 부 장치(또는 외부 장치)의 현재 상태가 어떠한 상태인지 파악할 수 있다. In step 305, by detecting the initial logic level of the external interrupt signal, it is possible to determine what is the current state of the secondary device (or external device).

예를 들어, 핸드폰 장치에 외부적으로 장착되는 플레쉬 메모리가 핸드폰을 켜기 이전부터 핸드폰에 장착되어있던 상태였다면, 305 단계의 동작을 통하여 플레쉬 메모리(부 장치)의 상태를 파악할 수 있다. For example, if the flash memory externally mounted on the cellular phone device has been mounted on the cellular phone before turning on the cellular phone, the state of the flash memory (secondary device) may be determined through operation 305.

여기서, 외부 인터럽트 신호란, 외부 장치(또는 부 장치)에 인터럽트가 발생하였는지 여부에 대한 정보를 가진 신호이다. 그리고, 외부 인터럽트 신호의 일 신호 레벨 및 다른 신호 레벨 각각이 상기 인터럽트 발생 및 인터럽트 비 발생의 정보를 포함한다. 여기서, 인터럽트는 사용자의 설정한 특정 상황이 발생하면 발생하게 된다. Here, the external interrupt signal is a signal having information on whether an interrupt has occurred in the external device (or the secondary device). Then, one signal level and the other signal level of the external interrupt signal each contain information of the interrupt occurrence and the interrupt ratio occurrence. Here, an interrupt is generated when a specific situation set by the user occurs.

초기 상태 및 변화 상태를 설정한다(310 단계). 여기서, 초기 상태란 인터럽트가 최초로 발생하기 이전의 외부 인터럽트 신호의 논리 레벨 값이 된다. 변화 상태란 인터럽트가 발생하였을 때의 외부 인터럽트 신호 값이 된다. 예를 들어, 외부 인터럽트 신호가 논리 하이 상태로 되어야 인터럽트가 발생한 것이라면, 논리 하이 레벨은 변화 상태가 되고, 논리 로우 레벨은 초기 상태가 되는 것이다. The initial state and the change state are set (step 310). Here, the initial state is a logic level value of the external interrupt signal before the interrupt is first generated. The change state is an external interrupt signal value when an interrupt occurs. For example, if an interrupt occurs only when the external interrupt signal is in a logic high state, the logic high level is changed and the logic low level is initialized.

먼저, 변화 상태를 인터럽트 발생의 트리거 레벨(trigger level)로 설정한 다(315 단계). 변화 단계는 310 단계에서 설정되므로, 이를 이용하여 트리거 레벨을 설정하는 것이다. 트리거 레벨이란, 인터럽트가 발생한 한 것으로 인식되는 외부 인터럽트 신호의 논리 레벨이 된다. 주 장치가 외부 인터럽트 신호를 전송받았을 때, 외부 인터럽트 신호가 트리거 레벨로 되면 인터럽트가 발생한 것으로 판단하여 해당 인터럽트 서비스 루틴을 실행하게 된다. First, the change state is set to a trigger level of interrupt generation (step 315). Since the change step is set in step 310, the trigger level is set using the change step. The trigger level is a logic level of an external interrupt signal that is recognized as long as an interrupt has occurred. When the external device receives the external interrupt signal, when the external interrupt signal reaches the trigger level, it determines that an interrupt has occurred and executes the corresponding interrupt service routine.

외부 인터럽트 신호가 315 단계에서 설정된 트리거 레벨로 되었는지 판단한다(320 단계). 즉, 315 단계에서, 트리거 레벨로써 변화 상태 값이 설정되었으므로, 외부 인터럽트 신호가 310 단계에서 설정된 변화 레벨로 되었는지(상태변화 하였는지) 판단하는 것이다. It is determined whether the external interrupt signal is set to the trigger level set in step 315 (step 320). That is, since the change state value is set as the trigger level in step 315, it is determined whether or not the external interrupt signal has reached the change level set in step 310.

420 단계에서 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 트리거 레벨을 310 단계에서 설정된 초기 상태로 재설정한다(330 단계). 즉, 인터럽트가 한번 발생하고 나면(외부 인터럽트 신호가 트리거 레벨로 되고 나면), 트리거 레벨을 변경하여 준다. 여기서, 외부 인터럽트 신호가 315 단계에서 설정한 트리거 레벨로 천이(transition)되는 동작이 있으면, 인터럽트가 발생한 것으로 판단할 수 있다. After the external interrupt signal transitions to the trigger level in step 420, the trigger level is reset to the initial state set in step 310 (step 330). In other words, once an interrupt occurs (after the external interrupt signal becomes the trigger level), the trigger level is changed. Here, if there is an operation in which the external interrupt signal transitions to the trigger level set in step 315, it may be determined that an interrupt has occurred.

본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 425 단계를 더 구비할 수 있다. The method for recognizing an interrupt occurrence according to an embodiment of the present invention may further include step 425.

320 단계의 판단 결과, 외부 인터럽트 신호가 315 단계에서 설정된 변화 레벨로 되었으면, 부 장치에서 요청한 해당 인터럽트 서비스 루틴(ISR)을 수행한다(325 단계). 예를 들어, 부 장치가 키보드이고, 주 장치가 중앙 처리 장치일 때, 키보드의 "Delete" 키를 누를 경우 외부 인터럽트 신호가 논리 하이 레벨로 된다고 하자. 그러면, 논리 하이 레벨이 변화 레벨로 설정되고, 그에 따라서 트리거 레벨이 변화 레벨(즉, 논리 하이 레벨)로 설정된다. 계속하여, 사용자가 키보드를 누름에 따라서, 외부 인터럽트 신호가 논리 하이 레벨로 되었으면(320 단계), 중앙 처리 장치(주 장치)는 화면(모니터)에 디스플레이 된 문자 등이 지워지는 동작(해당 ISR)이 수행되도록 한다. As a result of the determination in step 320, if the external interrupt signal reaches the change level set in step 315, the corresponding interrupt service routine (ISR) requested by the secondary device is performed (step 325). For example, suppose the secondary device is the keyboard and the primary device is the central processing unit. When the "Delete" key on the keyboard is pressed, the external interrupt signal goes to a logic high level. Then, the logic high level is set to the change level, and accordingly the trigger level is set to the change level (ie, the logic high level). Subsequently, as the user presses the keyboard, if the external interrupt signal has reached a logic high level (step 320), the central processing unit (main unit) erases characters displayed on the screen (monitor), etc. (the corresponding ISR). Let this be done.

또한, 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 425 단계의 해당 인터럽트 서비스 루틴(ISR)을 수행하고 나면, 인터럽트 계류 레지스터(Interrupt Pending Register) 내의 해당 인터럽트 정보 값을 리셋시키는 단계(미도시)를 더 구비할 수 있다.In addition, the method for recognizing an interrupt occurrence according to an embodiment of the present invention, after performing the corresponding interrupt service routine (ISR) in step 425, resetting the corresponding interrupt information value in the interrupt pending register. C) may be further provided.

또한, 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 430 단계 이후에, 외부 인터럽트 신호가 상기 재설정 된 트리거 레벨로 천이하면, 외부 장치에서 인터럽트로 요청한 특정 동작을 수행하는 단계(미도시)를 더 구비할 수 있다.In addition, in the method of recognizing an interrupt generation according to an embodiment of the present invention, after the step 430, when the external interrupt signal transitions to the reset trigger level, performing an operation requested by the external device as an interrupt (not shown). It may be further provided.

320 단계의 판단 결과, 외부 인터럽트 신호가 트리거 레벨로 되지 않으면, 트리거 레벨을 315 단계에서 설정한 변화 레벨로 유지한다. 그리고, 해당 인터럽트 서비스 루틴(ISR)을 준비 또는 대기시킨다(335 단계). As a result of the determination in step 320, if the external interrupt signal does not become the trigger level, the trigger level is maintained at the change level set in step 315. Then, the interrupt service routine ISR is prepared or waiting (step 335).

바람직하게, 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법은 외부 인터럽트 신호가 트리거 레벨로 천이한 뒤, 인터럽트 마스킹 동작을 수행하지 않는다. Preferably, the interrupt generation recognition method according to an embodiment of the present invention does not perform an interrupt masking operation after the external interrupt signal transitions to the trigger level.

도 3b는 도 3a에서의 외부 인터럽트 신호 상태에 따른 인터럽트 발생을 설명 하기 위한 도면이다. FIG. 3B is a diagram for describing interrupt generation according to an external interrupt signal state in FIG. 3A.

도 3b에서는 인터럽트가 발생하면 외부 인터럽트 신호가 논리 하이 레벨로 변화되는 경우를 예로 들어 설명한다. In FIG. 3B, an example in which an external interrupt signal changes to a logic high level when an interrupt occurs is described.

도 3b를 참조하면, 외부 인터럽트 신호의 논리 로우 레벨을 초기 상태로, 논리 하이 레벨을 변화 상태로 설정한다. 그리고, 변화 상태를 트리거 레벨로 설정한다. t1 시점에서 외부 인터럽트 신호가 트리거 레벨로 천이하였으므로, 371의 인터럽트 요청이 발생한다. 371 인터럽트 요청에 따라서, 325 단계에서는 해당 인터럽트 서비스 루틴을 수행한다. Referring to FIG. 3B, the logic low level of the external interrupt signal is set to an initial state, and the logic high level is set to a changed state. Then, the change state is set to the trigger level. Since the external interrupt signal has transitioned to the trigger level at time t1, an interrupt request of 371 occurs. In response to the interrupt request, step 325 performs the corresponding interrupt service routine.

인터럽트 요청이 한번 발생하였으므로, 330 단계의 동작에 따라서 트리거 레벨이 초기 상태(논리 로우 레벨)로 재설정된다. 그에 따라서, 외부 인터럽트 신호가 논리 하이에서 논리 로우로 변화하는 t2 시점에서 373 인터럽트 요청이 발생하게 된다. Since the interrupt request is generated once, the trigger level is reset to an initial state (logical low level) according to the operation of step 330. Accordingly, a 373 interrupt request is generated at a time t2 when the external interrupt signal changes from logic high to logic low.

도 3b에 도시된 바와 같이, 본 발명의 일 실시예에 다른 인터럽트 발생의 인식 방법은 레벨 트리거 방식의 인터럽트 발생 및 처리 장치를 이용하면서도, 에지 트리거 방식과 같이 외부 인터럽트 신호의 에지(상태가 변화하게 되는 지점)마다 인터럽트 요청을 발생시킬 수 있게 된다. As shown in FIG. 3B, another method for recognizing interrupt generation according to an embodiment of the present invention uses an interrupt generation and processing apparatus of a level trigger method, but the edge of an external interrupt signal (such as an edge trigger method) may be changed. Interrupt request).

또한, 외부 인터럽트 신호의 에지마다 인터럽트 요청을 발생시킬 수 있음에도, 에지 트리거 방식의 문제점(전술한, 외부 신호 상태 인식 문제 및 외부 신호의 초기 상태 인식 문제, 및 상기 문제점들을 해결하기 위한 추가적인 장치 구비의 문제점)을 모두 해결할 수 있다. In addition, although the interrupt request may be generated at each edge of the external interrupt signal, the problem of the edge trigger method (described above, the external signal state recognition problem and the initial state recognition problem of the external signal, and an additional device for solving the problems) Problem) can be solved.

도 4a는 폴링 에지에서 인터럽트를 발생하는 외부 장치에 적용되는 도 3a의 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다.FIG. 4A is a flowchart illustrating a method of recognizing interrupt generation of FIG. 3A applied to an external device generating an interrupt at a falling edge.

도 4a를 참조하면, 폴링 에지(falling edge)에서 인터럽트가 발생하여야 하므로, 초기 상태 및 변화 상태는 각각 논리 하이 레벨 및 논리 로우 레벨이 된다. 도 4a의 415 단계에 있어서, 도 3a의 315 단계에서의 트리거 레벨은 논리 로우 레벨이 된다. 그리고, 도 4a의 430 단계에 있어서, 도 3a의 330 단계의 트리거 레벨은 논리 하이 레벨로 된다. Referring to FIG. 4A, since an interrupt should occur at the falling edge, the initial state and the changed state are logic high level and logic low level, respectively. In step 415 of FIG. 4A, the trigger level in step 315 of FIG. 3A becomes a logic low level. In step 430 of FIG. 4A, the trigger level of step 330 of FIG. 3A becomes a logic high level.

이외의 모든 동작은 도 3a에서 도시 및 설명된 바와 동일하므로, 구체적인 설명은 생략하도록 한다. All other operations are the same as illustrated and described in FIG. 3A, and thus detailed descriptions thereof will be omitted.

도 4b는 라이징 에지에서 인터럽트를 발생하는 외부 장치에 적용되는 도 3a의 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다. FIG. 4B is a flowchart illustrating a method of recognizing interrupt generation of FIG. 3A applied to an external device generating an interrupt at a rising edge.

도 4b를 참조하면, 라이징 에지(rising edge)에서 인터럽트가 발생하여야 하므로, 초기 상태 및 변화 상태는 각각 논리 로우 레벨 및 논리 하이 레벨이 된다. 도 4b의 456단계에 있어서, 도 3a의 315 단계의 트리거 레벨은 논리 로우 레벨이 된다. 그리고, 도 4b의 480단계에 있어서, 도 3a의 330 단계의 트리거 레벨은 논리 하이 레벨로 된다. Referring to FIG. 4B, since an interrupt must occur at a rising edge, the initial state and the changed state are logic low level and logic high level, respectively. In step 456 of FIG. 4B, the trigger level of step 315 of FIG. 3A becomes a logic low level. In step 480 of FIG. 4B, the trigger level of step 330 of FIG. 3A becomes a logic high level.

이외의 모든 동작은 도 3a에서 도시 및 설명된 바와 동일하므로, 구체적인 설명은 생략하도록 한다. All other operations are the same as illustrated and described in FIG. 3A, and thus detailed descriptions thereof will be omitted.

이상에서와 같이 도면과 명세서에서 최적 실시예가 개시되었다. 여기서 특정한 용어들이었으나, 이는 단지 본 발명을 설명하기 위한 목적에서 사용된 것이지 의미한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로 본 기술분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다. As described above, optimal embodiments have been disclosed in the drawings and the specification. Although specific terms have been used herein, these terms are only used for the purpose of describing the present invention and are not intended to limit the scope of the present invention as defined in the claims or the claims. Therefore, those skilled in the art will appreciate that various modifications and equivalent embodiments are possible without departing from the scope of the present invention. Accordingly, the true scope of the present invention should be determined by the technical idea of the appended claims.

도 1a는 레벨 트리거 방식의 인터럽트 발생을 설명하기 위한 도면이다. FIG. 1A is a diagram for explaining occurrence of an interrupt in a level trigger method.

도 1b는 에지 트리거 방식의 인터럽트 발생을 설명하기 위한 도면이다. FIG. 1B is a diagram for explaining interrupt generation in an edge trigger method. FIG.

도 2는 본 발명에서 이용되는 인터럽트 발생 장치를 설명하기 위한 도면이다. 2 is a view for explaining an interrupt generating apparatus used in the present invention.

도 3a는 본 발명의 일 실시예에 따른 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다. 3A is a flowchart illustrating a method of recognizing an interrupt occurrence according to an embodiment of the present invention.

도 3b는 도 3a에서의 외부 인터럽트 신호 상태에 따른 인터럽트 발생을 설명하기 위한 도면이다. FIG. 3B is a diagram for describing interrupt generation according to an external interrupt signal state in FIG. 3A.

도 4a는 폴링 에지에서 인터럽트를 발생하는 외부 장치에 적용되는 도 3a의 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다. FIG. 4A is a flowchart illustrating a method of recognizing interrupt generation of FIG. 3A applied to an external device generating an interrupt at a falling edge.

도 4b는 라이징 에지에서 인터럽트를 발생하는 외부 장치에 적용되는 도 3a의 인터럽트 발생의 인식 방법을 나타내는 플로우차트이다. FIG. 4B is a flowchart illustrating a method of recognizing interrupt generation of FIG. 3A applied to an external device generating an interrupt at a rising edge.

Claims (9)

외부 장치에서 출력되는 외부 인터럽트 신호의 논리 레벨을 감지하는 단계; Detecting a logic level of an external interrupt signal output from an external device; 인터럽트 발생에 따라 변화되는 외부 인터럽트 신호의 논리 레벨에 따라서, 초기 상태와 변화 상태를 설정하는 단계; Setting an initial state and a changed state according to a logic level of an external interrupt signal that changes according to an interrupt occurrence; 상기 변화 상태를 상기 인터럽트 발생의 트리거 레벨로 설정하는 단계; Setting the change state to a trigger level of the interrupt occurrence; 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 상기 트리거 레벨을 상기 초기 상태로 재설정하는 단계를 구비하며, Resetting the trigger level to the initial state after the external interrupt signal transitions to the trigger level, 상기 초기 상태는 상기 인터럽트가 최초로 발생하기 이전에 상기 외부 인터럽트 신호의 값이 되며, 상기 변화 상태는 상기 인터럽트가 발생하였을 때의 상기 외부 인터럽트 신호의 값이 되는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And the initial state is a value of the external interrupt signal before the interrupt is first generated, and the change state is a value of the external interrupt signal when the interrupt is generated. 제1항에 있어서, 상기 외부 인터럽트 신호는 The method of claim 1, wherein the external interrupt signal is 상기 외부 장치에 상기 인터럽트가 발생하였는지 여부에 대한 정보를 가진 신호이며, 상기 외부 인터럽트 신호의 일 신호 레벨 및 다른 신호 레벨이 각각 상기 인터럽트 발생 및 상기 인터럽트 비 발생의 정보를 포함하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. A signal having information about whether the interrupt has occurred in the external device, wherein one signal level and the other signal level of the external interrupt signal include information of the interrupt occurrence and the non-interrupt occurrence, respectively; Recognition method of occurrence. 제2항에 있어서, 상기 인터럽트 발생의 인식 방법은 The method of claim 2, wherein the recognition method of generating the interrupt 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이하면, 상기 외부 장치에 인터럽트가 발생한 것으로 판단하고, 상기 외부 장치에서 인터럽트로 요청한 특정 동작을 수행하는 단계를 더 구비하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And determining that the external device has an interrupt when the external interrupt signal transitions to the trigger level, and performing a specific operation requested by the external device as an interrupt. 제3항에 있어서, 상기 인터럽트 발생의 인식 방법은 The method of claim 3, wherein the recognition method of generating the interrupt 상기 특정 동작을 수행한 후, 인터럽트 계류 레지스터 내에 저장되어 있는 해당 인터럽트 정보 값을 리셋시키는 단계를 더 구비하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And after performing the specific operation, resetting the corresponding interrupt information value stored in the interrupt pending register. 제2항에 있어서, 상기 인터럽트 발생의 인식 방법은 The method of claim 2, wherein the recognition method of generating the interrupt 상기 트리거 레벨을 상기 초기 상태로 재설정하는 단계 이후에, 상기 외부 인터럽트 신호가 상기 재설정 된 트리거 레벨로 천이하면, 상기 외부 장치에서 인터럽트로 요청한 특정 동작을 수행하는 단계를 더 구비하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And after the resetting of the trigger level to the initial state, when the external interrupt signal transitions to the reset trigger level, performing an operation requested by the external device as an interrupt. Recognition method of occurrence. 제2항에 있어서, 상기 인터럽트 발생의 인식 방법은 The method of claim 2, wherein the recognition method of generating the interrupt 상기 외부 인터럽트 신호의 논리 레벨이 상기 트리거 레벨과 동일하지 않을 경우, 상기 변화상태를 상기 트리거 레벨로 유지시켜 상기 인터럽트 발생시를 대비하는 단계를 더 구비하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And if the logic level of the external interrupt signal is not the same as the trigger level, maintaining the change state at the trigger level to prepare for the interrupt occurrence. 제2항에 있어서, 상기 인터럽트 발생의 인식 방법은 The method of claim 2, wherein the recognition method of generating the interrupt 상기 외부 인터럽트 신호가 상기 트리거 레벨로 천이한 뒤, 인터럽트 마스킹 동작을 수행하지 않는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And after the external interrupt signal transitions to the trigger level, an interrupt masking operation is not performed. 제2항에 있어서, 상기 초기 상태 및 변화 상태를 설정하는 단계는 The method of claim 2, wherein the setting of the initial state and the change state 상기 외부 장치가 상기 외부 인터럽트 신호의 라이징 에지 상태에서 상기 인터럽트를 발생시키는 경우, 상기 초기 상태 및 상기 변화 상태를 각각 논리 로우 및 논리 하이로 설정하는 것을 특징으로 인터럽트 발생의 인식 방법. And when the external device generates the interrupt in the rising edge state of the external interrupt signal, sets the initial state and the changed state to logic low and logic high, respectively. 제2항에 있어서, 상기 초기 상태 및 변화 상태를 설정하는 단계는 The method of claim 2, wherein the setting of the initial state and the change state 상기 외부 장치가 상기 외부 인터럽트 신호의 폴링 에지 상태에서 상기 인터럽트를 발생시키는 경우, 상기 초기 상태 및 상기 변화 상태를 각각 논리 하이 및 논리 로우로 설정하는 것을 특징으로 하는 인터럽트 발생의 인식 방법. And when the external device generates the interrupt in the falling edge state of the external interrupt signal, sets the initial state and the changed state to logic high and logic low, respectively.
KR1020080027882A 2008-03-26 2008-03-26 Recognize method of interrupt generation KR101356700B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080027882A KR101356700B1 (en) 2008-03-26 2008-03-26 Recognize method of interrupt generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080027882A KR101356700B1 (en) 2008-03-26 2008-03-26 Recognize method of interrupt generation

Publications (2)

Publication Number Publication Date
KR20090102434A KR20090102434A (en) 2009-09-30
KR101356700B1 true KR101356700B1 (en) 2014-01-28

Family

ID=41359900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080027882A KR101356700B1 (en) 2008-03-26 2008-03-26 Recognize method of interrupt generation

Country Status (1)

Country Link
KR (1) KR101356700B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5261107A (en) * 1989-11-03 1993-11-09 International Business Machines Corp. Programable interrupt controller
KR19980055836A (en) * 1996-12-28 1998-09-25 구자홍 Level Interrupt Inverter with D FLIP FLOP

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5261107A (en) * 1989-11-03 1993-11-09 International Business Machines Corp. Programable interrupt controller
KR19980055836A (en) * 1996-12-28 1998-09-25 구자홍 Level Interrupt Inverter with D FLIP FLOP

Also Published As

Publication number Publication date
KR20090102434A (en) 2009-09-30

Similar Documents

Publication Publication Date Title
US10579857B2 (en) Terminal control method and device based on fingerprint recognition key, and terminal
US8074000B2 (en) Hotkey processing method and computer system
US8522054B2 (en) Stand-by mode management method for use in a stand-by mode of a computer system with stand-by mode management module
CN101930308B (en) Method and device for resetting drive circuit of touch input device
US20080215868A1 (en) Bios management device and method for manging bios setting value
US20080120578A1 (en) Mouse with a screen saver control function
US11016548B2 (en) Single chip system and reset method for single chip system
US20090108878A1 (en) High-frequency clock detection circuit
US20190391723A1 (en) Touch recognition method, touch device
US20080070617A1 (en) Reset circuit and method of mobile phone
US7055064B2 (en) Automatic reset signal generator integrated into chipset and chipset with reset completion indication function
WO2017101336A1 (en) Switch shortcut controlling method and device
CN107798246A (en) One kind is based on the credible detection method and device of server
US20160085563A1 (en) Electronic device and method for waking up operating system thereof
KR101356700B1 (en) Recognize method of interrupt generation
US20160132098A1 (en) Electronic apparatus and wake-up method thereof
US9772650B2 (en) Solving unstable universal asynchronous receive transmit (UART) communication between a power manager and a universal serial bus (USB)-bridge device
CN107179911B (en) Method and equipment for restarting management engine
WO2016105628A1 (en) Alteration of input device operations based on acceleration
US20040098527A1 (en) Method and apparatus for an I/O controller to alert an external system management controller
CN107657186B (en) Ping-pong key blocking method for data security and apparatus using the same
TWI489260B (en) Stand-by management method and related management module and computer system
WO2019153986A1 (en) Application display method, application, storage medium, and electronic device
JP2007299247A (en) System control device, server device provided with system control circuit
EP3059656B1 (en) System and method for managing display-related resources

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20170102

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20191226

Year of fee payment: 7