JP3435869B2 - Pulse width measuring device - Google Patents
Pulse width measuring deviceInfo
- Publication number
- JP3435869B2 JP3435869B2 JP02125395A JP2125395A JP3435869B2 JP 3435869 B2 JP3435869 B2 JP 3435869B2 JP 02125395 A JP02125395 A JP 02125395A JP 2125395 A JP2125395 A JP 2125395A JP 3435869 B2 JP3435869 B2 JP 3435869B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- input pulse
- pulse width
- input
- counter
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Landscapes
- Manipulation Of Pulses (AREA)
- Measuring Frequencies, Analyzing Spectra (AREA)
- Measurement Of Unknown Time Intervals (AREA)
Description
【発明の詳細な説明】
【0001】
【産業上の利用分野】本発明は、パルス幅変調信号を復
調する装置に関する。
【0002】
【従来の技術】従来、パルス幅測定装置は図3に示すよ
うになっている(特開平1−277768)。図におい
て、1はパルスの幅をカウントするカウンタ、2はカウ
ンタのカウント値を保持するレジスタ、3は入力パルス
のエッジを検出する回路である。今、幅変調入力パルス
(以下入力パルスとする)のハイ(以下Hとする)の状
態を有効とすると、カウンタ1は入力がHの間カウント
を行う。エッジ検出回路3は入力パルスの立下りエッジ
を検出し、カウンタ1をクリアする。レジスタ2にはカ
ウンタ1がクリアされる直前にカウント値がロードさ
れ、その出力は外部の回路(図示せず)によって必要に
応じて読み込まれる。
【0003】
【発明が解決しようとする課題】ところが、従来技術で
は、入力パルスエッジが検出できなければ、入力の状態
がレジスタの出力には反映されない。図4はこのような
状態を示したものであるが、入力パルスのデューティが
0%や100%以上になった場合、それらの状態はレジ
スタの出力には現れず、以前の値を保持したままにな
る。たとえ、入力パルスのデューティが0%や100%
でなくてもそれに非常に近い場合は、エッジ検出回路の
構成方法によってはエッジの検出に失敗する可能性があ
り、同様の結果となる。この問題は特に被測定系と測定
系の間で同期がとれない場合には顕著となる。そこで、
本発明は入力パルスのデューティが0%や100%以上
になっても、またエッジの検出ができなくても入力パル
スの状態に応じた近似した値が一定時間内にレジスタ上
から得られる手段を提供することを目的とする。
【0004】
【課題を解決するための手段】上記問題を解決するた
め、本発明は、入力パルスのパルス幅を測定するととも
に前記入力パルスの立下りエッジでクリアされ最大値に
なればカウントアップを停止するカウンタと、時限時間
が前記入力パルスのパルスサイクル時間と同じか少し大
きい値に設定されているとともに前記入力パルスの立上
りエッジまたは立下りエッジによって初期化され、前記
時限時間内に次のエッジが検出されないときはタイムア
ウト信号を出力する時限タイマと、前記カウンタのカウ
ント値を保持し、前記タイムアウト信号が発生したとき
に前記入力パルスがLであればクリアされ、Hであれば
プリセットされるレジスタとを設け、一定時間内に立上
がりまたは立下りエッジが検出されない場合は、入力の
2値信号に応じてレジスタをクリアあるいはプリセット
するようにしたのである。
【0005】
【作用】上記手段により、一定時間以上、入力がロー
(以下Lとする)であればデューティが0%とみなし、
また、一定時間以上、入力がHであればデューティが1
00%とみなすことになるので、入力パルスのデューテ
ィが0%や100%以上になっても、また、エッジの検
出ができなくても入力パルスの状態に応じた近似した値
が一定時間内にレジスタ上から得られる。
【0006】
【実施例】以下、本発明の実施例を図1、図2に基づい
て説明する。図1において1はパルスの幅をカウントす
るカウンタ、2はカウンタ1のカウント値を保持すると
ともに、クリア及びプリセット機能を備えたレジスタで
ある。3はエッジ検出回路で入力パルスの立上り及び立
下りエッジを検出する。4は時限タイマである。カウン
タ1は入力パルスAがHの間カウントアップし、立下り
エッジ信号Dによってクリアされる。また、オーバーフ
ローを防ぐために最大値でカウントアップを停止する。
カウント値Bはカウンタ1がクリアされる直前にレジス
タ2にロードされる。時限タイマ4の時限時間Lは入力
パルスのパルスサイクル時間Kと同じか少し大きい値に
設定される。5はオア回路である。時限タイマ4は時限
クリア信号Fによってクリアされ、時限時間以内に次の
エッジが検出されない場合はタイムアウト信号Gを発生
する。6、7はアンド回路である。レジスタ2はタイム
アウト信号Gが発生したときに入力パルスAがLであれ
ばクリアされ、Hであれば、プリセットされる。レジス
タ出力Cが外部回路によって必要に応じて読み出され
る。
【0007】
【発明の効果】以上述べたように、本発明によれば入力
パルスのデューティが0%や100%以上になっても、
また、エッジの検出ができなくても入力パルスの状態に
応じた近似した値が一定時間内にレジスタ上から得られ
るという効果がある。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for demodulating a pulse width modulated signal. 2. Description of the Related Art A conventional pulse width measuring apparatus is shown in FIG. 3 (Japanese Patent Laid-Open No. 1-277768). In the figure, 1 is a counter for counting the pulse width, 2 is a register for holding the count value of the counter, and 3 is a circuit for detecting an edge of the input pulse. Now, if the high (hereinafter, H) state of the width modulation input pulse (hereinafter, referred to as input pulse) is made valid, the counter 1 counts while the input is H. The edge detection circuit 3 detects the falling edge of the input pulse and clears the counter 1. The register 2 is loaded with a count value immediately before the counter 1 is cleared, and its output is read by an external circuit (not shown) as necessary. However, in the prior art, if the input pulse edge cannot be detected, the state of the input is not reflected on the output of the register. FIG. 4 shows such a state. However, when the duty of the input pulse becomes 0% or 100% or more, those states do not appear in the output of the register, and the previous value is retained. become. Even if the input pulse duty is 0% or 100%
However, if it is very close to this, the edge detection may fail depending on the configuration method of the edge detection circuit, and the same result is obtained. This problem becomes remarkable especially when synchronization is not established between the measured system and the measurement system. Therefore,
The present invention provides a means for obtaining an approximate value corresponding to the state of an input pulse from a register within a predetermined time even if the duty of the input pulse becomes 0% or 100% or more, and even if an edge cannot be detected. The purpose is to provide. [0004] In order to solve the above-mentioned problems, the present invention measures the pulse width of an input pulse.
Is cleared at the falling edge of the input pulse and reaches the maximum value.
Counter that stops counting up if possible and time limit
Is equal to or slightly larger than the pulse cycle time of the input pulse.
Threshold value and the rise of the input pulse
Initialized by a falling edge or a falling edge,
If the next edge is not detected within the time limit,
A timed timer for outputting an out signal, and a counter for the counter.
When the timeout signal is generated.
If the input pulse is L, it is cleared, and if it is H,
A preset register is provided, and if no rising or falling edge is detected within a predetermined time, the register is cleared or preset according to an input binary signal. According to the above means, if the input is low (hereinafter referred to as L) for a predetermined time or more, the duty is regarded as 0%,
If the input is H for a certain time or more, the duty is 1
Therefore, even if the duty of the input pulse becomes 0% or 100% or more, even if the edge cannot be detected, an approximate value corresponding to the state of the input pulse can be determined within a predetermined time. Obtained from a register. An embodiment of the present invention will be described below with reference to FIGS. 1 and 2. In FIG. 1, 1 is a counter for counting the pulse width, and 2 is a register holding the count value of the counter 1 and having a clear and preset function. Reference numeral 3 denotes an edge detection circuit for detecting the rising and falling edges of the input pulse. 4 is a timed timer. The counter 1 counts up while the input pulse A is at H, and is cleared by the falling edge signal D. Also, counting up is stopped at the maximum value to prevent overflow.
The count value B is loaded into the register 2 immediately before the counter 1 is cleared. The time limit L of the time timer 4 is set to a value equal to or slightly larger than the pulse cycle time K of the input pulse. 5 is an OR circuit. The timed timer 4 is cleared by the timed clear signal F, and generates a timeout signal G if the next edge is not detected within the timed time. Reference numerals 6 and 7 are AND circuits. The register 2 is cleared when the input pulse A is L when the timeout signal G is generated, and is preset when it is H. The register output C is read as required by an external circuit. As described above, according to the present invention, even if the duty of the input pulse becomes 0% or 100% or more,
In addition, even if the edge cannot be detected, an approximate value corresponding to the state of the input pulse can be obtained from the register within a predetermined time.
【図面の簡単な説明】
【図1】本発明の実施例を示すブロック図
【図2】本発明の実施例の入力パルスと回路各部の信号
を表す図
【図3】従来のパルス幅測定装置を示すブロック図
【図4】従来のパルス幅測定装置の入力パルスと回路各
部の信号を表す図
【符号の説明】
1 カウンタ
2 レジスタ
3 エッジ検出回路
4 時限タイマ
5 オア回路
6、7 アンド回路BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a diagram showing an input pulse and a signal of each circuit in the embodiment of the present invention. FIG. 3 is a conventional pulse width measuring apparatus. FIG. 4 shows an input pulse of a conventional pulse width measuring device and a signal of each part of the circuit. [Description of References] 1 Counter 2 Register 3 Edge detection circuit 4 Timed timer 5 OR circuit 6, 7 AND circuit
Claims (1)
装置において、入力パルス のパルス幅を測定するとともに前記入力パル
スの立下りエッジでクリアされ最大値になればカウント
アップを停止するカウンタと、時限時間が前記入力パルスのパルスサイクル時間と同じ
か少し大きい値に設定されているとともに前記入力パル
スの立上りエッジまたは立下りエッジによって初期化さ
れ、前記時限時間内に次のエッジが検出されないときは
タイムアウト信号を出力する 時限タイマと、 前記カウンタのカウント値を保持し、前記タイムアウト
信号が発生したときに前記入力パルスがLであればクリ
アされ、Hであればプリセットされるレジスタとを備え
たことを特徴とするパルス幅測定装置。(57) In the pulse width measuring unit for demodulating the Patent Claims 1. A pulse width modulated signal, said input pulse with measuring the pulse width of the input pulse
Counted when the signal is cleared at the falling edge of
A counter that stops the up and timed time is the same as the pulse cycle time of the input pulse
Is set to a slightly larger value and the input
Initialized by the rising or falling edge of
When the next edge is not detected within the time limit,
A timed timer for outputting a time-out signal, and holds the count value of the counter, the time-out
If the input pulse is L when a signal is generated,
A pulse width measuring device comprising: a register which is preset when H is set .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02125395A JP3435869B2 (en) | 1995-01-13 | 1995-01-13 | Pulse width measuring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02125395A JP3435869B2 (en) | 1995-01-13 | 1995-01-13 | Pulse width measuring device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH08194028A JPH08194028A (en) | 1996-07-30 |
JP3435869B2 true JP3435869B2 (en) | 2003-08-11 |
Family
ID=12049927
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP02125395A Expired - Fee Related JP3435869B2 (en) | 1995-01-13 | 1995-01-13 | Pulse width measuring device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3435869B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113311249B (en) * | 2021-05-12 | 2022-02-01 | 武汉大学 | Signal time interval and pulse width multiplexing measurement method |
-
1995
- 1995-01-13 JP JP02125395A patent/JP3435869B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH08194028A (en) | 1996-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5598116A (en) | Apparatus for measuring a pulse duration | |
JP3435869B2 (en) | Pulse width measuring device | |
JP2000258537A (en) | Signal detecting device | |
JPH073440B2 (en) | Signal detector | |
EP0100961A1 (en) | Demodulation with error detecting capability | |
EP0573295A3 (en) | Level detection circuit and automatic color control circuit | |
KR860002196A (en) | Burst Gate Generator | |
JP3223884B2 (en) | Duty ratio determination circuit and duty ratio determination method | |
JPH01179545A (en) | Method and equipment for sending pulse train signal | |
JP2580756B2 (en) | Noise removal circuit for laser scanning light detection signal | |
KR200207963Y1 (en) | Apparatus for Output Processing in Microprocessor | |
JP2641066B2 (en) | Counter device | |
KR100301981B1 (en) | Method of and device for determining pulse width | |
KR20000020851A (en) | Device for detecting signal in data communication | |
JPH0210915A (en) | Polarity unification circuit for pulse signal | |
KR0136350B1 (en) | Demodulation apparatus of frequency detection | |
JP2911130B2 (en) | Phase difference detector | |
JPH0121436Y2 (en) | ||
KR950035472A (en) | Color image signal detection device and color image signal detection method | |
JPS598211Y2 (en) | noise detection circuit | |
JP2001237681A (en) | Input interruption detector | |
JPH04307372A (en) | Edge detection circuit device | |
JPS5637815A (en) | Demodulator for pulse-width-modulated signal | |
JP2609888B2 (en) | Signal transmission system and its equipment | |
JP2731570B2 (en) | Ringer voltage detection circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080606 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090606 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |