KR960030597A - Pulse width measurement method and apparatus - Google Patents

Pulse width measurement method and apparatus Download PDF

Info

Publication number
KR960030597A
KR960030597A KR1019960000242A KR19960000242A KR960030597A KR 960030597 A KR960030597 A KR 960030597A KR 1019960000242 A KR1019960000242 A KR 1019960000242A KR 19960000242 A KR19960000242 A KR 19960000242A KR 960030597 A KR960030597 A KR 960030597A
Authority
KR
South Korea
Prior art keywords
pulse
input
pulse width
peripheral interface
serial peripheral
Prior art date
Application number
KR1019960000242A
Other languages
Korean (ko)
Other versions
KR100207926B1 (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 가다오까 마사다까
Publication of KR960030597A publication Critical patent/KR960030597A/en
Application granted granted Critical
Publication of KR100207926B1 publication Critical patent/KR100207926B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/19Monitoring patterns of pulse trains
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R29/00Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
    • G01R29/02Measuring characteristics of individual pulses, e.g. deviation from pulse flatness, rise time or duration

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Information Transfer Systems (AREA)
  • Measurement Of Unknown Time Intervals (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

본 발명은 MCU내의 타이머카운터를 전유하는 일 없이, 또 MCU가 다른 처리를 행할 수 있게 MCU를 사용하여 펄스폭의 계측을 행한다.The present invention measures the pulse width using the MCU so that the MCU can perform other processing without appropriating the timer counter in the MCU.

MCU는 8비트의 SPI(1)와, 시프트클록 발생회로(2)와, 인터럽트 처리부(3)와, 도시하지 않은 수신카운터를 구비하여 구성되어 있다. 입력펄스는 SPI(1)와 인터럽트 처리부(3)에 입력된다. SPI(1)는, 외부 인터럽트의 발생을 계기로 시프트를록 발생회로(2)로부터의 시프트펄스에 의하여 입력펄스를 샘플링하여 입력퍼스의 수신을 행하고, 8회의 샘플링 후, 도시하지 않은 수신카운터를 +로 함과 동시에, 다시 원래대로 되돌아가 입력퍼스의 수신을 계속한다. 펄스의 수신 종료 후, 수신카운터의 값과, 펄스의 수신종료시의 SPI의 비트치와 시프트 펄스 주기에 의하여 펄스폭이 연산된다.The MCU comprises an 8-bit SPI (1), a shift clock generation circuit 2, an interruption processing section 3, and a reception counter (not shown). The input pulse is input to the SPI (1) and the interrupt processing section (3). The SPI 1 samples the input pulse by the shift pulse from the lock generation circuit 2 to receive the input pulse after the occurrence of the external interrupt. After sampling 8 times, the SPI (1) +, And returns to the original state again to continue reception of the input Perth. After the reception of the pulse, the pulse width is calculated by the value of the reception counter, the bit value of the SPI at the end of reception of the pulse, and the shift pulse period.

Description

펄스폭 계측방법 및 그 장치Pulse width measurement method and apparatus

본 내용은 요부공개 건이므로 전문내용을 수록하지 않았음Since this is a trivial issue, I did not include the contents of the text.

제1도는 본 발명의 일 실시예에 의한 펄스폭 계측장치의 구성을 나타내는 블록도이고, 제2도는 제1도의 동작을 설명하는 플로우챠트이다.FIG. 1 is a block diagram showing a configuration of a pulse width measuring apparatus according to an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of FIG.

Claims (6)

통신용의 시리얼페리페럴인터페이스를 구비하는 마이크로콘트롤 유닛을 사용하는 펄스폭 계측방법으로, 상기 마아크로콘트로유닛에 설치된 CPU의 인터럽트수단과 상기 시리얼페리펠러인터페이스를 병렬로 접속하고, 이것에 펄스폭을 계측해아 할 펄스를 입력하고, 이 펄스의 계측 개시를 상기 인터럽트수단에 의하여 식별하고, 상기 시리얼페리페럴인터페이스는, 입력한 상기 펄스를 기준클록에 의하여 샘플링하면서 수신함으로써 입력펄스의 펄스폭을 계측하는 것을 특징으로 하는 펄스폭 계측방법.A pulse width measuring method using a microcontrol unit having a serial peripheral ferrite interface for communication, comprising the steps of: connecting an interrupt means of a CPU provided in the microcontroller unit and the serial ferrier pellet interface in parallel; And the serial peripheral interface measures the pulse width of the input pulse by sampling the input pulse with the reference clock and receiving the pulsed signal by sampling it with the reference clock Wherein the pulse width measuring method comprises the steps of: 제1항에 있어서, 상기 시리얼페리페럴인터페이스는, 적어도 8개의 기준클록에 의한 입력펄스의 샘플링에 의하여 초기상태로 되돌아와 입력펄스의 수신을 계속하고, 입력펄스의 종료시에 인터럽트를 발생하고, 상기 시리얼페리페럴인터페이스의 동작을 정지시키는 것을 특징으로 하는 펄스폭 계측방법.The serial peripheral interface of claim 1, wherein the serial peripheral interface returns to an initial state by sampling input pulses with at least eight reference clocks, continues receiving input pulses, generates an interrupt upon termination of an input pulse, And terminating the operation of the serial peripheral interface. 제1항 또는 제2항에 있어서, 상기 기준클록은, CPU클록을 분주하여 생성되고, 그 분주비의 변경에 의하여 계측하는 펄스폭의 분해능을 변경시키는 것을 특징으로 하는 펄스폭 계측방법.The pulse width measuring method according to claim 1 or 2, wherein the reference clock is generated by dividing the CPU clock, and the resolution of the pulse width measured by changing the division ratio is changed. 통신용의 시리얼페리페럴인터페이스를 구비하는 마이크로콘트롤 유닛을 사용하는 펄스폭 계측장치로, 펄스폭을 계측해야할 펄스를 입력하는 펄스입력부와, 상기 시리얼페리페럴인터페이스와 병렬로 접속하며, 상기 마이크로콘트롤유닛의 CPU에 인터럽트처리를 행하는 인터립트 수단과, 상기 인터럽트수단내에 설치되고, 상기 펄스입력으로부터 입력되는 펄스의 계측개시신호를 식별하는 식별수단과, 기준 클록을 발생하는 시프트클록회로를 구비하고, 상기 시피얼페리페럴인터페이스는, 상기 펄스입력으로부터 입력하는 입력펄스를 기준클록에 의하여 샘플링하여 수신하기 위한 수신수단을 가지며 이루어지는 것을 특징으로 하는 펄스폭 계측장치.A pulse width measuring apparatus using a microcontrol unit having a serial peripheral interface for communication, comprising: a pulse input unit for inputting a pulse to be measured for pulse width; and a control unit connected in parallel with the serial peripheral interface, And a shift clock circuit which is provided in the interrupt means and identifies a measurement start signal of a pulse input from the pulse input and generates a reference clock, Wherein the peripheral peripheral interface has reception means for sampling and receiving an input pulse input from the pulse input by a reference clock. 제4항에 있어서, 상기 시리얼페리페럴인터페이스는, 적어도 8개의 기준클록에 의한 입력펄스의 샘플링하는 수단과, 상기 기준클록에 따라 입력펄스의 종료시에 동작을 정지하는 동작정지수단을 가지며 이루어지는 것을 특징으로 하는 펄스폭 계측장치.5. The serial peripheral interface according to claim 4, wherein said serial peripheral interface comprises means for sampling input pulses by at least eight reference clocks and means for stopping operation at the end of input pulses in accordance with said reference clock The pulse width measuring apparatus comprising: 제4항에 있어서, 상기 시프트클록 발생회로는, CPU클록의 분주비의 변경에 의하여 계측하는 펄스폭의 분해능을 변경하여 기준클록을 발생시키는 것을 특징으로 하는 펄스폭 계측장치.The pulse width measuring apparatus according to claim 4, wherein the shift clock generating circuit generates a reference clock by changing a resolution of the pulse width measured by changing the frequency division ratio of the CPU clock. ※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: It is disclosed by the contents of the first application.
KR1019960000242A 1995-01-10 1996-01-09 Pulse width measuring method and its apparatus KR100207926B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP95-1954 1995-01-10
JP7001954A JPH08189942A (en) 1995-01-10 1995-01-10 Pulse width measuring instrument

Publications (2)

Publication Number Publication Date
KR960030597A true KR960030597A (en) 1996-08-17
KR100207926B1 KR100207926B1 (en) 1999-07-15

Family

ID=11515998

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960000242A KR100207926B1 (en) 1995-01-10 1996-01-09 Pulse width measuring method and its apparatus

Country Status (3)

Country Link
JP (1) JPH08189942A (en)
KR (1) KR100207926B1 (en)
DE (1) DE19600569A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004039219B3 (en) * 2004-08-12 2006-02-09 Infineon Technologies Ag Timing adjustment circuit for interface, has microcontroller connected to an integrated circuit through series peripheral interface with both having a clock generator and with a calibration unit
JP5666813B2 (en) * 2010-03-15 2015-02-12 株式会社テセック Time width measuring device
CN108132896B (en) * 2018-01-17 2020-06-09 西安闻泰电子科技有限公司 Data transmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3340455A1 (en) * 1983-11-09 1985-05-15 Robert Bosch Gmbh, 7000 Stuttgart Circuit arrangement for counting pulse lengths
KR950007267B1 (en) * 1990-10-16 1995-07-07 삼성전자주식회사 Circuit for measuring a pulse width of remote control signal

Also Published As

Publication number Publication date
DE19600569A1 (en) 1996-07-18
JPH08189942A (en) 1996-07-23
KR100207926B1 (en) 1999-07-15

Similar Documents

Publication Publication Date Title
KR960030597A (en) Pulse width measurement method and apparatus
JPS5622134A (en) Asynchronous system serial data receiving device
RU2019033C1 (en) Binary-to-binary-decimal code converter
RU2090971C1 (en) Device for discriminating first pulse out of pulse train
DE50202051D1 (en) DEVICE FOR FREQUENCY MEASUREMENT
RU2117387C1 (en) Delay line
SU1368957A1 (en) Device for shaping pulse sequences
SU1241468A2 (en) Pulse repetition frequency divider with controlled pulse duration
SU706818A1 (en) Time interval meter
SU1170419A1 (en) Device for synchronizing timepiece
SU1153326A1 (en) Multiplying device
KR0182956B1 (en) Wait function implementation apparatus of microprocess using clock signal
SU1034184A1 (en) Device for selecting channel
SU993460A1 (en) Scaling device
JPS5465582A (en) Judgement circuit of chattering time
SU1746533A1 (en) Time interval to digital code converter
SU1695507A1 (en) Converter of code to time interval
KR970066859A (en) Noise Canceling Device of PIEC Interrupt Module
SU1211863A1 (en) Device for selecting and synchronizing signals
SU1621154A1 (en) Clocking device
SU1653144A1 (en) Pulse driver
SU1437973A1 (en) Generator of pseudorandom sequences
SU633152A1 (en) Synchronizing arrangement
SU690405A2 (en) Digital percent frequency meter
SU1693722A1 (en) Driver of codes

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

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee