KR20020053267A - Glitch masking method for switching signal and apparatus thereof - Google Patents
Glitch masking method for switching signal and apparatus thereof Download PDFInfo
- Publication number
- KR20020053267A KR20020053267A KR1020000082766A KR20000082766A KR20020053267A KR 20020053267 A KR20020053267 A KR 20020053267A KR 1020000082766 A KR1020000082766 A KR 1020000082766A KR 20000082766 A KR20000082766 A KR 20000082766A KR 20020053267 A KR20020053267 A KR 20020053267A
- Authority
- KR
- South Korea
- Prior art keywords
- signal
- level
- input
- output
- glitch
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/16—Modifications for eliminating interference voltages or currents
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/125—Discriminating pulses
- H03K5/1252—Suppression or limitation of noise or interference
Abstract
Description
본 발명은 스위칭 신호의 글리치 제거방법 및 장치에 관한 것으로, 특히 스위치를 단락 또는 개방시킬 때 발생하는 글리치를 제거하는 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for removing glitches of a switching signal, and more particularly, to a method and apparatus for removing glitches generated when a switch is shorted or opened.
스위치를 단락 또는 개방시키면 접점에 순간적으로 수많은 글리치가 발생하여 뜻하지 않게 연속적인 하이 또는 로우레벨 신호를 전달하게 된다. 램프와 같이 응답이 느린 장치 또는 소자의 경우에는 이러한 글리치가 장치 또는 소자의 동작에 별다른 영향을 주지 않으나 스위치 신호를 받아서 임의의 소프트웨어적인 처리를 하거나 스위치 신호에 즉각적으로 응답하는 소자의 경우에는 글리치가 발생할 때마다 연속적으로 소프트웨어적인 스위칭이 발생하거나 또는 소자에 연속적인 스위칭 신호가 전달되어 심각한 오류를 범할 수 있다.Shorting or opening the switch can cause a large number of glitches at the contacts, which inadvertently carry a continuous high or low level signal. For devices or devices that respond slowly, such as lamps, these glitches have little effect on the operation of the device or device, but for devices that receive a switch signal and do some software processing or respond immediately to the switch signal, Whenever this occurs, software switching can occur continuously, or a continuous switching signal can be delivered to the device to cause serious errors.
본 발명이 이루고자 하는 기술적 과제는 스위칭 신호의 글리치 제거방법 및 장치를 제공하는 데 있다.An object of the present invention is to provide a method and apparatus for removing glitches of a switching signal.
본 발명이 이루고자 하는 다른 기술적 과제는 스위칭 신호의 글리치 제거방법을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하는 데 있다.Another object of the present invention is to provide a computer-readable recording medium recording a method of removing glitches of a switching signal.
도 1은 종래의 스위치의 단락시 발생하는 글리치 신호를 나타내는 도면이다.1 is a diagram illustrating a glitch signal generated when a short circuit of a conventional switch is performed.
도 2는 본 발명에 따른 스위칭 신호의 글리치 제거방법 또는 장치에 의해 글리치 신호가 제거된 신호를 나타내는 도면이다.2 is a diagram illustrating a signal from which a glitch signal is removed by a method or device for removing a glitch of a switching signal according to the present invention.
도 3은 본 발명에 따른 스위칭 신호의 글리치 제거장치의 일 실시예에 대한 구성을 나타내는 블록도이다.Figure 3 is a block diagram showing the configuration of an embodiment of a glitch cancellation apparatus for a switching signal according to the present invention.
도 4는 본 발명에 따른 스위칭 신호의 글리치 제거방법의 일 실시예에 대한 동작의 흐름을 나타내는 흐름도이다.4 is a flowchart illustrating an operation of one embodiment of a method for removing glitch of a switching signal according to the present invention.
도 5는 본 발명에 따른 스위칭 신호의 글리치 제거방법을 적용한 스테이트 머신의 동작의 흐름을 나타내는 도면이다.5 is a view showing the flow of operation of the state machine to which the method of eliminating the glitch of the switching signal according to the present invention.
상기의 기술적 과제를 이루기 위해, 본 발명에 따른 스위칭 신호의 글리치 제거방법은 (a) 입력신호의 레벨을 감지하는 단계; (b) 상기 입력신호가 제1레벨 신호이면 제1레벨 신호를 출력하고, 제2레벨 신호이면 소정의 시간동안 제2레벨 신호의 입력여부를 확인하는 단계; 및 (c) 상기 (b)단계에서 상기 제2레벨 신호가 연속하여 소정개수가 입력되면 제2레벨 신호를 출력하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above technical problem, the method of removing the glitch of the switching signal according to the present invention comprises the steps of: (a) detecting the level of the input signal; (b) outputting a first level signal if the input signal is a first level signal, and checking whether the second level signal is input for a predetermined time if the input signal is a second level signal; And (c) outputting a second level signal when a predetermined number of the second level signals are continuously input in the step (b).
상기의 다른 기술적 과제를 이루기 위해, 본 발명에 따른 스위칭 신호의 글리치 제거장치는 소정의 주기를 갖는 클럭발생수단; 입력신호와 상기 클럭발생수단으로부터 출력되는 클럭을 논리곱하는 신호레벨확인수단; 상기 신호레벨확인수단으로부터 출력되는 신호가 제2레벨 신호이면 소정의 시간동안 소정 개수의 제2레벨 신호의 출력여부를 카운트하고 저장하는 카운트수단; 및 상기 신호레벨확인수단으로부터 출력되는 신호가 제1레벨 신호거나 상기 카운트수단에서 카운트된 신호의 레벨이 연속하여 소정 개수미만이면 제1레벨 신호를 출력하고, 상기 카운트수단에서 카운트된 신호의 레벨이 연속하여 소정 개수이상이면 제2레벨 신호를 출력하는 스위칭신호출력수단을 포함하는 것을 특징으로 한다.In order to achieve the above technical problem, the apparatus for removing glitch of the switching signal according to the present invention comprises a clock generating means having a predetermined period; Signal level checking means for logically multiplying an input signal with a clock output from the clock generating means; Counting means for counting and storing whether or not a predetermined number of second level signals are output for a predetermined time when the signal output from the signal level checking means is a second level signal; And outputs a first level signal if the signal output from the signal level checking means is a first level signal or if the level of the signal counted by the counting means is continuously less than a predetermined number, and the level of the signal counted by the counting means is increased. It characterized in that it comprises a switching signal output means for outputting a second level signal if more than a predetermined number in succession.
이하에서, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예들에 대하여 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail preferred embodiments of the present invention.
도 1은 종래의 스위치의 단락시 발생하는 글리치 신호를 나타내는 도면이며, 도 2는 본 발명에 따른 스위칭 신호의 글리치 제거방법 또는 장치에 의해 글리치 신호가 제거된 신호를 나타내는 도면으로 도 1에는 입력에서 발생하는 글리치 신호(Switch_sig_in)가 그대로 출력(Switch_sig_out)에 나타나 있는 반면 도 4에는 입력신호(Switch_sig_in)가 본 발명에 따른 스위칭 신호의 글리치 제거방법 또는 장치에 의해 제거되어 출력(Switch_sig_out)되는 것을 볼 수 있다. 도 1 및 도 2에서 사용된 스위치는 로우레벨에서 동작하는 스위치로 본 발명에 따른 스위칭 신호의 글리치 제거방법 및 장치는 하이레벨에서 동작하는 스위치에도 적용될 수 있음은 물론이다.1 is a view showing a glitch signal generated when a short circuit of a conventional switch, FIG. 2 is a view showing a signal from which a glitch signal is removed by a method or device for removing a glitch of a switching signal according to the present invention. While the generated glitch signal Switch_sig_in is directly shown in the output Switch_sig_out, in FIG. 4, the input signal Switch_sig_in is removed by the glitch removing method or apparatus of the switching signal according to the present invention and outputted (Switch_sig_out). have. The switch used in FIGS. 1 and 2 is a switch operating at a low level, and the method and apparatus for removing glitch of the switching signal according to the present invention may be applied to a switch operating at a high level.
도 3은 본 발명에 따른 스위칭 신호의 글리치 제거장치의 일 실시예에 대한구성을 나타내는 블록도이다.Figure 3 is a block diagram showing the configuration of an embodiment of a glitch elimination device of the switching signal according to the present invention.
도 3을 참조하면, 본 발명에 따른 스위칭 신호의 글리치 제거장치는 소정의 주기를 갖는 클럭발생수단(20); 입력신호와 상기 클럭발생수단으로부터 출력되는 클럭을 논리곱하는 신호레벨확인수단(10); 상기 신호레벨확인수단으로부터 출력되는 신호가 로우레벨 신호이면 소정의 시간동안 소정 개수의 로우레벨 신호의 출력여부를 카운트하고 저장하는 카운트수단(30); 및 상기 신호레벨확인수단으로부터 출력되는 신호가 하이레벨 신호거나 상기 카운트수단에서 카운트된 신호의 레벨이 연속하여 소정 개수미만이면 하이레벨 신호를 출력하고, 상기 카운트수단에서 카운트된 신호의 레벨이 연속하여 소정 개수이상이면 로우레벨 신호를 출력하는 스위칭신호출력수단(40)을 포함한다.Referring to FIG. 3, the apparatus for removing glitch of a switching signal according to the present invention includes clock generation means 20 having a predetermined period; Signal level checking means (10) for performing an AND operation on an input signal and a clock output from the clock generating means; Counting means (30) for counting and storing whether or not a predetermined number of low-level signals are output for a predetermined time when the signal output from the signal level checking means is a low-level signal; And outputs a high level signal if the signal output from the signal level checking means is a high level signal or if the level of the signal counted by the counting means is continuously less than a predetermined number, and the level of the signal counted by the counting means is continuous. And a switching signal output means 40 for outputting a low level signal if the predetermined number or more.
도 4는 본 발명에 따른 스위칭 신호의 글리치 제거방법의 일 실시예에 대한 동작의 흐름을 나타내는 흐름도이다.4 is a flowchart illustrating an operation of one embodiment of a method for removing glitch of a switching signal according to the present invention.
도 4를 참조하면, 신호레벨확인수단(10)은 스위치의 단락 또는 개방에 따른 입력신호와 클럭발생수단(20)으로부터 발생되는 소정의 주기를 갖는 클럭신호를 논리곱하여 입력신호의 레벨을 확인한다(단계 300). 만약 입력신호가 하이레벨인 경우에는 클럭신호의 하이레벨과의 논리곱이 '1'으므로 입력신호의 레벨은 하이레벨로 확인되며, 입력신호가 로우레벨인 경우에는 클럭신호의 하이레벨과의 논리곱이 '0'이므로 입력신호의 레벨은 로우레벨로 확인된다.Referring to FIG. 4, the signal level checking means 10 checks the level of the input signal by logically multiplying the input signal according to a short circuit or opening of the switch and a clock signal having a predetermined period generated from the clock generating means 20. (Step 300). If the input signal is at high level, the logical product of the clock signal with the high level is '1'. Therefore, the level of the input signal is identified as high level. Since it is '0', the level of input signal is confirmed as low level.
신호레벨확인수단(10)에 의해 확인된 입력신호가 하이레벨인 경우에는 신호출력수단(40)은 하이레벨의 신호를 출력하며(단계 360), 로우레벨인 경우에는 입력신호의 확인결과에 따른 로우레벨신호가 카운트수단(30)으로 입력된다(단계 320). 카운트수단(30)은 로우레벨신호가 입력되면 카운터를 증가시키고(단계 320) 카운터가 소정 시간내에 소정의 횟수(예를 들면 50회)에 도달하지 않으면 연속되는 신호레벨확인수단(10)으로부터의 입력을 기다린다(단계 330).If the input signal confirmed by the signal level checking means 10 is a high level, the signal output means 40 outputs a high level signal (step 360). The low level signal is input to the counting means 30 (step 320). The counting means 30 increments the counter when the low level signal is input (step 320), and if the counter does not reach a predetermined number of times (e.g. 50 times) within a predetermined time, the counting means 30 from the continuous signal level checking means 10 Wait for input (step 330).
만약 소정 시간내에 소정의 횟수동안 연속해서 로우레벨의 신호가 카운트수단(30)으로 입력되면 카운트수단(30)으로부터 로우레벨 신호가 신호출력수단(40)으로 입력되어 신호출력수단(40)은 로우레벨의 신호를 출력하게 된다(단계 340). 한편, 카운터가 소정의 횟수에 도달되기 전에 신호레벨확인수단(10)에서 입력신호가 하이레벨로 확인되면 카운트수단(30)에 카운터를 0으로 설정하도록 소정의 신호를 출력하고, 신호출력수단(40)으로 하이레벨 신호를 출력하여 신호출력수단(40)이 하이레벨 신호를 출력하도록 한다. 이상의 과정에서 신호출력수단(40)이 하이 또는 로우레벨의 신호를 출력하면 카운터는 0로 설정된다(단계 350).If the low level signal is input to the counting means 30 continuously for a predetermined number of times within a predetermined time, the low level signal is input from the counting means 30 to the signal output means 40, and the signal output means 40 is low. A level signal is output (step 340). On the other hand, if the input signal is confirmed at the high level by the signal level checking means 10 before the counter reaches a predetermined number of times, a predetermined signal is output to the counting means 30 so as to set the counter to zero, and the signal output means ( A high level signal is output to 40 so that the signal output means 40 outputs a high level signal. In the above process, if the signal output means 40 outputs a high or low level signal, the counter is set to zero (step 350).
한편, 클럭발생수단(20)에서 발생되는 클럭신호는 한 주기가 글리치 신호의 가장 짧은 로우레벨 지속시간보다 작도록 설정되는 것이 바람직하나 글리치 신호의 가장 긴 로우레벨 지속시간에 비해 너무 작으면 글리치 신호임에도 불구하고 소정 횟수의 카운터에 도달하면 신호출력수단(40)으로 로우레벨 신호를 출력하게 되므로 글리치 신호의 가장 긴 로우레벨 지속시간에 비해 너무 작게 설정되지 않는 것이 바람직하다.On the other hand, the clock signal generated by the clock generating means 20 is preferably set so that one period is smaller than the shortest low level duration of the glitch signal, but if it is too small compared to the longest low level duration of the glitch signal, the glitch signal. Nevertheless, since the low level signal is output to the signal output means 40 when the counter reaches the predetermined number of times, it is preferable not to set the value too small for the longest low level duration of the glitch signal.
도 5는 상술한 스위칭 신호의 글리치 제거방법을 적용한 스테이트 머신(State machine)의 동작의 흐름을 나타내는 도면이다.FIG. 5 is a diagram illustrating an operation flow of a state machine to which the above-described method of removing glitch of the switching signal is applied.
도 5를 참조하면, '0'의 값을 갖는 로우레벨신호 또는 '1'의 값을 갖는 하이레벨신호(Switch_sig_in)가 신호부(500)로 입력되면 신호부(500)는 입력신호의 값에 따라 하이레벨신호의 경우 곧바로 '1'의 값을 갖는 하이레벨 신호를 출력하며, '0'의 값을 갖는 로우레벨 신호의 경우 카운트수단(510)으로 출력한다. 만약 카운트수단(510)에 입력된 신호 다음에 이어지는 입력신호가 하이레벨 신호이면 신호부(500)는 하이레벨 신호(Switch_sig_out)를 출력하며, 로우레벨 신호이면 카운터를 증가시키고 다음 입력신호의 레벨에 따라 상술한 과정을 반복한다. 카운터가 소정의 값에 이르면 신호부(520)는 로우레벨 신호(Switch_sig_out)를 출력한다. 도 5에서 참조번호 500 및 520으로 표시된 신호부 역시 하나의 요소로 구성할 수 있으나 설명의 편의를 위해 별개의 요소로 나타내었다.Referring to FIG. 5, when a low level signal having a value of '0' or a high level signal Switch_sig_in having a value of '1' is input to the signal unit 500, the signal unit 500 may be configured to a value of an input signal. Accordingly, in the case of the high level signal, a high level signal having a value of '1' is immediately output, and a low level signal having a value of '0' is output to the counting means 510. If the input signal following the signal input to the counting means 510 is a high level signal, the signal unit 500 outputs a high level signal (Switch_sig_out). Repeat the above process accordingly. When the counter reaches a predetermined value, the signal unit 520 outputs a low level signal Switch_sig_out. In FIG. 5, the signal parts denoted by reference numerals 500 and 520 may also be configured as one element, but are shown as separate elements for convenience of description.
이상의 스위칭 신호의 글리치 제거방법 및 장치는 소프트웨어적으로 또는 하드웨어적으로 다양하게 구성될 수 있다는 것은 이 분야에서 통상의 기술을 가진 자라면 용이하게 알 수 있는 것이며, 신호레벨확인수단 및 카운트수단은 하나 이상의 앤드게이트 또는 하나 이상의 플리플롭 등의 논리소자를 포함할 수 있음은 당연하다. 또한It can be easily understood by those skilled in the art that the above-described method and device for removing the glitch of the switching signal can be variously configured in software or hardware. Naturally, it may include more than one logic gate, such as an AND gate or one or more flip-flops. Also
본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기테이프, 플로피디스크, 광데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like, which are also implemented in the form of carrier waves (for example, transmission over the Internet). Include. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
본 발명에 따른 스위칭 신호의 글리치 제거방법 및 장치에 따르면, 스위치로부터 출력되는 글리치 신호를 소정의 클럭신호와 결합시켜 스위치로부터 출력되는 신호중 글리치신호를 제거함으로써, 깨끗한 스위치 신호를 생성하고 스위치의 단락 또는 개방시 발생하는 글리치로 인해 발생할 수 있는 소프트웨어 또는 하드웨어적인 오류를 없앨 수 있다.According to the glitch removing method and apparatus of the switching signal according to the present invention, by combining the glitch signal output from the switch with a predetermined clock signal to remove the glitch signal from the signal output from the switch, to generate a clean switch signal and to short circuit or Eliminating software or hardware errors that can occur due to glitches that occur when opening.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020000082766A KR20020053267A (en) | 2000-12-27 | 2000-12-27 | Glitch masking method for switching signal and apparatus thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020000082766A KR20020053267A (en) | 2000-12-27 | 2000-12-27 | Glitch masking method for switching signal and apparatus thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20020053267A true KR20020053267A (en) | 2002-07-05 |
Family
ID=27686563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020000082766A KR20020053267A (en) | 2000-12-27 | 2000-12-27 | Glitch masking method for switching signal and apparatus thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20020053267A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100445003B1 (en) * | 2002-07-24 | 2004-08-21 | 삼성전자주식회사 | Method and apparatus for eliminating glitch |
WO2010112969A1 (en) * | 2009-03-31 | 2010-10-07 | Freescale Semiconductor, Inc. | Clock glitch detection |
US8552764B2 (en) | 2009-01-05 | 2013-10-08 | Freescale Semiconductor, Inc. | Clock glitch detection circuit |
-
2000
- 2000-12-27 KR KR1020000082766A patent/KR20020053267A/en not_active Application Discontinuation
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100445003B1 (en) * | 2002-07-24 | 2004-08-21 | 삼성전자주식회사 | Method and apparatus for eliminating glitch |
US8552764B2 (en) | 2009-01-05 | 2013-10-08 | Freescale Semiconductor, Inc. | Clock glitch detection circuit |
US9024663B2 (en) | 2009-01-05 | 2015-05-05 | Freescale Semiconductor, Inc. | Clock glitch detection circuit |
WO2010112969A1 (en) * | 2009-03-31 | 2010-10-07 | Freescale Semiconductor, Inc. | Clock glitch detection |
US8519768B2 (en) | 2009-03-31 | 2013-08-27 | Freescale Semiconductor, Inc. | Clock glitch detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB1585598A (en) | Control circuit for a speech recorder connected to a microphone | |
WO1996021276A1 (en) | Clock noise filter for integrated circuits | |
CN110798213B (en) | Abnormality detection method, abnormality protection method, data detector, and DAC system | |
KR20020053267A (en) | Glitch masking method for switching signal and apparatus thereof | |
US10884448B1 (en) | Clock glitch detection circuit | |
EP0871290A2 (en) | Circuit to suppress glitches | |
KR100186220B1 (en) | Rupture/mounting detection circuit of board in hardware module | |
KR930013926A (en) | A circuit device having a plurality of sub-circuits and a clock signal reproducing circuit | |
CN112532215A (en) | Multi-channel synchronization signal generation system, method, equipment and medium | |
JP2707778B2 (en) | Noise removal circuit | |
US6430198B1 (en) | Apparatus and method of reducing packet length count processing | |
KR100376002B1 (en) | Noise reduction system for digital data and data storage apparatus | |
JP3068034B2 (en) | Frequency detector | |
JPH0483425A (en) | Pulse generating circuit | |
JP2000004147A (en) | Device and method for eliminating noise, and recording medium | |
KR0183197B1 (en) | An electronic switching system | |
US6766484B2 (en) | Method and apparatus for fully characterizing propagation delay through an n-input circuit | |
JP3164904B2 (en) | Input signal loss detection method | |
JPH02172320A (en) | Counter circuit | |
KR960039631A (en) | Glitch Eliminator for Logic Circuits | |
KR0139427B1 (en) | Hazard pulse ellimination circuit | |
KR950014185B1 (en) | Interript processing apparatus for multi trouble source system | |
KR100494646B1 (en) | Address Transition Detector for Semiconductor Memory Devices | |
JP2019176327A (en) | Electronic apparatus | |
US6755933B2 (en) | Semiconductor process recording apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |