KR20040009586A - Method and apparatus for eliminating glitch - Google Patents

Method and apparatus for eliminating glitch Download PDF

Info

Publication number
KR20040009586A
KR20040009586A KR1020020043588A KR20020043588A KR20040009586A KR 20040009586 A KR20040009586 A KR 20040009586A KR 1020020043588 A KR1020020043588 A KR 1020020043588A KR 20020043588 A KR20020043588 A KR 20020043588A KR 20040009586 A KR20040009586 A KR 20040009586A
Authority
KR
South Korea
Prior art keywords
count
signal
value
stop signal
glitch
Prior art date
Application number
KR1020020043588A
Other languages
Korean (ko)
Other versions
KR100445003B1 (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 KR10-2002-0043588A priority Critical patent/KR100445003B1/en
Publication of KR20040009586A publication Critical patent/KR20040009586A/en
Application granted granted Critical
Publication of KR100445003B1 publication Critical patent/KR100445003B1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/36Blanking or long feeds; Feeding to a particular line, e.g. by rotation of platen or feed roller
    • B41J11/42Controlling printing material conveyance for accurate alignment of the printing material with the printhead; Print registering

Abstract

PURPOSE: A method and an apparatus for removing a glitch are provided to minimize the distortion of an input signal due to the increase of the pulse width by improving a process for removing the glitch. CONSTITUTION: An apparatus for removing a glitch includes an edge detector(21), an n-bit counter(22), an overflow generator(23), and a selector(24). The edge detector(21) is used for detecting an edge of an input signal and supplying a count start signal. The n-bit counter(22) performs a counting operation by synchronizing with a main clock according to count start signal and a count setup value. The overflow generator(23) is used for generating a count stop signal when a count output value of the n-bit counter(22) approaches a predetermined value. The selector(24) is used for outputting selectively the input signal and the output signal according to the count stop signal.

Description

글리치 제거방법 및 장치 {Method and apparatus for eliminating glitch}Method and apparatus for eliminating glitch {Method and apparatus for eliminating glitch}

본 발명은 글리치 제거방법 및 장치로서, 특히 글리치 제거시 글리치로 인식하는 펄스폭이 커짐으로 인한 입력신호의 왜곡현상을 최소화하기 위한 글리치 제거방법 및 장치에 관한 것이다.The present invention relates to a glitch removal method and apparatus, and more particularly, to a glitch removal method and apparatus for minimizing distortion of an input signal due to an increase in a pulse width recognized as a glitch during glitch removal.

잉크젯 프린터의 캐리지 리턴(Carriage Return, 이하 CR로 약함) 모터의 위치 또는 속도제어를 위해 사용되는 엔코더 센서는 다수의 슬릿이 소정의 간격으로 형성되어 있는 엔코더 스트립바의 상부를 이동하면서 스트립바에 따른 펄스신호를 출력한다. 이때, 모터가 감속구간에서 정지상태로의 천이시 반발력이나 백래쉬(back-lash) 등에 의해서 이전 주기의 엔코더 센서의 출력신호보다 현저히 짧은 주기를 갖는 글리치가 발생된다.Carriage Return (weak CR) of the inkjet printer The encoder sensor used to control the position or speed of the motor is pulsed along the strip bar while moving the upper part of the encoder strip bar in which a plurality of slits are formed at predetermined intervals. Output the signal. At this time, when the motor transitions to the stationary state in the deceleration section, a glitch having a period that is significantly shorter than the output signal of the encoder sensor of the previous period is generated by the repulsive force or the back-lash.

도 1은 종래의 글리치 제거회로를 나타낸 회로도로서, 입력신호를 래치하기 위한 제1 내지 제3 D플립플롭(11,12,13), 제1 내지 제3 D플립플롭(11,12,13)의 클럭을 생성하는 클럭발생부(14), 제1 내지 제3 D플립플롭(11,12,13)의 출력을 입력신호의 액티브 레벨에 게이팅시키는 오아게이트(15) 및 앤드게이트(16)으로 이루어진다.1 is a circuit diagram illustrating a conventional glitch elimination circuit, in which first to third D flip flops 11, 12 and 13 and first to third D flip flops 11, 12 and 13 are latched to latch an input signal. A clock generator 14 for generating a clock of the clock, an ora gate 15 and an AND gate 16 for gating the outputs of the first to third D flip-flops 11, 12 and 13 to the active level of the input signal. Is done.

그 동작을 간단히 살펴보면, 제1 내지 제3 D플립플롭(11,12,13)은 각각 클럭발생부(14)에서 출력되는 클럭신호(MCLK)에 따라서 입력신호, 제1 D플립플롭(11)의 출력신호, 제2 D플립플롭(12)의 출력신호를 래치하여, 래치된 신호를 후단으로 공급한다. 오아게이트(15)는 제1 내지 제3 D플립플롭(11,12,13)의 출력신호를 입력으로 하여 글리치가 제거된 하이액티브레벨의 신호를 출력한다. 한편, 앤드게이트(16)는 제1 내지 제3 D플립플롭(11,12,13)의 출력신호를 입력으로 하여 글리치가 제거된 로우액티브레벨의 신호를 출력한다.The operation of the first to third D flip-flops 11, 12, and 13 may be based on the input signal and the first D flip-flop 11 according to the clock signal MCLK output from the clock generator 14, respectively. And the output signal of the second D flip-flop 12 are latched to supply the latched signal to the rear stage. The oragate 15 outputs a high active level signal from which glitches are removed by using the output signals of the first to third D flip-flops 11, 12, and 13 as inputs. On the other hand, the AND gate 16 inputs the output signals of the first to third D flip-flops 11, 12, and 13 to output a low active level signal from which glitches are removed.

상기와 같은 구성에 의해서는 글리치 제거폭의 최대값(Wm) 즉, (플립플롭의 갯수(N1)*플립플롭의 클럭주기(T1))보다 작은 폭을 가지는 글리치를 제거할 수 있는데, 원래의 클럭신호(MCLK)에서 분주된 클럭을 플립플롭의 클럭으로 사용함으로써 원하는 글리치 제거폭을 키울 수 있다. 그러나, 글리치가 제거된 신호는 입력신호보다 샘플링 해상도 즉, 플립플롭의 클럭만큼 주기가 왜곡되기 때문에, 분주된 클럭을 사용하게 되면 그만큼 주기의 왜곡량이 커지게 된다.With the above configuration, the glitches having a width smaller than the maximum value (Wm) of the glitch removal width, that is, (the number of flip flops (N1) * clock period (T1) of the flip flops) can be removed. By using the clock divided by the clock signal MCLK as the flip-flop clock, the desired glitch removal width can be increased. However, since the period is distorted by the sampling resolution, that is, the flip-flop clock, than the input signal, the glitch-reduced signal increases the amount of distortion in the period by using the divided clock.

한편, 플립플롭의 클럭을 메인클럭(MCLK)으로 사용하고 글리치 제거폭을 키우려면 플립플롭의 갯수와 오아게이트와 앤드게이트의 로직이 매우 증가하게 된다. 예를 들면, 글리치 제거폭이 3us이고, 클럭이 66MHz 인 경우에는 198개의 플립플롭을 필요로 하고, 이에 따라서 198개 입력을 갖는 오아게이트와 앤드게이트가 필요하게 되어 시스템 로직의 복잡도를 증가시키게 된다.On the other hand, if the clock of the flip-flop is used as the main clock (MCLK) and the glitch elimination width is increased, the number of flip-flops and the logic of the ora gate and the end gate are greatly increased. For example, if the glitch rejection width is 3us and the clock is 66MHz, 198 flip-flops are required, which increases the complexity of the system logic by requiring an oragate and an end gate with 198 inputs. .

그런데, 잉크젯 프린터의 CR 모터의 경우, 엔코더센서로부터 출력되는 신호의 주기가 CR 모터의 속도제어에 중요한 요소가 될 뿐 아니라 윈도우 타임의 베이스가 되기 때문에, 엔코더센서로부터 출력되는 신호의 주기의 왜곡은 시스템 성능저하에 중요한 요인이 된다. 또한, 시스템이 점점 소형화 및 고속처리를 요하는 방향으로 개발되면서 이러한 글리치로 인한 에러가 시스템에 더욱 큰 영향을 미치게 된다.However, in the case of the CR motor of the inkjet printer, since the period of the signal output from the encoder sensor is not only an important factor in controlling the speed of the CR motor but also a base of the window time, the distortion of the period of the signal output from the encoder sensor is This is an important factor in system performance degradation. In addition, as the system is developed in a direction that requires miniaturization and high-speed processing, errors caused by these glitches have a greater impact on the system.

본 발명이 이루고자 하는 기술적 과제는, 글리치가 하이 또는 로우레벨신호 어디에 포함되어 있든지 상관없이 제거할 수 있는 글리치 제거방법 및 장치를 제공하는데 있다.SUMMARY OF THE INVENTION The present invention has been made in an effort to provide a method and an apparatus for removing glitches, which may be removed regardless of whether a glitch is included in a high or low level signal.

본 발명이 이루고자 하는 다른 기술적 과제는 글리치가 제거된 신호는 입력신호에 비하여 설정된 글리치 제거폭에 해당하는 최소한의 지연시간을 가지도록 하는 글리치 제거방법 및 장치를 제공하는데 있다.Another technical problem to be achieved by the present invention is to provide a method and apparatus for removing glitches such that a signal having a glitch removed has a minimum delay time corresponding to a set glitch removal width compared to an input signal.

도 1은 종래의 글리치 제거회로를 설명하는 회로도,1 is a circuit diagram illustrating a conventional glitch elimination circuit;

도 2는 본 발명의 일실시예에 따른 글리치 제거장치의 구성을 나타낸 블럭도,Figure 2 is a block diagram showing the configuration of a glitch removal apparatus according to an embodiment of the present invention,

도 3a 및 도 3b는 도 2에 있어서 각부의 파형도, 및3A and 3B are waveform diagrams of respective parts in FIG. 2, and

도 4는 도 2에 도시된 글리치 제거장치를 이용하는 모터제어시스템의 구성을 나타낸 블럭도이다.4 is a block diagram showing the configuration of a motor control system using the glitch removal device shown in FIG.

*도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

21 ... 에지 검출부23 ... n비트 카운터21 ... edge detector 23 ... n-bit counter

25 ... 오버플로우 검출부27 ... 선택부25 ... overflow detection part 27 ... selection part

31 ... 엔코더 스트립바33 ... 엔코더센서31 ... encoder strip bar 33 ... encoder sensor

35 ... 글리치제거부37 ... 모터구동부35 ... glitch remover 37 ... motor-drive section

39 ... 모터39 ... motor

상기 기술적 과제들을 달성하기 위하여 본 발명에 따른 글리치 제거방법은 (a) 메인클럭과 원하는 글리치 제거폭에 따라서 카운트 설정값을 결정하는 단계; (b) 입력신호의 에지를 검출하는 단계; (c) 상기 (b) 단계에서 에지를 검출할 때마다 발생되는 카운트 시작신호와 상기 카운트 설정값에 따라서 상기 메인클럭에 동기되어 카운팅을 시작하는 단계; (d) 상기 (c) 단계에서 카운트 출력값이 소정값에 도달할 때마다 발생되는 카운트 정지신호에 따라 카운팅을 정지하는 단계; 및 (e) 상기 카운트 정지신호가 발생되면 현재 입력신호를, 발생되지 않으면 이전 출력신호를 선택적으로 출력하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above technical problem, the glitch removing method according to the present invention includes the steps of: (a) determining a count setting value according to a main clock and a desired glitch removing width; (b) detecting an edge of the input signal; (c) starting counting in synchronization with the main clock according to the count start signal and the count setting value generated every time an edge is detected in step (b); (d) stopping counting according to a count stop signal generated whenever the count output value reaches a predetermined value in step (c); And (e) selectively outputting a current input signal when the count stop signal is generated and a previous output signal when the count stop signal is not generated.

상기 기술적 과제들을 달성하기 위하여 본 발명에 따른 글리치 제거장치는 입력신호의 에지를 검출하고, 에지 검출시마다 카운트 시작신호로 공급하는 에지검출부; 상기 카운트 시작신호 및 카운트 설정값에 따라서 메인클럭에 동기되어 카운팅을 시작하고, 카운트 정지신호에 따라 카운팅을 정지하는 n 비트 카운터; 상기 n 비트 카운터의 카운트 출력값이 소정의 값에 도달할 때마다 카운트 정지신호를 발생시켜 상기 n 비트 카운터로 공급하는 오버플로우 발생부; 및 상기 카운트 정지신호에 따라 상기 입력신호 또는 이전 출력신호중의 하나를 선택적으로 출력하는 선택부를 포함하는 것을 특징으로 한다.In order to achieve the above technical problem, an apparatus for removing glitch according to the present invention may include: an edge detector detecting an edge of an input signal and supplying the count start signal every time the edge is detected; An n-bit counter that starts counting in synchronization with the main clock according to the count start signal and the count setting value and stops counting according to the count stop signal; An overflow generator for generating a count stop signal and supplying the count stop signal to the n-bit counter whenever the count output value of the n-bit counter reaches a predetermined value; And a selector configured to selectively output one of the input signal and the previous output signal according to the count stop signal.

이어서, 첨부된 도면을 참조하여 본 발명의 실시예에 대하여 상세히 설명하기로 한다.Next, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 글리치 제거장치를 나타낸 블럭도로서, 에지 검출부(21), n 비트 카운터(23), 오버플로우 검출부(25) 및 선택부(27)로 이루어진다.Fig. 2 is a block diagram showing the glitch removing apparatus according to the present invention, which comprises an edge detector 21, an n-bit counter 23, an overflow detector 25, and a selector 27.

에지 검출부(31)는 입력신호(a)의 상승에지와 하강에지를 검출하여, 카운트 시작신호(b)로서 카운터(33)에 인가한다.The edge detector 31 detects the rising edge and the falling edge of the input signal a and applies it to the counter 33 as the count start signal b.

n 비트 카운터(33)는 다운카운터 혹은 업카운터로 이루어지며, 다운카운터의 경우 에지 검출부(31)에서 출력되는 카운트 시작신호(b)에 따라서, 설정된 카운트 초기값(K)으로부터 메인클럭(MCLK)에 동기되어 다운 카운팅을 시작하고, 오버플로우 검출부(35)에서 출력되는 카운트 정지신호(d)에 따라서 카운팅을 종료한다. 한편, 업카운터의 경우, 카운트 시작신호(b)에 따라서, 설정된 카운트 종기값(K)까지 메인클럭(MCLK)에 동기되어 업카운팅을 시작하고, 오버플로우 검출부(35)에서 출력되는 카운트 정지신호(d)에 따라서 카운팅을 종료한다. 카운트 초기값 또는 카운트 종기값(K)은 메인클럭(MCLK)과 원하는 글리치 제거폭(W)이 결정되면, 메인클럭(MCLK)과 글리치 제거폭(W)을 곱한 값에서 가장 가까운 정수로 정해지고, 이에 따라 설계되는 카운터의 비트수(n)가 정해진다. 카운터의 비트수(n)가 정해지면, 카운트 초기값 또는 카운트 종기값(K)에 따라서 최대 2n×(1/MCLK) 에 해당하는 폭을 갖는 글리치를 제거할 수 있다.The n-bit counter 33 is composed of a down counter or an up counter. In the case of the down counter, the n-bit counter 33 is set from the set count initial value K to the main clock MCLK according to the count start signal b output from the edge detector 31. Down counting is started in synchronization with the control signal, and counting ends in accordance with the count stop signal d output from the overflow detection unit 35. On the other hand, in the up counter, according to the count start signal b, up counting is started up in synchronization with the main clock MCLK up to the set count end value K, and the count stop signal output from the overflow detector 35 is output. Counting ends according to (d). The count initial value or count end value (K) is determined as the nearest integer from the product of the main clock (MCLK) and the desired glitch elimination width (W), multiplied by the main clock (MCLK) and the glitch elimination width (W). The number of bits n of the counter designed accordingly is determined. When the number of bits n of the counter is determined, the glitch having a width corresponding to a maximum of 2 n × (1 / MCLK) can be removed according to the count initial value or the count end value K.

오버플로우 검출부(35)에서는 다운카운터의 경우 카운터(33)의 출력값(c)이 "0"이 되거나, 업카운터의 경우 카운트 종기값(K)에 도달할 경우, 카운트 정지신호(d)를 카운터(33)와 선택부(35)로 각각 출력한다.The overflow detection unit 35 counts the count stop signal d when the output value c of the counter 33 becomes "0" for the down counter or reaches the count end value K for the up counter. Output to 33 and selector 35, respectively.

선택부(37)는 선택제어신호로 인가되는 카운트 정지신호(d)에 따라서 이전의 출력신호(e)와 입력신호(a) 중 하나를 선택하여 출력한다. 즉, 카운트 정지신호(d)가 발생되면 현재 입력신호(a)를 선택하고, 발생되지 않으면 이전 출력신호(e)를 선택하여 출력한다.The selector 37 selects and outputs one of the previous output signal e and the input signal a according to the count stop signal d applied as the selection control signal. That is, when the count stop signal d is generated, the current input signal a is selected, and if not, the previous output signal e is selected and output.

상기한 구성에 따른 동작을 도 3a 및 도 3b에 도시된 파형도와 결부시켜 설명하면 다음과 같다.The operation according to the above configuration will be described with reference to the waveform diagrams shown in FIGS. 3A and 3B.

도 3a 및 도 3b는 각각 로우레벨 및 하이레벨에 글리치가 포함된 경우를 예로 든 것으로서, (a)는 입력신호, (b)는 에지검출부(21)의 출력신호, (c)는 카운터(23)의 출력신호, (d)는 오버플로우 검출부(25)의 출력신호, 및 (e)는 선택부(27)의 출력신호를 각각 나타낸다. 여기서, 설정된 글리치 제거폭은 W, 입력신호의 글리치 폭은 W1, 글리치 이후 로우 또는 하이레벨의 신호폭은 W2, 하이 또는 로우레벨의 신호폭은 W3인 경우를 예로 든 것이고, 카운터(23)는 8비트 다운카운터를 예로 든 것이다.3A and 3B illustrate an example in which the glitch is included in the low level and the high level, respectively, (a) is an input signal, (b) is an output signal of the edge detector 21, and (c) is a counter 23. ), (D) denotes the output signal of the overflow detection unit 25, and (e) denotes the output signal of the selection unit 27, respectively. Here, the set glitch removal width is W, the glitch width of the input signal is W1, the signal width of the low or high level after the glitch is W2, and the signal width of the high or low level is W3, and the counter 23 An example is an 8-bit down counter.

도 3a에 있어서, 로우레벨의 신호에 W1 만큼의 폭을 갖는 글리치를 포함하는 입력신호(a)가 에지검출부(21)에 인가되면, 에지검출부(21)는 글리치의 상승에지 및 하강에지를 검출하여 신호 (b)를 출력한다. 카운터(23)는 글리치의 상승에지에서 카운트 초기값(K)에서부터 다운카운팅을 시작하여 계속하다가 글리치의 하강에지에서 이전 카운팅을 종료하고, 다시 카운트 초기값(K)에서부터 다운카운팅을 시작한다. 이때, 오버플로우 발생부(25)는 카운터 정지신호(d)가 발생하지 않게 되고, 선택부(27)는 로우레벨인 이전 출력신호(e)를 계속 선택하여 출력하게 되어, 글리치가 제거된다.In FIG. 3A, when an input signal a including a glitch having a width equal to W1 is applied to the edge detector 21 in the low level signal, the edge detector 21 detects the rising and falling edges of the glitch. To output the signal (b). The counter 23 starts down counting from the count initial value K at the rising edge of the glitch, continues the previous counting at the falling edge of the glitch, and starts counting down from the count initial value K again. At this time, the overflow generator 25 does not generate the counter stop signal d, and the selector 27 continuously selects and outputs the previous output signal e having a low level, and the glitch is removed.

다음, W2 만큼의 폭을 갖은 로우레벨신호를 살펴보면, 카운터(23)는 글리치의 하강에지에부터 다운카운팅을 시작하는데 카운트 초기값(K)에 해당하는 구간에서 출력값(c)이 "0"가 되면, 오버플로우 검출부(25)에서는 이를 검출하여 (d) 신호를 카운트 정지신호로서 카운터(23)에 인가한다. 카운터(23)는 다음 카운트 시작신호가 인가될 때까지 카운팅을 정지한다. 선택부(27)는 카운트 정지신호(d)가 발생되기 전까지는 로우레벨인 이전 출력신호를 선택하고, 카운터 정지신호(d)가 발생된 경우 로우레벨인 현재 입력신호(a)를 선택하여 출력하고, 다음 카운트 정지신호(d)가 발생할 때까지 로우레벨을 유지하게 된다.Next, looking at the low level signal having a width as wide as W2, the counter 23 starts counting down from the falling edge of the glitch, and the output value (c) becomes "0" in the section corresponding to the count initial value (K). If so, the overflow detector 25 detects this and applies the signal (d) to the counter 23 as a count stop signal. The counter 23 stops counting until the next count start signal is applied. The selector 27 selects the previous output signal at the low level until the count stop signal d is generated, and selects and outputs the current input signal a at the low level when the counter stop signal d is generated. The low level is maintained until the next count stop signal d is generated.

다음, W3 만큼의 폭을 갖은 하이레벨신호를 살펴보면, 카운터(23)는 하이레벨신호의 상승에지에서부터 다운카운팅을 시작하는데 카운트 초기값(K)에 해당하는 구간에서 출력값(c)이 "0"가 되면, 오버플로우 검출부(25)에서는 이를 검출하여 (d) 신호를 카운트 정지신호로서 카운터(23)에 인가한다. 카운터(23)는 다음 카운트 시작신호가 인가될 때까지 카운팅을 정지한다. 선택부(27)는 카운트 정지신호(d)가 발생되기 전까지는 로우레벨인 이전 출력신호를 선택하고, 카운터 정지신호(d)가 발생된 경우 하이레벨인 현재 입력신호(a)를 선택하여 출력하고, 다음 카운트 정지신호(d)가 발생할 때까지 하이레벨을 유지하게 된다.Next, looking at the high level signal having the width W3, the counter 23 starts down counting from the rising edge of the high level signal, and the output value c is "0" in the section corresponding to the count initial value K. If so, the overflow detection unit 25 detects this and applies the signal (d) to the counter 23 as a count stop signal. The counter 23 stops counting until the next count start signal is applied. The selector 27 selects the previous output signal at the low level until the count stop signal d is generated, and selects and outputs the current input signal a at the high level when the counter stop signal d is generated. The high level is maintained until the next count stop signal d is generated.

상기 도 3a와 관련된 설명은 하이레벨의 신호에 W1 만큼의 폭을 갖는 글리치를 포함하는 입력신호(a)에 대하여 도시한 도 3b에 대해서도 동일하게 적용된다.The above description of FIG. 3A applies equally to FIG. 3B of the input signal a including the glitch having a width equal to W1 in the high level signal.

도 3a 및 도 3b를 참조하여 입력신호(a)와 출력신호(e)를 비교해보면, 글리치 제거폭(W)보다 작은 폭(W1)을 갖는 글리치는 제거되고, 글리치 제거폭(W)보다 큰 폭(W2, W3)을 갖는 신호는 그대로 유지되면서, 출력신호(e)는 입력신호(a)에 대하여 대략 글리치 제거폭(W) 만큼 지연된다.When comparing the input signal a and the output signal e with reference to FIGS. 3A and 3B, glitches having a width W1 smaller than the glitch elimination width W are removed and larger than the glitch elimination width W. FIG. While the signals having the widths W2 and W3 are maintained, the output signal e is delayed by approximately the glitch removal width W with respect to the input signal a.

한편, 글리치 제거폭(W)은 상술한 바와 같이 카운터(23)의 메인클럭(MCLK)과 카운터(23)의 비트수(n) 또는 카운트 초기값 또는 종기값(K)에 따라서 결정되는데, 예를 들어 메인클럭이 66MHz이고, 8비트 카운터를 이용할 경우 최대 글리치 제거폭(W)은 대략 3.88us가 된다.On the other hand, the glitch removal width W is determined according to the main clock MCLK of the counter 23 and the number of bits n or the count initial value or end value K of the counter 23 as described above. For example, if the main clock is 66MHz and using an 8-bit counter, the maximum glitch rejection width (W) is approximately 3.88us.

도 4는 도 2에 도시된 글리치 제거장치를 이용하는 모터제어시스템의 구성을 나타낸 블럭도로서, 엔코더슬릿(41), 엔코더센서(43), 글리치제거부(45), 모터구동부(47) 및 CR 모터(49)로 이루어진다.FIG. 4 is a block diagram showing the configuration of the motor control system using the glitch removing device shown in FIG. 2, which includes an encoder slit 41, an encoder sensor 43, a glitch removing unit 45, a motor driving unit 47, and a CR. It consists of a motor 49.

엔코더 스트립바(41)는 다수의 슬릿이 소정의 간격으로 형성되어 있으며, 엔코더 센서(43)는 프린터 헤드에 부착되고, 프린터 헤드의 프린팅 동작에 따라 엔코더 스트립바(41)의 상부를 이동하면서 슬릿에 따른 펄스신호를 출력한다.The encoder strip bar 41 has a plurality of slits formed at predetermined intervals, and the encoder sensor 43 is attached to the print head and moves the upper portion of the encoder strip bar 41 according to the printing operation of the print head. Output pulse signal according to

글리치 제거부(45)는 엔코더 센서(43)로부터 출력되는 펄스신호에 대하여, 설정된 글리치 제거폭 이하의 글리치를 제거하여 설정된 글리치 제거폭만큼 지연시켜 출력하고, 모터구동부(47)는 글리치가 제거된 펄스신호를 이용하여 CR 모터(49)를 구동하게 된다.The glitch removal unit 45 removes the glitch below the set glitch removal width and delays the set glitch removal width with respect to the pulse signal output from the encoder sensor 43, and the motor driver 47 removes the glitch. The CR motor 49 is driven using the pulse signal.

상술한 바와 같이 본 발명에 따르면, 글리치가 포함된 신호레벨에 상관없이 설정된 글리치 제거폭보다 작은 글리치를 제거할 수 있을 뿐 아니라, 글리치가 제거된 신호는 대략 설정된 글리치 제거폭만큼 지연되어 출력되므로 간단한 로직으로 입력신호의 주기왜곡을 최소화시킬 수 있다.As described above, according to the present invention, it is possible to remove a glitch smaller than the set glitch elimination width regardless of the signal level including the glitch, and to output a signal in which the glitch is removed is delayed by approximately the set glitch elimination width. Logic can minimize the period distortion of the input signal.

또한, 입력신호의 주기왜곡을 최소화시키면서 글리치를 제거함으로써 이를 입력으로 하는 시스템, 예를 들면 프린터의 캐리지 리턴(CR) 모터의 속도제어의 정확도를 대폭 향상시킬 수 있다.In addition, by eliminating the glitches while minimizing the period distortion of the input signal, it is possible to significantly improve the accuracy of the speed control of the carriage return (CR) motor of the system using this as an input.

본 발명에 대해 상기 실시예를 참고하여 설명하였으나, 이는 예시적인 것에 불과하며, 본 발명에 속하는 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.Although the present invention has been described with reference to the above embodiments, it is merely illustrative, and those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom. . Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

Claims (7)

(a) 메인클럭과 원하는 글리치 제거폭에 따라서 카운트 설정값을 결정하는 단계;(a) determining a count set value according to the main clock and the desired glitch rejection width; (b) 입력신호의 에지를 검출하는 단계;(b) detecting an edge of the input signal; (c) 상기 (b) 단계에서 에지를 검출할 때마다 발생되는 카운트 시작신호와 상기 카운트 설정값에 따라서 상기 메인클럭에 동기되어 카운팅을 시작하는 단계;(c) starting counting in synchronization with the main clock according to the count start signal and the count setting value generated every time an edge is detected in step (b); (d) 상기 (c) 단계에서 카운트 출력값이 소정값에 도달할 때마다 발생되는 카운트 정지신호에 따라 카운팅을 정지하는 단계; 및(d) stopping counting according to a count stop signal generated whenever the count output value reaches a predetermined value in step (c); And (e) 상기 카운트 정지신호가 발생되면 현재 입력신호를, 발생되지 않으면 이전 출력신호를 선택적으로 출력하는 단계를 포함하는 것을 특징으로 하는 글리치 제거방법.and (e) selectively outputting a current input signal when the count stop signal is generated, and outputting a previous output signal when the count stop signal is not generated. 제1 항에 있어서, 상기 카운트 정지신호는 상기 카운트 설정값이 카운트 초기값인 경우, 상기 카운트 정지신호는 상기 카운트 출력값이 "0"이 될 때마다 발생되는 것을 특징으로 하는 글리치 제거방법.The method of claim 1, wherein the count stop signal is generated whenever the count output value becomes “0” when the count set value is an initial count value. 제1 항에 있어서, 상기 카운트 정지신호는 상기 카운트 설정값이 카운트 종기값인 경우, 상기 카운트 정지신호는 상기 카운트 출력값이 카운트 종기값이 될 때마다 발생되는 것을 특징으로 하는 글리치 제거방법.The method according to claim 1, wherein the count stop signal is generated whenever the count set value is a count end value, and the count stop signal is generated whenever the count output value becomes a count end value. 입력신호의 에지를 검출하고, 에지 검출시마다 카운트 시작신호로 공급하는 에지검출부;An edge detector which detects an edge of the input signal and supplies the count start signal at every edge detection; 상기 카운트 시작신호 및 카운트 설정값에 따라서 메인클럭에 동기되어 카운팅을 시작하고, 카운트 정지신호에 따라 카운팅을 정지하는 n 비트 카운터;An n-bit counter that starts counting in synchronization with the main clock according to the count start signal and the count setting value and stops counting according to the count stop signal; 상기 n 비트 카운터의 카운트 출력값이 소정의 값에 도달할 때마다 카운트 정지신호를 발생시켜 상기 n 비트 카운터로 공급하는 오버플로우 발생부; 및An overflow generator for generating a count stop signal and supplying the count stop signal to the n-bit counter whenever the count output value of the n-bit counter reaches a predetermined value; And 상기 카운트 정지신호에 따라 상기 입력신호 또는 이전 출력신호중의 하나를 선택적으로 출력하는 선택부를 포함하는 것을 특징으로 하는 글리치 제거장치.And a selector for selectively outputting one of the input signal and the previous output signal according to the count stop signal. 제4 항에 있어서, 상기 카운트 설정값은 원하는 글리치 제거폭과 상기 n 비트 카운터의 메인클럭에 따라 결정되는 것을 특징으로 하는 글리치 제거장치.5. The apparatus of claim 4, wherein the count setting value is determined according to a desired glitch rejection width and a main clock of the n-bit counter. 제4 항에 있어서, 상기 n 비트 카운터는 다운 카운터로 이루어지며, 상기 카운트 설정값은 카운트 초기값이고, 상기 카운트 정지신호는 상기 카운트 출력값이 "0"일 때 발생되는 것을 특징으로 하는 글리치 제거장치.The apparatus of claim 4, wherein the n-bit counter comprises a down counter, the count setting value is a count initial value, and the count stop signal is generated when the count output value is "0". . 제4 항에 있어서, 상기 n 비트 카운터는 업 카운터로 이루어지며, 상기 카운트 설정값은 카운트 종기값이고, 상기 카운트 정지신호는 상기 카운트 출력값이 상기 카운트 종기값일 때 발생되는 것을 특징으로 하는 글리치 제거장치.5. The apparatus of claim 4, wherein the n-bit counter comprises an up counter, the count setting value is a count end value, and the count stop signal is generated when the count output value is the count end value. .
KR10-2002-0043588A 2002-07-24 2002-07-24 Method and apparatus for eliminating glitch KR100445003B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2002-0043588A KR100445003B1 (en) 2002-07-24 2002-07-24 Method and apparatus for eliminating glitch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2002-0043588A KR100445003B1 (en) 2002-07-24 2002-07-24 Method and apparatus for eliminating glitch

Publications (2)

Publication Number Publication Date
KR20040009586A true KR20040009586A (en) 2004-01-31
KR100445003B1 KR100445003B1 (en) 2004-08-21

Family

ID=37318490

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2002-0043588A KR100445003B1 (en) 2002-07-24 2002-07-24 Method and apparatus for eliminating glitch

Country Status (1)

Country Link
KR (1) KR100445003B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9632178B2 (en) 2013-09-27 2017-04-25 Hyundai Motor Company Apparatus and method for removing noise of ultrasonic system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101016346B1 (en) 2003-03-17 2011-02-22 매그나칩 반도체 유한회사 Noise canceller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0152346B1 (en) * 1995-07-31 1998-12-15 김광호 Clock switching circuit
KR970013725A (en) * 1995-08-03 1997-03-29 양승택 Glitch Rejection Circuit Using Time Delay
KR100400735B1 (en) * 1999-12-30 2003-10-08 엘지전자 주식회사 Method and Circuit for detecting glitch signal
KR20020053267A (en) * 2000-12-27 2002-07-05 박태진 Glitch masking method for switching signal and apparatus thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9632178B2 (en) 2013-09-27 2017-04-25 Hyundai Motor Company Apparatus and method for removing noise of ultrasonic system

Also Published As

Publication number Publication date
KR100445003B1 (en) 2004-08-21

Similar Documents

Publication Publication Date Title
US6535057B2 (en) Programmable glitch filter
US5808486A (en) Glitch free clock enable circuit
KR100445003B1 (en) Method and apparatus for eliminating glitch
EP0871140B1 (en) Laser beam synchronisation method in a laser printer
JP2007295649A (en) Variable spped drive device of motor
JP2995097B2 (en) Position detection device
JP2797728B2 (en) Pulse generator waveform processing circuit
US6580776B2 (en) Glitch-free frequency dividing circuit
CN115940892A (en) Clock circuit and electronic equipment
JP2781327B2 (en) Speed detector for encoder type motor
US5901181A (en) Circuit for restoring bits transmitted by a series signal
KR100467605B1 (en) Method and apparatus for eliminating glitch
JP3586705B2 (en) Motor speed control circuit
JP2006088712A (en) Printer control apparatus
KR20010087504A (en) Counter circuit
US20050128235A1 (en) Inkjet printer correction device and method
KR980006799A (en) Position control of step motor and printing control device and method of printing head
KR100657161B1 (en) N-divided clock generator with low glitch
JPH11192746A (en) Recording device and recording position control device
JPS644680B2 (en)
JP2923861B2 (en) Preprocessing circuit of waveform observation device
JP3126240B2 (en) Serial printer device
JPH08242153A (en) Latch circuit
JPH11214964A (en) Noise eliminating device
SU1589375A1 (en) Device for protection switch amplifyer

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: 20070727

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee