KR100242691B1 - Circuit for controlling count of a up/down counter - Google Patents
Circuit for controlling count of a up/down counter Download PDFInfo
- Publication number
- KR100242691B1 KR100242691B1 KR1019970012390A KR19970012390A KR100242691B1 KR 100242691 B1 KR100242691 B1 KR 100242691B1 KR 1019970012390 A KR1019970012390 A KR 1019970012390A KR 19970012390 A KR19970012390 A KR 19970012390A KR 100242691 B1 KR100242691 B1 KR 100242691B1
- Authority
- KR
- South Korea
- Prior art keywords
- signal
- down counter
- clock signal
- flip
- flop
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K23/00—Pulse counters comprising counting chains; Frequency dividers comprising counting chains
- H03K23/58—Gating or clocking signals not applied to all stages, i.e. asynchronous counters
- H03K23/62—Gating or clocking signals not applied to all stages, i.e. asynchronous counters reversible
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
Abstract
본 발명은 2접점 스위치로 구성된 업스위치 및 다운스위치를 이용하여 업/다운 카운터의 카운트를 제어하기 카운트제어회로에 관한 것이다. 이를 위하여 본 회로는 중앙처리부로부터 인가되는 데이터를 쓰기제어신호에 의하여 로드하는 업/다운카운터의 카운트제어회로에 있어서, 2접점 스위치 구조로 이루어진 업스위치 및 다운스위치; 업스위치 및 다운스위치의 온 또는 오프에 따라 상기 업스위치 또는 다운스위치의 제 1 접점을 통해 전송되는 소정의 제 1 클럭신호와 소정의 제 2 클럭신호에 동기되는 쓰기제어신호를 논리조합한 결과신호를 상기 업/다운 카운터의 클럭신호로 제공하기 위한 클럭제공부; 업스위치 및 상기 다운스위치의 온 또는 오프에 따라 업스위치 또는 다운스위치의 제 2 접점을 통해 전송되는 소정의 논리신호를 업/다운 카운터의 업 또는 다운동작모드를 선택할 수 있는 업/다운 선택신호로 전송하기 위한 전송로를 포함하도록 구성된다. 따라서 중앙처리부에 관여없이 사용자가 자유롭게 업/다운 카운터의 동작모드를 제어하여 업/다운 카운터로부터 출력되는 값을 선택적으로 제어할 수 있다.The present invention relates to a count control circuit for controlling the count of an up / down counter using an upswitch and a downswitch composed of two contact switches. To this end, the circuit includes an up / down counter count control circuit for loading data applied from a central processing unit by a write control signal, the up-switch and down-switch having a two-contact switch structure; Result signal of logical combination of a predetermined first clock signal and a write control signal synchronized with a predetermined second clock signal transmitted through the first contact of the upswitch or downswitch according to on or off of upswitch and downswitch A clock providing unit for providing a clock signal of the up / down counter; The predetermined logic signal transmitted through the up switch or the second contact of the down switch according to the on / off of the up switch and the down switch is an up / down selection signal for selecting an up / down counter operation mode. It is configured to include a transmission path for transmission. Therefore, the user can freely control the operation mode of the up / down counter without involvement of the central processing unit to selectively control the value output from the up / down counter.
Description
본 발명은 업/다운(UP/DOWN) 카운터에 관한 것으로, 특히 업/다운 카운터의 카운트를 제어하기 위한 카운트제어회로에 관한 것이다.The present invention relates to an up / down counter, and more particularly to a count control circuit for controlling the count of an up / down counter.
일반적으로 업/다운 카운터는 로딩된 소정의 값을 입력되는 클럭신호와 업/다운 제어신호에 의하여 소정 단위로 가감하는 것으로, 가변적으로 소정의 값을 제공하고자 할 때 주로 이용되고 있다.In general, the up / down counter is used to increase or decrease a predetermined value loaded in a predetermined unit by an input clock signal and an up / down control signal, and is mainly used to variably provide a predetermined value.
본 발명은 2접점 스위치로 구성된 업스위치 및 다운스위치를 이용하여 업/다운 카운터의 카운트를 제어하기 카운트제어회로를 제공하는데 있다.The present invention provides a count control circuit for controlling the count of an up / down counter using an up switch and a down switch composed of two contact switches.
상기 목적을 달성하기 위하여 본 발명에 따른 카운트 제어회로는, 넘버세븐 시그널링 프로토콜 모니터링시스템(SPM)에서 중앙처리부로부터 인가되는 데이터를 쓰기제어신호에 의하여 로드하고, 카운트된 값을 채널선택을 위한 채널정보로 출력하기 위한 업/다운카운터의 카운트제어회로에 있어서, 2접점 스위치 구조로 이루어진 업스위치 및 다운스위치; 업스위치 및 다운스위치의 온 또는 오프에 따라 업스위치 또는 다운스위치의 제 1 접점을 통해 전송되는 소정의 제 1 클럭신호와 소정의 제 2 클럭신호에 동기되는 쓰기제어신호를 논리조합한 결과신호를 상기 업/다운카운터의 클럭신호로 제공하기 위한 클럭제공부; 업스위치 및 다운스위치의 온 또는 오프에 따라 업스위치 또는 다운스위치의 제 2 접점을 통해 전송되는 소정의 논리신호를 업/다운 카운터의 업 또는 다운동작모드를 선택할 수 있는 업/다운 선택신호로 전송하기 위한 전송로를 포함하는 것을 특징으로 한다.In order to achieve the above object, the count control circuit according to the present invention loads the data applied from the central processing unit by the write control signal in the number seven signaling protocol monitoring system (SPM) and stores the counted channel information for channel selection. A counting control circuit for up / down counters for outputting a signal, comprising: an upswitch and a downswitch having a two-contact switch structure; As a result of a logical combination of a write control signal synchronized with a predetermined first clock signal and a predetermined second clock signal transmitted through the first contact of the upswitch or downswitch according to the on or off of the upswitch and the downswitch, A clock providing unit for providing a clock signal of the up / down counter; The predetermined logic signal transmitted through the second switch of the upswitch or the downswitch according to the on / off of the upswitch and the downswitch is transmitted as an up / down selection signal for selecting the up / down counter operation mode. It characterized in that it comprises a transmission path for.
도 1은 본 발명에 따른 업/다운 카운터의 카운트제어회로에 대한 상세 회로도이다.1 is a detailed circuit diagram of a count control circuit of an up / down counter according to the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
101 : 업 스위치 102 : 다운 스위치101: up switch 102: down switch
110 : 클럭제공부 113 : 논리곱 소자110: clock provider 113: logical AND device
115, 118 : 플립플롭 121 : 논리합 소자115, 118: flip-flop 121: logical sum element
130 : 업/다운 카운터130: up / down counter
이하, 본 발명에 따른 실시예를 상세히 설명하면 다음과 같다.Hereinafter, an embodiment according to the present invention will be described in detail.
도 1은 본 발명에 따른 업/다운 카운터의 카운트 제어회로에 대한 상세한 회로도로서, 전전자 교환기의 넘버 세븐신호 및 링크상태 모니터링 시스템(NO. 7 시그널링 프로토콜 모니터(NO. 7 Signalling Protocol Monitor), 이하 SPM이라 약함)에 있어서 채널선택을 위하여 이용되는 32진 업/다운 카운터에 대한 카운트제어회로를 예시한 것이다.1 is a detailed circuit diagram of a count control circuit of an up / down counter according to the present invention, wherein a number seven signal and a link state monitoring system (NO. 7 Signaling Protocol Monitor) of an electronic switch are hereinafter described. It is an example of a count control circuit for a 32-bit up / down counter used for channel selection in SPM.
도 1을 참조하면, 본 발명에 따른 카운트 제어회로는, 업/다운 카운터(130), 사용자에 의해 제어되는 업스위치(UP-SW)(101) 및 다운스위치(DOWN-SW)(102), 업스위치(101) 및 다운스위치(102)의 일측 접점을 통해 전송되는 2Hz의 제 1 클럭신호와 소정의 제 2 클럭신호에 동기된 쓰기제어신호를 논리조합하여 업/다운 카운터(130)의 클럭신호(CLK)를 제공하기 위한 클럭신호 제공부(110), 업스위치(101) 및 다운스위치(102)의 다른 일측 접점과 업/다운 카운터(130)의 업/다운 선택신호 입력단자(U/D SEL)간에 연결된 전송로(140)로 구성된다.Referring to FIG. 1, the count control circuit according to the present invention includes an up / down
업 및 다운스위치(101, 102)는 2접점 스위치로 구성되는데, 업스위치(101)의 경우에, 사용자에 의해 온될 때 일측 접점으로는 제 1 클럭신호를 전송하고, 다른 일측 접점으로는 저항(R3)을 통해 '로우(GND)레벨'신호를 전송하는데, 다른 일측 접점을 통해 전송되는 '로우(GND)레벨'신호는 상술한 바와 같이 전송로(140)를 통해 업/다운 카운터(130)의 업/다운 선택신호 입력단자(U/D SEL)로 전송되도록 구성된다. 다운스위치(102)의 경우에, 사용자에 의해 온될 때 일측 접점으로는 제 1 클럭신호를 전송하고, 다른 일측 접점으로는 저항(R4)을 통해 '하이(+5V)레벨'신호를 전송하는데, 다른 일측 접점을 통해 전송되는 '하이레벨'신호는 상술한 바와 같이 전송로(140)를 통해 업/다운 카운터(130)의 업/다운 선택신호 입력단자(U/D SEL)로 전송되도록 구성된다.The up and down
클럭신호 제공부(110)는 업스위치(101)의 상술한 일측 접점에 일측 입력단을 접속하고 다운스위치(102)의 상술한 일측 접점에 다른 일측 입력단을 접속한 논리곱소자(113), 논리곱소자(113)의 일측 입력단과 +5V 사이 및 다른 일측 입력단과 +5V사이에 각각 직렬로 접속되어 있는 풀업저항들(R1, R2), 논리곱소자(113)로부터 출력되는 신호를 클럭신호로 하고 상술한 제 1 클럭신호(2Hz)를 입력신호로 하며 업/다운 카운터(130)의 쓰기제어신호(SCW)에 의해 클리어(CLR)되는 제 1 D플립플롭(115), 제 2 클럭신호를 반전하는 인버터(117), 인버터(117)를 통해 전송되는 신호를 클럭신호로 하고 업/다운 카운터(130)로 전송되는 쓰기제어신호(SCW)를 입력신호로 하는 제 2 D플립플롭(118), 제 1 및 제 2 D플립플롭(115, 118)의 출력신호(Q)를 논리합하여 업/다운 카운터(130)의 클럭신호로 전송하기 위한 논리합소자(121)로 구성된다.The clock
쓰기제어신호는 SPM장치의 경우에 미도시된 CPU(Central Processing Unit, 이하 CPU라고 약함)로부터 제공되는 것으로, 업/다운 카운터(130)의 입력단(D[0~4])을 통해 제공하는 신호(이 신호 역시 상술한 CPU로부터 제공되는 것으로 구현될 수 있다.)를 로딩시키기 위하여 제공되는 것이다. 따라서 쓰기제어신호는 업/다운카운터(130)의 로드입력단자(LOAD)로 인가된다. 그리고 업/다운카운터(130)가 상술한 바와같이 SPM장치에 구비되는 것일 때, 업/다운카운터(130)의 출력신호는 모니터링을 원하는 채널정보(CH0~CH4)로서 제공된다.In the case of the SPM device, the write control signal is provided from a CPU (Central Processing Unit, hereinafter abbreviated as CPU), which is provided through the input terminal D [0 ~ 4] of the up / down
그러면 도 1에 도시된 카운트제어회로의 동작을 설명하기로 한다.The operation of the count control circuit shown in FIG. 1 will now be described.
우선, 업스위치(101) 및 다운스위치(102)가 제어되지 않을 때,First, when the upswitch 101 and the
미도시된 CPU로부터 로컬라인 D[0~4]를 통해 소정의 값(예를 들어 채널 9(01001) 값)이 전송됨과 동시에 쓰기제어신호가 액티브 하이상태로 인가되면, 인버터(131)를 통해 쓰기제어신호는 로우상태로 인가된다. 이에 따라 업/다운 카운터(130)는 D[0~4]라인을 통해 인가된 소정의 값을 로딩하게 된다. 이 때 미도시된 CPU로부터 전송되는 쓰기제어신호가 액티브 로우상태로 제공될 경우에 인버터(131)없이 구현될 수도 있다.If a predetermined value (for example, channel 9 (01001) value) is transmitted from the CPU (not shown) via the local line D [0 ~ 4] and the write control signal is applied to the active high state, The write control signal is applied in the low state. Accordingly, the up / down
그리고 업/다운 카운터(130)에 로드되는 상술한 소정의 값(채널 9(01001))은 클럭단으로 인가되는 클럭신호의 라이징에지에서 출력단(OUT[0~4])을 통해 출력된다. 이 때 클럭제공부(110)는 업/다운카운터(130)의 클럭단자로 20MHz의 제 2 클럭신호에 의해 가공된 소정의 클럭신호를 제공한다. 즉, 클럭신호의 라이징에지에서 입력단(D[0~4])을 통해 인가되는 신호가 출력신호로 로드되므로, 클럭제공부(110)는 쓰기제어신호(SCW)의 인에이블기간동안 업/다운 카운터(130)의 클럭단으로 인가되는 클럭신호의 라이징(또는 상승)시점을 만들기 위하여, 인가되는 20MHz의 제 2 클럭신호를 인버터(117)를 통해 반전시켜 제 2 D플립플롭(118)의 클럭단으로 인가한다.The predetermined value (channel 9 (01001)) loaded on the up / down
제 2 D플립플롭(118)은 입력단을 통해 액티브 로우레벨로 인가되는 쓰기제어신호를 20MHz의 클럭신호에 동기시켜 논리합소자(121)의 일측 입력단으로 전송한다. 논리합소자(121)는 라인(119)를 통해 인가되는 제 1 D플립플롭(115)의 출력신호에 관계없이 라인(120)을 통해 인가되는 제 2 D플립플롭(118)의 출력신호를 업/다운 카운터(130)의 클럭신호로 제공한다. 이는 제 1 D플립플롭(115)이 인가되는 쓰기제어신호에 의해 클리어되어 출력단(Q)을 통해 로우레벨신호를 출력하기 때문이다.The second D flip-
업/다운 카운터(130)는 논리합소자(121)로부터 출력되는 신호에 동기되어 상술한 바와 같이 01001값을 출력라인(CH0~CH4)에 유지시킨다.The up / down
이와 같이 업/다운 카운터(130)가 소정의 값을 유지하고 있는 상태에서, 사용자가 업스위치(101)를 누른다고 가정하면 다음과 같이 동작을 한다.In this state, when the up / down
우선, 업스위치(101)가 온상태로 제어될 때에는 쓰기모드제어신호가 비액티브상태로 유지되므로 제 2 D플립플롭(118)의 출력이 '로우상태'가 되어 업/다운 카운터(130)로 제공되는 클럭신호는 제 1 D플립플롭(115)의 출력신호가 된다. 즉, 업스위치(101)가 온되면, 라인(111)을 통해 논리곱소자(113)의 일측 입력단으로 2Hz클럭신호가 입력되는 반면에 다운스위치(102)가 오프된 상태이므로 라인(112)를 통해 풀업저항(R1)을 경유한 하이레벨(+5V)신호가 인가되어 논리곱소자(113)는 라인(111)를 통해 인가된 신호를 출력하게 된다.First, when the up
논리곱소자(113)의 출력신호는 라인(114)를 통해 제 1 D플립플롭(115)의 클럭신호로 전송된다. 제 1 D플립플롭(115)은 라인(114)를 통해 인가되는 클럭신호에 동기되어 입력단(D)을 통해 인가되는 제 1 클럭신호를 출력단(Q)을 통해 출력하게 된다. 이러한 제 1 D플립플롭(115)의 동작으로 업 또는 다운스위치(101, 102) 제어시(온 또는 오프시), 발생하는 잡음이 전송되지 않게 되어 전송되는 제 1 클럭신호를 안정화시킨다. 안정화된 제 1 클럭신호는 라인(119)을 경유하여 논리합소자(121)로 인가되고, 논리합소자(121)는 라인(120)을 통해 인가되는 신호가 로우레벨이므로 라인(119)를 통해 인가되는 제 1 클럭신호를 업/다운 카운터(130)의 클럭신호로 제공한다.The output signal of the
이에 따라 업/다운카운터(130)는 인가되는 제 1 클럭신호의 상승에지마다 카운트를 하게 되는데, 전송라인(140)을 통해 로우레벨신호(GND)가 전송되므로 업카운트를 하게 된다. 그리고 전송되는 제 1 클럭신호가 2Hz이므로 0.5초마다 하나씩 카운트하게 된다. 전송되는 제 1 클럭신호의 주기가 다르게 설정될 경우에 상술한 카운트주기(0.5초) 또한 다르게 된다.Accordingly, the up / down
한편, 다운스위치(102)가 온상태가 되면,On the other hand, when the
저항(R4)을 통해 하이레벨(+5V)신호가 전송로(140)를 통해 업/다운카운터(130)의 업/다운 선택신호(U/D SEL)로 제공되어 업/다운 카운터(130)는 다운카운트모드로 설정된다. 그리고 전송로(111)를 통해 풀업저항(R2)을 통한 하이레벨(+5V)신호가 논리곱소자(110)의 일측 입력단으로 인가되므로 전송로(112)를 통해 인가되는 신호가 논리곱소자(110)의 출력신호가 된다. 이 때 출력되는 신호 역시 2Hz가 된다. 출력되는 2Hz의 신호는 상술한 업스위치(101)가 온상태일 때와 마찬가지로 제 1 D플립플롭(115) 및 논리합소자(121)를 경유하여 업/다운 카운터(130)의 클럭신호로 제공된다. 이와 같이 인가되는 클럭신호의 라이징에지에서 업/다운 카운터(130)는 다운카운트를 하게 된다.The high level (+ 5V) signal is provided through the resistor R4 to the up / down selection signal (U / D SEL) of the up / down
이상에서 설명한 바와 같이 본 발명은 사용자가 제어할 수 있는 업스위치 및 다운스위치를 이용하여 업/다운 카운터의 동작을 자유롭게 제어할 수 있도록 하고, D플립플롭을 이용하여 안정된 업/다운 카운터의 클럭신호가 제공되도록 함으로써, 업/다운 카운터의 동작을 효율적으로 운영할 수 있고, SPM장치에 구비되어 있는 업/다운 카운터에 적용할 경우에 CPU의 관여없이 채널을 선택할 수 있는 이점도 있다.As described above, the present invention allows the user to control the operation of the up / down counter freely using the up switch and the down switch, and the clock signal of the stable up / down counter using the D flip-flop. By providing a, the operation of the up / down counter can be efficiently operated, and when applied to the up / down counter provided in the SPM device, there is also an advantage that a channel can be selected without involvement of the CPU.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970012390A KR100242691B1 (en) | 1997-04-03 | 1997-04-03 | Circuit for controlling count of a up/down counter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970012390A KR100242691B1 (en) | 1997-04-03 | 1997-04-03 | Circuit for controlling count of a up/down counter |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19980075966A KR19980075966A (en) | 1998-11-16 |
KR100242691B1 true KR100242691B1 (en) | 2000-02-01 |
Family
ID=19501922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970012390A KR100242691B1 (en) | 1997-04-03 | 1997-04-03 | Circuit for controlling count of a up/down counter |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100242691B1 (en) |
-
1997
- 1997-04-03 KR KR1019970012390A patent/KR100242691B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19980075966A (en) | 1998-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR920003446B1 (en) | Output circuit for producing positive and negative pulse at a single output terminal | |
KR960024806A (en) | Self-Configuring Speed Path on Microprocessors with Multiple Clock Options | |
EP1237282B1 (en) | Circuit for the detection of clock signal period abnormalities | |
US4945540A (en) | Gate circuit for bus signal lines | |
US5894508A (en) | Automatic power control apparatus of a PC mounted fax/modem | |
KR960042413A (en) | Data processing system | |
US6727721B2 (en) | Method for switching from a first operating condition of an integrated circuit to a second operating condition of the integrated circuit | |
KR100242691B1 (en) | Circuit for controlling count of a up/down counter | |
KR19980061837A (en) | IPC's Redundant Bus Clock Supervisory Circuits | |
KR930010723A (en) | Computer system | |
US6823413B2 (en) | Interrupt signal processing apparatus | |
JPS6374338A (en) | On-vehicle communication equipment | |
US6973025B2 (en) | Device for selecting normal circuit in communication system | |
KR970049492A (en) | Data Processor with Bus Controller | |
KR900005307Y1 (en) | Frequency alternating detective circuit | |
US6201422B1 (en) | State machine, semiconductor device and electronic equipment | |
KR0125149Y1 (en) | Joint circuit for hook-state detecting of full electronic telephone exchange | |
JPH07248843A (en) | Clock switching circuit | |
SU1603367A1 (en) | Element of sorting network | |
KR0175036B1 (en) | Display driving circuit of liquid crystal display device | |
KR200300385Y1 (en) | Synchronous Clock Monitor Circuit in Electronic Switching System | |
KR100397880B1 (en) | Digital circuit | |
KR970003644Y1 (en) | Apparatus protection off circuit | |
JP2661583B2 (en) | Clock signal distribution apparatus and method | |
KR100208715B1 (en) | Data read enable signal formation circuit |
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 | ||
LAPS | Lapse due to unpaid annual fee |