KR900004174B1 - Pulse width measuring circuit by controlling micro-process - Google Patents

Pulse width measuring circuit by controlling micro-process Download PDF

Info

Publication number
KR900004174B1
KR900004174B1 KR1019870015626A KR870015626A KR900004174B1 KR 900004174 B1 KR900004174 B1 KR 900004174B1 KR 1019870015626 A KR1019870015626 A KR 1019870015626A KR 870015626 A KR870015626 A KR 870015626A KR 900004174 B1 KR900004174 B1 KR 900004174B1
Authority
KR
South Korea
Prior art keywords
counters
pulse width
pulse
control
test input
Prior art date
Application number
KR1019870015626A
Other languages
Korean (ko)
Other versions
KR890010571A (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 KR1019870015626A priority Critical patent/KR900004174B1/en
Publication of KR890010571A publication Critical patent/KR890010571A/en
Application granted granted Critical
Publication of KR900004174B1 publication Critical patent/KR900004174B1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The counters (16,17) are set with certain numbers provided from the data bus through latches (14,15). The flip-flops (18,19) connected to the output of the counters provide outputs (Q1,Q2) as the range of the test input pulse through buffers. The certain number entered to the counters is increased and decreased recursively to find out the optimal value of the pulse width while the test input pulses are entered.

Description

마이크로 프로세서 제어에 의한 펄스폭 측정장치Pulse width measuring device by microprocessor control

제 1 도는 본 발명 회로도.1 is a circuit diagram of the present invention.

제 2 도는 본 발명 플로우챠트.2 is a flowchart of the present invention.

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

10 : 중앙처리장치 11 : 디코더10: central processing unit 11: decoder

12 : 롬 13 : 램12: Romans 13: Ram

14,15 : 래치 16,17 : 카운터14,15: latch 16,17: counter

18,19 : 플립플롭 20 : 버퍼18,19: flip-flop 20: buffer

21 : 표시구동부 22 : 표시부21: display drive portion 22: display portion

본 발명은 프로그램 제어에 의해 입력되는 신호의 펄스폭을 체크할 수 있는 장치에 관한 것이다.The present invention relates to an apparatus capable of checking the pulse width of a signal input by program control.

일반적으로 어떤 신호의 펄스폭을 체크하기 위해서는 오실로스코프 또는 로직 애널라이저(Logic Analyzer)등의 장비를 사용하고 있다.Typically, an oscilloscope or logic analyzer is used to check the pulse width of a signal.

그러나 상기한 장비들은 부피가 크고 가격이 고가이므로 상기한 장비를 구비하지 못하였을 때 펄스폭을 손쉽게 측정할 수 있는 방법이 없었다.However, since the equipment is bulky and expensive, there is no easy way to measure the pulse width when the equipment is not provided.

본 발명은 상기한 문제점을 해결하기 위하여 인출한 것으로서, 오실로스코프 또는 로직애널라이저와 같이 펄스폭을 측정할 수 있는 장치를 제공하는 것을 그 목적으로 한다.The present invention has been drawn to solve the above problems, and an object thereof is to provide an apparatus capable of measuring a pulse width, such as an oscilloscope or a logic analyzer.

상기한 목적을 달성하기 위하여 본 발명에서는 마이크로 프로세서와 래치와 카운터 및 논리소자를 이용하여 회로를 구성하고 입력되는 펄스의 신호폭을 마이크로 프로세서의 프로그램 제어하에서 측정하도록 하고 있다.In order to achieve the above object, the present invention configures a circuit using a microprocessor, a latch, a counter, and a logic element, and measures the signal width of an input pulse under program control of the microprocessor.

이하 첨부된 도면에 의하여 본 발명을 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제 1 도는 본 발명회로도로서 중앙처리장치(10)의 테이타 버스와 어드레스 버스를 통하여 각각 롬(12)과 램(13)이 연결되고, 디코더(11)는 중앙처리장치(10)의 어드레스 버스로부터 디코딩된 출력을 롬(12)과 램(13)의 칠셀렉트 신호(

Figure kpo00001
)와 대치(14,15)의 로드신호(
Figure kpo00002
)와 버퍼(20)의 출력 인에이블신호(
Figure kpo00003
)로서 인가하고, 상기 각 래치(14,15)와 버퍼(20)는 각각 카운터(16,17)와 플립플롭(18,19)을 통하여 연결된다.1 is a circuit diagram of the present invention, in which a ROM 12 and a RAM 13 are connected to each other via a data bus and an address bus of a central processing unit 10, and the decoder 11 is connected to an address bus of the central processing unit 10. The decoded output is transmitted to the chill select signal of the ROM 12 and the RAM 13.
Figure kpo00001
) And load signals (14, 15)
Figure kpo00002
) And the output enable signal of the buffer 20 (
Figure kpo00003
), And each of the latches 14 and 15 and the buffer 20 are connected via the counters 16 and 17 and the flip-flops 18 and 19, respectively.

또한 카운터(16,17)의 로드단자(LD)와 플립플롭(18,19)의 클럭단자에는 테스트펄스가 반전되어 인가되고, 중앙처리창치(10)의 인터럽트(

Figure kpo00004
)단자와 플립플롭(18,19)의 클리어단자(
Figure kpo00005
)에는 테스트펄스 상승에서 검출 펄스가 반전되어 인가되며, 카운터(16,17)의 클럭단자에는 별도의 클럭펄스가 인가된다.In addition, test pulses are inverted and applied to the load terminals LD of the counters 16 and 17 and the clock terminals of the flip-flops 18 and 19, and the interrupt of the central processing window 10
Figure kpo00004
Terminals and Clear Terminals for Flip-Flops (18, 19)
Figure kpo00005
), The detection pulse is inverted and applied when the test pulse rises, and a separate clock pulse is applied to the clock terminals of the counters 16 and 17.

상기한 구성을 갖는 본 발명 회로의 동작을 설명하면 다음과 같다.The operation of the circuit of the present invention having the above configuration will be described below.

중앙처리장치(10)의 제어에 의하여 래치(14)에는 "1"을 래치(15)에 "FF"를 세트한다. 테스트펄스 입력단자에 펄스가 없으면 카운터(16,17)의 로드단자(LD)에 하이레벨 신호가 인가되므로 각 카운터(16,17)의 값은 전단의 각 래치(14,15)의 값과 같아진다.Under the control of the central processing unit 10, " 1 " is set in the latch 14 and " FF " If there is no pulse at the test pulse input terminal, the high level signal is applied to the load terminal LD of the counters 16 and 17. Therefore, the values of the counters 16 and 17 are equal to the values of the latches 14 and 15 at the front end. Lose.

테스트 입력펄스가 하이레벨이 되면 플립플롭(18,19)의 클리어단자(

Figure kpo00006
)에는 로우레벨신호가 인가되어 출력단자(Q1, Q2)신호는 모두 로우레벨이 된다.When the test input pulse becomes high level, the clear terminal of the flip-flop (18, 19) (
Figure kpo00006
) Is applied to the low level signal so that the output terminals Q 1 and Q 2 are all at the low level.

동시에 카운터(16, 17)의 로드단자(LD)에는 로우레벨이 입력되어져 고속으로 인가되는 클럭에 의해 카운터(16,17)는 각각 계속 카운트 다운을 수행하여 설정된 카운트 값이 0이 되면 출력단자(O1또는 O2)가 하이레벨이 된다.At the same time, the low level is input to the load terminals LD of the counters 16 and 17 and the counters 16 and 17 continue to count down by the clock applied at high speed. O 1 or O 2 ) becomes the high level.

중앙처리장치(10)는 테스트 입력펄스가 로우레벨이 되기를 기다리며 테스트 입력펄스가 로우레벨이 될 때 플립플롭(18, 19)에는 그때까지의 카운트된 결과로서 카운터(16,17)의 출력값이 인가된다.The CPU 10 waits for the test input pulse to be at the low level, and when the test input pulse is at the low level, the output values of the counters 16 and 17 are applied to the flip-flops 18 and 19 as counted results. do.

이때 입력되는 신호에 따르는 플립플롭(18,19)의 출력신호는 다음과 같이 나타날 수 있다.In this case, the output signal of the flip-flops 18 and 19 according to the input signal may be represented as follows.

[표 1]TABLE 1

Figure kpo00007
Figure kpo00007

즉 상기(표 1)에서와 같이 출력(Q1,Q2)이 모두 로우레벨이면 펄스가 클럭보다 작은 것으로 검지한계이하이므로 표시부(22)를 통하여 테스트 입력펄스가 너주작음을 표시하여 주고, 출력(Q1,Q2)이 모두 하이레벨이면 펄스가 너무 크므로 감지할 수 없음을 표시부(22)를 통하여 표시하여 준다.That is, as shown in (Table 1), if the outputs Q 1 and Q 2 are all at the low level, since the pulse is less than the detection limit as the clock, the display unit 22 indicates that the test input pulse is too small. If both (Q 1 , Q 2 ) are at the high level, the display unit 22 indicates that the pulse is too large to be detected.

상기한 두가지 경우, 즉 펄스가 너무 작거나 너무 클 때에는 카운터(16,17)로 입력되는 클럭펄스를 조정하면 테스트 입력펄스를 측정할 수 있게 된다.In both cases, that is, when the pulse is too small or too large, the test input pulse can be measured by adjusting the clock pulse input to the counters 16 and 17.

한편 상기(표 1)에서 출력(Q1)은 하이레벨이고 출력(Q2)은 로우레벨이면 테스트 입력펼스의 값은 래치(14)와 래치(15)의 값 사이에 있으므로 래치(14)의 값을 증가시키거나 래치(15)의 값을 감소시켜 반복하여 래치(14)와 래치(15)의 값의 차이가 1로 좁혀질 때까지 계속하면 그때의 래치(14) 또는 래치(l5)의 값에서실제 입력된 테스트 입력펄스의 폭과 1클럭 만큼의 오차 이내로 계산할 수 있다.On the other hand, in Table 1, if the output Q 1 is high level and the output Q 2 is low level, the value of the test input pulls is between the latch 14 and the latch 15 values. Increasing the value or decreasing the value of the latch 15 and repeating until the difference between the value of the latch 14 and the latch 15 is narrowed to 1, the value of the latch 14 or the latch l5 at that time The value can be calculated within the width of the actual input test input pulse and an error of one clock.

제 2 도는 본 발명의 플로우챠트로서 이를 참조하여 본 발명의 펄스폭 측정 방법을 설명하면 다음과 같다.2 is a flow chart of the present invention with reference to this description of the pulse width measurement method of the present invention as follows.

먼저 펄스폭을 체크하기전에 래치(14)와 래치(15)에 각각 "1"과 "FF"를 기억시키고 측정하기 위한 테스트 펄스가 입력되면 버퍼(20)값을 읽는다.First, before checking the pulse width, when the test pulses for storing and measuring "1" and "FF" are input to the latch 14 and the latch 15, respectively, the buffer 20 value is read.

그 다음 플립플롭(18,19)의 출력 신호로서 펄스폭의 존재범위를 인식하여 펄스폭이 상기한 래치(14)와 래치(15)의 설정값 이외에 존재하도록 래치(14)를 증가시키거나 래치(15)를 감소시키며 다시 테스트 펄스를 입력하여 펄스폭의 범위를 확인하는 상기 동작을 반복하여 래치(14)와 래치(15) 사이에 테스트 펄스가 존재하도록 하여 펄스값을 측정하고 표시부를 통하여 나타내도록 한다.Then, as the output signal of the flip-flops 18 and 19, the presence range of the pulse width is recognized, and the latch 14 is increased or latched so that the pulse width exists outside the set values of the latch 14 and the latch 15 described above. (15) is reduced and the test pulse is again inputted to check the range of the pulse width so that a test pulse exists between the latch 14 and the latch 15 so that the pulse value is measured and displayed through the display unit. To do that.

상기한 바와같은 본 발명의 효과로서는 펄스폭을 측정하는 전용장비를 사용하지 않고 간단히 펄스폭을 측정할 수 있는 편리함을 제공할 수 있는 점이다.An effect of the present invention as described above is that it is possible to provide a convenience that can simply measure the pulse width without using a dedicated device for measuring the pulse width.

Claims (2)

테이타를 기억시키기 위한 롬(12)과 램(13), 각 소자 제어신호를 발생하기 위한 디코더(11), 테이타의 시각적 출력을 위한 표시구동부(21) 및 표시부(22), 전 시스템의 제어를 위한 중앙처리장치(10)를 구비하여 이루어지는 마이크로 프로세서에 의한 제어시스템에 있어서, 테이타 버스로부터 래치(14,15)를 통하여 카운터(16,17)로 각각 일정한 수치를 세팅시키고 상기 카운터(16,17)의 출력을 플립플롭(18,19)으로 각각 연결하여 테스트 입력펄스 동안 카운터(16,17)를 동작시켜 플립플롭(18,19)의 출력신호(Q1,Q2)로서 테스트 입력펄스의 범위를 버퍼를 통하여 출력하도록 구성하는 것을 특징으로 하는 마이크로 프로세서 제어에 의한 펄스폭 측정장치.ROM 12 and RAM 13 for storing data, decoder 11 for generating element control signals, display driver 21 and display 22 for visual output of the data, and control of the entire system. In a control system by a microprocessor comprising a central processing unit (10), a constant value is set from the data bus to the counters (16, 17) via the latches (14, 15), respectively, and the counters (16, 17) The outputs of the test input pulses as the output signals Q 1 and Q 2 of the flip flops 18 and 19 by operating the counters 16 and 17 during the test input pulses by connecting the outputs of the Pulse width measurement apparatus by a microprocessor control, characterized in that configured to output the range through the buffer. 제 1 항에 있어서, 상기 래치(14,15)를 통하여 카운터(16,17)로 입력되는 일정한 수치를 증감시켜 테스트 입력펄스 동안 펄스측정 동작을 반복하여 수행함으로서 최근접 펄스폭의 값을 찾아내도록 제어하는 것을 특징으로 하는 마이크로 프로세서 제어에 의한 펄스폭 측정장치.2. The method of claim 1, wherein the predetermined value inputted to the counters 16 and 17 through the latches 14 and 15 is increased to find the value of the nearest pulse width by repeating the pulse measuring operation during the test input pulse. Pulse width measurement apparatus by a microprocessor control, characterized in that the control.
KR1019870015626A 1987-12-31 1987-12-31 Pulse width measuring circuit by controlling micro-process KR900004174B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019870015626A KR900004174B1 (en) 1987-12-31 1987-12-31 Pulse width measuring circuit by controlling micro-process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019870015626A KR900004174B1 (en) 1987-12-31 1987-12-31 Pulse width measuring circuit by controlling micro-process

Publications (2)

Publication Number Publication Date
KR890010571A KR890010571A (en) 1989-08-09
KR900004174B1 true KR900004174B1 (en) 1990-06-18

Family

ID=19267883

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019870015626A KR900004174B1 (en) 1987-12-31 1987-12-31 Pulse width measuring circuit by controlling micro-process

Country Status (1)

Country Link
KR (1) KR900004174B1 (en)

Also Published As

Publication number Publication date
KR890010571A (en) 1989-08-09

Similar Documents

Publication Publication Date Title
US4027146A (en) High speed accurate low frequency counter
JPH04320982A (en) Semiconductor electronic circuit
HU189723B (en) Logic measuring instrument
KR900004174B1 (en) Pulse width measuring circuit by controlling micro-process
US4063309A (en) Mean corpuscular volume measuring apparatus and method
US4493565A (en) Combined thermometer and calculator
US5357490A (en) Measuring timer system
US4167038A (en) Calculated parameter generation in a hematology parameter measurement apparatus
US4460967A (en) Electronic circuit for measuring and displaying ion concentration in fluid
US4799023A (en) Circuits and apparatus which enable elimination of setup time and hold time testing errors
KR100192775B1 (en) Apparatus for checking a clock
RU2054681C1 (en) Pulse repetition frequency meter
KR100234197B1 (en) Input circuit of detection signal of laser distance measuring apparatus
KR0122855B1 (en) High impedance test circuit
US5511047A (en) High resolution timer using low resolution counter
KR940009290B1 (en) Electrical signal's rising-time and falling-time measuring apparatus
KR910006702Y1 (en) Apparatus for measuring stability of clock pulses by using first-in-first-out register
JPH0460468A (en) Pulse position measuring type instrument drive circuit
KR890004183B1 (en) Measurement device of decorder
KR920005922B1 (en) Dial pulse measuring circuit
JPH0535889A (en) Microprocessor circuit
KR940011751B1 (en) Es detective circuit of transmitting system
CA1114063A (en) Calculated parameter generation in a hematology parameter measurement apparatus
KR940009815B1 (en) Frequency detecting apparatus and method using directport of microcomputer
SU462978A1 (en) Magnetic tape monitor

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19980522

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee