JPH0755856A - Cycle measuring apparatus - Google Patents

Cycle measuring apparatus

Info

Publication number
JPH0755856A
JPH0755856A JP5207791A JP20779193A JPH0755856A JP H0755856 A JPH0755856 A JP H0755856A JP 5207791 A JP5207791 A JP 5207791A JP 20779193 A JP20779193 A JP 20779193A JP H0755856 A JPH0755856 A JP H0755856A
Authority
JP
Japan
Prior art keywords
signal
period
cycle
synchronizing signal
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.)
Pending
Application number
JP5207791A
Other languages
Japanese (ja)
Inventor
Makoto Hatanaka
真 畠中
Haruo Sakurai
治夫 櫻井
Hideo Nagano
英生 長野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5207791A priority Critical patent/JPH0755856A/en
Priority to US08/291,285 priority patent/US5487097A/en
Priority to TW083107490A priority patent/TW241432B/en
Priority to KR94020690A priority patent/KR0133996B1/en
Publication of JPH0755856A publication Critical patent/JPH0755856A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/005Circuits for comparing several input signals and for indicating the result of this comparison, e.g. equal, different, greater, smaller (comparing phase or frequency of 2 mutually independent oscillations in demodulators)
    • 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
    • G01R23/10Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage by converting frequency into a train of pulses, which are then counted, i.e. converting the signal into a square wave

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronizing For Television (AREA)
  • Measurement Of Unknown Time Intervals (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Image Analysis (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

PURPOSE:To measure the cycle of a horizontal synchronizing signal at a small error and with good accuracy even when it is long by a method wherein the number of times in which a third signal has been activated is measured during a prescribed measuring period prescribed by a first signal. CONSTITUTION:The number of internal pulses IP during a prescribed measuring period tM prescribed by a horizontal synchronizing signal HS is measured. Cycles of the signal HS and the pulses IP are designated respectively as TH and TS, and the period tM is set as one cycle of a frequency-dividing signal NS obtained by frequency-dividing the signal HS into N. When the pulses IP are activated K times within the period tM, the cycle TH of the signal HS is found. In this case, a certain error epsilon is caused. After the start of the period tM and during the Kth activation and the (K+1)th activation of the pulses IP, the signal NS is transferred, and the period tM is finishes. Thereby, TS.K<tM<TS.(K+1) is established. However, since tM=TH.N, the error epsilon does not depend on the number of times K in which the pulses IP are activated during the period tM.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は周期的に活性化する信
号の周期を測定する装置に関し、特に映像信号、画像信
号における水平同期信号の周期を測定する装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for measuring the cycle of a signal which is periodically activated, and more particularly to an apparatus for measuring the cycle of a horizontal synchronizing signal in a video signal and an image signal.

【0002】[0002]

【従来の技術】コンピュータのディスプレイモニタに
は、従来から複数のコンピュータからの映像信号に基づ
いた表示を行う、マルチスキャンタイプのものがあっ
た。ここで映像信号における水平同期信号、垂直同期信
号の周期は、複数のコンピュータ間において同一である
とは限らない。このため、ディスプレイモニタ内部の設
定を各コンピュータの映像信号に対応して変更する必要
があった。具体的には、水平同期信号の周期を測定し
て、この周期に対応した設定を行う必要があった。
2. Description of the Related Art Conventionally, as a display monitor of a computer, there has been a multi-scan type monitor which performs display based on video signals from a plurality of computers. Here, the periods of the horizontal synchronizing signal and the vertical synchronizing signal in the video signal are not always the same among a plurality of computers. Therefore, it is necessary to change the setting inside the display monitor in accordance with the video signal of each computer. Specifically, it was necessary to measure the cycle of the horizontal synchronizing signal and make settings corresponding to this cycle.

【0003】この水平同期信号は、垂直帰線消去時間に
おいて、特に垂直同期期間中に欠落する様に構成されて
いる場合がある。このような場合においても水平同期信
号の周期が測定される必要がある。
This horizontal sync signal may be configured to be lost during the vertical blanking time, especially during the vertical sync period. Even in such a case, the period of the horizontal synchronizing signal needs to be measured.

【0004】図22は、従来の周期測定装置200の構
成を示すブロック図であり、図23はその動作を示すタ
イミングチャートである。周期測定装置200は垂直同
期期間中に欠落する様に構成される水平同期信号の周期
を測定することができる。
FIG. 22 is a block diagram showing the structure of a conventional period measuring apparatus 200, and FIG. 23 is a timing chart showing its operation. The cycle measuring device 200 can measure the cycle of the horizontal sync signal that is configured to be missing during the vertical sync period.

【0005】水平同期信号HS及び垂直同期信号VSが
マイクロコンピュータ1に与えられる。そして、マイク
ロコンピュータ1は、内部パルスIPを発生する内部パ
ルス発振器2、及び内部カウンタ3を備えている。この
内部パルスIPは、マイクロコンピュータ1の動作の基
準となるシステムクロックに依存している。
A horizontal synchronizing signal HS and a vertical synchronizing signal VS are given to the microcomputer 1. The microcomputer 1 includes an internal pulse oscillator 2 that generates an internal pulse IP and an internal counter 3. The internal pulse IP depends on the system clock that serves as a reference for the operation of the microcomputer 1.

【0006】水平同期信号HSは、隣接する活性化した
垂直同期信号VSの間において何度か活性化する。周期
測定装置200は一定の測定期間tm において水平同期
信号HSが何回活性化するかを計測するものである。
The horizontal synchronizing signal HS is activated several times between adjacent activated vertical synchronizing signals VS. The cycle measuring device 200 measures how many times the horizontal synchronizing signal HS is activated in a constant measurement period t m .

【0007】具体的には、測定期間tm は、垂直同期信
号VSが活性化した後、一定の待機時間tw が経過して
から開始する。測定期間tm 、待機時間tw はいずれも
内部パルスIPに基づいて設定され、それぞれ例えば1
ms,5msに設定される。そして内部カウンタ3によ
り、測定期間tm 内に活性化した水平同期信号HSのパ
ルス数が計測される。
Specifically, the measurement period t m starts after a certain waiting time t w has elapsed after the vertical synchronizing signal VS was activated. The measurement period t m and the waiting time t w are both set based on the internal pulse IP, and are set to, for example, 1
It is set to ms and 5 ms. Then, the internal counter 3 measures the number of pulses of the horizontal synchronizing signal HS activated within the measurement period t m .

【0008】今、測定期間tm 内に計測された水平同期
信号HSのパルス数のカウント値がCであった場合に
は、実際の水平同期信号HSの周期をTH として、式
(1)が成立する。
When the count value of the number of pulses of the horizontal synchronizing signal HS measured within the measuring period t m is C, the period of the actual horizontal synchronizing signal HS is set to T H and the equation (1) is used. Is established.

【0009】 tm /(C+1)<TH <tm /C…(1) よって、周期測定装置200の水平同期信号HSの周期
の測定における誤差は、 ε=tm /C−tm /(C+1)…(2) となる。
T m / (C + 1) < TH <t m / C (1) Therefore, the error in the period measurement of the horizontal synchronizing signal HS of the period measuring device 200 is ε = t m / C-t m / (C + 1) ... (2).

【0010】[0010]

【発明が解決しようとする課題】このように、従来の技
術においては、水平同期信号HSの周期TH が長くなる
程カウント値Cは小さくなり、誤差εは増大してしまう
という問題点があった。特に測定期間tm が短くなる場
合にはこれが顕著に生じてしまう。
BRIEF Problem to be Solved] Thus, in the conventional art, the count value C greater the period T H of the horizontal synchronizing signal HS becomes longer decreases, there is a problem that error ε is increases It was Especially, when the measurement period t m becomes short, this occurs remarkably.

【0011】例えば、測定期間tm が5ms、水平同期
信号HSの周期TH が1/(60kHz)であった場合
には、誤差εは55nsである。しかし、水平同期信号
HSの周期TH が1/(30kHz)であると誤差εは
4倍の220nsとなる。
[0011] For example, when the measurement period t m is 5 ms, the period T H of the horizontal synchronizing signal HS was 1 / (60 kHz), the error ε is 55 ns. However, if the period T H of the horizontal synchronizing signal HS is 1 / (30 kHz), the error ε will be four times 220 ns.

【0012】しかも、測定期間tm を1msとすると、
水平同期信号HSの周期TH が1/(60kHz)であ
った場合でも、誤差εは4.9倍の270nsとなる。
Moreover, assuming that the measurement period t m is 1 ms,
Even if the period T H of the horizontal synchronizing signal HS was 1 / (60kHz), the error ε is 4.9 times the 270Ns.

【0013】この発明は上記の問題点を解決するために
なされたもので、水平同期信号HSの周期TH が長くて
も誤差が小さく、精度良くこれを測定できる周期測定装
置を得ることを目的とする。
The present invention has been made to solve the above problems, and an object thereof is to obtain a cycle measuring apparatus capable of accurately measuring the error even if the cycle T H of the horizontal synchronizing signal HS is long. And

【0014】[0014]

【課題を解決するための手段】この発明にかかる周期測
定装置は周期的に活性化する第1信号の周期を測定する
周期測定装置であって、(a)前記第1信号よりも周期
の大きく、前記第1信号と所定の関係を有する第2信号
を入力する入力端子と、(b)前記第1信号よりも周期
の小さい第3信号を発生する発振器と、(c)前記第2
信号が決定する測定期間において前記第3信号の活性化
する回数の計測を行う第1カウンタと、(d)前記第1
カウンタの出力、前記第3信号の周期、及び前記所定の
関係から、前記第1信号の周期を求める演算手段と、を
備える。
A cycle measuring apparatus according to the present invention is a cycle measuring apparatus for measuring a cycle of a first signal which is periodically activated, and has a period larger than that of the first signal. An input terminal for inputting a second signal having a predetermined relationship with the first signal, (b) an oscillator for generating a third signal having a shorter period than the first signal, and (c) the second
A first counter for measuring the number of times the third signal is activated in a measurement period determined by the signal; and (d) the first counter.
Arithmetic means for obtaining the cycle of the first signal from the output of the counter, the cycle of the third signal, and the predetermined relationship.

【0015】ここで前記所定の関係とは、例えば前記第
2信号の周期が前記第1信号の周期の整数N倍であるこ
とをいう。
Here, the predetermined relationship means that the period of the second signal is an integer N times the period of the first signal, for example.

【0016】望ましくは(e)前記第1信号をN分周し
て前記第2信号を生成し、前記入力端子に与える分周器
を更に備える。
Preferably, (e) a frequency divider is further provided, which divides the first signal by N to generate the second signal and supplies the second signal to the input terminal.

【0017】例えば前記第1信号は少なくとも、周期的
に活性化する第4信号が非活性の時には活性化してお
り、前記分周器は活性化した前記第4信号によって初期
値が与えられる第2カウンタを有する。そして前記第2
信号は前記第2カウンタの出力として得られる。
For example, the first signal is active at least when the periodically activating fourth signal is inactive, and the frequency divider is given a second value whose initial value is given by the activated fourth signal. It has a counter. And the second
The signal is obtained as the output of the second counter.

【0018】前記測定期間は、前記第2信号の一周期の
半分の整数倍であることが望ましく、例えば前記第2信
号の一周期あるいは半周期に対応することが望ましい。
The measurement period is preferably an integral multiple of half of one cycle of the second signal, and preferably corresponds to one cycle or half cycle of the second signal, for example.

【0019】また、(f)前記第1カウンタの出力の保
持を行うラッチ手段と、(g)前記ラッチ手段の出力を
入力する読み取り手段と、を更に備え、前記第4信号の
非活性から活性への第1の遷移が、前記第1カウンタの
リセット及び前記ラッチ手段の前記保持の契機となり、
前記第1カウンタは、隣接し、互いに方向の異なる前記
第2信号の遷移の間においてのみ前記計測を行うことも
できる。
Further, (f) latch means for holding the output of the first counter, and (g) reading means for inputting the output of the latch means are further provided, and the fourth signal is activated from inactive state. The first transition to is a trigger for resetting the first counter and holding the latching means,
The first counters can also perform the measurement only between transitions of the second signals that are adjacent to each other and have different directions.

【0020】望ましくは、前記第4信号が連続して非活
性にある期間において、前記第2信号は互いに異なる方
向の2つの遷移のみ行う。
Preferably, during the period in which the fourth signal is continuously inactive, the second signal makes only two transitions in different directions.

【0021】[0021]

【作用】この発明における第1カウンタは、第2信号が
決定する測定期間において第3信号が活性化する回数の
計測を行う。この第2信号は第1信号と所定の関係を有
する。例えばその周期が第1信号の周期の整数N倍であ
る。
The first counter of the present invention measures the number of times the third signal is activated in the measurement period determined by the second signal. The second signal has a predetermined relationship with the first signal. For example, the cycle is an integer N times the cycle of the first signal.

【0022】測定期間を第2信号の一周期に等しくし、
第3信号の周期をTS とし、測定期間において第3信号
がK回活性化したとすると、TS ・K/Nとして第2信
号の周期を測定する。
The measurement period is equal to one cycle of the second signal,
If the period of the third signal is T S and the third signal is activated K times during the measurement period, the period of the second signal is measured as T S · K / N.

【0023】[0023]

【実施例】【Example】

A.基本的な考え方:この発明の具体的な説明に入る前
に、この発明の基本的な考え方について説明する。
A. Basic concept: Before entering a detailed description of the present invention, the basic concept of the present invention will be described.

【0024】従来の技術においては内部パルスIPが規
定する一定の測定期間tm における水平同期信号HSの
パルス数を計測していたのに対し、この発明では水平同
期信号HSが規定する所定の測定期間tM における内部
パルスIPの数を測定する。ここで測定期間tM は水平
同期信号HSをN分周することによって設定することが
できる。
In the conventional technique, the number of pulses of the horizontal synchronizing signal HS in the fixed measurement period t m defined by the internal pulse IP is measured, whereas in the present invention, the predetermined measurement defined by the horizontal synchronizing signal HS is measured. The number of internal pulses IP in the period t M is measured. Here, the measurement period t M can be set by dividing the horizontal synchronization signal HS by N.

【0025】図1は、この発明の基本的な考え方を示す
概念図である。また、図2は図1の一部Zを拡大した概
念図である。水平同期信号HS及び内部パルスIPの周
期をそれぞれTH ,TS とし、測定期間tM は水平同期
信号HSをN分周して得られた分周信号NSの一周期で
設定されるとする。図1に示されるようにしてこの測定
期間tM 内において内部パルスIPがK回活性化した場
合から水平同期信号HSの周期TH を求める場合には、
ある誤差εが生じる。
FIG. 1 is a conceptual diagram showing the basic idea of the present invention. Further, FIG. 2 is a conceptual diagram in which a part Z of FIG. 1 is enlarged. It is assumed that the periods of the horizontal synchronizing signal HS and the internal pulse IP are T H and T S , respectively, and the measurement period t M is set to one period of the divided signal NS obtained by dividing the horizontal synchronizing signal HS by N. . As shown in FIG. 1, when the period T H of the horizontal synchronizing signal HS is obtained from the case where the internal pulse IP is activated K times within this measurement period t M ,
An error ε occurs.

【0026】図2に示されるように、測定期間tM の開
始後、内部パルスIPのK回目の活性化と、(K+1)
回目の活性化の間において、分周信号NSが遷移し、測
定期間tM が終了する。よって、式(3)が成立する。
As shown in FIG. 2, after the start of the measurement period t M , the Kth activation of the internal pulse IP and (K + 1)
During the activation of the second time, the divided signal NS makes a transition and the measurement period t M ends. Therefore, the equation (3) is established.

【0027】 TS ・K<tM <TS ・(K+1)…(3) ところが、tM =TH ・Nであるので、誤差εは、 ε=TS ・(K+1)/N−TS ・K/N=TS /N…(4) となる。ここで、誤差εは測定期間tM において内部パ
ルスIPの活性化する回数Kに依存しない。
T S · K <t M <T S · (K + 1) (3) However, since t M = T H · N, the error ε is ε = T S · (K + 1) / N−T S · K / N = T S / N (4) Here, the error ε does not depend on the number of activations K of the internal pulse IP in the measurement period t M.

【0028】従って、式(2)で示された従来の技術に
おける誤差εとは異なり、水平同期信号HSの周期TH
が長くなってKの値が小さくなっても誤差εが増大する
ことはない。例えば、分周の値をN=256とし、内部
パルスIPの周期をTS =1μsに設定した場合には、
誤差εは3.9nsとなり、高い精度で水平同期信号H
Sの周期TH を測定することができることがわかる。
Therefore, unlike the error ε in the conventional technique expressed by the equation (2), the period T H of the horizontal synchronizing signal HS is
The error .epsilon. Does not increase even if .alpha. Becomes long and the value of K becomes small. For example, when the frequency division value is set to N = 256 and the cycle of the internal pulse IP is set to T S = 1 μs,
The error ε is 3.9 ns, and the horizontal synchronization signal H is highly accurate.
It can be seen that the period T H of S can be measured.

【0029】上記の基本的な考え方に基づいた実施例の
具体的構成について以下、個々に詳述する。
Specific configurations of the embodiments based on the above basic concept will be individually described in detail below.

【0030】B.実施例の具体的構成: (B−1)第1実施例:図3は、この発明の第1実施例
にかかる周期測定装置101の構成を示すブロック図で
ある。周期測定装置101は分周器4を備えている。分
周器4には水平同期信号HS及び垂直同期信号VSが入
力され、水平同期信号HSをN分周して分周信号NSを
出力する。分周器4は垂直同期信号VSによってリセッ
トされる。
B. Specific Structure of Embodiment: (B-1) First Embodiment: FIG. 3 is a block diagram showing the structure of a cycle measuring apparatus 101 according to the first embodiment of the present invention. The cycle measuring device 101 includes a frequency divider 4. The horizontal synchronizing signal HS and the vertical synchronizing signal VS are input to the frequency divider 4, and the horizontal synchronizing signal HS is divided by N to output a divided signal NS. The frequency divider 4 is reset by the vertical synchronization signal VS.

【0031】周期測定装置101はマイクロコンピュー
タ1をも備えている。マイクロコンピュータ1は、内部
パルスIPを発生する内部パルス発振器2、及び内部カ
ウンタ3を有している。この内部カウンタ3は、分周信
号NSの一周期に相当する測定期間tM において内部パ
ルスIPが活性化する回数Kを計測する。
The cycle measuring device 101 also includes a microcomputer 1. The microcomputer 1 has an internal pulse oscillator 2 that generates an internal pulse IP, and an internal counter 3. The internal counter 3 measures the number K of times the internal pulse IP is activated in the measurement period t M corresponding to one cycle of the divided signal NS.

【0032】図4は周期測定装置101の動作を説明す
るタイミングチャートである。垂直同期信号VSの
“H”レベルによってリセットされた分周器4は、水平
同期信号HSをN分周して分周信号NSを生成する。図
5は分周器4に用いることができる分周回路4aの構成
例を示す回路図である。Tフリップフロップ41
2 ,43 ,…,4n が直列に接続された構成を有して
おり、Tフリップフロップ42,43 ,…,4n のクロ
ック入力端子Tには、それぞれの前段の反転Q出力が与
えられる。そしてTフリップフロップ41 のクロック入
力端子Tには水平同期信号HSが与えられる。そして全
てのTフリップフロップ42 ,43 ,…,4n のリセッ
ト端子Rには垂直同期信号VSが与えられる。
FIG. 4 is a timing chart for explaining the operation of the cycle measuring apparatus 101. The frequency divider 4 reset by the "H" level of the vertical synchronizing signal VS divides the horizontal synchronizing signal HS by N to generate a divided signal NS. FIG. 5 is a circuit diagram showing a configuration example of the frequency dividing circuit 4a that can be used for the frequency divider 4. T flip-flop 4 1 ,
4 2, 4 3, ..., 4 n are a connected in series, T flip-flop 4 2, 4 3, ..., 4 to the n clock input terminal T, Q ¯ of each preceding stage Output is given. The horizontal synchronizing signal HS is applied to the clock input terminal T of the T flip-flop 4 1 . The vertical synchronizing signal VS is applied to the reset terminals R of all the T flip-flops 4 2 , 4 3 , ..., 4 n .

【0033】この様に構成された分周回路4aを分周器
4に用いることにより、垂直同期信号VSの“H”レベ
ルによってリセットされ、水平同期信号HSを2n 分周
した分周信号NSをTフリップフロップ4n のQ出力か
ら得ることができる。なお、反転Q出力が次段のクロッ
ク入力端子Tに与えられるので、水平同期信号HSの立
ち上がりを2(n-1) 回カウントして分周信号NSが立ち
上がり、2n カウントして立ち下がることになる。
By using the frequency dividing circuit 4a thus constructed in the frequency divider 4, it is reset by the "H" level of the vertical synchronizing signal VS, and the horizontal synchronizing signal HS is divided by 2 n to obtain a divided signal NS. Can be obtained from the Q output of the T flip-flop 4 n . Since the inverted Q output is given to the clock input terminal T of the next stage, the rising edge of the horizontal synchronizing signal HS should be counted 2 (n-1) times and the divided signal NS should rise and fall by 2 n. become.

【0034】図3,4に戻り、カウンタ3は、分周信号
NSが垂直同期信号VSの非活性後に最初に立ち上がっ
てから、次に立ち上がるまでの間を測定期間tM とし、
この期間における内部パルスIPの活性化の回数を計測
する。分周信号NSが、周期TH の水平同期信号HSを
N分周した場合には、測定期間tM はN・TH に等し
い。また、分周信号は水平同期信号HSの立ち上がりを
(n-1) 回カウントしてから立ち上がるので、垂直同期
信号VSが非活性化してから最初に水平同期信号HSが
立ち上がるまでの時間をwとすると、測定期間tM は、
垂直同期信号VSが非活性化してから待機時間F=(t
M /2−TH +w)だけ経過して開始することになる。
Returning to FIGS. 3 and 4, the counter 3 sets the measurement period t M from the first rising of the divided signal NS after the vertical synchronizing signal VS is inactivated to the next rising,
The number of activations of the internal pulse IP during this period is measured. Divided signal NS is, when the horizontal synchronizing signal HS of the period T H divided by N, the measurement period t M is equal to N · T H. Further, since the frequency-divided signal rises after counting the rising of the horizontal synchronizing signal HS 2 (n-1) times, the time from the deactivation of the vertical synchronizing signal VS to the first rising of the horizontal synchronizing signal HS is w. Then, the measurement period t M is
Wait time F = (t after the vertical synchronization signal VS is deactivated
It will start after M / 2- TH + w).

【0035】図6は周期測定装置101の動作を示すフ
ローチャートである。このフローチャートで示される手
順はマイクロコンピュータ1によって制御される。
FIG. 6 is a flowchart showing the operation of the cycle measuring apparatus 101. The procedure shown in this flowchart is controlled by the microcomputer 1.

【0036】まず、ステップS1において、垂直同期信
号VSがマイクロコンピュータ1に入力しているか否か
が判断される。まだ入力されていない場合にはこのステ
ップS1の判断が繰り返される。そして垂直同期信号V
Sが入力されたと判断された場合には、ステップS2に
よって内部カウンタ3をリセットする。
First, in step S1, it is determined whether or not the vertical synchronizing signal VS is input to the microcomputer 1. If it has not been input, the determination in step S1 is repeated. And the vertical sync signal V
When it is determined that S is input, the internal counter 3 is reset in step S2.

【0037】そしてステップS3によって分周信号NS
の立ち上がりを検出したか否かが判断される。まだ検出
していない場合にはこのステップS3の判断が繰り返さ
れる。そして分周信号NSの立ち上がりが検出されたと
判断された場合には、ステップS4によって内部カウン
タ3による内部パルスIPのカウントが開始される。
Then, in step S3, the divided signal NS
It is determined whether or not the rising edge of is detected. If it has not been detected yet, the determination in step S3 is repeated. When it is determined that the rising edge of the divided signal NS is detected, the internal counter 3 starts counting the internal pulse IP by step S4.

【0038】その後、ステップS5によって再び分周信
号NSの立ち上がりを検出したか否かが判断される。ま
だ検出していない場合にはこのステップS5の判断が繰
り返される。この間中、内部カウンタ3による内部パル
スIPのカウントが継続している。
After that, it is judged again in step S5 whether or not the rising edge of the divided signal NS is detected. If it has not been detected yet, the determination in step S5 is repeated. During this period, the internal counter 3 continues to count the internal pulse IP.

【0039】ステップS5によって、分周信号NSの立
ち上がりを検出したと判断された場合には、ステップS
6によって内部カウンタ3による内部パルスIPのカウ
ントを終了する。ステップS3において“YES”と判
断されてからステップS6において“YES”と判断さ
れるまでの期間が測定期間tM に相当する。ここまでの
内部カウンタ3によるカウントで、内部パルスの活性化
する回数Kが求められている。
If it is determined in step S5 that the rising edge of the divided signal NS is detected, step S5
6, the counting of the internal pulse IP by the internal counter 3 is completed. The period from the determination of “YES” in step S3 to the determination of “YES” in step S6 corresponds to the measurement period t M. The number of times K of activating the internal pulse is obtained by the counting by the internal counter 3 up to this point.

【0040】この後、ステップS7において水平同期信
号HSの周期を求める。具体的には、T=TS ・K/N
として求められる。式(4)で示したように、本当の水
平同期信号HSの周期TH との誤差εはTS /N未満に
抑えられる。
Then, in step S7, the period of the horizontal synchronizing signal HS is obtained. Specifically, T = T S · K / N
Is required as. As shown in equation (4), the error ε between the period T H of the true horizontal sync signal HS is suppressed to less than T S / N.

【0041】以上のようにして周期測定装置101は構
成され、また動作するので、「A.基本的な考え方」で
説明したように、水平同期信号HSの周期が長くても、
これを精度良く測定することができる。
Since the cycle measuring apparatus 101 is constructed and operates as described above, even if the cycle of the horizontal synchronizing signal HS is long, as described in "A. Basic concept",
This can be measured accurately.

【0042】なお、第1実施例では垂直同期信号VSが
正極性(活性、非活性がそれぞれ“H”、“L”に対応
する)である場合を例にとり、分周器4のリセットは垂
直同期信号VSの“H”レベルで行う場合を示した。し
かし、垂直同期信号VSが負極性(活性、非活性がそれ
ぞれ“L”、“H”に対応する)である場合には、その
“L”レベルで分周器4のリセットを行うことができ
る。
In the first embodiment, the vertical synchronizing signal VS has a positive polarity (active and inactive correspond to "H" and "L", respectively), and the frequency divider 4 is reset vertically. The case where the synchronization signal VS is at "H" level is shown. However, when the vertical synchronizing signal VS has a negative polarity (active and inactive correspond to “L” and “H”, respectively), the frequency divider 4 can be reset at the “L” level. .

【0043】この場合には、図7に示すようにリセット
が“L”レベルの信号で行われるTフリップフロップ4
1’,42’,43’,…,4n’の直列接続で構成される
分周回路4bを用いることができる。図8はこのような
場合の周期測定装置101の動作を示すタイミングチャ
ートである。
In this case, as shown in FIG. 7, the T flip-flop 4 is reset by the signal of "L" level.
1 ', 4 2', 4 3 ', ..., 4 n' can be used constituted divider 4b in series connection. FIG. 8 is a timing chart showing the operation of the cycle measuring apparatus 101 in such a case.

【0044】図4に示された動作と同様にして測定期間
M が定まるので、水平同期信号HSの周期が長くて
も、これを精度良く測定することができる。
Since the measurement period t M is determined in the same manner as the operation shown in FIG. 4, even if the period of the horizontal synchronizing signal HS is long, it can be accurately measured.

【0045】(B−2)第2実施例:第1実施例では、
図6に示されたステップS3,S5において、分周信号
NSの立ち上がりを検出したか否かの判断が行われた
が、ステップS3,S5において分周信号NSの立ち下
がりを検出したか否かの判断を行ってもよい。この場合
にも測定期間tM の長さは等しくなるためである。
(B-2) Second Embodiment: In the first embodiment,
In steps S3 and S5 shown in FIG. 6, it is judged whether or not the rising edge of the divided signal NS is detected, but whether or not the falling edge of the divided signal NS is detected in steps S3 and S5. May be judged. This is because the lengths of the measurement periods t M are equal in this case as well.

【0046】分周信号NSの立ち下がりによって測定期
間tM を決定する場合には、垂直同期信号VSが非活性
化した直後における分周信号NSの値が“H”レベルと
なるように分周器4を構成することが望ましい。もし分
周器4に分周回路4a,4bを用い、垂直同期信号VS
が非活性化した直後における分周信号NSの値が“L”
レベルとなるのであれば、垂直同期信号VSが非活性化
した後で分周信号NSが最初に立ち下がるまでの待機時
間Fは、分周信号NSの一周期分以上としなければなら
ない。即ち、測定期間tM を確保するためには垂直同期
信号VSの周期が、分周信号NSの2倍以上必要とな
る。
When the measurement period t M is determined by the fall of the divided signal NS, the divided signal is divided so that the value of the divided signal NS becomes “H” level immediately after the vertical synchronizing signal VS is deactivated. It is desirable to configure the container 4. If frequency dividers 4a and 4b are used for frequency divider 4, vertical synchronizing signal VS
Immediately after the deactivation, the value of the divided signal NS is "L".
If it becomes the level, the waiting time F until the divided signal NS first falls after the vertical synchronizing signal VS is deactivated must be one cycle or more of the divided signal NS. That is, in order to secure the measurement period t M , the period of the vertical synchronizing signal VS needs to be at least twice the period of the divided signal NS.

【0047】このため、モニタに接続されるコンピュー
タが発生する映像信号において、その垂直同期信号VS
の周期が短い場合には、分周の値Nの値を小さくしなけ
ればならない。一方、式(4)で示されたように、測定
の誤差εはNに反比例するため、分周の値Nの値を小さ
くすると測定の誤差εは大きくなる。
Therefore, in the video signal generated by the computer connected to the monitor, the vertical synchronizing signal VS
If the period of is short, the value of the frequency division value N must be reduced. On the other hand, as shown in the equation (4), the measurement error ε is inversely proportional to N. Therefore, when the frequency division value N is decreased, the measurement error ε increases.

【0048】図9は分周信号NSの立ち下がりによって
測定期間tM を決定する場合に用いることが好適な分周
回路4cの構成を示す回路図である。ここでは図5と類
似して、垂直同期信号VSが“H”レベルとなることに
よってリセットされる場合の構成を示しているが、図7
に示されるような、信号が“L”レベルとなることによ
ってリセットされるリセット端子を有するTフリップフ
ロップ41’,42’,43’,…,4n’を用いても同様
に構成することができる。
FIG. 9 is a circuit diagram showing the configuration of the frequency dividing circuit 4c which is preferably used when the measurement period t M is determined by the fall of the frequency divided signal NS. Here, similar to FIG. 5, the configuration in the case where the vertical synchronizing signal VS is reset by being at the “H” level is shown, but FIG.
Similarly, the T flip-flops 4 1 ′, 4 2 ′, 4 3 ′, ..., 4 n ′ having a reset terminal which is reset when the signal becomes “L” level as shown in FIG. can do.

【0049】分周回路4cは分周回路4aと唯一の点を
除いて同一である。異なるのは、分周信号NSをTフリ
ップフロップ4n の反転Q出力から得ている点のみであ
る。
The frequency dividing circuit 4c is the same as the frequency dividing circuit 4a except for one point. The only difference is that the divided signal NS is obtained from the inverted Q output of the T flip-flop 4 n .

【0050】図10は第2実施例における水平同期信号
HSの周期の測定の様子を示すタイミングチャートであ
る。図4に示された第1実施例の場合と同様、待機時間
Fは(tM /2−TH +w)で足りる。このため、分周
信号NSの立ち下がりによって測定期間tM を決定する
場合においても、そして垂直同期信号VSの周期が短く
ても、分周の値Nを小さくすることなく、精度よく水平
同期信号HSの周期を測定することができる。
FIG. 10 is a timing chart showing how the period of the horizontal synchronizing signal HS is measured in the second embodiment. As in the case of the first embodiment shown in FIG. 4, the waiting time F is (t M / 2-T H + w). Therefore, even when the measurement period t M is determined by the fall of the divided signal NS, and even when the period of the vertical synchronizing signal VS is short, the horizontal synchronizing signal can be accurately measured without decreasing the divided value N. The period of HS can be measured.

【0051】(B−3)第3実施例:第2実施例におい
て説明されたとおり、垂直同期信号VSの周期が短い場
合には、分周の値Nの値を小さくしなければならない。
これは、水平同期信号HSが垂直同期信号VSの活性化
する時刻の近傍において欠落する場合があるためであ
る。第3実施例は、測定期間tM の開始時刻を早めるこ
とにより、垂直同期信号VSの周期が短くても、分周の
値Nを小さくすることなく、精度よく水平同期信号HS
の周期を測定する。
(B-3) Third Embodiment: As described in the second embodiment, when the period of the vertical synchronizing signal VS is short, the frequency division value N must be reduced.
This is because the horizontal sync signal HS may be missing near the time when the vertical sync signal VS is activated. In the third embodiment, by advancing the start time of the measurement period t M , even if the cycle of the vertical synchronizing signal VS is short, the horizontal synchronizing signal HS can be accurately measured without decreasing the frequency division value N.
To measure the period.

【0052】第3実施例にかかる周期測定装置の構成は
第1乃至第2実施例と同様に図3で示される。但し、第
3実施例では、分周器4の構成がこれらと異なってい
る。
The structure of the cycle measuring apparatus according to the third embodiment is shown in FIG. 3 as in the first and second embodiments. However, in the third embodiment, the configuration of the frequency divider 4 is different from these.

【0053】図11は第3実施例において分周器4に用
いるのが好適な分周回路4dの構成を示す回路図であ
る。分周回路4dは分周回路4aと唯一の点を除いて同
一である。異なるのは、k段目のTフリップフロップ4
k に対して、垂直同期信号VSがリセット端子に入力せ
ず、セット端子Sに入力している点のみである。
FIG. 11 is a circuit diagram showing a configuration of a frequency dividing circuit 4d which is preferably used for the frequency divider 4 in the third embodiment. The frequency dividing circuit 4d is the same as the frequency dividing circuit 4a except for one point. The difference is that the T flip-flop 4 in the kth stage
With respect to k , the vertical synchronizing signal VS is not input to the reset terminal but is input to the set terminal S.

【0054】垂直同期信号VSの“H”レベルによっ
て、Tフリップフロップ4k を除く全てのTフリップフ
ロップ42 ,43 ,…,4n がリセットされる。そして
Tフリップフロップ4k のみがセット(プリセット)さ
れる。このため、分周回路4dのプリセットの値は2
(k-1) となり、水平同期信号HSの立ち上がりを2
(n-1)回カウントするよりも早く、2(n-k) 回カウント
するだけで分周信号NSは立ち上がる。
All the T flip-flops 4 2 , 4 3 , ..., 4 n except the T flip-flop 4 k are reset by the "H" level of the vertical synchronizing signal VS. Then, only the T flip-flop 4 k is set (preset). Therefore, the preset value of the frequency dividing circuit 4d is 2
(k-1) , and the rising edge of the horizontal sync signal HS becomes 2
The divided signal NS rises only by counting 2 (nk) times earlier than counting (n-1) times.

【0055】従って、垂直同期信号VSの非活性化から
測定期間tM の開始までの待機時間Fを、第1及び第2
実施例において必要であった(tM /2−TH +w)よ
りも短縮することができる。
Therefore, the waiting time F from the deactivation of the vertical synchronization signal VS to the start of the measurement period t M is set to the first and second waiting times.
It can be shortened from (t M / 2-T H + w) required in the example.

【0056】プリセットのためにセット端子Sに垂直同
期信号VSが与えられるフリップフロップは1つに限定
される必要はない。Tフリップフロップ42 ,43
…,4n の内の複数が垂直同期信号VSが与えられるセ
ット端子Sを備えていてもよい。この場合、そのプリセ
ット値をPとすると、(2(n-1) −P)回カウントする
ことで分周信号NSは立ち上がる。
The number of flip-flops to which the vertical synchronizing signal VS is applied to the set terminal S for presetting need not be limited to one. T flip-flops 4 2 , 4 3 ,
, 4 n may be provided with a set terminal S to which the vertical synchronizing signal VS is applied. In this case, assuming that the preset value is P, the divided signal NS rises by counting (2 (n-1) −P) times.

【0057】図12は第3実施例の動作を示すタイミン
グチャートである。垂直同期信号VSの“H”レベルに
よってプリセットが掛けられるので、分周信号NSは早
期に立ち上がることができる。
FIG. 12 is a timing chart showing the operation of the third embodiment. Since the preset is applied according to the "H" level of the vertical synchronizing signal VS, the divided signal NS can rise early.

【0058】第3実施例は以上のように構成され、動作
するので、垂直同期信号VSの周期が短くても、分周の
値Nを小さくすることなく、精度よく水平同期信号HS
の周期を測定することができる。
Since the third embodiment is constructed and operates as described above, even if the period of the vertical synchronizing signal VS is short, the horizontal synchronizing signal HS can be accurately measured without reducing the frequency dividing value N.
The period of can be measured.

【0059】(B−4)第4実施例:第1乃至第3実施
例では、測定期間tM を分周信号NSの一周期として設
定していた。換言すれば測定期間tM は水平同期信号H
Sの周期TH の、分周の値N倍に等しい場合を説明して
いた。しかし、測定期間tM は周期TH の半分の値の整
数倍に等しく設定することができる。これは分周信号N
Sの任意の2つの遷移を選択し、それらの間を測定期間
M として設定すればよい。
(B-4) Fourth Embodiment: In the first to third embodiments, the measurement period t M is set as one cycle of the divided signal NS. In other words, the measurement period t M is the horizontal synchronization signal H.
Period T H of S, has been described a case equal to the value N times the division. However, the measurement period t M can be set equal to an integral multiple of half the period T H. This is the divided signal N
It suffices to select any two transitions of S and set the interval between them as the measurement period t M.

【0060】第4実施例はそのようにして測定期間tM
を設定するものであり、図13は第4実施例にかかる周
期測定装置102の構成を示すブロック図である。図3
に示された第1実施例にかかる周期測定装置101に新
たにカウンタ32を備えた構成が採られている。図14
は周期測定装置102の動作を示すタイミングチャート
であり、測定期間tM はN・TH /2に設定されてい
る。
In the fourth embodiment, the measurement period t M is thus set.
13 is a block diagram showing the configuration of the cycle measuring apparatus 102 according to the fourth embodiment. Figure 3
The cycle measuring apparatus 101 according to the first embodiment shown in FIG. 2 has a configuration in which a counter 32 is newly provided. 14
3 is a timing chart showing the operation of the cycle measuring apparatus 102, and the measurement period t M is set to N · T H / 2.

【0061】このような測定期間tM の設定は、具体的
には垂直同期信号VSが非活性化してから最初の分周信
号NSの遷移を起点とし、2回目の分周信号NSの遷移
を終点とする設定となる。
The setting of the measurement period t M as described above is, specifically, the transition of the second frequency-divided signal NS starting from the transition of the first frequency-divided signal NS after the vertical synchronizing signal VS is deactivated. It will be set as the end point.

【0062】図15は周期測定装置102の動作の一部
を示すフローチャートである。図6に示されたステップ
S3,S4,S5を、ここに示されたステップS31,
S41,S42,S51,S52,S53で置換するこ
とにより、周期測定装置102の動作の全体が与えられ
る。
FIG. 15 is a flowchart showing a part of the operation of the cycle measuring device 102. The steps S3, S4 and S5 shown in FIG. 6 are replaced with the steps S31, S4 shown here.
By replacing with S41, S42, S51, S52, S53, the entire operation of the cycle measuring device 102 is given.

【0063】図6に示されたステップS2によって内部
カウンタ3のリセットが行われた後、図15に示された
ステップS32が実行される。ステップS32では分周
信号NSの立ち上がり若しくは立ち下がりである遷移が
検出されたか否かを判断する。そして検出されていない
場合には、ステップS32が繰り返して実行される。
After the internal counter 3 is reset in step S2 shown in FIG. 6, step S32 shown in FIG. 15 is executed. In step S32, it is determined whether or not the transition, which is the rising or falling of the divided signal NS, is detected. If not detected, step S32 is repeatedly executed.

【0064】ステップ32において、分周信号NSの立
ち上がり若しくは立ち下がりが検出されたと判断された
場合には、ステップS41によって変数Jに値1が与え
られる。そして第1実施例のステップS4と同様の処理
が、ステップS42において実行される。この後、ステ
ップS51で分周信号NSの遷移を検出する度にステッ
プS52において変数Jの値を1増加させる。このよう
な変数Jの値は図13に示されたカウンタ32によって
更新がなされる。
When it is determined in step 32 that the rising or falling of the divided signal NS is detected, the value 1 is given to the variable J in step S41. Then, the same processing as step S4 in the first embodiment is executed in step S42. Thereafter, each time the transition of the divided signal NS is detected in step S51, the value of the variable J is incremented by 1 in step S52. The value of such a variable J is updated by the counter 32 shown in FIG.

【0065】そしてステップS53において、変数Jの
値が所定の値JJに達したか否かが判断される。まだ変
数Jの値が所定の値JJに達していない場合にはステッ
プ51に戻り、ステップ51からステップ53の処理が
繰り返し実行される。
Then, in step S53, it is determined whether or not the value of the variable J has reached a predetermined value JJ. If the value of the variable J has not yet reached the predetermined value JJ, the process returns to step 51, and the processes of steps 51 to 53 are repeatedly executed.

【0066】図14に示されたタイミングチャートで
は、測定期間tM の値はN・TH /2に等しい。このよ
うな場合の所定の値JJは2に選択される。もちろん、
JJの値を3,4,…と他の値に設定することもでき
る。
In the timing chart shown in FIG. 14, the value of the measurement period t M is equal to N · T H / 2. The predetermined value JJ in such a case is selected as 2. of course,
The value of JJ can be set to other values such as 3, 4, ....

【0067】なお、測定期間tM の起点を設定する分周
信号NSの遷移は、垂直同期信号VSの非活性後の最初
に生じたものである必要はなく、2番目に分周信号NS
が遷移した時点を測定期間tM の起点に設定することも
可能である。しかし、第2及び第3実施例において説明
したように待機時間Fは短い方が望ましいので、この第
4実施例の様に、垂直同期信号VSの非活性後の最初に
生じた遷移を起点として測定期間tM を設定することが
望ましい。
The transition of the frequency division signal NS which sets the starting point of the measurement period t M does not have to occur first after the inactivation of the vertical synchronization signal VS, and is secondly divided.
It is also possible to set the time point at which the transition occurs to the starting point of the measurement period t M. However, as described in the second and third embodiments, it is desirable that the waiting time F is short. Therefore, as in the fourth embodiment, the transition which occurs first after the inactivation of the vertical synchronizing signal VS is used as a starting point. It is desirable to set the measurement period t M.

【0068】(B−5)第5実施例:図16はこの発明
の第5実施例にかかる周期測定装置103の構成を示す
ブロック図である。周期測定装置103は、第1実施例
にかかる周期測定装置101のマイクロコンピュータ1
を計測手段12に置換した構成を有している。
(B-5) Fifth Embodiment: FIG. 16 is a block diagram showing the structure of a cycle measuring apparatus 103 according to the fifth embodiment of the present invention. The cycle measuring device 103 is the microcomputer 1 of the cycle measuring device 101 according to the first embodiment.
Is replaced with the measuring means 12.

【0069】計測手段12は、内部パルスIPを発生す
る内部パルス発振器2、カウンタ31、ラッチ6、及び
マイクロプロセッサ(MPU)7を備えている。計測手
段12は必ずしもマイクロコンピュータである必要はな
いが、マイクロコンピュータであってもよい。また、内
部パルス発振器2、カウンタ31、分周器4、ラッチ6
を同一半導体チップ上に形成することもできる。
The measuring means 12 comprises an internal pulse oscillator 2 for generating an internal pulse IP, a counter 31, a latch 6, and a microprocessor (MPU) 7. The measuring means 12 does not necessarily have to be a microcomputer, but may be a microcomputer. In addition, the internal pulse oscillator 2, the counter 31, the frequency divider 4, the latch 6
Can be formed on the same semiconductor chip.

【0070】図17は周期測定装置103の動作を示す
タイミングチャートである。但し、説明を容易にするた
め、内部パルスIPの間隔を広く描いている。カウンタ
31は垂直同期信号VSの立ち上がりによってリセット
される。あるいは立ち下がりによってリセットする構成
としてもよい。また、第3実施例を適用するなどして、
垂直同期信号VSから分周信号NSの立ち上がりまでの
待機時間Fは適当に短くできる。
FIG. 17 is a timing chart showing the operation of the cycle measuring device 103. However, the interval of the internal pulse IP is drawn wide for ease of explanation. The counter 31 is reset by the rising edge of the vertical synchronizing signal VS. Alternatively, it may be configured to reset at the fall. Also, by applying the third embodiment,
The waiting time F from the vertical synchronizing signal VS to the rising of the divided signal NS can be appropriately shortened.

【0071】カウンタ31のイネーブル端子ENBに
は、分周器4によって水平同期信号HSをN分周されて
得られた分周信号NSが入力され、その値が“H”にな
るとカウンタ31は計測可能な状態(カウントイネーブ
ル)となる。カウントイネーブルとなったカウンタ31
は、そのクロック端子CLKに入力される内部パルスI
Pを0,1,2,…とカウントする。そして、分周信号
NSの値が“L”になるとカウンタ31は計測不能(カ
ウントディスエーブル)となり、カウンタ31は、内部
パルスIPのカウントを回数Kで停止する。
The divided signal NS obtained by dividing the horizontal synchronizing signal HS by N is input to the enable terminal ENB of the counter 31, and when the value becomes "H", the counter 31 measures. It becomes possible (count enable). Count enabled counter 31
Is an internal pulse I input to its clock terminal CLK.
P is counted as 0, 1, 2, .... Then, when the value of the divided signal NS becomes "L", the counter 31 becomes unmeasurable (count disabled), and the counter 31 stops counting the internal pulse IP at the number K.

【0072】従って、その測定期間tM は第1乃至第3
実施例における測定期間tM の半分、即ちN・TH /2
となり、垂直同期信号VSの周期が分周信号NSの一周
期分なくても、その半分あれば足りる。
Therefore, the measurement period t M includes the first to third measurement periods.
Half of the measurement period t M in the embodiment, that is, N · T H / 2
Therefore, even if the period of the vertical synchronizing signal VS does not correspond to one period of the frequency-divided signal NS, half of the period is sufficient.

【0073】値Kを採るカウンタ31の出力は、ラッチ
6に与えられる。このラッチ6にはラッチ信号として垂
直同期信号VSが与えられ、これの立ち上がりによって
ラッチ6の値が保持される。即ち垂直同期信号VSはカ
ウンタ31をリセットするとともに、ラッチ6の値を保
持する役目を果たす。
The output of the counter 31 which takes the value K is given to the latch 6. The vertical synchronizing signal VS is given to the latch 6 as a latch signal, and the value of the latch 6 is held by the rising of the vertical synchronizing signal VS. That is, the vertical synchronizing signal VS serves to reset the counter 31 and hold the value of the latch 6.

【0074】垂直同期信号VSの周期が分周信号NSの
半周期分さえあれば、少なくとも垂直同期信号VSが立
ち上がる直前にはカウンタ31はカウントディスエーブ
ルとなっており、その出力Lが垂直同期信号VSの周期
に依存することはない。そしてある時刻におけるラッチ
6の出力Aは、その時刻以前に立ち上がった垂直同期信
号VSと、更にそれ以前に立ち上がった垂直同期信号V
Sとの間において、カウンタ31が計測した値を保持し
ていることになる。図12において示された垂直同期信
号VSの立ち上がりのうち左側に位置する方によって、
カウンタ31がリセットされ、ラッチ6の出力Aはその
直前までに決定しているカウンタ31の出力Lの値L0
を保持する。また、右側に位置する方によって、カウン
タ31がリセットされ、ラッチ6の出力Aはその直前ま
でに決定しているカウンタ31の出力Lの値Kを保持す
る。
If the period of the vertical synchronizing signal VS is equal to the half period of the frequency dividing signal NS, the counter 31 is count disabled at least immediately before the vertical synchronizing signal VS rises, and its output L is the vertical synchronizing signal. It does not depend on the VS cycle. The output A of the latch 6 at a certain time is the vertical synchronization signal VS that rises before that time and the vertical synchronization signal V that rises before that time.
Between S and S, the value measured by the counter 31 is held. Depending on which one of the rising edges of the vertical synchronizing signal VS shown in FIG.
The counter 31 is reset, and the output A of the latch 6 is the value L 0 of the output L of the counter 31 determined up to immediately before that.
Hold. The counter 31 is reset by the one located on the right side, and the output A of the latch 6 holds the value K of the output L of the counter 31 determined up to immediately before that.

【0075】MPU7はリード信号RDをラッチ6に与
え、出力Aを入力して、値Kを得る。このようにして得
られた値Kを用いて、水平同期信号HSの周期はT=2
S・K/Nとして求められる。かかる処理はMPU7
において行われる。第5実施例においては測定期間tM
が半分となったので、その誤差εは第1実施例の2倍、
2TS /Nとなる。しかし第1実施例と同様に、水平同
期信号HSの周期が長くなることによって、その精度が
悪化することはない。
The MPU 7 gives the read signal RD to the latch 6 and inputs the output A to obtain the value K. Using the value K obtained in this way, the period of the horizontal synchronizing signal HS is T = 2.
Calculated as T S · K / N. This processing is MPU7
Done in. In the fifth embodiment, the measurement period t M
Becomes half, the error ε is twice that of the first embodiment,
It becomes 2T S / N. However, as in the first embodiment, the accuracy of the horizontal synchronizing signal HS does not deteriorate due to the longer period.

【0076】しかも第5実施例においてはラッチ6の書
き込み時以外はいつでもその出力Aを得ることができ
る。よって例えば、垂直同期信号VSの立ち下がりに同
期してこれを読みだすことにより、MPU7は安定して
カウンタ31の出力Lを得ることができる。
Moreover, in the fifth embodiment, the output A can be obtained at any time except when writing to the latch 6. Therefore, for example, by reading this in synchronization with the fall of the vertical synchronizing signal VS, the MPU 7 can stably obtain the output L of the counter 31.

【0077】図18は垂直同期信号VSの立ち下がりに
同期してラッチ6の出力AをMPU7に与える場合に用
いるのに好適なバッファ9の構成、及びラッチ6、MP
U7との接続関係を示す構成図である。
FIG. 18 shows the configuration of the buffer 9 suitable for use when the output A of the latch 6 is given to the MPU 7 in synchronization with the fall of the vertical synchronizing signal VS, and the latches 6 and MP.
It is a block diagram which shows the connection relation with U7.

【0078】ここではカウンタ31の出力Lの態様はパ
ラレルであり、これに対応してラッチ6はDフリップフ
ロップ6aを複数個並列に備えている。バッファ9は、
複数個並列に配置されたトライステートバッファ9a
と、MPUデータバス9bとを備えている。
Here, the mode of the output L of the counter 31 is parallel, and correspondingly, the latch 6 is provided with a plurality of D flip-flops 6a in parallel. Buffer 9 is
A plurality of tri-state buffers 9a arranged in parallel
And an MPU data bus 9b.

【0079】Dフリップフロップ6aのクロック端子C
LKには垂直同期信号VSが与えられ、その立ち上がり
によってD入力の値がQ出力へとラッチされる。
Clock terminal C of D flip-flop 6a
The vertical synchronizing signal VS is given to LK, and the value of the D input is latched to the Q output by the rise thereof.

【0080】トライステートバッファ9aにはリード信
号RDが与えられ、これが活性化した場合にはトライス
テートバッファ9aの入力端に与えられた値をその出力
端に与える。また非活性化した場合には、トライステー
トバッファ9aの出力端はハイインピダンス状態とな
る。
The read signal RD is applied to the tri-state buffer 9a, and when it is activated, the value applied to the input end of the tri-state buffer 9a is applied to its output end. When it is deactivated, the output terminal of the tri-state buffer 9a is in the high impedance state.

【0081】MPU7には、割り込み処理を受け付ける
割り込み端子INTが備えられ、ここに垂直同期信号V
Sが入力する。そして垂直同期信号VSが立ち下がると
リード信号RDが一定期間活性化し、MPUデータバス
9bを介してラッチ6の出力AがMPU7に与えられ
る。
The MPU 7 is provided with an interrupt terminal INT for accepting interrupt processing, and the vertical sync signal V
S inputs. When the vertical synchronizing signal VS falls, the read signal RD is activated for a certain period, and the output A of the latch 6 is given to the MPU 7 via the MPU data bus 9b.

【0082】(B−6)第6実施例:第5実施例におい
て、垂直同期信号VSの周期が分周信号NSの半周期分
さえあればその効果が得られることを示したが、垂直同
期信号VSの周期が分周信号NSの1周期分以上あると
問題が生じる。
(B-6) Sixth Embodiment: In the fifth embodiment, it was shown that the effect can be obtained if the period of the vertical synchronizing signal VS is half the period of the divided signal NS. A problem occurs when the period of the signal VS is equal to or longer than one period of the divided signal NS.

【0083】図19はこのような第5実施例の問題点を
説明するタイミングチャートである。図19に示される
ように、垂直同期信号VSが連続して非活性である期間
に分周信号NSのレベルが複数回“H”になると、カウ
ンタ31は更にその出力Lの値を増加させて行く。この
ため、得られた値に2TS /Nを乗じても水平同期信号
HSの周期を求めたことにはならず、第5実施例の効果
が期待できなくなる。
FIG. 19 is a timing chart for explaining the problems of the fifth embodiment. As shown in FIG. 19, when the level of the divided signal NS becomes “H” a plurality of times during the period when the vertical synchronization signal VS is continuously inactive, the counter 31 further increases the value of its output L. go. Therefore, even if the obtained value is multiplied by 2T S / N, the period of the horizontal synchronizing signal HS is not obtained, and the effect of the fifth embodiment cannot be expected.

【0084】第6実施例ではこのような問題が生じない
よう、垂直同期信号VSが連続して非活性である期間に
分周信号NSのレベルが複数回“H”になることが無い
ように分周信号NSを生成する。
In the sixth embodiment, in order to prevent such a problem, the level of the divided signal NS does not become "H" a plurality of times during the period in which the vertical synchronizing signal VS is continuously inactive. The divided signal NS is generated.

【0085】図20は、第6実施例に用いるのに好適な
分周回路4eの構成を示す回路図である。分周回路4e
を図16に示された周期測定装置103の有する分周器
4に用いることにより、第6実施例は実現される。分周
回路4eは、図5に示された分周回路4aのTフリップ
フロップ41 をトグルディスエーブル端子TE(負論
理)付きのTフリップフロップ41”に置換し、分周回
路4aの最終段のTフリップフロップ4n の後にTフリ
ップフロップ4S を増設した構成を有している。
FIG. 20 is a circuit diagram showing the structure of the frequency dividing circuit 4e suitable for use in the sixth embodiment. Frequency divider 4e
Is applied to the frequency divider 4 included in the period measuring device 103 shown in FIG. 16 to realize the sixth embodiment. Dividing circuit 4e is replaced with the divider circuit 4a of the T flip-flop 4 1 toggle disable terminal TE (negative logic) with a T flip-flop 4 1 "shown in FIG. 5, the final divider 4a It has a configuration in which the T flip-flop 4 S is added after the T flip-flop 4 n in stages.

【0086】具体的には、Tフリップフロップ41”の
クロック入力端子Tには水平同期信号HSが与えられ
る。そしてその反転Q出力がTフリップフロップ42
クロック入力端子Tに与えられ、その反転Q出力がTフ
リップフロップ43 のクロック入力端子Tに与えられ
る。このようにして順次Tフリップフロップ41”,
2,…,4n ,4s が接続され、Tフリップフロップ
s のQ出力がTフリップフロップ41”のトグルディ
スエーブル端子TEに与えられる。また全てのTフリッ
プフロップ41”,42 ,…,4n ,4s のリセット端
子Rには垂直同期信号VSが与えられる。
Specifically, the horizontal synchronizing signal HS is applied to the clock input terminal T of the T flip-flop 4 1 ″, and its inverted Q output is applied to the clock input terminal T of the T flip-flop 4 2 ″. The inverted Q output is given to the clock input terminal T of the T flip-flop 4 3. In this way, the T flip-flop 4 1 ″,
4 2, ..., 4 n, 4 s are connected, Q output of the T flip-flop 4 s is T flip-flop 4 1 "is given to the toggle disable terminal TE of. Also all the T flip-flop 4 1", 4 The vertical synchronizing signal VS is applied to the reset terminals R of 2 , ..., 4 n , 4 s .

【0087】ここで、Tフリップフロップ4n のQ出力
を分周信号NSとして採用すると、分周信号NSが立ち
下がる時、つまり分周信号NSが“L”レベルへ遷移す
る時点でTフリップフロップ4n の反転Q出力は立ち上
がる。従って、予め垂直同期信号VSによってリセット
されて“L”レベルにあったTフリップフロップ4s
Q出力は、“H”レベルに遷移して分周回路4eの最初
段であるTフリップフロップ41”をディスエーブル状
態にする。よって、一旦分周信号NSが“L”になった
後は、垂直同期信号VSが活性化して全てのTフリップ
フロップ41”,42 ,…,4n ,4s をリセットしな
いかぎり、再び分周信号NSが“H”レベルをとること
はない。
Here, if the Q output of the T flip-flop 4 n is adopted as the frequency-divided signal NS, the T-flip-flop 4 N will fall when the frequency-divided signal NS falls, that is, at the time when the frequency-divided signal NS transits to the “L” level. Q output of 4 n rises. Therefore, the Q output of the T flip-flop 4 s , which was previously reset by the vertical synchronizing signal VS and was at the “L” level, transits to the “H” level and the T flip-flop 4 1 which is the first stage of the frequency dividing circuit 4 e. Therefore, after the frequency-divided signal NS once becomes “L”, the vertical synchronizing signal VS is activated and all the T flip-flops 4 1 ″, 4 2 , ..., 4 n , The frequency-divided signal NS does not take the "H" level again unless 4 s is reset.

【0088】第6実施例は以上のように構成され、動作
するので、第5実施例において生じる可能性のある不適
正なカウントが生じることがなく、しかも第5実施例と
同様の効果を得ることができる。
Since the sixth embodiment is constructed and operates as described above, there will be no improper counting which may occur in the fifth embodiment, and the same effect as that of the fifth embodiment can be obtained. be able to.

【0089】C.その他の変形例:上記の各実施例にお
いては、垂直同期信号VSをそのまま分周器4のリセッ
ト信号として用い、あるいはプリセットのトリガとして
用いていた。しかし、各実施例の動作の説明からわかる
ように、垂直同期信号VSが活性化している期間をこの
発明において特定の長さに規定する必要はない。
C. Other Modifications: In each of the above embodiments, the vertical synchronizing signal VS is used as it is as a reset signal of the frequency divider 4 or as a preset trigger. However, as can be seen from the description of the operation of each embodiment, it is not necessary to define the period during which the vertical synchronizing signal VS is active to a specific length in the present invention.

【0090】また上記の各実施例においては、水平同期
信号HSから直ちに分周信号NSを生成していたが、分
周信号NSの生成に際しては水平同期信号HSの立ち上
がり等の遷移がカウントされるので、その活性化してい
る期間の長さは重要ではない。
Further, in each of the above-described embodiments, the divided signal NS is generated immediately from the horizontal synchronizing signal HS. However, when the divided signal NS is generated, transitions such as rising of the horizontal synchronizing signal HS are counted. So the length of its activation period is not important.

【0091】その一方、モニタ内では水平同期信号H
S、垂直同期信号VSのパルス幅を制御して別途新たな
信号が生成されている。図21は、モニタ内において水
平同期信号HS、垂直同期信号VSのパルス幅を制御し
て生成される信号を用いてこの発明に適用する場合を例
示した概念図である。例えば垂直同期信号VSからはブ
ランキングパルス生成部1001によってブランキング
パルスBP1が生成され、水平同期信号HSからはパル
ス生成部1002によってブランキングパルスBP2、
クランプパルスCP、ドライブパルスDVが生成され
る。
On the other hand, in the monitor, the horizontal synchronizing signal H
A new signal is separately generated by controlling the pulse widths of S and the vertical synchronization signal VS. FIG. 21 is a conceptual diagram exemplifying a case where the present invention is applied using signals generated by controlling the pulse widths of the horizontal synchronizing signal HS and the vertical synchronizing signal VS in the monitor. For example, the blanking pulse generator 1001 generates a blanking pulse BP1 from the vertical synchronization signal VS, and the pulse generator 1002 generates a blanking pulse BP2 from the horizontal synchronization signal HS.
The clamp pulse CP and the drive pulse DV are generated.

【0092】よって、図21に示されるように、垂直同
期信号VSの代わりにブランキングパルスBP1を用い
て分周器4のリセットを行い、水平同期信号HSの代わ
りにクランプパルスCPを分周して分周信号NSを生成
して第1実施例と同様の効果を得ることができる。また
他の各実施例においても、このような代替を行うことに
よってそれぞれの効果を得ることができる。
Therefore, as shown in FIG. 21, the frequency divider 4 is reset using the blanking pulse BP1 instead of the vertical synchronizing signal VS, and the clamp pulse CP is divided instead of the horizontal synchronizing signal HS. As a result, the frequency-divided signal NS is generated to obtain the same effect as that of the first embodiment. Also in each of the other embodiments, the respective effects can be obtained by performing such substitution.

【0093】[0093]

【発明の効果】以上に説明したように、この発明にかか
る周期測定装置によれば、第1信号が規定する所定の測
定期間において第3信号が活性化した回数を測定するの
で、第1信号の周期が長くなっても、測定誤差が増大す
ることを回避できる。
As described above, according to the cycle measuring apparatus of the present invention, the number of times the third signal is activated in the predetermined measurement period defined by the first signal is measured. It is possible to avoid an increase in measurement error even if the period of is increased.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の基本的な考え方を示す概念図であ
る。
FIG. 1 is a conceptual diagram showing the basic idea of the present invention.

【図2】図1の一部Zを拡大した概念図である。FIG. 2 is a conceptual diagram in which a part Z of FIG. 1 is enlarged.

【図3】この発明の第1実施例を示すブロック図であ
る。
FIG. 3 is a block diagram showing a first embodiment of the present invention.

【図4】この発明の第1実施例の動作を説明するタイミ
ングチャートである。
FIG. 4 is a timing chart explaining the operation of the first embodiment of the present invention.

【図5】この発明の第1実施例の構成例を示す回路図で
ある。
FIG. 5 is a circuit diagram showing a configuration example of a first embodiment of the present invention.

【図6】この発明の第1実施例の動作を示すフローチャ
ートである。
FIG. 6 is a flowchart showing the operation of the first embodiment of the present invention.

【図7】この発明の第1実施例の構成例を示す回路図で
ある。
FIG. 7 is a circuit diagram showing a configuration example of a first embodiment of the present invention.

【図8】この発明の第1実施例の動作を説明するタイミ
ングチャートである。
FIG. 8 is a timing chart for explaining the operation of the first embodiment of the present invention.

【図9】この発明の第2実施例の構成例を示す回路図で
ある。
FIG. 9 is a circuit diagram showing a configuration example of a second embodiment of the present invention.

【図10】この発明の第2実施例の動作を示すタイミン
グチャートである。
FIG. 10 is a timing chart showing the operation of the second embodiment of the present invention.

【図11】この発明の第3実施例の構成例を示す回路図
である。
FIG. 11 is a circuit diagram showing a configuration example of a third embodiment of the present invention.

【図12】この発明の第3実施例の動作を示すタイミン
グチャートである。
FIG. 12 is a timing chart showing the operation of the third embodiment of the present invention.

【図13】この発明の第4実施例を示すブロック図であ
る。
FIG. 13 is a block diagram showing a fourth embodiment of the present invention.

【図14】この発明の第4実施例の動作を示すタイミン
グチャートである。
FIG. 14 is a timing chart showing the operation of the fourth embodiment of the present invention.

【図15】この発明の第4実施例の動作の一部を示すフ
ローチャートである。
FIG. 15 is a flowchart showing a part of the operation of the fourth embodiment of the present invention.

【図16】この発明の第5実施例の構成を示すブロック
図である。
FIG. 16 is a block diagram showing the configuration of a fifth embodiment of the present invention.

【図17】この発明の第5実施例の動作を示すタイミン
グチャートである。
FIG. 17 is a timing chart showing the operation of the fifth embodiment of the present invention.

【図18】この発明の第5実施例の構成を示す構成図で
ある。
FIG. 18 is a configuration diagram showing a configuration of a fifth embodiment of the present invention.

【図19】この発明の第5実施例の問題点を説明するタ
イミングチャートである。
FIG. 19 is a timing chart explaining a problem of the fifth embodiment of the present invention.

【図20】この発明の第6実施例の構成を示す回路図で
ある。
FIG. 20 is a circuit diagram showing a configuration of a sixth embodiment of the present invention.

【図21】この発明の変形例を示す概念図である。FIG. 21 is a conceptual diagram showing a modified example of the present invention.

【図22】従来の技術を示すブロック図である。FIG. 22 is a block diagram showing a conventional technique.

【図23】従来の技術を示すタイミングチャートであ
る。
FIG. 23 is a timing chart showing a conventional technique.

【符号の説明】[Explanation of symbols]

1 マイクロコンピュータ 2 発振器 3 内部カウンタ 4 分周器 4a〜4e 分周回路 6 ラッチ 7 マイクロプロセッサ(MPU) 101〜103 周期測定装置 HS 水平同期信号 VS 垂直同期信号 NS 分周信号 IP 内部パルス 1 Microcomputer 2 Oscillator 3 Internal counter 4 Frequency divider 4a-4e Frequency divider circuit 6 Latch 7 Microprocessor (MPU) 101-103 Period measuring device HS horizontal synchronizing signal VS vertical synchronizing signal NS frequency dividing signal IP internal pulse

【手続補正書】[Procedure amendment]

【提出日】平成5年12月15日[Submission date] December 15, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0080[Correction target item name] 0080

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0080】トライステートバッファ9aにはリード信
号RDが与えられ、これが活性化した場合にはトライス
テートバッファ9aの入力端に与えられた値をその出力
端に与える。また非活性化した場合には、トライステー
トバッファ9aの出力端はハイインピーダンス状態とな
る。
The read signal RD is applied to the tri-state buffer 9a, and when it is activated, the value applied to the input end of the tri-state buffer 9a is applied to its output end. When it is deactivated, the output terminal of the tri-state buffer 9a is in a high impedance state.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図21[Name of item to be corrected] Fig. 21

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図21】 ─────────────────────────────────────────────────────
FIG. 21 ─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年7月26日[Submission date] July 26, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0022[Name of item to be corrected] 0022

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0022】測定期間を第2信号の一周期に等しくし、
第3信号の周期をTS とし、測定期間において第3信号
がK回活性化したとすると、TS ・K/Nとして第
号の周期を測定する。
The measurement period is equal to one cycle of the second signal,
When the period of the third signal is T S and the third signal is activated K times during the measurement period, the period of the first signal is measured as T S · K / N.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0032[Name of item to be corrected] 0032

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0032】図4は周期測定装置101の動作を説明す
るタイミングチャートである。垂直同期信号VSの
“H”レベルによってリセットされた分周器4は、水平
同期信号HSをN分周して分周信号NSを生成する。図
5は分周器4に用いることができる分周回路4aの構成
例を示す回路図である。Tフリップフロップ41
2 ,43 ,…,4n が直列に接続された構成を有して
おり、Tフリップフロップ42,43 ,…,4n のクロ
ック入力端子Tには、それぞれの前段の反転Q出力が与
えられる。そしてTフリップフロップ41 のクロック入
力端子Tには水平同期信号HSが与えられる。そして全
てのTフリップフロップ1 ,42 ,…,4n のリセッ
ト端子Rには垂直同期信号VSが与えられる。
FIG. 4 is a timing chart for explaining the operation of the cycle measuring apparatus 101. The frequency divider 4 reset by the "H" level of the vertical synchronizing signal VS divides the horizontal synchronizing signal HS by N to generate a divided signal NS. FIG. 5 is a circuit diagram showing a configuration example of the frequency dividing circuit 4a that can be used for the frequency divider 4. T flip-flop 4 1 ,
4 2, 4 3, ..., 4 n are a connected in series, T flip-flop 4 2, 4 3, ..., 4 to the n clock input terminal T, Q ¯ of each preceding stage Output is given. The horizontal synchronizing signal HS is applied to the clock input terminal T of the T flip-flop 4 1 . And all the T flip-flop 4 1, 4 2, ..., a reset terminal R of 4 n given vertical synchronizing signal VS.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0054[Correction target item name] 0054

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0054】垂直同期信号VSの“H”レベルによっ
て、Tフリップフロップ4k を除く全てのTフリップフ
ロップ1 ,42 ,…,4n がリセットされる。そして
Tフリップフロップ4k のみがセット(プリセット)さ
れる。このため、分周回路4dのプリセットの値は2
(k-1) となり、水平同期信号HSの立ち上がりを2
(n-1)回カウントするよりも早く、2(n-k) 回カウント
するだけで分周信号NSは立ち上がる。
By the "H" level of the vertical synchronizing signal VS, all the T flip-flops 4 1 , 4 2 , ..., 4 n except the T flip-flop 4 k are reset. Then, only the T flip-flop 4 k is set (preset). Therefore, the preset value of the frequency dividing circuit 4d is 2
(k-1) , and the rising edge of the horizontal sync signal HS becomes 2
The divided signal NS rises only by counting 2 (nk) times earlier than counting (n-1) times.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0062[Correction target item name] 0062

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0062】図15は周期測定装置102の動作の一部
を示すフローチャートである。図6に示されたステップ
S3,S4,S5を、ここに示されたステップS32
S41,S42,S51,S52,S53で置換するこ
とにより、周期測定装置102の動作の全体が与えられ
る。
FIG. 15 is a flowchart showing a part of the operation of the cycle measuring device 102. Step S 32 to Step S3, S4, S5 shown in FIG. 6, shown here,
By replacing with S41, S42, S51, S52, S53, the entire operation of the cycle measuring device 102 is given.

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0093[Correction target item name] 0093

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0093】[0093]

【発明の効果】以上に説明したように、この発明にかか
る周期測定装置によれば、第信号が規定する所定の測
定期間において第3信号が活性化した回数を測定するの
で、第1信号の周期が長くなっても、測定誤差が増大す
ることを回避できる。
As described above, according to the period measuring apparatus of the present invention, the number of times the third signal is activated in the predetermined measurement period defined by the second signal is measured. It is possible to avoid an increase in measurement error even if the period of is increased.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 周期的に活性化する第1信号の周期を測
定する周期測定装置であって、 (a)前記第1信号よりも周期の大きく、前記第1信号
と所定の関係を有する第2信号を入力する入力端子と、 (b)前記第1信号よりも周期の小さい第3信号を発生
する発振器と、 (c)前記第2信号が決定する測定期間において前記第
3信号の活性化する回数の計測を行う第1カウンタと、 (d)前記第1カウンタの出力、前記第3信号の周期、
及び前記所定の関係から、前記第1信号の周期を求める
演算手段と、を備える周期測定装置。
1. A cycle measuring device for measuring the cycle of a first signal which is cyclically activated, comprising: (a) a cycle having a cycle larger than that of the first signal and having a predetermined relationship with the first signal. An input terminal for inputting two signals; (b) an oscillator for generating a third signal having a shorter cycle than the first signal; and (c) activation of the third signal in a measurement period determined by the second signal. A first counter for measuring the number of times, (d) the output of the first counter, the cycle of the third signal,
And a calculation unit that calculates the cycle of the first signal from the predetermined relationship.
【請求項2】 前記所定の関係とは、前記第2信号の周
期が前記第1信号の周期の整数N倍であることをいう請
求項1記載の周期測定装置。
2. The cycle measuring device according to claim 1, wherein the predetermined relationship is that the cycle of the second signal is an integer N times the cycle of the first signal.
【請求項3】 (e)前記第1信号をN分周して前記第
2信号を生成し、前記入力端子に与える分周器を更に備
える請求項2記載の周期測定装置。
3. The period measuring device according to claim 2, further comprising: (e) a frequency divider that divides the first signal by N to generate the second signal and supplies the second signal to the input terminal.
【請求項4】 前記第1信号は少なくとも、周期的に活
性化する第4信号が非活性の時には活性化しており、前
記分周器は活性化した前記第4信号によって初期値が与
えられる第2カウンタを有し、前記第2信号は前記第2
カウンタの出力として得られる請求項2記載の周期測定
装置。
4. The first signal is activated at least when a periodically activating fourth signal is inactive, and the frequency divider is given an initial value by the activated fourth signal. 2 counters, the second signal is the second
The period measuring device according to claim 2, which is obtained as an output of a counter.
【請求項5】 前記測定期間は、前記第2信号の一周期
の半分の整数倍である請求項4記載の周期測定装置。
5. The period measuring device according to claim 4, wherein the measurement period is an integral multiple of one half of one period of the second signal.
【請求項6】 前記測定期間は、前記第2信号の一周期
に対応する請求項5記載の周期測定装置。
6. The cycle measuring device according to claim 5, wherein the measurement period corresponds to one cycle of the second signal.
【請求項7】 前記測定期間は、前記第2信号の半周期
に対応する請求項5記載の周期測定装置。
7. The cycle measuring device according to claim 5, wherein the measurement period corresponds to a half cycle of the second signal.
【請求項8】 (f)前記第1カウンタの出力の保持を
行うラッチ手段と、 (g)前記ラッチ手段の出力を入力する読み取り手段
と、を更に備え、 前記第4信号の非活性から活性への第1の遷移が、前記
第1カウンタのリセット及び前記ラッチ手段の前記保持
の契機となり、 前記第1カウンタは、隣接し、互いに方向の異なる前記
第2信号の遷移の間においてのみ前記計測を行う請求項
7記載の周期測定装置。
8. (f) Latch means for holding the output of the first counter, (g) Read means for inputting the output of the latch means, and further comprising: To the resetting of the first counter and the holding of the latch means, and the first counters are adjacent to each other, and the measurement is performed only during the transition of the second signals in different directions. The cycle measuring device according to claim 7, which performs
【請求項9】 前記第4信号が連続して非活性にある期
間において、前記第2信号は互いに異なる方向の2つの
遷移のみ行う請求項8記載の周期測定装置。
9. The period measuring apparatus according to claim 8, wherein the second signal makes only two transitions in mutually different directions during a period in which the fourth signal is continuously inactive.
JP5207791A 1993-08-23 1993-08-23 Cycle measuring apparatus Pending JPH0755856A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP5207791A JPH0755856A (en) 1993-08-23 1993-08-23 Cycle measuring apparatus
US08/291,285 US5487097A (en) 1993-08-23 1994-08-16 Period measuring device
TW083107490A TW241432B (en) 1993-08-23 1994-08-16 Period measuring device
KR94020690A KR0133996B1 (en) 1993-08-23 1994-08-22 Period measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5207791A JPH0755856A (en) 1993-08-23 1993-08-23 Cycle measuring apparatus

Publications (1)

Publication Number Publication Date
JPH0755856A true JPH0755856A (en) 1995-03-03

Family

ID=16545561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5207791A Pending JPH0755856A (en) 1993-08-23 1993-08-23 Cycle measuring apparatus

Country Status (4)

Country Link
US (1) US5487097A (en)
JP (1) JPH0755856A (en)
KR (1) KR0133996B1 (en)
TW (1) TW241432B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2793524B2 (en) * 1995-07-31 1998-09-03 日本電気アイシーマイコンシステム株式会社 Time measurement system and its measurement method
JP2001094823A (en) * 1999-09-22 2001-04-06 Sony Corp Horizontal synchronizing signal generation system corresponding to multi-scanning
US7558317B2 (en) * 2005-04-29 2009-07-07 Hewlett-Packard Development Company, L.P. Edge calibration for synchronous data transfer between clock domains
US7401245B2 (en) 2005-04-29 2008-07-15 Hewlett-Packard Development Company, L.P. Count calibration for synchronous data transfer between clock domains
US7477712B2 (en) * 2005-04-29 2009-01-13 Hewlett-Packard Development Company, L.P. Adaptable data path for synchronous data transfer between clock domains
CN101819231B (en) * 2010-03-18 2014-08-06 天津农学院 High-resolution frequency measurement method with continuous counting interval marking
JP6110122B2 (en) * 2012-12-07 2017-04-05 シナプティクス・ジャパン合同会社 Integrated circuit device, panel display device and display panel driver
CN115732022A (en) * 2021-08-27 2023-03-03 长鑫存储技术有限公司 Oscillation period detection circuit and method and semiconductor memory

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3745475A (en) * 1971-12-07 1973-07-10 Nasa Measurement system
US3878370A (en) * 1973-09-04 1975-04-15 Artronics Corp Electronic interval timer
US4001561A (en) * 1975-09-04 1977-01-04 Quaintance William J Device for measuring and indicating reading speed
US4085373A (en) * 1976-11-03 1978-04-18 Woodward Governor Company Frequency-to-voltage transducer for speed governor systems or the like
JPH01232393A (en) * 1988-03-14 1989-09-18 Sony Corp Frequency detector
US5382910A (en) * 1993-04-06 1995-01-17 John Fluke Mfg. Co., Inc. Dual time base zero dead zone time domain reflectometer

Also Published As

Publication number Publication date
TW241432B (en) 1995-02-21
KR0133996B1 (en) 1998-04-25
US5487097A (en) 1996-01-23
KR950006468A (en) 1995-03-21

Similar Documents

Publication Publication Date Title
US4303983A (en) Method and apparatus for measuring time
JPH0755856A (en) Cycle measuring apparatus
JPH10232818A (en) Memory controller
US4646030A (en) Triggered frequency locked oscillator having programmable delay circuit
TW201939473A (en) Display apparatus and voltage calibration method
JP3523362B2 (en) Clock circuit and processor using the same
JP3349943B2 (en) Semiconductor device
KR960016809B1 (en) Trigger signal generating circuit with trigger masking function
JPH03261996A (en) Character generator
JPH043132B2 (en)
JPH08327678A (en) Pulse-width measuring circuit
US6946881B1 (en) Method to detect the polarity of sync signals without external capacitor or clock
JP4004668B2 (en) Data processing circuit
JP2936800B2 (en) Signal generator
JPH10191093A (en) Digital horizontal flyback control circuit
JPH1114714A (en) Semiconductor testing device
JPH07111440A (en) Multivibrator circuit and optional clock generating circuit
JP2001033529A (en) Delay clock generator and semiconductor tester
KR930004087B1 (en) Digital signal transition detection circuit
JP3051937B2 (en) Variable counting pulse signal generator
JP2935319B2 (en) Multi vibrator
SU1061256A1 (en) Pulse repetition frequency multiplier
JPH11205294A (en) Delay adjustment circuit
JPH08179849A (en) Clock output circuit
JPH0735791A (en) Time measuring instrument