KR100236331B1 - Counter - Google Patents

Counter Download PDF

Info

Publication number
KR100236331B1
KR100236331B1 KR1019970020515A KR19970020515A KR100236331B1 KR 100236331 B1 KR100236331 B1 KR 100236331B1 KR 1019970020515 A KR1019970020515 A KR 1019970020515A KR 19970020515 A KR19970020515 A KR 19970020515A KR 100236331 B1 KR100236331 B1 KR 100236331B1
Authority
KR
South Korea
Prior art keywords
signal
output
input
logic
logic gate
Prior art date
Application number
KR1019970020515A
Other languages
Korean (ko)
Other versions
KR19980084669A (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 KR1019970020515A priority Critical patent/KR100236331B1/en
Publication of KR19980084669A publication Critical patent/KR19980084669A/en
Application granted granted Critical
Publication of KR100236331B1 publication Critical patent/KR100236331B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/38Starting, stopping or resetting the counter
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/02Input circuits
    • H03K21/026Input circuits comprising logic circuits

Landscapes

  • Logic Circuits (AREA)

Abstract

클럭신호와 피드백신호를 입력하여 논리연산하는 제 1 논리게이트, 피드백신호와 리세트신호를 입력하여 논리연산하는 제 2 논리게이트, 리세트신호와 제 1 논리게이트의 출력을 입력하여 논리연산하는 제 3 논리게이트, 제 2, 제 3 논리게이트의 출력을 입력하여 논리연산하는 제 4 논리게이트, 상기 제 3 논리게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 제 4 논리게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트신호를 출력하는 제 3, 제 4 트랜스터 게이트로 구성되는 셋-입력단과, 상기 셋-입력단으로부터 출력되는 셋트신호 또는 리세트신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성된다.A first logic gate for logic operation by inputting a clock signal and a feedback signal, a second logic gate for logic operation by inputting a feedback signal and a reset signal, and a logic operation for inputting logic outputs of a reset signal and a first logic gate A fourth logic gate that inputs and logically operates the third logic gate, an output of the second and third logic gates, an inverter that inverts the output of the third logic gate, and a fourth logic gate according to an input value set by the user. First and second transfer gates for selectively outputting output values and fixed signals that always maintain high levels, and outputting set signals, and selectively outputting and resetting output values and fixed signals of the inverter according to input values set by a user. A set-input stage composed of third and fourth transformer gates for outputting a signal, and a set signal or reset outputted from the set-input stage; Is activated by a signal and the clock signal, the set-is configured to include a flip-flop for outputting a feedback signal to the input stage.

Description

카운터counter

본 발명은 카운터에 관한 것으로, 특히 사이즈를 최소화하고 입력 셋팅(setting)에 따라 카운터의 입력(카운팅이 시작되는 시점)이 시작되는 카운터에 관한 것이다.TECHNICAL FIELD The present invention relates to a counter, and more particularly, to a counter in which the size of a counter is minimized and an input of a counter (the time point at which counting starts) starts according to an input setting.

이하, 종래 카운터를 첨부된 도면을 참조하여 설명하기로 한다.Hereinafter, a conventional counter will be described with reference to the accompanying drawings.

도1은 종래 4bits 카운터의 내부구성을 디지탈로직(digital logic)으로 나타낸 것이다.Figure 1 shows the internal structure of a conventional 4bits counter in digital logic.

도1에 도시한 바와같이 종래 카운터는 복수개의 논리게이트들과 플립플롭(flip-flop)으로 구성된다.As shown in Fig. 1, the conventional counter is composed of a plurality of logic gates and flip-flops.

여기서 플립플롭은 J-K플립플롭을 사용한다.The flip-flop here uses a J-K flip-flop.

종래의 카운터는 제 1, 제 2, 제 3, 제 4 플립플롭(11, 13, 15, 17)과, 입력값과 로드신호와의 논리연산에 의해 4개의 플립플롭으로 인가되는 입력값을 1차적으로 결정하는 제 1 로직부(19)와, 제 1 로직부(19)의 출력중 최상위비트의 출력값과 카운트값을 논리연산하여 제 1 플립플롭(11)의 입력값을 결정하는 제 2 로직부(21), 제 1 플립플롭(11)의 출력값과 제 1 로직부(19)의 출력중 차상위비트의 출력값 그리고 카운트값을 논리연산하여 제 2 플립플롭(13)의 입력값을 결정하는 제 3 로직부(23), 제 2 플립플롭(13)의 출력값과 제 1 로직부(19)의 출력중 다음 차상위비트의 출력값 그리고 카운트값을 논리연산하여 제 3 플립플롭(15)의 입력값을 결정하는 제 4 로직부(25), 제 3 플립플롭(15)의 출력값과 제 1 로직부(19)의 출력중 최하위비트의 출력값 그리고 카운트값을 논리연산하여 제 4 플립플롭(17)의 입력값을 결정하는 제 5 로직부(27)로 구성된다.In the conventional counter, the first, second, third, and fourth flip-flops 11, 13, 15, and 17 and an input value applied to four flip-flops by a logical operation between the input value and the load signal are 1 A second logic for determining an input value of the first flip-flop 11 by performing a logical operation on the first logic unit 19 to be sequentially determined and the output value and the count value of the most significant bit of the outputs of the first logic unit 19. A second operation of determining the input value of the second flip-flop 13 by performing a logical operation on the output value of the first flip-flop 11 and the output value of the next higher bit among the outputs of the first logic unit 19 and the count value. The input value of the third flip-flop 15 is obtained by performing a logical operation on the output value of the third logic unit 23 and the second flip-flop 13 and the output value of the next next higher order bit and the count value among the outputs of the first logic unit 19. Logic operation of the output value of the fourth logic unit 25 and the third flip-flop 15 to determine the output value of the least significant bit and the count value of the output of the first logic unit 19 W 4 is composed of a fifth logic unit 27, which determines the input to the flip-flop 17.

여기서, 각각의 플립플롭에는 클리어(clear)신호와 클럭(clock)신호가 인가되고 상기 카운트신호와 제 1, 제 2, 제 3, 제 4 플립플롭(11, 13, 15, 17)의 출력을 캐리아웃(carry out)으로 하는 앤드게이트(29)가 더 구성된다.Here, a clear signal and a clock signal are applied to each flip-flop, and the count signal and the outputs of the first, second, third, and fourth flip-flops 11, 13, 15, and 17 are output. The end gate 29 which carries out the carry out is further comprised.

또한 제 1 로직부(19)에는 로드(load)신호가 인가되어 해당 입력비트와 논리연산된다.In addition, a load signal is applied to the first logic unit 19 to perform a logical operation with the corresponding input bit.

그리고 상기 제 3, 제 4, 제5 로직부(23, 25, 27)는 전단 플립플롭의 출력값과 상기 카운트값을 논리연산하는 낸드게이트(23a, 25a, 27a)들과, 해당 낸드게이트의 출력값과 제 1 로직부(19)에서 출력하는 해당 입력비트의 값을 입력하여 논리연산하는 두 개의 OR게이트(23b, 25b, 27b)들로 구성된다.The third, fourth, and fifth logic units 23, 25, and 27 are NAND gates 23a, 25a, and 27a for logically calculating the output value of the front flip-flop and the count value, and the output values of the corresponding NAND gates. And two OR gates 23b, 25b, and 27b for performing a logical operation by inputting a value of a corresponding input bit output from the first logic unit 19.

이와같이 구성된 종래 카운터의 동작설명은 다음과 같다.The operation description of the conventional counter configured as described above is as follows.

도1에 도시된 바와같이 입력비트인 I1, I2, I3, I4은 유저(user)가 특정한 입력값을 설정하고 카운트와 로드신호, 그리고 클리어신호에 의해 상기 제 1, 제 2, 제 3, 제 4 플립플롭(11, 13, 15, 17)의 출력(A1, A2, A3, A4)이 결정된다.As shown in FIG. 1, the input bits I 1 , I 2 , I 3 , and I 4 set a specific input value by the user, and the first, second, The outputs A 1 , A 2 , A 3 , A 4 of the third and fourth flip-flops 11, 13, 15, 17 are determined.

일반적으로 카운터는 적용분야에 따라 카운터의 로직을 변경하여야 한다.In general, the counter should change the logic of the counter depending on the application.

즉, 카운터의 로직을 어떻게 변경하느냐에 따라 사용되는 분야가 다르게 된다.In other words, the fields used vary depending on how the logic of the counter is changed.

이러한 번거로움을 해소하기 위해 착안된 것이 종래기술에 따른 카운터이다.It is a counter according to the prior art that is conceived to solve this trouble.

종래기술에 따른 카운터는 적용분야가 서로 다르더라도 카운터의 로직을 변경할 필요없이 카운터의 입력값을 유저가 설정하므로서 가능하다.The counter according to the prior art is possible by setting the input value of the counter without changing the logic of the counter even if the application field is different.

여기서 유저가 설정한 입력값이란, 카운터가 카운팅하는 시점을 가르키는 값을 말한다.Here, the input value set by the user means a value indicating a time point at which the counter counts.

이러한 동작을 간단한 테이블로 구성하여 설명하면 아래와 같다.This operation is described as a simple table as follows.

Figure kpo00002
Figure kpo00002

여기서 기호 X는 돈캐어(don't care)를 나타낸 것이고 기호 ↑는 값의 변동이 없음을 표시한다.The symbol X represents don't care and the symbol ↑ represents no change in value.

상기 테이블에서 보여지듯이 클리어신호가 "1"이고 클럭신호가 변화가 없고 또한 로드신호가 "0"이고 카운트신호가 "1"이면 상기 카운터는 카운팅을 시작하게 된다.As shown in the table, when the clear signal is "1", the clock signal is unchanged, and the load signal is "0" and the count signal is "1", the counter starts counting.

그리고 클리어신호가 "1"이고 클럭신호가 "don't care"이고 로드신호가 "0" 그리고 카운트신호가 "0"이면 상기 카운터는 카운팅을 하지 않는다. 즉, 아무런 동작을 수행하지 않는다.When the clear signal is "1", the clock signal is "don't care", the load signal is "0", and the count signal is "0", the counter does not count. That is, it does nothing.

물론 상기와 같은 테이블을 구현하기 위한 조건으로서는 입력비트 즉, 카운터의 시작시점을 알리는 입력값을 유저가 설정하여야 한다.Of course, as a condition for implementing such a table, the user must set an input bit, that is, an input value indicating the start point of the counter.

따라서 카운터가 카운트를 시작한다는 것은 전술한 바와같이 유저가 설정한 입력값에 따라 카운팅동작을 시작한다는 것을 의미한다.Therefore, when the counter starts counting, it means that the counting operation starts according to the input value set by the user as described above.

이와같이 카운터의 적용분야에 관계없이 유저가 카운터의 초기값만을 설정해 놓으면 되므로 구지 카운터의 로직을 변경하지 않아도 된다.In this way, the user does not need to change the logic of the old counter since the user only needs to set the initial value of the counter regardless of the application of the counter.

그러나 상기와 같은 종래 카운터는 비트수가 제 3, 제 4, 제 5 로직부의 입력단자수와 비례하기 때문에 비트수가 증가하면 그에따라 각 입력단자수에 증가하게 되어 면적이 증가되고 결과적으로 소자의 사이즈를 증가시키는 문제점이 있었다.However, in the conventional counter as described above, since the number of bits is proportional to the number of input terminals of the third, fourth, and fifth logic units, when the number of bits increases, the number of bits increases accordingly, increasing the area and consequently increasing the size of the device. There was a problem.

본 발명은 상기한 문제점을 해결하기 위해 안출한 것으로서 비트수의 증가와 관계없이 간단한 논리게이트만을 추가하여 면적을 최소화하는데 적당한 카운터를 제공하는데 그 목적이 있다.The present invention has been made to solve the above problems, and an object thereof is to provide a counter suitable for minimizing an area by adding only a simple logic gate regardless of an increase in the number of bits.

도1은 종래기술에 따른 카운터의 내부구성도.1 is an internal configuration of a counter according to the prior art.

도2은 본 발명에 따른 카운터의 개략적 구성도.2 is a schematic configuration diagram of a counter according to the present invention;

도3은 본 발명의 카운터에 따른 부분적 상세도.Figure 3 is a partial detailed view according to the counter of the present invention.

도4는 본 발명의 일실시예에 따른 카운터의 구성도.4 is a block diagram of a counter according to an embodiment of the present invention.

도5는 도4의 일실시예에 따른 파형도.5 is a waveform diagram according to one embodiment of FIG. 4;

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

31 : 셋-입력단 33 : 플립플롭31: set input 33: flip-flop

31a : 제 1 논리게이트 31b : 제 2 논리게이트31a: first logic gate 31b: second logic gate

31c : 제 3 논리게이트 31d : 제 4 논리게이트31c: third logic gate 31d: fourth logic gate

31e : 제 1 인버터 31f, 31g : 제 1, 제 2 트랜스퍼 게이트31e: 1st inverter 31f, 31g: 1st, 2nd transfer gate

31h, 31i : 제 3, 제 4 트랜스퍼 게이트31h, 31i: third and fourth transfer gates

상기의 목적을 달성하기 위한 본 발명의 카운터은 클럭신호와 피드백신호를 입력하여 논리연산하는 제 1 논리게이트, 피드백신호와 리세트신호를 입력하여 논리연산하는 제 2 논리게이트, 리세트신호와 제 1 논리게이트의 출력을 입력하여 논리연산하는 제 3 논리게이트, 제 2, 제 3 논리게이트의 출력을 입력하여 논리연산하는 제 4 논리게이트, 상기 제 3 논리게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 제 4 논리게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트신호를 출력하는 제 3, 제 4 트랜스퍼 게이트로 구성되는 셋-입력단과, 상기 셋-입력단으로부터 출력되는 셋트신호 또는 리세트신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성된다.The counter of the present invention for achieving the above object is a first logic gate for logic operation by inputting the clock signal and the feedback signal, the second logic gate for logic operation by inputting the feedback signal and the reset signal, the reset signal and the first A third logic gate for inputting and logically operating the output of the logic gate, a fourth logic gate for inputting and logically operating the outputs of the second and third logic gates, an inverter for inverting the output of the third logic gate, and a user. The first and second transfer gates outputting a set signal by selectively outputting the output value of the fourth logic gate and a fixed signal that always maintains a high level according to the input value set by the user, and the input value set by the user. A set-input stage consisting of third and fourth transfer gates for selectively outputting an output value and a fixed signal to output a reset signal; And a flip-flop which is operated by a set signal or a reset signal and a clock signal output from the set-input stage and outputs a feedback signal to the set-input stage.

이하, 본 발명의 카운터를 첨부된 도면을 참조하여 설명하면 다음과 같다.Hereinafter, the counter of the present invention will be described with reference to the accompanying drawings.

도2는 본 발명에 따른 카운터의 블록구성도이다.2 is a block diagram of a counter according to the present invention.

도2에 도시한 바와같이 본 발명의 카운터는 유저가 카운터의 카운팅 시점을 나타내는 값을 설정하는 셋-입력단(31)과, 셋-입력단의 셋트 또는 리세트단자와 연결되는 플립플롭(33)으로 구성된다.As shown in Fig. 2, the counter of the present invention includes a set-input terminal 31 for setting a value indicating a counting time of the counter, and a flip-flop 33 connected to a set or reset terminal of the set-input terminal. It is composed.

여기서, 셋-입력단(31)은 플립플롭(33)의 출력값이 피드백되어 입력된다.Herein, the output value of the flip-flop 33 is fed back to the set-input terminal 31.

그리고 셋-입력단(31)에는 항상 "하이"레벨로 고정된 고정신호(UP)와, 리세트 또는 셋트신호가 인가된다.The set-input terminal 31 is always supplied with a fixed signal UP and a reset or set signal fixed at a "high" level.

상기 플립플롭(33)은 셋-입력단(31)에서 선택적으로 출력되는 리세트 또는 셋트신호중 하나를 입력으로 하여 동작한다.The flip-flop 33 is operated by inputting one of a reset or set signal selectively output from the set-input terminal 31.

이와같이 구성된 본 발명의 카운터에 따른 셋-입력단을 보다 상세히 설명하기로 한다.The set-input stage according to the counter of the present invention configured as described above will be described in more detail.

도3은 본 발명의 카운터에 따른 셋-입력단의 상세구성도이다.3 is a detailed block diagram of the set-input stage according to the counter of the present invention.

도3에 도시한 바와같이 본 발명의 셋-입력단(31)은 4개의 트랜스퍼 게이트와 2개의 OR게이트와, 한 개의 낸드 및 앤드게이트, 그리고 한 개의 인버터로 구성된다.As shown in Fig. 3, the set-input stage 31 of the present invention is composed of four transfer gates, two OR gates, one NAND and an AND gate, and one inverter.

즉, 클럭신호와, 상기 플립플롭으로부터 피드백되어 입력되는 신호와, 리세스 또는 셋트신호를 입력하여 논리연산하는 제 1 논리게이트(31a)와, 상기 플립플롭(33)으로부터 피드백되는 신호와 상기 리세트 또는 셋트신호를 입력하여 논리연산하는 제 2 논리게이트(31b)와, 상기 제 1 논리게이트(31a)의 출력과 리셋트 또는 셋트신호를 입력하여 논리연산하는 제 3 논리게이트(31c)와, 상기 제 2 논리게이트(31b)의 출력과 제 3 논리게이트(31c)의 출력을 입력하여 논리연산하는 제 4 논리게이트(31d)와, 상기 제 3 논리게이트(31c)의 출력을 반전시키는 제 1 인버터(31e)와, 유저가 설정된 입력값과 상기 고정신호(UP)에 따라 제 4 논리게이트(31d)의 출력과 상기 제 1 인버터(31e)의 출력을 선택적으로 출력시키는 4개의 트랜스미션 게이트(31f, 31g, 31h, 31i)들을 포함하여 구성된다.That is, a clock signal, a signal fed back from the flip-flop, a first logic gate 31a for inputting a logic operation by inputting a recess or set signal, a signal fed back from the flip-flop 33, and the re A second logic gate 31b for inputting a set or set signal and performing logical operation, a third logic gate 31c for inputting a logic operation by inputting a reset or set signal and an output of the first logic gate 31a, A fourth logic gate 31d for inputting and logically operating the output of the second logic gate 31b and the output of the third logic gate 31c, and a first for inverting the output of the third logic gate 31c. Four transmission gates 31f for selectively outputting the output of the fourth logic gate 31d and the output of the first inverter 31e according to the inverter 31e and the input value set by the user and the fixed signal UP. , 31g, 31h, 31i) .

여기서, 유저가 설정한 입력값이 비반전단자로 입력되고 반전단자는 상기 유저가 설정한 입력값의 반전된 값이 입력되는 제 1 트랜스퍼 게이트(31f)와, 상기 유저가 설정한 입력값이 비반전단자로 입력되고 상기 유저가 설정한 입력값의 반전된 값이 반전단자로 입력되는 제 2 트랜스퍼 게이트(31g)와, 상기 제 2, 제 2 트랜스퍼 게이트(31f, 31g)와 마찬가지로 상기 유저가 설정한 입력값이 비반전단자로 입력되고 상기 유저가 설정한 입력값의 반전된 값이 반전단자로 입력되는 제 3, 제 4 트랜스퍼 게이트(31h, 31i)로 구성된다.Here, the first transfer gate 31f into which the input value set by the user is input to the non-inverting terminal and the inverted value of the input value set by the user is inputted, and the input value set by the user are non-inverting terminals. Similarly to the second transfer gate 31g and the second and second transfer gates 31f and 31g, which are input to the inverting terminal and the inverted value of the input value set by the user is input to the inverting terminal. One input value is input to the non-inverting terminal, and the inverted value of the input value set by the user is composed of third and fourth transfer gates 31h and 31i.

그리고 상기 유저가 설정한 입력값의 반전은 도3에 도시한 바와같이 제 2 인버터(31j)에 의해 이루어진다.The inverting of the input value set by the user is performed by the second inverter 31j as shown in FIG.

상기와 같이 구성된 본 발명에 따른 카운터의 동작을 설명하면 다음과 같다.Referring to the operation of the counter according to the present invention configured as described above are as follows.

먼저, 도2에 따르면 플립플롭(33)을 구동시키는 셋-입력단(31)은 셋팅된 입력값 즉, S1, S2, S3에 의해서 카운터의 시작시점을 설정한다.First, according to FIG. 2, the set-input terminal 31 driving the flip-flop 33 sets the start point of the counter by the set input values, that is, S 1 , S 2 , and S 3 .

셋-입력단(31)의 고정신호는 항상 "하이" 레벨을 유지하고 있고 플립플롭(33)은 그 출력이 하이신호일 때만 "하이"레벨의 신호를 셋-입력단(31)으로 피드백 시킨다.The fixed signal of the set-input stage 31 always maintains the "high" level, and the flip-flop 33 feeds back the signal of the "high" level to the set-input stage 31 only when its output is a high signal.

이러한 피드백신호는 로드신호의 역할을 한다.This feedback signal serves as a load signal.

상기와 같은 개략적인 설명을 염두하여 이를 보다 상세히 설명하기로 한다.With this general description in mind, this will be described in more detail.

도3에 도시한 바와같이 클럭과 피드백신호가 제 1 논리게이트(31a)를 거쳐 클럭신호의 반주기만큼의 하이신호를 출력한다.As shown in Fig. 3, the clock and feedback signals output a high signal equal to half the period of the clock signal through the first logic gate 31a.

제 1 논리게이트(31a)에서 출력되는 신호는 리세트신호 또는 셋트신호와 함께 제 3 논리게이트(31c)로 입력되어 실제적인 로드신호를 만들게 된다.The signal output from the first logic gate 31a is input to the third logic gate 31c together with the reset signal or the set signal to make an actual load signal.

이어 상기 실제적인 로드신호 즉, 제 3 논리게이트(31c)의 출력신호는 제 1 인버터(31e)에 의해 반전되어 셋트신호로 사용된다.Subsequently, the actual load signal, that is, the output signal of the third logic gate 31c is inverted by the first inverter 31e and used as a set signal.

또한 플립플롭(33)으로부터 입력되는 피드백신호와 리세트 또는 셋트신호는 제 2 논리게이트(31b)를 거쳐 클럭신호의 한 주기 만큼의 하이신호로 출력된다.In addition, the feedback signal and the reset or set signal input from the flip-flop 33 are output as a high signal for one cycle of the clock signal through the second logic gate 31b.

따라서 제 2 논리게이트(31b)에서 출력되는 신호와 제 3 논리게이트(31c)에서 출력되는 신호는 제 4 논리게이트(31d)로 입력된다.Therefore, the signal output from the second logic gate 31b and the signal output from the third logic gate 31c are input to the fourth logic gate 31d.

이때 제 4 논리게이트(31d)는 클럭신호의 반주기 만큼의 로우신호를 출력한다.At this time, the fourth logic gate 31d outputs a low signal corresponding to half a period of the clock signal.

상기 제 4 논리게이트(31d)를 통과한 신호는 리세트신호로 사용된다.The signal passing through the fourth logic gate 31d is used as a reset signal.

여기서 유저가 설정한 입력값중 S1에 의해 셋트신호를 사용할 것인지 아니면 리세트신호를 사용할 것인지를 결정하게 된다.Here, among the input values set by the user, S 1 determines whether to use the set signal or the reset signal.

만일, S1이 하이신호일 경우, 제 1 인버터(31e)의 출력값이 플립플롭(33)의 셋트값으로 전달되고 S1이 로우신호일 경우에는 제 4 논리게이트(31d)의 출력값이 플립플롭(33)의 리세트값으로 전달된다.Ten thousand and one, S 1 In this case, a high signal, in the case where the output value of the first inverter (31e) transmitted to the set value of the flip-flop 33 and the S 1 is Righteous foil, the fourth flip-flop output of the logic gate (31d) (33 It is passed as a reset value of).

여기서 S1이 하이신호임에 따라 제 1 인터버(31e)의 출력신호가 플립플롭(33)의 세트로 전달될 때 리세트에는 항상 하이레벨을 유지하는 고정신호가 전달된다.Here, as S 1 is a high signal, when the output signal of the first interleaver 31e is transmitted to the set of the flip-flop 33, the fixed signal is always transmitted to the reset.

따라서 리세트는 실제적으로 동작하지 않고 셋트만 동작하게 된다.Thus, the reset does not actually work, only the set.

이러한 방법을 통해 유저는 S2, S3를 셋팅하면 된다.In this way, the user can set S 2 and S 3 .

여기서 제 1 인버터(31e)의 출력신호와 상기 제 4 논리게이트(31d)의 출력신호가 플립플롭(33)의 셋트 또는 리세트로 전달되는 과정을 4개의 트랜스퍼 게이트(31f, 31g, 31h, 31i)를 통해 설명하기로 한다.Here, the process of transferring the output signal of the first inverter 31e and the output signal of the fourth logic gate 31d to the set or reset of the flip-flop 33 is performed by four transfer gates 31f, 31g, 31h, and 31i. To be explained.

전술한 바와 같이 S1이 하이신호일 경우, 제 4 트랜스퍼 게이트(31d)가 턴-온되어 제 1 인버터(31e)의 출력값이 제 4 트랜스퍼 게이트(31d)를 통해 셋트로 전달된다.As described above, when S 1 is a high signal, the fourth transfer gate 31d is turned on and the output value of the first inverter 31e is transferred to the set through the fourth transfer gate 31d.

상기 S1이 로우신호이면 제 1 트랜스터 게이트(31a)가 턴-온되어 제 4 논리게이트(31d)의 출력값이 제 1 트랜스퍼 게이트(31a)를 통해 리세트로 전달된다.When S 1 is a low signal, the first transfer gate 31a is turned on and the output value of the fourth logic gate 31d is transferred to the reset through the first transfer gate 31a.

이러한 방법으로 S2, S3를 유저가 원하는 값으로 세팅하면 된다.In this way, you can set S 2 and S 3 to your desired values.

한편 도4는 본 발명의 카운터를 이용한 일실시예에 따른 구성도이다.On the other hand, Figure 4 is a block diagram according to an embodiment using a counter of the present invention.

도4에 도시한 바와같이 본 발명의 실시예에 따르면 셋-입력단의 수를 비트수에 맞게 연결하였다.As shown in Fig. 4, according to the embodiment of the present invention, the number of set-input terminals is connected in accordance with the number of bits.

본 발명의 실시예는 3비트 동기카운터를 예로 한 것으로서 클럭신호와, 상기 플립플롭으로부터 피드백되어 입력되는 신호와, 리세스 또는 셋트신호를 입력하여 논리연산하는 제 1 논리게이트(31a)와, 상기 플립플롭으로부터 피드백되는 신호와 상기 리세트 또는 셋트신호를 입력하여 논리연산하는 제 2 논리게이트(31b)와, 상기 제 1 논리게이트(31a)의 출력과 리셋트 또는 셋트신호를 입력하여 논리연산하는 제 3 논리게이트(31c)와, 상기 제 2 논리게이트(31b)의 출력과 제 3 논리게이트(31c)의 출력을 입력하여 논리연산하는 제 4 논리게이트(31d)와, 상기 제 3 논리게이트(31c)의 출력을 반전시키는 제 1 인버터(31e)와, 유저가 설정한 입력값과 상기 고정신호(UP)에 따라 제 4 논리게이트(31e)의 출력과 상기 제 1 인버터(31e)의 출력을 선택적으로 출력시키는 제 1 셋-입력단(41)과, 제 1 셋-입력단(41)에서 출력되는 셋트신호 또는 리세트신호 그리고 클럭신호에 의해 동작하는 제 1 플립플롭(41a)과, 제 1 셋-입력단(41)에 병렬적으로 구성되어 제 1 인버터(31e)의 출력과 제 4 논리게이트(31d)의 출력을 선택적으로 출력시키는 제 2 셋-입력단(43)과, 상기 제 2 셋-입력단(43)에서 출력되는 셋트신호 또는 리세트신호 및 제 1 플립플롭(41a)에서 출력되는 클럭신호에 의해 동작하는 제 2 플립플롭(43a)과, 상기 제 2 셋-입력단에 병렬적으로 구성되어 제 1 인버터(31e)의 출력과 제 4 논리게이트(31d)의 출력을 선택적으로 출력시키는 제 3 셋-입력단(45)과, 제 3 셋-입력단(45)에서 추력되는 셋트신호 또는 리세트신호 및 제 2 플립플롭(43a)에서 출력되는 클럭신호에 의해 동작하는 제 3 플립플롭(45a)을 포함하여 구성된다.In the embodiment of the present invention, a 3-bit synchronous counter is taken as an example, and a clock signal, a signal fed back from the flip-flop, a first logic gate 31a for inputting a logical operation by a recess or set signal, and A second logic gate 31b for inputting a logic feedback signal from the flip-flop and the reset or set signal, and a logic operation for inputting an output and a reset or set signal of the first logic gate 31a A fourth logic gate 31d for inputting and logically operating a third logic gate 31c, an output of the second logic gate 31b, and an output of the third logic gate 31c, and the third logic gate ( The output of the fourth logic gate 31e and the output of the first inverter 31e according to an input value set by the user and the fixed signal UP. First set-in to selectively output Parallel to the stage 41, the first flip-flop 41a operated by the set signal or reset signal and the clock signal output from the first set-input stage 41, and the first set-input stage 41; A second set-input stage 43 for selectively outputting the output of the first inverter 31e and the output of the fourth logic gate 31d, and a set signal outputted from the second set-input stage 43; Or a second flip-flop 43a operated by a reset signal and a clock signal output from the first flip-flop 41a and the second set-input terminal in parallel to output the first inverter 31e. And a third set-input terminal 45 for selectively outputting the output of the fourth logic gate 31d, and a set signal or reset signal and a second flip-flop 43a thrust from the third set-input terminal 45. And a third flip-flop 45a operated by the clock signal output from the.

여기서, 상기 각각의 제 1, 제 2, 제 3 셋-입력단(41, 43, 45)에는 유저에 의해 입력값(S1, S2, S3)이 설정된다.In this case, input values S 1 , S 2 , and S 3 are set to the first, second, and third set-input terminals 41, 43, and 45 by the user.

그리고 각각의 제 1, 제 2, 제 3 플립플롭(41a, 43a, 45a)의 비반전출력단에서 출력되는 신호를 논리연산하는 제 5 논리게이트(47)가 더 구성된다.And a fifth logic gate 47 for logically operating a signal output from the non-inverting output terminal of each of the first, second, and third flip-flops 41a, 43a, and 45a.

또한 제 1 플립플롭(41a)으로부터 3비트출력중 최상위비트의 출력(Out 1)이 얻어지고 마찬가지로 제 2, 제 3 플립플롭(41a, 45a)으로부터 Out 2와 Out 3가 얻어진다.Further, an output Out 1 of the most significant bit of the 3-bit output is obtained from the first flip-flop 41a, and Out 2 and Out 3 are similarly obtained from the second and third flip-flops 41a, 45a.

도5는 도4의 3비트 동기카운터에 따른 파형도이다.FIG. 5 is a waveform diagram illustrating a three-bit sync counter of FIG. 4.

도5에 도시한 바와같이 리세트신호가 하이에서 로우레벨로 변화하고 이때 고정신호는 항상 하이신호이다.As shown in Fig. 5, the reset signal changes from high to low level, and the fixed signal is always a high signal.

유저에 의해서 입력값 S1의 값이 "1"로, S2의 값이 "0"으로 그리고 S3의 값을 "0"으로 설정되면 상기 출력단 Out 1, Out 2, Out 3의 값이 얻어진다.If the value of the input value S 1 is set to "1", the value of S 2 is set to "0", and the value of S 3 is set to "0", the values of the output terminals Out 1, Out 2 and Out 3 are obtained. Lose.

다시말해서 S1, S2, S3의 값을 "100"으로 설정하면 도5에 도시한 바와같이 변화되는 출력값을 얻게된다.In other words, if the values of S 1 , S 2 , and S 3 are set to "100", the output value is changed as shown in FIG.

여기서 변화된다는 것은 카운트를 한다는 것을 의미한다.Changed here means counting.

이상 상술한 바와같이 본 발명의 카운터는 다음과 같은 효과가 있다.As described above, the counter of the present invention has the following effects.

종래 비트수에 따라 논리게이트가 증가하게 되는 반면에 본 발명은 셋-입력단을 사용하므로서 비트당 4개의 트랜스퍼 게이트만을 추가하면 되므로 사이즈를 최소화할 수 있다.While the logic gate is increased according to the conventional number of bits, the present invention only needs to add four transfer gates per bit by using the set-input stage, thereby minimizing the size.

즉, 비트수의 증가에 따른 입력단자수의 증가 또는 논리게이트수의 증가없이 1비트당 4개의 트랜스퍼 게이트만을 추가하면 되므로 면적을 최소화할 수 있다.That is, since only four transfer gates are added per bit without increasing the number of input terminals or increasing the number of logic gates according to the increase in the number of bits, the area can be minimized.

Claims (4)

클럭신호와 피드백신호를 입력하여 논리연산하는 앤드게이트, 피드백신호와 리세트 신호를 입력하여 논리연산하는 제 1 오아 게이트, 리세트 신호와 앤드게이트의 출력을 입력하여 논리연산하는 제 2 오아 게이트, 상기 제 1 오아 게이트와 제 2 오아 게이트의 출력을 입력하여 논리연산하는 낸드게이트, 상기 제 2 오아 게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 상기 낸드게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트 신호를 출력하는 제 3, 제 4 트랜스퍼 게이트로 구성된 셋-입력단과,An AND gate for inputting a logic operation by inputting a clock signal and a feedback signal, a first OR gate for inputting a logic operation by inputting a feedback signal and a reset signal, a second OR gate for inputting a logic operation of an output of a reset signal and an AND gate, A NAND gate that inputs and logically operates an output of the first or second OR gate, an inverter that inverts the output of the second OR gate, and an output value of the NAND gate according to an input value set by a user at all times A first and second transfer gates for selectively outputting a fixed signal maintaining a level and outputting a set signal, and selectively outputting the output value and the fixed signal of the inverter according to an input value set by a user and outputting a reset signal. A set-input stage consisting of third and fourth transfer gates, 상기 셋-입력단으로부터 출력되는 리세트 신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성되는 것을 특징으로 하는 카운터.And a flip-flop operated by a reset signal and a clock signal output from the set-input stage and outputting a feedback signal to the set-input stage. 제 1 항에 있어서, 상기 제 1 트랜스퍼 게이트는 유저가 설정한 입력값이 반전단자로 인가되고 상기 입력값이 인버터를 통해 비반전단자로 인가되고 제 2 트랜스퍼 게이트는 상기 입력값이 비반전단자로 인가되고 반전단자에는 인버터를 통과한 입력값이 인가되는 것을 특징으로 하는 카운터.The method of claim 1, wherein the first transfer gate is applied to the non-inverting terminal by the input value set by the user, the input value is applied to the non-inverting terminal through the inverter and the second transfer gate is the non-inverting terminal. The counter, characterized in that the input value is passed through the inverter is applied to the inverting terminal. 제 1 항에 있어서, 상기 제 3 트랜스퍼 게이트는 유저가 설정한 입력값이 반전단자로 인가되고 상기 입력값이 인버터를 통해 비반전단자로 인가되고 제 4 트랜스퍼 게이트는 상기 입력값이 비반전단자로 인가되고 상기 입력값이 인버터를 통해 반전단자로 인가되는 것을 특징으로 하는 카운터.The method of claim 1, wherein the third transfer gate is applied to the non-inverting terminal by the input value set by the user, the input value is applied to the non-inverting terminal through the inverter, and the fourth transfer gate is the non-inverting terminal. And the input value is applied to the inverting terminal through the inverter. 제 1 항에 있어서, 상기 플립플롭은 R-S플립플롭인 것을 특징으로 하는 카운터.The counter of claim 1, wherein the flip-flop is an R-S flip-flop.
KR1019970020515A 1997-05-24 1997-05-24 Counter KR100236331B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Publications (2)

Publication Number Publication Date
KR19980084669A KR19980084669A (en) 1998-12-05
KR100236331B1 true KR100236331B1 (en) 1999-12-15

Family

ID=19507003

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Country Status (1)

Country Link
KR (1) KR100236331B1 (en)

Also Published As

Publication number Publication date
KR19980084669A (en) 1998-12-05

Similar Documents

Publication Publication Date Title
KR100240873B1 (en) Serial interface unit having the same register for reception/transmission
US4618849A (en) Gray code counter
US5448606A (en) Gray code counter
JPH0227811A (en) Stational machine
US6269138B1 (en) Low power counters
KR100236331B1 (en) Counter
US5937024A (en) Counter for counting high frequency
JPH11509658A (en) Extended chip select reset device and method
KR200155054Y1 (en) Counter circuit
KR950013806B1 (en) Serial/parallel conversion method and device of data
SU976438A1 (en) Device for determination of character line length
KR100348785B1 (en) High speed loop adder
JPH0815392A (en) Test mode setting circuit
KR0164790B1 (en) Apparatus for converting color format
KR920006181B1 (en) Channel controlling devices of electronic musical instrument
KR790001619Y1 (en) Input device
KR970003646Y1 (en) High count circuit
KR950004369Y1 (en) Modul-3 counter
JP2999020B2 (en) Grouping processing method in audio mixing section
KR930005653B1 (en) Clock variable circuit
JP2794950B2 (en) Integrator circuit
SU1221657A2 (en) Information input device
JP2508322B2 (en) Serial I / O circuit built-in micro computer
JP2591210B2 (en) Signal detection circuit
KR920005244Y1 (en) Decoding circuit of digital repeated signal

Legal Events

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

Payment date: 20050824

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee