[go: up one dir, main page]

KR0153112B1 - Counter enable to program - Google Patents

Counter enable to program Download PDF

Info

Publication number
KR0153112B1
KR0153112B1 KR1019950030466A KR19950030466A KR0153112B1 KR 0153112 B1 KR0153112 B1 KR 0153112B1 KR 1019950030466 A KR1019950030466 A KR 1019950030466A KR 19950030466 A KR19950030466 A KR 19950030466A KR 0153112 B1 KR0153112 B1 KR 0153112B1
Authority
KR
South Korea
Prior art keywords
signal
flip
reset
output
counter
Prior art date
Application number
KR1019950030466A
Other languages
Korean (ko)
Other versions
KR970019084A (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 KR1019950030466A priority Critical patent/KR0153112B1/en
Publication of KR970019084A publication Critical patent/KR970019084A/en
Application granted granted Critical
Publication of KR0153112B1 publication Critical patent/KR0153112B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/64Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
    • H03K23/66Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/38Starting, stopping or resetting the counter

Landscapes

  • Pulse Circuits (AREA)
  • Saccharide Compounds (AREA)

Abstract

본 발명은 프로그램가능한 카운터를 공개한다. 그 회로는 클럭신호에 응답하여 0에서부터 2n-1까지의 값을 1씩 증가하면서 카운팅하는 n개의 플립플롭들로 구성된 카운터, 카운터의 n개의 출력신호들과 카운팅 범위를 나타내는 n개의 신호들을 각각 비교하여 n개의 비교 출력신호들을 발생하기 위한 n개의 비교기들로 구성된 비교부, 및 리셋신호에 응답하여 카운터를 리셋하거나 비교부의 n개의 비교 출력신호들이 모두 동일함을 나타내는 신호인 경우에 반전 클럭신호에 응답하여 제어신호를 발생하여 카운터를 리셋하기 위한 리셋부로 구성되어 있다.The present invention discloses a programmable counter. The circuit consists of a counter consisting of n flip-flops that count in increments of 0 to 2 n -1 by 1 in response to a clock signal, n output signals of the counter, and n signals representing the counting range, respectively. A comparison unit composed of n comparators for comparing and generating n comparison output signals, and an inverted clock signal when the counter resets in response to a reset signal or a signal indicating that the n comparison output signals of the comparison unit are all the same And a reset section for generating a control signal and resetting the counter in response.

Description

프로그램가능한 카운터Programmable counter

본 발명은 프로그램가능한 카운터에 관한 것으로, 특히 사용자가 임의로 카운팅 범위를 설정하여 원하는 값을 계수할 수 있는 프로그램가능한 카운터에 관한 것이다.The present invention relates to a programmable counter, and more particularly to a programmable counter that allows a user to arbitrarily set a counting range to count a desired value.

제1도는 종래의 카운터의 회로도로서, 이진수 1101에서 리세트되는 14진 카운터를 나타내는 것이다. 클럭신호(CLK)에 응답하여 0000에서 1101까지의 값을 카운팅하는 4개의 T플립플롭들(11, 12, 13, 14)로 구성된 카운터, 1101을 카운팅하였을경우 T플립플롭들 (11, 12, 13, 14)을 리셋하기 위한 리셋부(15)로 구성되어 있다.FIG. 1 is a circuit diagram of a conventional counter, showing a 14-degree counter which is reset in binary 1101. As shown in FIG. Counter consisting of four T flip-flops 11, 12, 13, and 14 counting values from 0000 to 1101 in response to the clock signal CLK, T flip-flops 11, 12, when counting 1101. It consists of the reset part 15 for resetting 13,14.

리셋부(15)는 T플립플롭들(11, 12, 13, 14)의 출력신호들을 논립곱하기 위한 AND게이트(16), AND게이트(16)의 출력신호를 입력신호(D)로 하고 인버터(17)에 의해서 반전된 클럭신호(CLK)가 클럭신호 입력단자(CK)로 인가되는 D플립플롭(18),인버터(17)의 출력신호와 D플립플롭(18)의 출력신호들을 논리곱하기 위한 AND게이트(19), 및 AND게이트(19)의 출력신호와 리셋신호(RESET)를 비논리합하여 T플립플롭들(11, 12, 13, 14)의 리셋신호로서 출력하는 NOR게이트(20)로 구성되어 있다.The reset unit 15 uses an AND gate 16 for performing logical multiplication on the output signals of the T flip-flops 11, 12, 13, and 14, and an output signal of the AND gate 16 as an input signal D, and an inverter ( 17) is used to logically multiply the output signals of the D flip-flop 18 and the inverter 17 by the clock signal CLK inverted by the clock signal input terminal CK. AND gate 19 and NOR gate 20 which outputs the output signal of AND gate 19 and the reset signal RESET non-logically and outputs it as the reset signal of T flip-flops 11, 12, 13, and 14. It is.

제1도에 나타낸 카운터는 4비트 카운터로서, 클럭신호(CLK)에 응답하여 출력신호(A1,A2,A3,A4)를 0000부터 1101까지 카운트할 수 있는 회로이다.The counter shown in FIG. 1 is a 4-bit counter and is a circuit capable of counting the output signals A1, A2, A3, A4 from 0000 to 1101 in response to the clock signal CLK.

제2도는 제1도에 나타낸 카운터의 동작을 설명하기 위한 동작 타이밍도로서, 제2도를 이용하여 제1도에 나타낸 회로의 동작을 설명하면 다음과 같다.FIG. 2 is an operation timing diagram for explaining the operation of the counter shown in FIG. 1. Referring to FIG. 2, the operation of the circuit shown in FIG.

먼저, 하이레벨의 리셋 신호(RESET)가 입력되면 NOR게이트(20)은 로우레벨의 신호를 발생하여, T플립플롭들(11, 12, 13, 14)을 리셋한다. T플립플롭들이 리셋된 후에 로우레벨의 리셋 신호(RESET)가 인가되고, 클럭신호(CLK)가 인가되면,T플립플롭들은 업 카운팅을 수행한다. 즉, T플립플롭들은 클럭신호에 응답하여 0000에서 1101까지를 카운팅한다. AND게이트(16)는 T플립플롭들(11, 12, 13, 14), 및 인버터(21)의 출력신호를 논리곱하여 하이레벨의 신호를 출력한다. D플립플롭(18)은 인버터(17)에 의해서 반전된 클럭신호에 응답하여 AND게이트(16)의 출력신호를 래치하고 출력한다. 그러면, AND게이트(19)는 D플립플롭(18)으로부터 출력되는 하이레벨의 출력신호와 인버터(17)로부터 출력되는 하이레벨의 신호를 논리곱하여 하이레벨의 신호를 발생한다. NOR게이트(20는 AND게이트(19)로부터 출력되는 하이레벨의 출력신호와 리셋 신호(RESET)를 비논리합하여 로우레벨의 신호를 발생하여 T플립플롭들(11, 12, 13, 14)을 리셋한다. 이와같이 T플립플롭들(11, 12, 13, 14)이 리셋되고 난 후에 클럭신호(CLK)에 응답하여 상술한 것과 같은 업 카운팅을 반복적으로 수행한다.First, when the high level reset signal RESET is input, the NOR gate 20 generates a low level signal to reset the T flip-flops 11, 12, 13, and 14. After the T flip-flops are reset, when the low level reset signal RESET is applied and the clock signal CLK is applied, the T flip-flops perform up counting. That is, the T flip-flops count from 0000 to 1101 in response to the clock signal. The AND gate 16 logically multiplies the output signals of the T flip-flops 11, 12, 13, 14, and the inverter 21 to output a high level signal. The D flip-flop 18 latches and outputs the output signal of the AND gate 16 in response to the clock signal inverted by the inverter 17. The AND gate 19 then multiplies the high level output signal output from the D flip-flop 18 by the high level signal output from the inverter 17 to generate a high level signal. The NOR gate 20 non-logically combines the high level output signal and the reset signal RESET output from the AND gate 19 to generate a low level signal to reset the T flip-flops 11, 12, 13, and 14. In this manner, after the T flip-flops 11, 12, 13, 14 are reset, the up counting as described above is repeatedly performed in response to the clock signal CLK.

즉, 제1도에 나타낸 카운터는 0000에서 1101까지를 계수한 후에 리셋되고, 다시 0000에서 1101까지를 반복적으로 계수한다.That is, the counter shown in FIG. 1 is reset after counting from 0000 to 1101, and counts repeatedly from 0000 to 1101 again.

그래서, 종래의 카운터는 0000에서 1101까지를 반복적으로 카운팅하는 카운터로서, 미리 정해진 범위의 값만을 반복적으로 카운팅하기 때문에 2가지 이상의 카운팅 동작을 하는 회로를 구성하는 경우에는 원하는 개수만큼의 카운터를 사용해야 하며, 이로 인해 회로구성이 복잡해지는 문제점이 있었다.Therefore, the conventional counter is a counter that counts repeatedly from 0000 to 1101. Since only the predetermined range of values are repeatedly counted, when configuring a circuit that performs two or more counting operations, it is necessary to use as many counters as desired. Therefore, there is a problem that the circuit configuration is complicated.

또한, 종래의 카운터는 특정 범위의 값만을 반복적으로 카운팅하는 경우에는 사용할 수 있지만, 카운트하고자 하는 값이 변하는 경우에는 사용할 수 없다는 문제점이 있었다.In addition, the conventional counter can be used when repeatedly counting only a specific range of values, but there is a problem that cannot be used when the value to be counted is changed.

본 발명의 목적은 상기와 같은 문제점을 해결하기 위한 것으로, 카운팅 범위를 설정하여 원하는 값을 카운팅할 수 있는 프로그램 가능한 카운터를 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable counter that can count a desired value by setting a counting range.

이와 같은 목적을 달성하기 위한 본 발명의 프로그램가능한 카운터는 클럭신호에 응답하여 0에서부터 2n-1까지의 값을 1씩 증가하면서 카운팅하는 n개의 플립플롭들로 구성된 카운팅 수단, 상기 카운팅 수단의 n개의 출력신호들과 카운팅 범위를 나타내는 n개의 신호들을 각각 비교하여 n개의 비교 출력신호들을 발생하기 위한 n개의 비교기들로 구성된 비교수단, 및 리셋 신호에 응답하여 상기 카운팅 수단을 리셋하거나 상기 비교수단의 n개의 비교 출력신호들이 모두 동일함을 나타내는 신호인 경우에 반전 클럭신호에 응답하여 제어신호를 발생하여 상기 카운팅 수단을 리셋하기 위한 리셋수단을 구비하는 것을 특징으로 한다.Programmable counter of the present invention for achieving this object is a counting means consisting of n flip-flops counting by increasing the value from 0 to 2 n -1 by 1 in response to a clock signal, n of the counting means Comparison means composed of n comparators for generating n comparison output signals by comparing n output signals with n signals representing a counting range, respectively, and resetting the counting means in response to a reset signal, and a reset means for generating a control signal and resetting the counting means in response to the inverted clock signal when the n comparison output signals are the same.

제1도는 종래의 카운터의 구성을 나타내는 회로도이다.1 is a circuit diagram showing the configuration of a conventional counter.

제2도는 제1도에 나타낸 회로의 동작을 설명하기 위한 동작 타이밍도이다.FIG. 2 is an operation timing diagram for explaining the operation of the circuit shown in FIG.

제3도는 본 발명의 프로그램가능한 카운터의 구성을 나타내는 회로도이다.3 is a circuit diagram showing the configuration of the programmable counter of the present invention.

제4도는 제3도에 나타낸 회로의 동작을 설명하기 위한 동작 타이밍도이다.4 is an operation timing diagram for explaining the operation of the circuit shown in FIG.

이하, 첨부된 도면을 참고로 하여 본 발명의 프로그램가능한 카운터를 설명하면 다음과 같다.Hereinafter, a programmable counter of the present invention will be described with reference to the accompanying drawings.

제3도는 본 발명의 실시예의 프로그램가능한 카운터의 구성을 나타내는 것으로, 클럭신호(CLK)에 응답하여 소정의 값을 카운팅하고, 출력값(A1, A2, A3, A4)을 발생하는 4개의 T플립플롭들(31, 32, 33, 34)로 구성된 카운터(30), 사용자에 의해 정해진 카운팅 값(P1, P2, P3, P4)과 카운터(30)의 출력값(A1, A2, A3, A4)을 비교하여 출력하기 위한 비교부(40), 비교부(40)의 출력신호에 따라 카운터(30)를 리셋하기 위한 리셋부(50)로 구성되어 있다.3 shows the configuration of a programmable counter according to an embodiment of the present invention, in which four T flip-flops generate a predetermined value in response to a clock signal CLK and generate output values A1, A2, A3, and A4. Counter 30 composed of fields 31, 32, 33, 34, and a counting value P1, P2, P3, P4 determined by a user, and output values A1, A2, A3, A4 of the counter 30 are compared. And a reset section 50 for resetting the counter 30 in accordance with the output signal of the comparing section 40.

카운터(30)는 클럭신호(CLK)가 인가되는 클럭신호 인가단자(CK)와 출력신호 발생단자(Q)로 구성된 T플립플롭(31), T플립플롭(31)의 출력신호가 인가되는 클럭신호 인가단자(CK)와 출력신호 발생단자(Q)로 구성된 T플립플롭(32), T플립플롭(32)의 출력신호가 인가되는 클럭신호 인가단자(CK)와 출력신호 발생단자(Q)로 구성된 T플립플롭(33), T플립플롭(33)의 출력신호가 인가되는 클럭신호 인가단자(CK)와 출력신호 발생단자(Q)로 구성된 T플립플롭(34)으로 구성되어 있다.The counter 30 includes a clock signal applying terminal CK to which the clock signal CLK is applied and a clock signal to which the output signals of the T flip-flop 31 and the T flip-flop 31 are applied. The T flip-flop 32 composed of the signal applying terminal CK and the output signal generating terminal Q, and the clock signal applying terminal CK and the output signal generating terminal Q to which the output signal of the T flip-flop 32 is applied. The T flip-flop 33 is composed of a clock signal application terminal CK to which the output signal of the T flip-flop 33 is applied, and a T flip-flop 34 composed of the output signal generation terminal Q.

비교부(40)는 T플립플롭들(31, 32, 33, 34)의 출력신호들과 사용자에 의해서 설정된 신호들(P1, P2, P3, P4)을 각각 비배타 논리합하여 출력하기 위한 XNOR게이트들(41, 42, 43, 44)로 구성되어 있다.The comparator 40 is an XNOR gate for non-exclusively ORing the output signals of the T flip-flops 31, 32, 33, and 34 and the signals P1, P2, P3, and P4 set by the user, respectively. Fields 41, 42, 43, and 44, respectively.

리셋부(50)는 XNOR게이트들(41, 42, 43, 44)의 출력신호들을 논리곱하기 위한 AND게이트(51), 클럭신호(CLK)를 반전하기 위한 인버터(52), 인번터(52)의 출력신호가 인가되는 클럭신호 인가단자(CK)와 AND게이트(51)의 출력신호가 인가되는 데이터 입력단자(D)와 출력신호 발생단자(Q)로 구성된 D플립플롭(53), 인버터(52)의 출력신호와 D플립플롭(53)의 출력신호를 논리곱하여 출력하기 위한 AND게이트(54), 및 리셋신호(RESET)와 AND게이트(54)의 출력신호를 비논리합하여 출력하기 위한 NOR게이트(55)로 구성되어 있다.The reset unit 50 includes an AND gate 51 for ANDing the output signals of the XNOR gates 41, 42, 43, and 44, an inverter 52 for inverting the clock signal CLK, and an inverter 52. The D flip-flop 53 and the inverter comprising a clock signal application terminal CK to which an output signal of the signal is applied, a data input terminal D to which an output signal of the AND gate 51 is applied, and an output signal generation terminal Q. AND gate 54 for ANDing the output signal of 52 and the output signal of D flip-flop 53, and NOR gate for non-logically outputting the reset signal RESET and the output signal of AND gate 54. It consists of 55.

리셋부(50)는 외부로부터의 하이레벨의 리셋 신호(RESET)가 인가되거나, AND게이트(54)의 출력신호가 하이레벨일 때, 카운터(30)를 구성하는 T플립플롭들((31, 32, 33, 34)을 리셋한다. 리셋 신호(RESET)가 로우레벨이 되고, 클럭신호(CLK)가 인가되면, 카운터(30)은 클럭신호(CLK)에 응답하여 업 카운팅을 수행한다. 비교부(40)는 사용자에 의해서 입력된 카운팅 값(P1, P2, P3, P4)과 카운터(10)의 출력신호들(A1, A2, A3, A4)이 모두 동일하면 XNOR게이트(41, 42, 43, 44)의 출력신호들을 모두 하이레벨이 된다. 그러면 AND게이트(51)의 출력신호가 하이레벨이 되고, D플립플롭(53)은 인버터(52)로부터 출력되는 반전된 클럭신호에 응답하여 AND게이트(51)의 출력신호인 하이레벨의 신호를 래치하여 출력한다. AND게이트(54)는 인버터(52)의 출력신호에 응답하여 D플립플롭(53)의 출력신호를 래치하여 출력한다. NOR게이트(55)는 AND게이트(54)의 출력신호가 하이레벨이므로 로우레벨의 출력신호를 발생하여 카운터(30)을 구성하는 T플립플롭들을 리셋한다.The reset unit 50 receives the T flip-flops constituting the counter 30 when the high level reset signal RESET from the outside is applied or the output signal of the AND gate 54 is high level. Reset the 32, 33, and 34. When the reset signal RESET becomes low and the clock signal CLK is applied, the counter 30 performs up counting in response to the clock signal CLK. The unit 40 may set the XNOR gates 41, 42, when the counting values P1, P2, P3, and P4 input by the user and the output signals A1, A2, A3, and A4 of the counter 10 are the same. The output signals of the 43 and 44 all become high level, and the output signal of the AND gate 51 becomes high level, and the D flip-flop 53 responds to the inverted clock signal output from the inverter 52. The high level signal, which is an output signal of the AND gate 51, is latched and outputted. The AND gate 54 latches the output signal of the D flip-flop 53 in response to the output signal of the inverter 52. W and outputs. The NOR gate 55 will reset the T flip-flop so that the output signal of the AND gate 54 the high level to generate an output signal of a low level constituting the counter 30.

제4도는 본 발명의 프로그램가능한 카운터의 동작을 설명하기 위한 동작 타이밍도로서, 제4도를 이용하여 제3도에 나타낸 회로의 동작을 설명하면 다음과 같다.FIG. 4 is an operation timing diagram for explaining the operation of the programmable counter of the present invention. Referring to FIG. 4, the operation of the circuit shown in FIG.

먼저, 제4도의 (d)-(g)에 나타낸 바와 같이 사용자는 카운팅하고자 하는 값(P1, P2, P3, P4)을 미리 설정하여 비교부(40)의 XNOR게이트들(41, 42, 43, 44)의 입력단자로 인가한다.First, as shown in (d)-(g) of FIG. 4, the user sets in advance the values P1, P2, P3, and P4 to be counted, and the XNOR gates 41, 42, 43 of the comparator 40. , 44).

제4도의 (b)와 같이 하이레벨의 리셋신호(RESET)가 인가되면, XNOR게이트(55)의 출력신호가 로우레벨로 되어 카운터(30)를 구성하는 T플립플롭들(31, 32, 33, 34)의 리셋단자에 인가되어 T플립플롭들을 리셋한다.When the high level reset signal RESET is applied as shown in (b) of FIG. 4, the output signal of the XNOR gate 55 goes low and the T flip-flops 31, 32, and 33 forming the counter 30 are provided. , Is applied to the reset terminal of 34) to reset the T flip-flops.

리셋된 후에 제4도의 (a)에 나타낸 것과 같은 클럭신호(CLK)가 카운터(30)에 인가되면, T플립플롭들(31, 32, 33, 34)이 카운팅 동작을 수행하여 제4도의 (H)에서 (K)에 나타낸 것과 같은 출력신호들(A1, A2, A3, A4)을 발생한다.After the reset, when the clock signal CLK as shown in FIG. 4A is applied to the counter 30, the T flip-flops 31, 32, 33, and 34 perform a counting operation to perform the counting operation of FIG. Generate output signals A1, A2, A3, A4 as shown in (K) in H).

T플립플롭들(31, 32, 33, 34)이 카운팅 동작을 수행하여 T플립플롭들의 출력신호들 각각이 비교부(40)에 미리 설정된 카운팅 값(P1, P2, P3, P4) 각각과 동일하지 않은 경우에는 로우레벨의 신호를 발생하고, 동일한 경우에는 하이레벨의 신호를 발생한다.The T flip-flops 31, 32, 33, and 34 perform a counting operation so that each of the output signals of the T flip-flops is equal to each of the counting values P1, P2, P3, and P4 preset in the comparator 40. Otherwise, a low level signal is generated, and in the same case, a high level signal is generated.

리셋부(50)는 비교부(40)의 출력신호들이 모두 하이레벨이면 하이레벨의 신호(R1)를 발생하고, 비교부(40)의 출력신호들중 최소한 하나 이상이 로우레벨의 신호이면 로우레벨의 신호(R1)를 발생한다. AND게이트(51)는 비교부(40)의 출력신호들이 모두 하이레벨이면 하이레벨의 신호를 발생하고, D플립플롭(53)은 인버터(52)에 의해서 반전된 클럭신호(CLK)에 응답하여 AND게이트(51)로부터 출력되는 하이레벨의 신호를 래치하고 출력한다. AND게이트(54)는 인버터(52)의 하이레벨의 출력신호에 응답하여 D플립플롭(53)의 출력신호를 출력한다. NOR게이트(55)는 하이레벨의 AND게이트(54)의 출력신호를 반전하여 로우레벨의 신호를 발생한다. 그래서, 카운터(30)를 구성하는 T플립플롭들을 리셋하게 된다.The reset unit 50 generates a high level signal R1 when the output signals of the comparator 40 are all high level, and is low when at least one of the output signals of the comparator 40 is a low level signal. Generate the signal R1 of the level. The AND gate 51 generates a high level signal when the output signals of the comparator 40 are all high level, and the D flip-flop 53 responds to the clock signal CLK inverted by the inverter 52. The high level signal output from the AND gate 51 is latched and output. The AND gate 54 outputs the output signal of the D flip-flop 53 in response to the high level output signal of the inverter 52. The NOR gate 55 inverts the output signal of the high level AND gate 54 to generate a low level signal. Thus, the T flip flops constituting the counter 30 are reset.

본 발명은 상술한 바와 같은 방법으로 동장을 수행함에 의해서 사용자가 설정한 범위까지 카운팅할 수 있게 된다.The present invention can be counted up to a range set by the user by performing the copper field in the same manner as described above.

비교부(40)를 구성하는 XNOR게이트들의 출력신호를 각각 Y1, Y2, Y3, Y4라고 할 때, 출력신호들(Y1, Y2, Y3 ,Y4)을 논리식으로 표현하면 다음과 같이 나타낼 수 있다.When the output signals of the XNOR gates constituting the comparator 40 are Y1, Y2, Y3, and Y4, respectively, the output signals Y1, Y2, Y3, and Y4 can be expressed as follows.

Y4 = A4P4 + A4'P4'Y4 = A4P4 + A4'P4 '

Y3 = A3P3 + A3'P3'Y3 = A3P3 + A3'P3 '

Y2 = A2P2 + A2'P2'Y2 = A2P2 + A2'P2 '

Y1= A1P1 + A1'P1'Y1 = A1P1 + A1'P1 '

그리고, 비교부(40)의 출력신호들(Y1, Y2, Y3, Y4)이 모두 1일 때만 카운터(30)가 리셋되어야 하므로, 신호(R1)는 아래의 논리식으로 나타낼 수 있다.In addition, since the counter 30 should be reset only when the output signals Y1, Y2, Y3, and Y4 of the comparator 40 are all 1, the signal R1 may be represented by the following logical expression.

R1 = Y1Y2Y3Y4R1 = Y1Y2Y3Y4

여기에서, 본 발명의 카운터는 동기식 또는 비동기식의 모든 카운터에 적용 가능하며, D플립플롭(53)은 래치를 이용한 레벨 트리거 형(level trigger type)이다.Here, the counter of the present invention is applicable to all counters of synchronous or asynchronous, and the D flip-flop 53 is a level trigger type using a latch.

따라서, 본 발명의 프로그램가능한 카운터는 사용자가 카운팅하고자 하는 값을 설정하고, 설정된 값과 카운팅 값을 비교하여 줌으로써 원하는 값을 카운팅할 수 있다.Therefore, the programmable counter of the present invention can count a desired value by setting a value to be counted by the user and comparing the counted value with the set value.

또한, 입력되는 데이터에 따라서, 초기상태에서 카운팅 값을 미리 설정하여 카운팅 동작을 수행할 수도 있지만, 카운팅 동작 수행중에도 임의로 카운팅 값을 정하여 카운팅 동작을 수행하는 것도 가능하다.The counting operation may be performed by setting a counting value in advance in an initial state according to the input data. However, the counting value may be arbitrarily determined even during the counting operation.

Claims (3)

클럭신호에 응답하여 0에서부터 2n-1까지의 값을 1씩 증가하면서 카운팅하는 n개의 플립플롭들로 구성된 카운팅 수단;상기 카운팅 수단의 n개의 출력신호들과 카운팅 범위를 나타내는 n개의 신호들을 각각 비교하여 n개의 비교 출력신호들을 발생하기 위한 n개의 비교기들로 구성된 비교수단;및 리셋신호에 응답하여 상기 카운팅 수단의 n개의 플립플롭들을 리셋하거나 상기 비교수단의 n개의 비교 출력신호들이 모두 동일함을 나타내는 신호인 경우에 반전 클럭신호에 응답하여 제어신호를 발생하여 상기 카운팅 수단의 n개의 플립플롭들을 리셋하기 위한 리셋수단을 구비한 것을 특징으로 하는 프로그램가능한 카운터.Counting means comprising n flip-flops for counting by increasing a value from 0 to 2 n -1 by 1 in response to a clock signal; n output signals of the counting means and n signals representing a counting range, respectively Comparison means comprising n comparators for generating n comparison output signals in comparison; and n flip-flops of the counting means in response to a reset signal or n comparison output signals of the comparison means are all the same And reset means for generating a control signal in response to an inverted clock signal to reset the n flip-flops of said counting means. 제1항에 있어서, 상기 n개의 비교기들은 n개의 플립플롭들의 출력신호들과 카운팅 범위를 나타내는 n개의 신호들을 각각 비배타논리합하기 위한 n개의 XNOR게이트들을 구비한 것을 특징으로 하는 프로그램가능한 카운터.The programmable counter of claim 1, wherein the n comparators have n XNOR gates for non-exclusively combining the output signals of the n flip-flops and the n signals representing the counting range, respectively. 제1항 또는 제2항에 있어서, 상기 리셋수단은 상기 n개의 XNOR게이트들의 출력신호들을 논리곱하기 위한 제1AND게이트;상기 클럭신호를 반전하여 상기 반전 클럭신호를 발생하기 위한 인버터;상기 제1AND게이트의 출력신호가 인가되는 데이터 입력단자와 상기 인버터의 출력신호가 인가되는 클럭신호 입력단자와 데이터를 출력하기 위한 데이터 출력단자를 가진 D플립플롭;상기 인버터의 출력신호에 응답하여 상기 D플립플롭의 출력신호를 상기 제어신호로 출력하기 위한 제2AND게이트; 및 상기 리셋신호와 상기 제어신호를 비논리합하여 상기 n개의 플립플롭들을 리셋하기 위한 신호를 발생하는 NOR게이트를 구비한 것을 특징으로 하는 프로그램가능한 카운터.3. The gate driving circuit of claim 1, wherein the reset unit comprises: a first AND gate for ANDing the output signals of the n XNOR gates; an inverter for inverting the clock signal to generate the inverted clock signal; A D flip-flop having a data input terminal to which an output signal is applied, a clock signal input terminal to which an output signal of the inverter is applied, and a data output terminal to output data; and a D flip-flop in response to an output signal of the inverter. A second AND gate for outputting an output signal as the control signal; And a NOR gate for generating a signal for resetting the n flip-flops by non-logically combining the reset signal and the control signal.
KR1019950030466A 1995-09-18 1995-09-18 Counter enable to program KR0153112B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950030466A KR0153112B1 (en) 1995-09-18 1995-09-18 Counter enable to program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950030466A KR0153112B1 (en) 1995-09-18 1995-09-18 Counter enable to program

Publications (2)

Publication Number Publication Date
KR970019084A KR970019084A (en) 1997-04-30
KR0153112B1 true KR0153112B1 (en) 1998-12-15

Family

ID=19427089

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950030466A KR0153112B1 (en) 1995-09-18 1995-09-18 Counter enable to program

Country Status (1)

Country Link
KR (1) KR0153112B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100429554B1 (en) * 2002-04-19 2004-05-03 주식회사 하이닉스반도체 Programmable counter circuit

Also Published As

Publication number Publication date
KR970019084A (en) 1997-04-30

Similar Documents

Publication Publication Date Title
US5425074A (en) Fast programmable/resettable CMOS Johnson counters
GB2397733A (en) Clock recovery circuitry
US6501816B1 (en) Fully programmable multimodulus prescaler
US5448597A (en) Clock signal switching circuit
KR20020049387A (en) High speed counter having sequential binary order and the method thereof
US5398270A (en) Data coincidence detecting circuit
KR0153112B1 (en) Counter enable to program
KR960016809B1 (en) Trigger signal generating circuit with trigger masking function
JPH1198007A (en) Frequency divider
US10749530B1 (en) Programmable divider with glitch-free load circuit
KR100366793B1 (en) Apparatus for pulse sequence generation using Shift Register
JPS605097B2 (en) Gray code generation circuit
JP2007515821A (en) Synchronous frequency divider and its components
KR0153962B1 (en) Feedback shift register
JP3662411B2 (en) Trigger circuit
KR0146649B1 (en) Sine wave divide cluck generator
KR0152224B1 (en) Ready state generating apparatus capable of varying state number
US6856172B1 (en) Sequential logic circuit for frequency division
KR0131431Y1 (en) Signal debounce circuit
KR930005653B1 (en) Clock variable circuit
KR0184153B1 (en) Frequency division circuit
KR940000643Y1 (en) Synchronous pulse generating circuit using flip flop circuit
KR100188079B1 (en) Frequency division circuit using ring counter
KR0134270B1 (en) Feed back shift register
JPH05183427A (en) Counter circuit

Legal Events

Date Code Title Description
A201 Request for examination
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 19950918

PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 19950918

Comment text: Request for Examination of Application

PG1501 Laying open of application
E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 19980316

Patent event code: PE09021S01D

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 19980624

GRNT Written decision to grant
PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 19980701

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 19980701

End annual number: 3

Start annual number: 1

PG1601 Publication of registration
PR1001 Payment of annual fee

Payment date: 20010607

Start annual number: 4

End annual number: 4

PR1001 Payment of annual fee

Payment date: 20020605

Start annual number: 5

End annual number: 5

PR1001 Payment of annual fee

Payment date: 20030609

Start annual number: 6

End annual number: 6

PR1001 Payment of annual fee

Payment date: 20040329

Start annual number: 7

End annual number: 7

PR1001 Payment of annual fee

Payment date: 20050607

Start annual number: 8

End annual number: 8

PR1001 Payment of annual fee

Payment date: 20060630

Start annual number: 9

End annual number: 9

PR1001 Payment of annual fee

Payment date: 20070612

Start annual number: 10

End annual number: 10

PR1001 Payment of annual fee

Payment date: 20080701

Start annual number: 11

End annual number: 11

FPAY Annual fee payment

Payment date: 20090615

Year of fee payment: 12

PR1001 Payment of annual fee

Payment date: 20090615

Start annual number: 12

End annual number: 12

LAPS Lapse due to unpaid annual fee
PC1903 Unpaid annual fee

Termination category: Default of registration fee

Termination date: 20110610