JP3821913B2 - Horizontal frequency detection circuit - Google Patents

Horizontal frequency detection circuit Download PDF

Info

Publication number
JP3821913B2
JP3821913B2 JP12951197A JP12951197A JP3821913B2 JP 3821913 B2 JP3821913 B2 JP 3821913B2 JP 12951197 A JP12951197 A JP 12951197A JP 12951197 A JP12951197 A JP 12951197A JP 3821913 B2 JP3821913 B2 JP 3821913B2
Authority
JP
Japan
Prior art keywords
output
counter
horizontal
circuit
ary
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 - Lifetime
Application number
JP12951197A
Other languages
Japanese (ja)
Other versions
JPH10319930A (en
Inventor
紀行 岩倉
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP12951197A priority Critical patent/JP3821913B2/en
Publication of JPH10319930A publication Critical patent/JPH10319930A/en
Application granted granted Critical
Publication of JP3821913B2 publication Critical patent/JP3821913B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Synchronizing For Television (AREA)
  • Details Of Television Scanning (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えばマルチスキャンディスプレイモニターに用いて好適な水平周波数の検出回路に関する。
【0002】
【従来の技術】
マルチスキャンディスプレイに接続される各種タイプのコンピュータ機器ではその水平同期信号、垂直同期信号それぞれの周波数が異なっていることが多く、したがって、マルチスキャンディスプレイにおいては、それに接続されるコンピュータ機器からのデータを表示するためには、それに入力されてくる各コンピュータ機器からの水平同期信号および垂直同期信号それぞれの周波数を検出するとともに、検出した水平と垂直同期信号それぞれの周波数に追従してディスプレイが例えばテレビのブラウン管であればそれの水平と垂直の偏向回路、ディスプレイが液晶であればそれの駆動回路を制御することによりディスプレイできるようにする必要がある。このようにしてマルチスキャンディスプレイにおいてはそれに入力されてくる水平同期信号および垂直同期信号それぞれの周波数を検出する必要があるが、そのうち、水平同期信号の周波数を検出する回路としては例えば特開昭63−286076号公報に記載された水平周波数検出回路が従来技術例として知られている。
【0003】
図6を参照して同公報に記載の従来技術例の水平周波数検出回路について説明すると、この水平周波数検出回路は、ディスプレイ用の垂直同期信号を入力する垂直同期信号入力手段41と、その垂直同期信号入力手段41の出力信号を入力とし、割り込み信号を出力する割り込み受付回路43と、周波数が既知である基準クロックを発生する基準クロック発生回路48と、基準クロック信号を分周する分周回路47と、ディスプレイ用の水平同期信号を入力する水平同期信号入力手段42と、その水平同期信号入力手段42の出力信号を入力とし、水平同期信号をカウントするカウンタ44と、前述した分周回路47出力、水平同期カウンタ44出力、割り込み受付回路43の出力に基づき水平同期信号の周波数(水平同期周波数)、垂直同期信号の周波数(垂直同期周波数)を算出するCPU45と、切替回路49とより構成されている。
【0004】
【発明が解決しようとする課題】
上記従来技術例では、垂直1周期の間に入力される水平同期信号の個数をカウントするとともにそのカウント値から得られた垂直1周期における水平ラインの総数と垂直周波数とから、水平同期周波数を算出する。このような算出においては入力信号源であるコンピュータ機器の中には垂直ブランキング期間内に、水平同期信号がなかったり、等価パルスが有るものもあり、こうした機器の場合などには対応できないなど、それに接続される機器に制限が生じてしまい、汎用性が低くなってしまうという課題がある。
【0005】
また、上記従来技術例では、水平周波数の精度の高い検出のためには垂直同期信号入力時の割り込みと割り込みとの間の時間を正確に検出する必要があるが、最低2回の割り込みが必要となるが、マルチスキャンディスプレイ内におけるCPUが他の仕事をしているときに割り込みの性質上必ず前記検出に対しての遅延時間が生じてしまうとともに、またこの遅延時間にもバラツキが生じやすいため水平周波数の検出精度がどうしても悪くなるという課題がある。
【0006】
そのうえ、昨今の液晶などの複雑なマルチスキャンディスプレイでは、制御対象の周波数依存性が高く、精度の高い水平周波数検出が要求されているから、上記従来技術例ではこのような要求には対応できないという課題もある。
【0007】
【課題を解決するための手段】
この課題を解決するために本発明は、垂直同期信号入力割り込み受付後にn進カウンタと、m進カウンタを同時にカウント動作を開始させ、前記両カウンタ出力時間差Tを時間計測して、以下の式で水平周波数検出を行う。
【0008】
fH=(m−n)/T
水平周波数fHを、割り込み遅延時間に影響しないために水平周波数を精度高く検出可能となる。
【0014】
【発明の実施の形態】
本発明の水平周波数検出回路は、周波数が既知である基準クロックをカウントする基準クロックカウンタと、水平同期信号をカウントするn進カウンタと、水平同期信号をカウントするm+n進カウンタと、水平同期信号をカウントするpm+n進カウンタと、前記n進カウンタ出力の立ち上がりで、基準クロックカウンタのカウント値をラッチする第一のラッチ回路と、前記m+n進カウンタ出力の立ち上がりで基準クロックカウンタのカウント値をラッチする第二のラッチ回路と、前記pm+n進カウンタ出力の立ち上がりで基準クロックカウンタのカウント値をラッチする第三のラッチ回路と、前記第二、第三のラッチ回路出力を前記pm+n進カウンタ出力で切り替える第一の切替回路と、前記第一のラッチ回路出力と前記第一の切替回路出力の差分をとる差分器と、前記差分器出力をp倍するp倍アンプと、前記差分器出力とp倍アンプ出力を前記pm+n進カウンタ出力で切り替える第二の切替回路と、前記水平同期信号をそれぞれカウントする3つのカウンタを同時にリセット制御しかつ第二の切替回路出力より水平周波数を算出する制御回路と備えた水平周波数検出回路であり、入力信号の総ライン数に応じてpm+n進カウンタとm+n進カウンタ出力を自動的に切り替え、またm+n進カウンタが選択されている時はp倍アンプでpm+n進カウンタに正規化されているため、入力信号の総ライン数に応じて自動的に精度の良いカウンタを選択して水平周波数検出するという作用を有する。
【0016】
参考例1
図1は参考例1における水平周波数検出回路を示しており、図1において、1は垂直同期信号が入力されると、n進とm進の各カウンタ2,3にカウント開始信号bを出力し、かつ差分器6の出力に基づいて水平周波数を算出する制御回路、2は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始しそのカウント値がnになると出力をHとするn進カウンタ、3は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始しそのカウント値がmになると出力をHとするm進カウンタ、4はn進カウンタ2の出力がHになった時の基準クロックカウンタ8の出力値を保持する第一のラッチ回路、5はm進カウンタ3の出力がHになった時の基準クロックカウンタ8の出力値を保持する第二のラッチ回路、6は第一および第二のラッチ回路4,5で保持した基準クロックカウンタ8の出力値の差分をとる差分器、7は周波数が既知である基準クロックを発生する基準クロック発生回路、8は基準クロックをカウントしカウント値を出力している基準クロックカウンタである。
【0017】
以上のように構成された参考例1の水平周波数検出回路の動作について説明する。垂直同期信号が制御回路1に入力されると、制御回路1はカウント開始信号bを出力する。カウント開始信号bがn進カウンタ2とm進カウンタ3とにそれぞれ入力されるとn進カウンタ2とm進カウンタ3はそれぞれ水平同期信号のカウントを開始する。n進カウンタ2は、カウント値がnに達すると出力をHとする。同様に、m進カウンタもカウント値がmに達すると出力をHとする。一方、基準クロック発生回路7の出力クロックを基準クロックカウンタ8でカウントしカウント値を常に出力している。第一のラッチ回路4では、n進カウンタ2の出力がHになった時の基準クロックカウンタ8のカウント値を保持し、同様に、第二のラッチ回路5ではm進カウンタの出力信号がHになった時にカウント値を保持する。この保持した2つのカウント値の差分Tを差分器6は制御回路1に出力する。この差分出力は言うまでもなく、n進カウンタとm進カウンタの出力遅延、言い換えるとm−n回の水平周期の時間である。制御回路1では、この差分器6出力が有効である次回垂直同期入力時に、以下の算出式(1)の演算を行い水平周波数fHを検出する。
【0018】
fH=(m−n)/T …(1)
以上のようにして参考例1の水平周波数検出回路においては水平周波数を検出するから、従来技術において説明したように垂直同期信号が制御回路1に入力した時に割り込み遅延が生じても、2つのカウンタ2,3が水平周波数検出のために同時にカウント開始しているから、そのような割り込み遅延は差分器6により相殺されることになり、結果として水平周波数の検出精度に影響しないものとなる。
【0019】
また、参考例1の水平周波数検出回路においてはn進カウンタ2の水平同期信号のカウント開始からn進してカウント値がnとなって出力がHとなるまで(水平ライン数としてnライン)の期間を、対応する入力信号の垂直ブランキング期間より長く設定しておけば、各種コンピュータ機器における垂直ブランキング期間内の水平同期信号が有ったり無かったりしても、また等価パルスが有ったり無かったりすることには何ら影響されることなく、水平周波数の検出が可能であることは言うまでもない。
【0020】
また、参考例1においては、2つの異なるカウント数のn進カウンタ2m進カウンタ3とからなる構成で説明したが、これらカウンタ2,3出力について、立ち上がりと立ち下がりを同一カウンタで制御できる1つのカウンタで行っても同様に実施可能である。
【0021】
参考例2
図2は参考例2に係る水平周波数検出回路の回路構成を示しており、図2において、1は垂直同期信号が入力されると、3つの水平カウンタ2,3,9にカウント開始信号bを出力し、かつ差分器6の出力に基づいて水平周波数を算出する制御回路、2は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始し、そのカウント値がnになると出力をHとするn進カウンタである。3は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始し、そのカウント値がmになると出力をHとするm進カウンタ、4はn進カウンタ2の出力がHになった時の基準クロックカウンタ8の出力値を保持する第一のラッチ回路、5はセレクタ10の出力がHになった時の基準クロックカウンタ8の出力値を保持する第二のラッチ回路、6は第一および第二のラッチ回路4,5で保持した基準クロックカウンタ8の出力値の差分をとる差分器、7は周波数が既知である基準クロックを発生する基準クロック発生回路、8は基準クロックをカウントしカウント値を出力している基準クロックカウンタ、9は制御回路1よりカウント開始信号bが入力されると水平同期信号をカウントし、そのカウント値がkになると出力をHとするk進カウンタ、10は制御回路1より出力されるセレクタ切替信号cによって、m進カウンタ3の出力と、k進カウンタ9の出力とを切り替えるセレクタである。
【0022】
以上のように構成された参考例2の水平周波数検出回路の動作について図3,図4のフローチャートを用いて説明する。制御回路1では、図3のようにflag(フラグ)Aを「0」にリセットした後は常にfHを検出結果とするループで動作している。垂直同期信号が制御回路1に入力されると、制御回路1は図4の垂直(Vsync)割り込み処理を行う。垂直同期信号が初めて入力された場合、図4のフローチャートにおいてflagAは図3の処理の中で「0」にリセットされているため、セクレタ10にm進カウンタ3出力を選択するLのセレクタ切替信号Cを出力してから、n進カウンタ2、m進カウンタ3およびk進カウンタ9それぞれにカウント開始信号bを出力する。制御回路1からカウント開始信号bが出力されると、各カウンタ2,3,9それぞれは水平同期信号のカウントを開始する。制御回路1では、その後flagAを「1」にセットし、いったん割り込み処理を終了して図3のメインループに戻る。n進カウンタ2は、カウント値がnに達すると出力をHとする。同様に、m進、k進カウンタ3,9もカウント値がそれぞれm、kに達すると出力をHとする。一方、基準クロック発生回路7の出力クロックを基準クロックカウンタ8でカウントしカウント値を常に出力している。第一のラッチ回路4では、n進カウンタ2の出力がHになった時の基準クロックカウンタ8のカウンタ値を保持する。同様に、第二のラッチ回路5ではセレクタ回路10でセレクタ切替信号Cにより選択されているm進カウンタ3の出力信号がHになった時にカウント値を保持する。この保持した2つのカウント値の差分Tを差分器6は制御回路1に出力する。この差分出力は言うまでもなく、n進カウンタとm進カウンタの出力遅延、言い換えるとm−n回の水平周期の時間である。
【0023】
制御回路1では、次の垂直同期信号入力で再度図4の垂直割り込み処理を行う。図4のフローチャートで、flagAは「1」にセットされているため、次にセレクタ切替信号Cの状態を確認する。Cの状態はm進カウンタを選択しているLの状態であるので、nとmの差分ライン数qを次式(2)で算出する。次に差分器出力Tを取り込み水平周波数fHを次式(3)で算出する。
【0024】
q=m−n …(2)
fH=q/T …(3)
ここで、算出した水平周波数fHが設定されたしきい値水平周波数に対して低い場合は、前回垂直同期入力時と同様の処理を行い終了し、メインループで水平周波数fHを確定する(k進カウンタ9はカウント値がkに達していない)。
【0025】
マルチスキャンディスプレイに接続される機器からの水平周波数が高いために、算出した水平周波数fHが高い水平周波数である場合、差分器出力Tは基準クロックカウンタ8とラッチ回路4,5との間のラッチミスで生じる誤差に対して十分な時間が得られていないため精度が悪い。このため、再度精度の高い検出を行うために、セレクタ切替信号CをHに変更してk進カウンタ9を選択し、水平同期信号を再度カウントし直す。n進カウンタ2とk進カウンタ9のそれぞれの出力の立ち上がり時に基準クロックカウンタ8のカウント値を第一、第二のラッチ回路4,5で保持し、この差分が制御回路1に入力される。つぎの垂直同期信号が入力されると制御回路1では、再々度図4の割り込み処理を行いflagAが1で、セレクタ切替信号CがHより、nとkの差分ライン数qを次式(4)で、水平周波数fHを次式(5)で算出する。
【0026】
q=k−n …(4)
fH=q/T …(5)
ここで、k進カウンタ9のkは、周波数が高くても差分器出力Tが精度に影響しない様多く設定されているため高い水平周波数が入力されても精度の高い水平周波数の検出が可能となる。
【0027】
このように、一度周波数検出をm進カウンタ3を用いて行い、精度が悪くなる高い水平周波数の場合にmより十分大きいk進カウンタ9を用いて再度水平周波数検出を行うことで、入力水平周波数の高低に関わらず精度有る水平周波数検出が可能となる。
【0028】
また、参考例2においては、上述の参考例1と同様に垂直同期信号の割り込み遅延が生じても、カウンタ2,3、9は同時にカウント開始しており、差分器6によりその割り込み遅延は相殺されることになるため、水平周波数の検出の精度に影響しない。
【0029】
以上の説明では、第三の水平カウンタと第二の水平カウンタを切り替えたが、直接第二のカウンタのカウント数を、制御回路によってmからkに切替ても良いことはいうまでもない。
【0030】
実施の形態
図5は本発明の実施の形態における水平周波数検出回路を示しており、図5において、1は垂直同期信号が入力されると、3つの水平カウンタ2,14,15にカウント開始信号bを出力し、かつセレクタ12の出力に基づいて水平周波数を算出する制御回路、2は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始し、そのカウント値がnになると出力をHとするn進カウンタ、14は制御回路1よりカウント開始信号bが入力されると、水平同期信号のカウントを開始し、そのカウント値がm+nになると出力をHとするm+n進カウンタ、15は制御回路1によりカウント開始信号bが入力されると、水平同期信号のカウントを開始し、そのカウント値がpm+nになると出力をHとするpm+n進カウンタである。7は周波数が既知である基準クロックを発生する基準クロック発生回路、8は基準クロックをカウントしカウント値を出力している基準クロックカウンタ、4はn進カウンタ2の出力がHになった時の基準クロックカウンタ8の出力値を保持する第一のラッチ回路、5はm+n進カウンタ14の出力がHになった時の基準クロックカウンタ8の出力値を保持する第二のラッチ回路、11はpm+n進カウンタ15の出力がHになった時の基準クロックカウンタ8の出力値を保持する第三のラッチ回路、10は、pm+n進カウンタ15の出力に基づいて、第二、第三のラッチ回路5,11の出力を切り替えるセレクタである。6は、第一のラッチ回路4と、第二もしくは第三のラッチ回路5、11で保持した基準クロックカウンタ8の出力値の差分をとる差分器、13は、差分器6の出力をp倍するp倍アンプ、12は、pm+n進カウンタ15の出力に基づいて、差分器6と出力p倍アンプ13出力を切り替えるセレクタ回路である。
【0031】
以上のように構成された本実施の形態の水平周波数検出回路の動作について説明する。垂直同期信号が制御回路1に入力されると、制御回路1はカウント開始信号bを出力する。カウント開始信号bがn進、m+n、pm+n進カウンタ2,14,15に入力されるとn進、m+n、pm+n進カウンタ2,14,15は水平同期信号をカウントし始める。n進カウンタ2は、カウント値がnに達すると出力をHとする。同様に、m+n、pm+n進カウンタ14,15もm+n、pm+nに達すると出力をHとする。一方、基準クロック発生回路7の出力クロックを基準クロックカウンタ8でカウントしカウント値を常に出力している。第一のラッチ回路4では、n進カウンタ2の出力がHになった時の基準クロックカウンタ8のカウンタ値k1を保持し、同様に、第二、第三のラッチ回路5、11ではm+n進カウンタ14、pm+n進カウンタ15の出力信号がそれぞれHになった時にカウント値k2,k3を保持する。
【0032】
ここで、入力信号の総ライン数Rが、pm+nより少ない場合について説明する。総ライン数Rがpm+nより少ないため、pm+n進カウンタ15の出力はカウント値が次の垂直同期信号入力までにpm+nに達しないためLを出力し続ける。このため、差分器6の入力は、n進カウンタ2によるラッチ出力k1と、m+n進カウンタ14によるラッチ出力k2となる。前記差分器6入力の差分出力T1は、pm+n進カウンタ15出力がLの為p倍アンプ13をとおり、制御回路1に入力される。
【0033】
T1=k2−k1 …(6)
T=p×T1 …(7)
制御回路1では、垂直同期信号が入力されると前記Tを取り込み以下の様に水平周波数を算出する。
【0034】
fH=p×m/T=p×m/(p×T1)=m/T1 …(8)
次に、入力信号の総ライン数Rが、pm+nより多い場合について説明する。総ライン数Rがpm+nより多いため、制御回路1で計測時間Tを取り込む垂直同期入力時は、pm+n進カウンタ15の出力はHを出力している。このため、差分器6の入力は、n進カウンタ2によるラッチ出力k1と、pm+n進カウンタ15によるラッチ出力k3となる。前記差分器6入力の差分出力T2は、pm+n進カウンタ15出力がHの為、そのまま制御回路1に入力される。
【0035】
T2=k3−k1 …(9)
T=T2 …(10)
制御回路1では、垂直同期信号が入力されると前記Tを取り込み以下の様に水平周波数を算出する。
【0036】
fH=p×m/T=p×m/T2 …(11)
ここで、T1とT2の関係は、

Figure 0003821913
の関係があり、制御回路1での算出は総ライン数に関わらずに水平周波数を検出することができる。入力信号の総ライン数がpm+nより少ない場合に比べて多い場合は、Tの時間が短くなることで、基準クロックカウンタ8とラッチ回路4,5,11との間のラッチミスで生じる誤差が大きく影響し、検出精度が低下するが、これをpm+n進カウンタ15で周波数検出することで精度をp倍向上させている。このようにして、自動的にカウンタを切替、入力信号の総ライン数に関わらず検出精度の高い周波数検出を行っている。
【0037】
【発明の効果】
以上のように本発明によれば、n進カウンタとm進カウンタとを同時にカウント動作を開始させるため、1度の垂直割り込みで検出を行い、この1回の割り込みについても前記両カウンタ出力の差を時間計測するために、その割り込み遅延時間の影響を受けなくなり、結果として精度高く水平周波数の検出が可能となるうえ、それに接続される機器に制限がなくなり、汎用性がきわめて高くなる。
【図面の簡単な説明】
【図1】参考例1による水平周波数検出回路の構成図
【図2】参考例2による水平周波数検出回路の構成図
【図3】参考例2におけるメインフローチャート
【図4】参考例2におけるVsync割り込みフローチャート
【図5】本発明の実施の形態による水平周波数検出回路の構成図
【図6】従来の技術例の同期周波数検出回路の構成図
【符号の説明】
1 制御回路
2 n進カウンタ
3 m進カウンタ
4 第一のラッチ回路
5 第二のラッチ回路
6 差分器
7 基準クロック発生回路
8 基準クロックカウンタ
9 k進カウンタ
10、12 切替回路
11 第三のラッチ回路
13 p倍アンプ
14 m+n進カウンタ
15 pm+n進カウンタ
41 垂直同期周波数信号入力手段
42 水平同期周波数信号入力手段
43 割り込み受付回路
44 カウンタ
45 CPU
46 出力回路
47 分周器
48 基準クロック発生回路
49 切替回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a horizontal frequency detection circuit suitable for use in, for example, a multi-scan display monitor.
[0002]
[Prior art]
In various types of computer devices connected to a multi-scan display, the horizontal sync signal and the vertical sync signal often have different frequencies. Therefore, in a multi-scan display, data from the computer device connected to the multi-scan display In order to display, the frequency of each of the horizontal synchronization signal and the vertical synchronization signal from each computer device inputted thereto is detected, and the display follows the detected frequency of each of the horizontal and vertical synchronization signals. If a cathode ray tube is used, the horizontal and vertical deflection circuits must be controlled. If the display is liquid crystal, it is necessary to control the driving circuit. As described above, in the multi-scan display, it is necessary to detect the frequency of each of the horizontal synchronizing signal and the vertical synchronizing signal input thereto. A horizontal frequency detection circuit described in Japanese Patent No. 286076 is known as a prior art example.
[0003]
The horizontal frequency detection circuit of the prior art example described in the publication will be described with reference to FIG. 6. This horizontal frequency detection circuit includes a vertical synchronization signal input means 41 for inputting a vertical synchronization signal for display, and its vertical synchronization. An interrupt reception circuit 43 that receives an output signal from the signal input means 41 and outputs an interrupt signal, a reference clock generation circuit 48 that generates a reference clock having a known frequency, and a frequency divider 47 that divides the reference clock signal. A horizontal sync signal input means 42 for inputting a horizontal sync signal for display, a counter 44 for receiving the output signal of the horizontal sync signal input means 42 and counting the horizontal sync signal, and the output of the frequency divider 47 described above. , Horizontal synchronization counter 44 output and interrupt reception circuit 43 output based on the horizontal synchronization signal frequency (horizontal synchronization frequency) A CPU45 for calculating the signal of frequency (vertical synchronization frequency), and is more configuration and switching circuit 49.
[0004]
[Problems to be solved by the invention]
In the above prior art example, the number of horizontal synchronization signals input during one vertical period is counted, and the horizontal synchronization frequency is calculated from the total number of horizontal lines and the vertical frequency in one vertical period obtained from the count value. To do. In such calculation, some computer equipment that is the input signal source does not have a horizontal synchronization signal or has an equivalent pulse within the vertical blanking period. There is a problem that restrictions are imposed on devices connected thereto, and versatility is lowered.
[0005]
In the above prior art example, in order to detect the horizontal frequency with high accuracy, it is necessary to accurately detect the time between interrupts when the vertical synchronization signal is input, but at least two interrupts are required. However, when the CPU in the multi-scan display is doing other work, a delay time for the detection always occurs due to the nature of the interrupt, and the delay time tends to vary. There is a problem that the detection accuracy of the horizontal frequency inevitably deteriorates.
[0006]
In addition, recent multi-scan displays such as liquid crystal display are highly dependent on the frequency of the controlled object and require high-precision horizontal frequency detection. There are also challenges.
[0007]
[Means for Solving the Problems]
In order to solve this problem, the present invention starts counting operations of the n-ary counter and the m-ary counter at the same time after receiving the vertical synchronization signal input interrupt, measures the time T of the counter output time, and calculates the following equation: Perform horizontal frequency detection.
[0008]
fH = (mn) / T
Since the horizontal frequency fH does not affect the interrupt delay time, the horizontal frequency can be detected with high accuracy.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
The horizontal frequency detection circuit of the present invention includes a reference clock counter that counts a reference clock whose frequency is known, an n-ary counter that counts a horizontal synchronizing signal, an m + n-ary counter that counts a horizontal synchronizing signal, and a horizontal synchronizing signal. A pm + n base counter for counting, a first latch circuit for latching the count value of the reference clock counter at the rising edge of the n-ary counter output, and a first latch circuit for latching the count value of the reference clock counter at the rising edge of the m + n base counter output A second latch circuit, a third latch circuit that latches the count value of the reference clock counter at the rising edge of the pm + n-ary counter output, and a first that switches the second and third latch circuit outputs by the pm + n-ary counter output. Switching circuit, the first latch circuit output and the first switching circuit A differentiator for taking the difference between the circuit output, and p times amplifier for p times the differentiator output, a second switching circuit for switching the differentiator output and p times amplifier output in the pm + n-ary counter output, the horizontal sync A horizontal frequency detection circuit comprising a control circuit for simultaneously reset-controlling three counters for counting signals and calculating a horizontal frequency from the output of the second switching circuit, and a pm + n-ary counter according to the total number of input signal lines And m + n base counter output is automatically switched. When m + n base counter is selected, it is normalized to pm + n base counter by a p-fold amplifier, so accuracy automatically depends on the total number of input signal lines. Therefore, the horizontal frequency is detected by selecting a good counter.
[0016]
( Reference Example 1 )
FIG. 1 shows a horizontal frequency detection circuit in Reference Example 1. In FIG. 1, reference numeral 1 outputs a count start signal b to each of the n-ary and m-ary counters 2 and 3 when a vertical synchronizing signal is inputted. The control circuit 2 calculates the horizontal frequency based on the output of the subtractor 6. When the count start signal b is input from the control circuit 1, the count circuit 2 starts counting the horizontal synchronization signal and outputs when the count value becomes n. An n-ary counter in which H is set to H. When a count start signal b is input from the control circuit 1, 3 starts a count of the horizontal synchronization signal, and when the count value becomes m, an m-ary counter in which the output is H. The first latch circuit 5 holds the output value of the reference clock counter 8 when the output of the n-ary counter 2 becomes H, and 5 indicates the output of the reference clock counter 8 when the output of the m-ary counter 3 becomes H. Hold value The second latch circuit, 6 is a differentiator that takes the difference between the output values of the reference clock counter 8 held in the first and second latch circuits 4 and 5, and 7 is a reference clock generator that generates a reference clock having a known frequency. A circuit 8 is a reference clock counter that counts the reference clock and outputs a count value.
[0017]
The operation of the horizontal frequency detection circuit of the reference example 1 configured as described above will be described. When the vertical synchronization signal is input to the control circuit 1, the control circuit 1 outputs a count start signal b. When the count start signal b is input to the n-ary counter 2 and the m-ary counter 3, respectively, the n-ary counter 2 and the m-ary counter 3 start counting the horizontal synchronization signal. The n-ary counter 2 sets the output to H when the count value reaches n. Similarly, the m-ary counter also sets the output to H when the count value reaches m. On the other hand, the output clock of the reference clock generation circuit 7 is counted by the reference clock counter 8 and the count value is always output. The first latch circuit 4 holds the count value of the reference clock counter 8 when the output of the n-ary counter 2 becomes H. Similarly, the output signal of the m-ary counter is H in the second latch circuit 5. The count value is held when The differencer 6 outputs the difference T between the two held count values to the control circuit 1. Needless to say, this differential output is the output delay of the n-ary counter and the m-ary counter, in other words, the time of mn horizontal cycles. The control circuit 1 calculates the following calculation formula (1) and detects the horizontal frequency fH at the next vertical synchronization input when the output of the differencer 6 is valid.
[0018]
fH = (mn) / T (1)
As described above, since the horizontal frequency is detected in the horizontal frequency detection circuit of Reference Example 1 , even if an interrupt delay occurs when the vertical synchronization signal is input to the control circuit 1 as described in the prior art, two counters are used. Since 2 and 3 start counting at the same time for horizontal frequency detection, such an interrupt delay is canceled by the differentiator 6, and as a result, the detection accuracy of the horizontal frequency is not affected.
[0019]
In the horizontal frequency detection circuit of the reference example 1 , the n-ary counter 2 starts counting n from the start of counting of the horizontal synchronizing signal until the count value becomes n and the output becomes H (the number of horizontal lines is n lines). If the period is set longer than the vertical blanking period of the corresponding input signal, the horizontal sync signal in the vertical blanking period in various computer equipment may or may not exist, and there may be an equivalent pulse. Needless to say, it is possible to detect the horizontal frequency without being affected by the absence.
[0020]
Further, in the first reference example , a description has been given of a configuration comprising two n-ary counters and 2m-ary counters 3 of different count numbers. However, for the outputs of these counters 2 and 3, one rise and fall can be controlled by the same counter. Even if it is performed by a counter, it can be similarly implemented.
[0021]
( Reference Example 2 )
FIG. 2 shows a circuit configuration of a horizontal frequency detection circuit according to Reference Example 2. In FIG. 2, reference numeral 1 denotes a count start signal b for three horizontal counters 2, 3 and 9 when a vertical synchronization signal is inputted. The control circuit 2 that outputs and calculates the horizontal frequency based on the output of the subtractor 6, when the count start signal b is input from the control circuit 1, starts counting the horizontal synchronization signal, and the count value is n Is an n-ary counter whose output is H. When the count start signal b is input from the control circuit 1, 3 starts counting the horizontal synchronizing signal, and when the count value reaches m, the output is an m-ary counter, and 4 is the output of the n-ary counter 2. A first latch circuit that holds the output value of the reference clock counter 8 when it becomes H, and a second latch circuit 5 that holds the output value of the reference clock counter 8 when the output of the selector 10 becomes H , 6 is a differentiator that takes the difference between the output values of the reference clock counter 8 held in the first and second latch circuits 4 and 5, 7 is a reference clock generation circuit for generating a reference clock having a known frequency, and 8 is A reference clock counter 9 that counts the reference clock and outputs a count value. When a count start signal b is input from the control circuit 1, 9 counts the horizontal synchronization signal, and the count value becomes k. k-ary counter that outputs a H and, 10 by a selector switch signal c output from the control circuit 1, a selector for switching the output of the m-ary counter 3, and the output of k-ary counter 9.
[0022]
The operation of the horizontal frequency detection circuit of the reference example 2 configured as described above will be described with reference to the flowcharts of FIGS. As shown in FIG. 3, the control circuit 1 operates in a loop in which fH is always a detection result after flag (flag) A is reset to “0”. When the vertical synchronization signal is input to the control circuit 1, the control circuit 1 performs the vertical (Vsync) interrupt process of FIG. When the vertical synchronization signal is input for the first time, flagA in the flowchart of FIG. 4 is reset to “0” in the processing of FIG. 3, so the selector switching signal of L for selecting the m-ary counter 3 output to the secretor 10. After outputting C, the count start signal b is output to each of the n-ary counter 2, the m-ary counter 3, and the k-ary counter 9. When the count start signal b is output from the control circuit 1, each of the counters 2, 3, and 9 starts to count the horizontal synchronization signal. Then, the control circuit 1 sets flagA to “1”, ends the interrupt processing once, and returns to the main loop of FIG. The n-ary counter 2 sets the output to H when the count value reaches n. Similarly, the m-ary and k-ary counters 3 and 9 output H when the count values reach m and k, respectively. On the other hand, the output clock of the reference clock generation circuit 7 is counted by the reference clock counter 8 and the count value is always output. The first latch circuit 4 holds the counter value of the reference clock counter 8 when the output of the n-ary counter 2 becomes H. Similarly, the second latch circuit 5 holds the count value when the output signal of the m-ary counter 3 selected by the selector circuit 10 by the selector switching signal C becomes H. The differencer 6 outputs the difference T between the two held count values to the control circuit 1. Needless to say, this differential output is the output delay of the n-ary counter and the m-ary counter, in other words, the time of mn horizontal cycles.
[0023]
In the control circuit 1, the vertical interrupt process of FIG. 4 is performed again at the next vertical synchronizing signal input. In the flowchart of FIG. 4, since flagA is set to “1”, the state of the selector switching signal C is checked next. Since the C state is the L state in which the m-ary counter is selected, the difference line number q between n and m is calculated by the following equation (2). Next, the differencer output T is taken in and the horizontal frequency fH is calculated by the following equation (3).
[0024]
q = mn (2)
fH = q / T (3)
Here, when the calculated horizontal frequency fH is lower than the set threshold horizontal frequency, the same processing as that at the time of the previous vertical synchronization input is performed, and the horizontal frequency fH is determined in the main loop (k-advance). The counter 9 has not reached the count value k).
[0025]
When the calculated horizontal frequency fH is a high horizontal frequency because the horizontal frequency from the device connected to the multi-scan display is high, the differencer output T is a latch error between the reference clock counter 8 and the latch circuits 4 and 5. Insufficient time is obtained for the error that occurs in, so the accuracy is poor. Therefore, in order to perform detection with high accuracy again, the selector switching signal C is changed to H, the k-adic counter 9 is selected, and the horizontal synchronization signal is counted again. The count value of the reference clock counter 8 is held by the first and second latch circuits 4 and 5 at the rise of the outputs of the n-ary counter 2 and the k-ary counter 9, and this difference is input to the control circuit 1. When the next vertical synchronizing signal is input, the control circuit 1 repeats the interrupt processing of FIG. 4 again, flag A is 1, the selector switching signal C is H, and the difference line number q between n and k is expressed by the following equation (4). ), The horizontal frequency fH is calculated by the following equation (5).
[0026]
q = k−n (4)
fH = q / T (5)
Here, k of the k-adic counter 9 is set so that the differencer output T does not affect the accuracy even if the frequency is high, so that it is possible to detect the horizontal frequency with high accuracy even when a high horizontal frequency is input. Become.
[0027]
Thus, once the frequency detection is performed using the m-adic counter 3, and the horizontal frequency detection is performed again using the k-adic counter 9 sufficiently larger than m in the case of a high horizontal frequency where the accuracy is deteriorated, the input horizontal frequency is detected. The horizontal frequency can be detected with high accuracy regardless of the height.
[0028]
In the reference example 2 , as in the above-described reference example 1 , even if the interrupt delay of the vertical synchronization signal occurs, the counters 2, 3, and 9 start counting simultaneously, and the interrupter cancels the interrupt delay by the difference unit 6. Therefore, the accuracy of horizontal frequency detection is not affected.
[0029]
In the above description, the third horizontal counter and the second horizontal counter are switched, but it goes without saying that the count number of the second counter may be directly switched from m to k by the control circuit.
[0030]
( Embodiment )
FIG. 5 shows a horizontal frequency detection circuit according to an embodiment of the present invention. In FIG. 5, reference numeral 1 denotes a count start signal b which is output to three horizontal counters 2, 14 and 15 when a vertical synchronizing signal is input. The control circuit 2 calculates the horizontal frequency based on the output of the selector 12. When the count start signal b is input from the control circuit 1, the control circuit 2 starts counting the horizontal synchronization signal, and when the count value becomes n. An n-ary counter whose output is H, 14 starts counting the horizontal synchronizing signal when the count start signal b is input from the control circuit 1, and an m + n-ary counter whose output is H when the count value becomes m + n, 15 starts counting the horizontal synchronizing signal when the control circuit 1 receives the count start signal b. When the count value reaches pm + n, the output is pm + n-adic count. It is a printer. 7 is a reference clock generation circuit for generating a reference clock having a known frequency, 8 is a reference clock counter that counts the reference clock and outputs a count value, and 4 is an output when the output of the n-ary counter 2 becomes H. A first latch circuit for holding the output value of the reference clock counter 8, 5 is a second latch circuit for holding the output value of the reference clock counter 8 when the output of the m + n-ary counter 14 becomes H, and 11 is pm + n The third latch circuit 10 holds the output value of the reference clock counter 8 when the output of the decimal counter 15 becomes H, and the second and third latch circuits 5 are based on the output of the pm + n decimal counter 15. , 11 is a selector for switching the outputs. 6 is a subtractor that takes the difference between the output values of the reference clock counter 8 held by the first latch circuit 4 and the second or third latch circuit 5 or 11, and 13 is p times the output of the subtractor 6. The p-fold amplifier 12 is a selector circuit that switches between the differencer 6 and the output p-fold amplifier 13 output based on the output of the pm + n base counter 15.
[0031]
The operation of the horizontal frequency detection circuit of the present embodiment configured as described above will be described. When the vertical synchronization signal is input to the control circuit 1, the control circuit 1 outputs a count start signal b. When the count start signal b is input to the n-ary, m + n, and pm + n-ary counters 2, 14, and 15, the n-ary, m + n, and pm + n-ary counters 2, 14, and 15 start counting the horizontal synchronization signal. The n-ary counter 2 sets the output to H when the count value reaches n. Similarly, when the m + n and pm + n base counters 14 and 15 reach m + n and pm + n, the output is set to H. On the other hand, the output clock of the reference clock generation circuit 7 is counted by the reference clock counter 8 and the count value is always output. The first latch circuit 4 holds the counter value k1 of the reference clock counter 8 when the output of the n-ary counter 2 becomes H. Similarly, the second and third latch circuits 5 and 11 use m + n-adic. When the output signals of the counter 14 and the pm + n-ary counter 15 become H, the count values k2 and k3 are held.
[0032]
Here, a case where the total number of lines R of the input signal is smaller than pm + n will be described. Since the total number of lines R is less than pm + n, the output of the pm + n base counter 15 continues to output L because the count value does not reach pm + n until the next vertical synchronization signal input. Therefore, the inputs of the subtractor 6 are the latch output k1 from the n-ary counter 2 and the latch output k2 from the m + n-ary counter 14. The difference output T1 input to the differencer 6 is input to the control circuit 1 through the p-fold amplifier 13 because the output of the pm + n-adic counter 15 is L.
[0033]
T1 = k2-k1 (6)
T = p × T1 (7)
When a vertical synchronizing signal is input, the control circuit 1 takes in the T and calculates the horizontal frequency as follows.
[0034]
fH = p × m / T = p × m / (p × T1) = m / T1 (8)
Next, a case where the total number R of input signals is greater than pm + n will be described. Since the total number of lines R is greater than pm + n, the output of the pm + n-adic counter 15 outputs H at the time of vertical synchronization input in which the control circuit 1 takes the measurement time T. For this reason, the inputs of the subtractor 6 are the latch output k1 from the n-ary counter 2 and the latch output k3 from the pm + n-ary counter 15. The difference output T2 input to the differencer 6 is input to the control circuit 1 as it is because the output of the pm + n base counter 15 is H.
[0035]
T2 = k3-k1 (9)
T = T2 (10)
When a vertical synchronizing signal is input, the control circuit 1 takes in the T and calculates the horizontal frequency as follows.
[0036]
fH = p × m / T = p × m / T2 (11)
Here, the relationship between T1 and T2 is
Figure 0003821913
The calculation by the control circuit 1 can detect the horizontal frequency regardless of the total number of lines. When the total number of lines of the input signal is larger than the case where the total number of lines is smaller than pm + n, an error caused by a latch error between the reference clock counter 8 and the latch circuits 4, 5, 11 is greatly affected by shortening the time T. However, the detection accuracy is lowered, but the frequency is detected by the pm + n-adic counter 15 to improve the accuracy p times. In this way, the counter is automatically switched, and frequency detection with high detection accuracy is performed regardless of the total number of lines of the input signal.
[0037]
【The invention's effect】
As described above, according to the present invention, since the n-ary counter and the m-ary counter start counting simultaneously, detection is performed by one vertical interrupt, and the difference between the outputs of both counters is also detected for one interrupt. Therefore, it is possible to detect the horizontal frequency with high accuracy, and there is no restriction on the devices connected thereto, and the versatility becomes extremely high.
[Brief description of the drawings]
Figure 1 is a configuration diagram of a horizontal frequency detecting circuit according to Reference Example 1 [2] configuration diagram of a horizontal frequency detecting circuit according to Reference Example 2 [3] the main flow chart Figure 4 in Reference Example 2 Vsync interrupt in Reference Example 2 FIG. 5 is a block diagram of a horizontal frequency detection circuit according to an embodiment of the present invention. FIG. 6 is a block diagram of a conventional synchronous frequency detection circuit.
1 control circuit 2 n-ary counter 3 m-mary counter 4 first latch circuit 5 second latch circuit 6 differentiator 7 reference clock generation circuit 8 reference clock counter 9 k-ary counter 10, 12 switching circuit 11 third latch circuit 13 p-times amplifier 14 m + n base counter 15 pm + n base counter 41 Vertical synchronization frequency signal input means 42 Horizontal synchronization frequency signal input means 43 Interrupt reception circuit 44 Counter 45 CPU
46 output circuit 47 frequency divider 48 reference clock generation circuit 49 switching circuit

Claims (1)

周波数が既知である基準クロックをカウントする基準クロックカウンタと、
水平同期信号をそれぞれカウントするn進カウンタ、m+n進カウンタおよびpm+n進カウンタと、
前記n進カウンタ出力の立ち上がりで、前記基準クロックカウンタのカウント値をラッチする第一のラッチ回路と、
前記m+n進カウンタ出力の立ち上がりで基準クロックカウンタのカウント値をラッチする第二のラッチ回路と、
前記pm+n進カウンタ出力の立ち上がりで基準クロックカウンタのカウント値をラッチする第三のラッチ回路と、
前記第二、第三のラッチ回路出力を前記pm+n進カウンタ出力で切り替える第一の切替回路と、
前記第一のラッチ回路出力と前記第一の切替回路出力の差分をとる差分器と、
前記差分器出力をp倍するp倍アンプと、
前記差分器出力とp倍アンプ出力を前記pm+n進カウンタ出力で切り替える第二の切替回路と、
前記水平同期信号をそれぞれカウントする3つのカウンタを同時にリセット制御しかつ第二の切替回路出力より水平周波数を算出する制御回路と、
を具備したことを特徴とする水平周波数検出回路。
A reference clock counter that counts a reference clock whose frequency is known;
An n-ary counter, an m + n-ary counter, and a pm + n-ary counter for counting horizontal synchronizing signals, respectively
A first latch circuit that latches the count value of the reference clock counter at the rising edge of the n-ary counter output;
A second latch circuit that latches the count value of the reference clock counter at the rise of the m + n-ary counter output;
A third latch circuit that latches the count value of the reference clock counter at the rising edge of the pm + n-ary counter output;
A first switching circuit for switching the second and third latch circuit outputs with the pm + n-ary counter output;
A differentiator for taking a difference between the first latch circuit output and the first switching circuit output;
A p-fold amplifier for multiplying the differencer output by p;
A second switching circuit for switching the differencer output and the p-fold amplifier output by the pm + n-ary counter output;
A control circuit for simultaneously reset-controlling three counters that respectively count the horizontal synchronization signals and calculating a horizontal frequency from the output of the second switching circuit;
A horizontal frequency detection circuit comprising:
JP12951197A 1997-05-20 1997-05-20 Horizontal frequency detection circuit Expired - Lifetime JP3821913B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12951197A JP3821913B2 (en) 1997-05-20 1997-05-20 Horizontal frequency detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12951197A JP3821913B2 (en) 1997-05-20 1997-05-20 Horizontal frequency detection circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2006107645A Division JP2006254482A (en) 2006-04-10 2006-04-10 Horizontal frequency detection circuit

Publications (2)

Publication Number Publication Date
JPH10319930A JPH10319930A (en) 1998-12-04
JP3821913B2 true JP3821913B2 (en) 2006-09-13

Family

ID=15011309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12951197A Expired - Lifetime JP3821913B2 (en) 1997-05-20 1997-05-20 Horizontal frequency detection circuit

Country Status (1)

Country Link
JP (1) JP3821913B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4000699B2 (en) * 1999-01-05 2007-10-31 ソニー株式会社 Horizontal frequency measurement method and apparatus
JP4851118B2 (en) * 2005-05-23 2012-01-11 ソニー株式会社 Imaging system, imaging control device, vertical synchronization method, and program
JP5434333B2 (en) 2009-07-27 2014-03-05 セイコーエプソン株式会社 Inclination detection method and inclination detection apparatus
CN109100928B (en) * 2018-09-05 2020-07-14 山东交通学院 High-precision pulse time interval measuring method and circuit

Also Published As

Publication number Publication date
JPH10319930A (en) 1998-12-04

Similar Documents

Publication Publication Date Title
KR950005054B1 (en) Apparatus for detecting odd/even field of tv signal
JP2003067124A (en) Position detector
JP3821913B2 (en) Horizontal frequency detection circuit
JPH11509706A (en) Synchronization of digital television
KR0120742B1 (en) Frequency detector
JPS60207923A (en) Position detector
KR850008593A (en) Synchronizer
KR0164538B1 (en) Circuit for generating dummy synchronization signal
JP2006254482A (en) Horizontal frequency detection circuit
KR0175973B1 (en) Method and apparatus for providing a video synchronising signal of a predetermined polarity
JP3399450B2 (en) Frequency detection method and frequency detection circuit
US5159454A (en) Horizontal-synchronizing-pulse measuring circuit
KR100710933B1 (en) Horizontal Deflection Frequency Measuring Method and Apparatus
JP2000131355A (en) Frequency detecting method
EP0446833A2 (en) Display control apparatus enabling clear display of operation performance of an arithmetic processor
JP2567120B2 (en) Horizontal sync signal measuring circuit
JP3827047B2 (en) Sync signal measuring device, display device, and sync signal measuring method
JP3536619B2 (en) Scanning line number discriminator
JPH07281650A (en) Horizontal frequency detection circuit
JPH08274763A (en) Delay time measuring instrument
JPH08123348A (en) Horizontal frequency detection circuit
JPH0634665A (en) Detecting device of glitch of digital oscillo-scope
JP3523059B2 (en) Horizontal synchronization signal frequency detection method and horizontal synchronization signal frequency detection circuit
SU907467A2 (en) Pulse peak distortion meter
JPS5813959B2 (en) Data display

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060410

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060515

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060621

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4