Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4233551B2 - Timing control apparatus and timing control method - Google Patents
[go: Go Back, main page]

JP4233551B2 - Timing control apparatus and timing control method - Google Patents

Timing control apparatus and timing control method Download PDF

Info

Publication number
JP4233551B2
JP4233551B2 JP2005235297A JP2005235297A JP4233551B2 JP 4233551 B2 JP4233551 B2 JP 4233551B2 JP 2005235297 A JP2005235297 A JP 2005235297A JP 2005235297 A JP2005235297 A JP 2005235297A JP 4233551 B2 JP4233551 B2 JP 4233551B2
Authority
JP
Japan
Prior art keywords
timing
period
oscillation
signal
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005235297A
Other languages
Japanese (ja)
Other versions
JP2005328579A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005235297A priority Critical patent/JP4233551B2/en
Publication of JP2005328579A publication Critical patent/JP2005328579A/en
Application granted granted Critical
Publication of JP4233551B2 publication Critical patent/JP4233551B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Description

本発明は、タイミング制御装置およびタイミング制御方法に関し、詳細には、第1の発振素子と第2の発振素子とを備えたタイミング制御装置およびタイミング制御方法に関する。   The present invention relates to a timing control device and a timing control method, and more particularly to a timing control device and a timing control method including a first oscillation element and a second oscillation element.

例えば、CPUの発振周波数を補正する方法としては、特許文献1が公知である。従来より、発振素子としては、水晶発振子、セラミック発振子やCR発振子などが使用されている。一般に、デジタルカメラにおいては、デジタル信号処理部であるIPP(Image Pre Processor)の動作周波数には、水晶発振子を用いているのでかなり高精度である。これに対し、CPUの動作周波数は、コストや発振の立上り時間が短いなどの関係上、安価なセラミック発振子を用いる場合が多い。CPUは、撮影などの処理を行う際に、IPPの垂直同期信号(vd)を起点に各制御のタイミングをとる場合が多く、その場合のタイミングの取り方は、垂直同期信号(vd)を割り込みなどで検出し、検出した時点からCPU内のタイマをスタートさせて規定時間経過後に、制御対象に処理を行うようにしている。   For example, Patent Document 1 is known as a method for correcting the oscillation frequency of the CPU. Conventionally, crystal oscillators, ceramic oscillators, CR oscillators, and the like have been used as oscillation elements. In general, in a digital camera, a crystal oscillator is used for the operating frequency of an IPP (Image Pre Processor) which is a digital signal processing unit, so that the accuracy is considerably high. On the other hand, for the operating frequency of the CPU, an inexpensive ceramic oscillator is often used because of its cost and short rise time of oscillation. When performing processing such as shooting, the CPU often takes the timing of each control starting from the IPP vertical synchronization signal (vd). In this case, the timing is interrupted by interrupting the vertical synchronization signal (vd). The timer in the CPU is started from the point of detection, and the processing is performed on the control target after the lapse of a specified time.

特開平5−75445号公報Japanese Patent Laid-Open No. 5-75445

しかしながら、上記の如く、IPP側では、高価な水晶発振子を用いているため発信周波数の誤差が少なくなるのに対して、CPU側では、安価なセラミック発振子を用いているので、発振周波数の誤差が大きくなり時間精度が悪くなる。そのため、CPUが、IPPから入力される垂直同期信号(vd)を基準として、制御対象の制御の開始タイミングを決定した場合に誤差が生じるという問題がある。   However, as described above, since an expensive crystal oscillator is used on the IPP side, the error of the oscillation frequency is reduced. On the other hand, an inexpensive ceramic oscillator is used on the CPU side. The error becomes larger and the time accuracy becomes worse. Therefore, there is a problem that an error occurs when the CPU determines the control start timing of the control target with reference to the vertical synchronization signal (vd) input from the IPP.

本発明は、上記に鑑みてなされたものであり、複数の発振素子を使用して制御対象の制御の開始タイミングを決定する場合に、当該開始タイミングの誤差を防止したタイミング制御装置およびタイミング制御方法を提供することを目的とする。   The present invention has been made in view of the above, and a timing control device and a timing control method that prevent an error in the start timing when a control start timing of a control target is determined using a plurality of oscillation elements. The purpose is to provide.

上述した課題を解決し、目的を達成するために、本発明は、第1の発振素子と、第2の発振素子と、前記第1の発振素子の発振周波数に基づき、所定の周期を有する第1信号を出力する第1信号発生手段と、前記第1信号の周期を、前記第2の発振素子の発振周波数に基づきカウントすることで測定する周期測定手段と、前記第2の発振素子の発振周波数に基づいて制御タイミングを決定する制御タイミング決定手段と、前記第1信号の周期を前記第2の発振素子の発振周波数で測定した場合の理論値と、前記周期測定手段によるカウント値とに基づき、前記制御タイミング決定手段が決定する制御タイミングを補正する補正手段と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a first oscillation element, a second oscillation element, and a first cycle having a predetermined period based on the oscillation frequency of the first oscillation element. First signal generating means for outputting one signal, period measuring means for measuring the period of the first signal by counting based on the oscillation frequency of the second oscillation element, and oscillation of the second oscillation element Based on a control timing determining means for determining a control timing based on the frequency, a theoretical value when the period of the first signal is measured at the oscillation frequency of the second oscillating element, and a count value obtained by the period measuring means. Correction means for correcting the control timing determined by the control timing determination means.

また、本発明の好ましい態様によれば、前記補正手段による補正は、前記第2発振素子の誤差範囲内で行うことが望ましい。   According to a preferred aspect of the present invention, it is desirable that the correction by the correction means is performed within an error range of the second oscillation element.

また、本発明の好ましい態様によれば、前記周期測定手段は、前記第1信号の周期を複数回測定し、当該複数回の平均値を周期のカウント値とすることが望ましい。   Further, according to a preferred aspect of the present invention, it is desirable that the period measuring unit measures the period of the first signal a plurality of times, and uses the average value of the plurality of times as a period count value.

また、本発明の好ましい態様によれば、第1の発振素子と第2の発振素子の少なくとも一つは、装置の制御を行う中央演算装置の基準周波数を発振していることが望ましい。   According to a preferred aspect of the present invention, it is desirable that at least one of the first oscillation element and the second oscillation element oscillates a reference frequency of a central processing unit that controls the apparatus.

上記した課題を解決して、本発明の目的を達成するために、本発明は、第1の発振素子の発振周波数に基づき、所定の周期を有する第1信号を出力する第1信号発生工程と、前記第1信号の周期を、第2の発振素子の発振周波数に基づきカウントすることで測定する周期測定工程と、前記第2の発振素子の発振周波数に基づいて制御タイミングを決定する制御タイミング決定工程と、前記第1信号の周期を前記第2の発振素子の発振周波数で測定した場合の理論値と、前記周期測定工程によるカウント値とに基づき、前記制御タイミング決定工程が決定する制御タイミングを補正する補正工程と、を含むことが望ましい。   In order to solve the above-described problems and achieve the object of the present invention, the present invention includes a first signal generation step of outputting a first signal having a predetermined period based on the oscillation frequency of the first oscillation element. , A period measuring step for measuring the period of the first signal by counting based on the oscillation frequency of the second oscillation element, and a control timing determination for determining a control timing based on the oscillation frequency of the second oscillation element A control timing determined by the control timing determination step based on a theoretical value obtained when measuring the cycle of the first signal at the oscillation frequency of the second oscillation element and the count value obtained by the cycle measurement step. And a correction step for correcting.

本発明は、第1の発振素子と、第2の発振素子と、前記第1の発振素子の発振周波数に基づき、所定の周期を有する第1信号を出力する第1信号発生手段と、前記第1信号の周期を、前記第2の発振素子の発振周波数に基づきカウントすることで測定する周期測定手段と、前記第2の発振素子の発振周波数に基づいて制御タイミングを決定する制御タイミング決定手段と、前記第1信号の周期を前記第2の発振素子の発振周波数で測定した場合の理論値と、前記周期測定手段によるカウント値とに基づき、前記制御タイミング決定手段が決定する制御タイミングを補正する補正手段と、を備えたこととしたので、垂直同期信号を基準にして制御対象の制御の開始タイミングを決定する場合に、誤差の少ない開始タイミングで制御対象を制御することが可能となる。   The present invention includes a first oscillating element, a second oscillating element, first signal generating means for outputting a first signal having a predetermined period based on an oscillating frequency of the first oscillating element, Period measuring means for measuring the period of one signal by counting based on the oscillation frequency of the second oscillating element; control timing determining means for determining control timing based on the oscillation frequency of the second oscillating element; The control timing determined by the control timing determination means is corrected based on the theoretical value when the period of the first signal is measured at the oscillation frequency of the second oscillation element and the count value by the period measurement means. When the control start timing of the control target is determined on the basis of the vertical synchronization signal, the control target is controlled at the start timing with less error. It becomes possible.

以下に、この発明に係るタイミング制御装置およびタイミング制御方法を適用したデジタルカメラについて図面を参照しつつ詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。また、下記実施の形態における構成要素には、当業者が容易に想定できるものまたは実質的に同一のものが含まれる。   Hereinafter, a digital camera to which a timing control apparatus and a timing control method according to the present invention are applied will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments. In addition, constituent elements in the following embodiments include those that can be easily assumed by those skilled in the art or that are substantially the same.

図1は、本実施の形態に係るデジタルカメラの構成図である。同図において、100はデジタルカメラを示しており、デジタルカメラ100は、レンズ系101、絞り・フィルター部等を含むメカ機構102、CCD103、CDS回路104、可変利得増幅器(AGCアンプ)105、A/D変換器106、IPP107、DCT108、コーダー109、MCC110、DRAM111、PCカードインタフェース112、CPU121、表示部122、操作部123、SG(制御信号生成)部126、ストロボ装置127、バッテリ128、DC−DCコンバータ129、EEPROM130、フォーカスドライバ131、パルスモータ132、ズームドライバ133、パルスモータ134、モータドライバ135を具備して構成されている。また、PCカードインタフェース112を介して着脱可能なPCカード150が接続されている。   FIG. 1 is a configuration diagram of a digital camera according to the present embodiment. In the figure, reference numeral 100 denotes a digital camera. The digital camera 100 includes a lens system 101, a mechanical mechanism 102 including an aperture / filter unit, a CCD 103, a CDS circuit 104, a variable gain amplifier (AGC amplifier) 105, an A / A D converter 106, IPP 107, DCT 108, coder 109, MCC 110, DRAM 111, PC card interface 112, CPU 121, display unit 122, operation unit 123, SG (control signal generation) unit 126, strobe device 127, battery 128, DC-DC A converter 129, an EEPROM 130, a focus driver 131, a pulse motor 132, a zoom driver 133, a pulse motor 134, and a motor driver 135 are provided. A detachable PC card 150 is connected via the PC card interface 112.

レンズユニットは、レンズ101系、絞り・フィルター部等を含むメカ機構102からなり、メカ機構102のメカニカルシャッタは2つのフィールドの同時露光を行う。レンズ系101は、例えば、バリフォーカルレンズからなり、フォーカスレンズ系101aとズームレンズ系101bとで構成されている。   The lens unit includes a mechanical mechanism 102 including a lens 101 system, an aperture / filter unit, and the like. A mechanical shutter of the mechanical mechanism 102 performs simultaneous exposure of two fields. The lens system 101 is composed of, for example, a varifocal lens, and includes a focus lens system 101a and a zoom lens system 101b.

フォーカスドライバ131は、CPU121から供給される制御信号に従って、パルスモータ132を駆動して、フォーカスレンズ系101aを光軸方向に移動させる。ズームドライバ133は、CPU121から供給される制御信号に従って、パルスモータ132を駆動して、ズームレンズ系101bを光軸方向に移動させる。また、モータドライバ135は、CPU121から供給される制御信号に従ってメカ機構102を駆動し、例えば、絞りの絞り値を設定する。   The focus driver 131 drives the pulse motor 132 according to the control signal supplied from the CPU 121 to move the focus lens system 101a in the optical axis direction. The zoom driver 133 drives the pulse motor 132 according to the control signal supplied from the CPU 121 to move the zoom lens system 101b in the optical axis direction. Further, the motor driver 135 drives the mechanical mechanism 102 in accordance with a control signal supplied from the CPU 121, and sets, for example, an aperture value of the aperture.

CCD(電荷結合素子)103は、レンズユニットを介して入力した映像を電気信号(アナログ画像データ)に変換する。CDS(相関2重サンプリング)回路104は、CCD型撮像素子に対する低雑音化のための回路である。   A CCD (charge coupled device) 103 converts an image input via the lens unit into an electrical signal (analog image data). A CDS (correlated double sampling) circuit 104 is a circuit for reducing noise in the CCD type image pickup device.

また、AGCアンプ105は、CDS回路104で相関2重サンプリングされた信号のレベルを補正する。なお、AGCアンプ105のゲインは、CPU121により、CPU121が内蔵するD/A変換器を介して設定データ(コントロール電圧)がAGCアンプ105に設定されることにより設定される。さらにA/D変換器106は、AGCアンプ105を介して入力したCCD103からのアナログ画像データをデジタル画像データに変換する。すなわち、CCD103の出力信号は、CDS回路104およびAGCアンプ105を介し、またA/D変換器106により、最適なサンプリング周波数(例えば、NTSC信号のサブキャリア周波数の整数倍)にてデジタル信号に変換される。   In addition, the AGC amplifier 105 corrects the level of the signal that has been correlated and sampled by the CDS circuit 104. The gain of the AGC amplifier 105 is set by the CPU 121 when setting data (control voltage) is set in the AGC amplifier 105 via a D / A converter built in the CPU 121. Further, the A / D converter 106 converts analog image data from the CCD 103 input via the AGC amplifier 105 into digital image data. That is, the output signal of the CCD 103 is converted into a digital signal through the CDS circuit 104 and the AGC amplifier 105 and by the A / D converter 106 at an optimum sampling frequency (for example, an integer multiple of the subcarrier frequency of the NTSC signal). Is done.

また、デジタル信号処理部であるIPP(Image Pre−Processor )107、DCT(Discrete Cosine Transform )108、およびコーダー(Huffman Encoder/Decoder )109は、A/D変換器106から入力したデジタル画像データについて、色差(Cb、Cr)と輝度(Y)に分けて各種処理、補正および画像圧縮/伸長のためのデータ処理を施す。また、IPP107はCPU121に、垂直同期信号(vd)、水平同期信号(Hd)等のタイミング信号を出力する。なお、IPP(Image Pre−Processor )107は、内部クロック(動作周波数)として水晶発振子の発振周波数を使用している。   Further, an IPP (Image Pre-Processor) 107, a DCT (Discrete Cosine Transform) 108, and a coder (Huffman Encoder / Decoder) 109, which are digital signal processing units, are digital image data input from the A / D converter 106. Various processing, correction, and data processing for image compression / decompression are performed separately for color differences (Cb, Cr) and luminance (Y). The IPP 107 also outputs timing signals such as a vertical synchronization signal (vd) and a horizontal synchronization signal (Hd) to the CPU 121. Note that an IPP (Image Pre-Processor) 107 uses the oscillation frequency of a crystal oscillator as an internal clock (operation frequency).

さらに、MCC(Memory Card Controller)110は、圧縮処理された画像を一旦蓄えてPCカードインタフェース112を介してPCカード150への記録、或いはPCカード150からの読み出しを行う。   Further, an MCC (Memory Card Controller) 110 temporarily stores the compressed image and records it on the PC card 150 or reads it from the PC card 150 via the PC card interface 112.

CPU121は、ROMに格納されたプログラムに従ってRAMを作業領域として使用して、操作部123からの指示、或いは図示しないリモコン等の外部動作指示に従い、上記デジタルカメラ内部の全動作を制御する。具体的には、CPU121は、撮像動作、ストロボ発光動作、自動露出(AE)動作、自動ホワイトバランス(AWB)調整動作や、AF動作等の制御を行う。なお、CPU121の内部クロック(動作周波数)としてセラミック発振子の発振周波数を使用している。   The CPU 121 uses the RAM as a work area according to a program stored in the ROM, and controls all operations inside the digital camera according to an instruction from the operation unit 123 or an external operation instruction such as a remote controller (not shown). Specifically, the CPU 121 controls an imaging operation, strobe light emission operation, automatic exposure (AE) operation, automatic white balance (AWB) adjustment operation, AF operation, and the like. Note that the oscillation frequency of the ceramic oscillator is used as the internal clock (operation frequency) of the CPU 121.

また、カメラ電源はバッテリ128、例えば、NiCd、ニッケル水素、リチウム電池等から、DC−DCコンバータ129に入力され、当該デジタルカメラ内部に供給される。   Camera power is input from a battery 128, such as NiCd, nickel metal hydride, or a lithium battery, to the DC-DC converter 129 and supplied into the digital camera.

表示部122は、LCD、LED、EL等で実現されており、撮影したデジタル画像データや、伸長処理された記録画像データ等の表示を行う。操作部123は、機能選択、撮影指示、およびその他の各種設定を外部から行うためのボタンを備えている。EEPROM130には、CPU121がデジタルカメラの動作を制御する際に使用する調整データ等が書き込まれている。また、ストロボ装置127は、CPU121から出力される制御信号に基づいてストロボ光を発光する。   The display unit 122 is realized by an LCD, LED, EL, or the like, and displays captured digital image data, decompressed recorded image data, and the like. The operation unit 123 includes buttons for performing function selection, shooting instruction, and other various settings from the outside. In the EEPROM 130, adjustment data and the like used when the CPU 121 controls the operation of the digital camera are written. The strobe device 127 emits strobe light based on a control signal output from the CPU 121.

上記したデジタルカメラ100(CPU121)は、被写体を撮像して得られる画像データをPCカード150に記録する記録モードと、PCカード150に記録された画像データを表示する表示モードと、撮像した画像データを表示部122に直接表示するモニタリングモード等を備えている。   The above-described digital camera 100 (CPU 121) includes a recording mode in which image data obtained by imaging a subject is recorded on the PC card 150, a display mode in which image data recorded on the PC card 150 is displayed, and captured image data. Is provided directly on the display unit 122.

つぎに、CPU121が実行する、IPP107から入力される垂直同期信号(vd)を基準にして制御対象の制御の開始タイミングを決定する動作を、ストロボ発光の同調制御を例に挙げて説明する。図2はCPU121により実行される垂直同期信号(vd)の周期の測定処理を説明するためのフローチャートである。図3は、CPU121により実行されるストロボ発光タイミングの計算処理を説明するためのフローチャートである。   Next, the operation performed by the CPU 121 for determining the start timing of the control of the control target with reference to the vertical synchronization signal (vd) input from the IPP 107 will be described with reference to the strobe emission synchronization control as an example. FIG. 2 is a flowchart for explaining the process of measuring the period of the vertical synchronization signal (vd) executed by the CPU 121. FIG. 3 is a flowchart for explaining the calculation processing of the strobe light emission timing executed by the CPU 121.

IPP107側では、高価な水晶発振子を用いているため発振周波数の誤差が少なくなるのに対して、CPU121側では、安価なセラミック発振子を用いているので、発振周波数の誤差が大きくなり時間精度が悪くなる。そのため、CPU121が、IPP107から入力される垂直同期信号(vd)を基準として、制御対象の制御の開始タイミングを決定した場合に誤差が生じる。そこで、本実施の形態では、CPU121は、IPP107から入力される垂直同期信号の周期を、内部の動作周波数(セラミック発振子の発振周波数)に基づいて測定し、当該垂直同期信号(vd)を基準にしてストロボ光の発光タイミングを決定する場合に、測定した垂直同期信号の周期に基づきストロボ光の発光タイミングを補正する。   On the IPP 107 side, since an expensive crystal oscillator is used, the error of the oscillation frequency is reduced. On the other hand, since an inexpensive ceramic oscillator is used on the CPU 121 side, the error of the oscillation frequency is increased and the time accuracy is increased. Becomes worse. For this reason, an error occurs when the CPU 121 determines the start timing of control of the control target based on the vertical synchronization signal (vd) input from the IPP 107. Therefore, in the present embodiment, the CPU 121 measures the period of the vertical synchronization signal input from the IPP 107 based on the internal operating frequency (the oscillation frequency of the ceramic resonator), and uses the vertical synchronization signal (vd) as a reference. When the strobe light emission timing is determined, the strobe light emission timing is corrected based on the measured period of the vertical synchronization signal.

図2を参照して、CPU121により実行される垂直同期信号(vd)の周期の測定処理を説明する。まず、同図で使用される変数を説明する。
tcnt1 :CPU内のタイマ(フリーラン)のカウント値
vd_time :CPU内のタイマのカウント単位で測定した垂直同期信号(vd)の周期(vd時間)
vd_time1:vd時間測定のためのタイマのカウント値を記憶する変数
With reference to FIG. 2, the measurement process of the period of the vertical synchronizing signal (vd) executed by the CPU 121 will be described. First, variables used in the figure will be described.
tcnt1: Count value of timer (free run) in CPU vd_time: Period (vd time) of vertical synchronizing signal (vd) measured in units of timer count in CPU
vd_time1: variable for storing the count value of the timer for vd time measurement

図2において、IPP107から、vdHEAD(フレーム垂直同期信号)またはvd(垂直同期信号)によりCPU121に割り込みが行われると、CPU121は、内部の動作周波数(セラミック発振子の発振周波数)に従って内部のタイマを使用してvd時間(垂直同期信号の周期)の測定を行う(ステップS100)。具体的には、vd時間の測定は、itu1_tmp=tcnt1、vd_time=itu1_tmp−vd_time1、vd_time1=itu1_tmpの演算により行う。このvd時間の測定は複数回行う。そして、複数回測定したvd時間の平均値を演算する
(ステップS101)。
In FIG. 2, when the CPU 121 is interrupted by the IPP 107 by vdHEAD (frame vertical synchronization signal) or vd (vertical synchronization signal), the CPU 121 sets the internal timer according to the internal operating frequency (the oscillation frequency of the ceramic resonator). The vd time (the period of the vertical synchronizing signal) is measured using (Step S100). Specifically, the measurement of the vd time is performed by calculation of itu1_tmp = tcnt1, vd_time = itu1_tmp−vd_time1, and vd_time1 = itu1_tmp. The measurement of the vd time is performed a plurality of times. Then, an average value of the vd times measured a plurality of times is calculated (step S101).

つぎに、図3を参照して、CPU121により実行されるストロボ発光タイミングの計算処理を説明する。下記表1は、vd_timeの上記タイマのカウント単位での値の標準値を示す。この下記表1に示す内容は、データ化されてROMに格納されている。   Next, with reference to FIG. 3, a calculation process of the strobe light emission timing executed by the CPU 121 will be described. Table 1 below shows the standard value of the value of vd_time in the count unit of the timer. The contents shown in Table 1 below are converted into data and stored in the ROM.

Figure 0004233551
Figure 0004233551

図3において、まず、CPU121は、NTSC/PAL(TV/LCD)の判定を行う(ステップS200、S204)。具体的には、測定したvd_timeにより、上記表1の各値と比較して、どのvd時間に近いかを判定して、NTSC、PAL(TV/LCD)のいずれかであるかを検出する。   In FIG. 3, first, the CPU 121 determines NTSC / PAL (TV / LCD) (steps S200 and S204). Specifically, the measured vd_time is compared with each value in Table 1 above to determine which vd time is close to detect NTSC or PAL (TV / LCD).

上記判定(ステップS200、S204)の結果、NTSCである場合には、vd時間のリミット演算を行う(ステップS201)。具体的には、vd_timeを表1の値のセラミック発振子の発振精度誤差分(例えば、±0.5%)の範囲をリミット範囲とし、vd_timeをこの範囲の値とする。   If the result of the above determination (steps S200 and S204) is NTSC, a vd time limit calculation is performed (step S201). Specifically, the range of the oscillation accuracy error (for example, ± 0.5%) of the ceramic oscillator having the values in Table 1 as vd_time is set as a limit range, and vd_time is set as a value within this range.

続いて、CPU121は、シャッタ速度より、vdからストロボ発光までの時間、すなわち、標準のストロボ発光タイミング時間(sy_start_time)を求める(ステップS201)。そして、標準のストロボ発光タイミング時間(sy_start_time)を測定したvd時間(vd_time)で補正演算する(ステップS203)。具体的には、補正ストロボ発光タイミング時間は、sy_start_time(補正ストロボ発光タイミング時間)=sy_start_time*vd_time(vd時間)/0x77daの演算により行う。ここで、0x77daは、標準のセラミック発振子の発振精度(例えば、±0%)で、CPU121が測定するvd時間値である。また、標準のストロボ発光時間は、標準のセラミック発振子での値である。   Subsequently, the CPU 121 obtains a time from vd to strobe light emission, that is, a standard strobe light emission timing time (sy_start_time) from the shutter speed (step S201). Then, the standard strobe emission timing time (sy_start_time) is corrected and calculated with the measured vd time (vd_time) (step S203). Specifically, the correction strobe light emission timing time is calculated by calculating sy_start_time (correction strobe light emission timing time) = sy_start_time * vd_time (vd time) / 0x77da. Here, 0x77da is a vd time value measured by the CPU 121 with the oscillation accuracy (for example, ± 0%) of a standard ceramic oscillator. Further, the standard strobe light emission time is a value for a standard ceramic oscillator.

CPU121は、タイマにsy_start_timeを設定し、タイマをスタートさせ、タイマの終了でストロボ装置127をストロボ発光させる。   The CPU 121 sets sy_start_time in the timer, starts the timer, and causes the flash device 127 to emit flash when the timer ends.

他方、CPU121は、上記判定(ステップS200、S204)の結果、PAL(TV)である場合には、vd時間のリミット演算を行う(ステップS205)。具体的には、vd_timeを表1の値のセラミック発振子の発振精度誤差分(例えば、±0.5%)の範囲をリミット範囲とし、vd_timeをこの範囲の値とする。   On the other hand, if the result of the determination (steps S200 and S204) is PAL (TV), the CPU 121 performs a vd time limit calculation (step S205). Specifically, the range of the oscillation accuracy error (for example, ± 0.5%) of the ceramic oscillator having the values in Table 1 as vd_time is set as a limit range, and vd_time is set as a value within this range.

続いて、CPU121は、シャッタ速度より、vdからストロボ発光までの時間、すなわち、標準のストロボ発光タイミング時間(sy_start_time)を求める(ステップS206)。そして、標準のストロボ発光タイミング時間(sy_start_time)を測定したvd時間(vd_time)で補正演算する(ステップS207)。具体的には、補正ストロボ発光タイミング時間は、sy_start_time(補正ストロボ発光タイミング時間)=sy_start_time*vd_time(vd時間)/0x8fd2の演算により行う。ここで、0x8fd2は、標準のセラミック発振子の発振精度(例えば、±0%)で、CPU121が測定するPAL(TV)のvd時間値である。そして、CPU121は、タイマにsy_start_timeを設定し、タイマをスタートさせ、タイマの終了でストロボ装置127をストロボ発光させる。   Subsequently, the CPU 121 obtains a time from vd to strobe light emission, that is, a standard strobe light emission timing time (sy_start_time) from the shutter speed (step S206). Then, the standard strobe emission timing time (sy_start_time) is corrected and calculated with the measured vd time (vd_time) (step S207). Specifically, the corrected strobe light emission timing time is calculated by the following calculation: sy_start_time (corrected strobe light emission timing time) = sy_start_time * vd_time (vd time) / 0x8fd2. Here, 0x8fd2 is the vd time value of PAL (TV) measured by the CPU 121 with the oscillation accuracy (for example, ± 0%) of a standard ceramic oscillator. Then, the CPU 121 sets sy_start_time for the timer, starts the timer, and causes the strobe device 127 to emit light when the timer ends.

また、CPU121は、上記判定(ステップS200、S204)の結果、PAL(LCD)である場合には、vd時間のリミット演算を行う(ステップS208)。具体的には、vd_timeを表1の値のセラミック発振子の発振精度誤差分(例えば、±0.5%)の範囲をリミット範囲とし、vd_timeをこの範囲の値とする。   If the result of the determination (steps S200 and S204) is PAL (LCD), the CPU 121 performs a vd time limit calculation (step S208). Specifically, the range of the oscillation accuracy error (for example, ± 0.5%) of the ceramic oscillator having the values in Table 1 as vd_time is set as a limit range, and vd_time is set as a value within this range.

続いて、CPU121は、シャッタ速度より、vdからストロボ発光までの時間、すなわち、標準のストロボ発光タイミング時間(sy_start_time)を求める(ステップS209)。そして、標準のストロボ発光タイミング時間(sy_start_time)を測定したvd時間(vd_time)で補正演算する(ステップS207)。具体的には、補正ストロボ発光タイミング時間は、sy_start_time(補正ストロボ発光タイミング時間)=sy_start_time*vd_time(vd時間)/0x63d2の演算により行う。ここで、0x63d2は、標準のセラミック発振子の発振精度(例えば、±0%)で、CPU121が測定するPAL(CCD)のvd時間値である。そして、CPU121は、タイマにsy_start_timeを設定し、タイマをスタートさせ、タイマの終了でストロボ装置127をストロボ発光させる。   Subsequently, the CPU 121 obtains a time from vd to strobe light emission, that is, a standard strobe light emission timing time (sy_start_time) from the shutter speed (step S209). Then, the standard strobe emission timing time (sy_start_time) is corrected and calculated with the measured vd time (vd_time) (step S207). Specifically, the corrected strobe light emission timing time is calculated by the following calculation: sy_start_time (corrected strobe light emission timing time) = sy_start_time * vd_time (vd time) / 0x63d2. Here, 0x63d2 is the vd time value of the PAL (CCD) measured by the CPU 121 with the oscillation accuracy (for example, ± 0%) of a standard ceramic oscillator. Then, the CPU 121 sets sy_start_time for the timer, starts the timer, and causes the strobe device 127 to emit light when the timer ends.

図4は、ストロボ発光タイミングを示すタイミングチャートであり、(A)はシャッタ速度1/250秒の場合のタイミングを示し、(B)はシャッタ速度1/8000秒の場合のタイミングを示す。同図において、(a)は垂直同期信号(vd)、(b)はストロボ発光タイミング(sy)、(c)はストロボ装置127の電荷蓄積リセット(sub)、(d)は画像取込み(ch1)を示す。   4A and 4B are timing charts showing strobe light emission timings. FIG. 4A shows the timing when the shutter speed is 1/250 seconds, and FIG. 4B shows the timing when the shutter speed is 1/8000 seconds. In the figure, (a) is a vertical synchronization signal (vd), (b) is a strobe light emission timing (sy), (c) is a charge accumulation reset (sub) of the strobe device 127, and (d) is an image capture (ch1). Indicates.

同図(A)に示すように、シャッタ速度1/250秒の場合には、ストロボ同調が良好である。他方、同図(B)に示すように、シャッタ速度1/8000秒の場合には、ストロボ同調はNGであり、sub(電荷蓄積リセット)中でch1(画像取込み)の後にストロボ発光している。シャッタ速度が高速になるとストロボが発光している時間の長さも問題となる。シャッタ速度=露光時間でストロボの発光が完了するのが望ましい。また、可能な限り最後のsub出力後にストロボの発光を開始するのが望ましいので、シャッタ速度以上の発光タイミング精度が必要となる。   As shown in FIG. 5A, the flash synchronization is good when the shutter speed is 1/250 seconds. On the other hand, as shown in FIG. 5B, when the shutter speed is 1/8000 sec, the strobe tuning is NG, and the strobe is emitted after ch1 (image capture) in sub (charge accumulation reset). . As the shutter speed increases, the length of time that the strobe light is emitted becomes a problem. It is desirable that the flash light emission is completed at the shutter speed = exposure time. Further, since it is desirable to start the flash emission after the last sub output as much as possible, the emission timing accuracy equal to or higher than the shutter speed is required.

以上説明したように、本実施の形態においては、CPU121は、IPP107から入力される垂直同期信号の周期(vd時間)を、内部の動作周波数に基づいて測定し、当該垂直同期信号(vd)を基準にしてストロボ光の発光タイミングを決定する場合に、測定した垂直同期信号の周期(vd時間)に基づき、ストロボ光の発光タイミングを補正することとしたので、例えば、IPP107が水晶発振子を使用し、CPU121がセラミック発振子を使用した場合でもストロボ発光タイミングの誤差の発生を防止することができ、高速シャッタ時においてもストロボ同調を行うことが可能となる。すなわち、本実施の形態によれば、CPU121の発振子の精度をソフト的に補正することが可能となる。   As described above, in the present embodiment, the CPU 121 measures the period (vd time) of the vertical synchronization signal input from the IPP 107 based on the internal operating frequency, and determines the vertical synchronization signal (vd). When the strobe light emission timing is determined based on the reference, the strobe light emission timing is corrected based on the measured period (vd time) of the vertical synchronization signal. For example, the IPP 107 uses a crystal oscillator. Even when the CPU 121 uses a ceramic oscillator, it is possible to prevent the occurrence of an error in the strobe light emission timing, and it is possible to perform strobe tuning even at the time of high-speed shutter. That is, according to the present embodiment, the accuracy of the oscillator of the CPU 121 can be corrected in software.

また、本実施の形態においては、測定した垂直同期信号の周期(vd時間)にリミッタを設けているので、垂直同期信号の周期(vd時間)の測定を誤った場合にも対応することが可能となる。付言すると、CPU121で使用されるセラミック発振子は、発振周波数精度が悪いと言っても、誤差は±1%程度であるため、補正の範囲も±1%で良く、誤差がそれ以上となる場合は垂直同期信号の周期(vd時間)の測定を誤った可能性が高いためである。   In the present embodiment, since a limiter is provided in the measured period (vd time) of the vertical synchronizing signal, it is possible to cope with an erroneous measurement of the period (vd time) of the vertical synchronizing signal. It becomes. In addition, the ceramic oscillator used in the CPU 121 has an error of about ± 1% even if the oscillation frequency accuracy is poor. Therefore, the correction range may be ± 1%, and the error is more than that. This is because there is a high possibility of erroneous measurement of the period (vd time) of the vertical synchronization signal.

また、本実施の形態においては、垂直同期信号の周期(vd時間)を複数回測定し、当該複数回の平均値を垂直同期信号の周期(vd時間)の測定値とすることとしたので、測定誤差の影響を少なくすることができる。   In the present embodiment, the period (vd time) of the vertical synchronization signal is measured a plurality of times, and the average value of the plurality of times is set as the measurement value of the period (vd time) of the vertical synchronization signal. The influence of measurement error can be reduced.

また、本実施の形態においては、IPP107から入力される垂直同期信号がNTSC方式またはPAL方式であるかを判定した後に、測定した時間垂直同期信号の時間がリミッタ内であるか否かを判定することとしたので、正確に時間垂直同期信号の周期(vd時間)を検出することが可能となる。   In this embodiment, after determining whether the vertical synchronization signal input from the IPP 107 is the NTSC system or the PAL system, it is determined whether the time of the measured vertical synchronization signal is within the limiter. As a result, the period (vd time) of the time vertical synchronization signal can be accurately detected.

なお、上記した実施の形態においては、IPP107では水晶発振子を、CPU121ではセラミック発振子を用いているが、発振子はこれに限られるものではなく、信号の入力される側が、内部動作周波数を発振する発振子の精度が悪い場合には全て適用可能である。また、発振子の精度による差を補正する場合に限られず、環境上の精度の違い、例えば、温度、電圧特性での精度の違いを補正する場合にも適用可能である。   In the above-described embodiment, the crystal oscillator is used in the IPP 107 and the ceramic oscillator is used in the CPU 121. However, the oscillator is not limited to this, and the signal input side has an internal operating frequency. All are applicable when the accuracy of the oscillating oscillator is poor. Further, the present invention is not limited to the case of correcting the difference due to the accuracy of the oscillator, but can be applied to the case of correcting a difference in environmental accuracy, for example, a difference in accuracy in temperature and voltage characteristics.

また、本実施の形態においては、IPP107の垂直同期信号(vd)を用いた場合について説明したが、垂直同期信号(vd)に限らず他の動作周波数的な信号についても適用できる。   In the present embodiment, the case where the vertical synchronization signal (vd) of the IPP 107 is used has been described. However, the present invention can be applied not only to the vertical synchronization signal (vd) but also to other operating frequency signals.

本発明に係るタイミング制御装置およびタイミング制御方法は、制御タイミングを補正する場合に広く利用可能であり、デジタルカメラ等の各種装置に有用である。   The timing control device and timing control method according to the present invention can be widely used when correcting the control timing, and is useful for various devices such as a digital camera.

本実施の形態に係るデジタルカメラの構成図である。It is a block diagram of the digital camera which concerns on this Embodiment. CPUにより実行される垂直同期信号(vd)の周期の測定処理を説明するためのフローチャートである。It is a flowchart for demonstrating the measurement process of the period of the vertical synchronizing signal (vd) performed by CPU. CPUにより実行されるストロボ発光タイミングの計算処理を説明するためのフローチャートである。It is a flowchart for demonstrating the calculation process of the flash light emission timing performed by CPU. ストロボ発光タイミングを示すタイミングチャートである。It is a timing chart which shows strobe light emission timing.

符号の説明Explanation of symbols

100 デジタルカメラ
101 レンズ系
101a フォーカスレンズ系
101b ズームレンズ系
102 オートフォーカス等を含むメカ機構
103 CCD(電荷結合素子)
104 CDS(相関2重サンプリング)回路
105 可変利得増幅器(AGCアンプ)
106 A/D変換器
107 IPP(Image Pre−Processor)
108 DCT(Discrete Cosine Transform)
109 コーダー(Huffman Encoder/Decoder)
110 MCC(Memory Card Controller)
111 RAM(内部メモリ)
112 PCカードインタフェース
121 CPU
122 表示部
123 操作部
126 SG部
127 ストロボ
128 バッテリ
129 DC−DCコンバータ
130 EEPROM
131 フォーカスドライバ
132 パルスモータ
133 ズームドライバ
134 パルスモータ
135 モータドライバ
150 PCカード
DESCRIPTION OF SYMBOLS 100 Digital camera 101 Lens system 101a Focus lens system 101b Zoom lens system 102 Mechanical mechanism including autofocus 103 CCD (charge coupled device)
104 CDS (Correlated Double Sampling) Circuit 105 Variable Gain Amplifier (AGC Amplifier)
106 A / D converter 107 IPP (Image Pre-Processor)
108 DCT (Discrete Course Transform)
109 Coder (Huffman Encoder / Decoder)
110 MCC (Memory Card Controller)
111 RAM (internal memory)
112 PC card interface 121 CPU
122 Display Unit 123 Operation Unit 126 SG Unit 127 Strobe 128 Battery 129 DC-DC Converter 130 EEPROM
131 Focus Driver 132 Pulse Motor 133 Zoom Driver 134 Pulse Motor 135 Motor Driver 150 PC Card

Claims (5)

第1の発振素子と、
第2の発振素子と、
前記第1の発振素子の発振周波数に基づき、所定の周期を有する第1信号を出力する第1信号発生手段と、
前記第1信号の周期を、前記第2の発振素子の発振周波数に基づきカウントすることで測定する周期測定手段と、
前記第2の発振素子の発振周波数に基づいて制御タイミングを決定する制御タイミング決定手段と、
前記第1信号の周期を前記第2の発振素子の発振周波数で測定した場合の理論値と、前記周期測定手段によるカウント値とに基づき、前記制御タイミング決定手段が決定する制御タイミングを補正する補正手段と、
を備えたことを特徴とするタイミング制御装置。
A first oscillation element;
A second oscillation element;
First signal generating means for outputting a first signal having a predetermined period based on the oscillation frequency of the first oscillation element;
Period measuring means for measuring the period of the first signal by counting based on the oscillation frequency of the second oscillation element;
Control timing determining means for determining a control timing based on the oscillation frequency of the second oscillation element;
Correction for correcting the control timing determined by the control timing determination means based on the theoretical value when the period of the first signal is measured at the oscillation frequency of the second oscillation element and the count value by the period measurement means Means,
A timing control device comprising:
前記補正手段による補正は、前記第2発振素子の誤差範囲内で行うことを特徴とする請求項1に記載のタイミング制御装置。   The timing control apparatus according to claim 1, wherein the correction by the correction unit is performed within an error range of the second oscillation element. 前記周期測定手段は、前記第1信号の周期を複数回測定し、当該複数回の平均値を周期のカウント値とすることを特徴とする請求項1に記載のタイミング制御装置   2. The timing control device according to claim 1, wherein the period measuring unit measures the period of the first signal a plurality of times, and uses the average value of the plurality of times as a count value of the period. 第1の発振素子および第2の発振素子の少なくとも一つは、装置の制御を行う中央演算装置の基準周波数を発振していることを特徴とする請求項1に記載のタイミング制御装置。   2. The timing control apparatus according to claim 1, wherein at least one of the first oscillation element and the second oscillation element oscillates a reference frequency of a central processing unit that controls the apparatus. 第1の発振素子の発振周波数に基づき、所定の周期を有する第1信号を出力する第1信号発生工程と、
前記第1信号の周期を、第2の発振素子の発振周波数に基づきカウントすることで測定する周期測定工程と、
前記第2の発振素子の発振周波数に基づいて制御タイミングを決定する制御タイミング決定工程と、
前記第1信号の周期を前記第2の発振素子の発振周波数で測定した場合の理論値と、前記周期測定工程によるカウント値とに基づき、前記制御タイミング決定工程が決定する制御タイミングを補正する補正工程と、
を含むことを特徴とするタイミング制御方法。
A first signal generation step of outputting a first signal having a predetermined period based on the oscillation frequency of the first oscillation element;
A period measuring step of measuring the period of the first signal by counting based on the oscillation frequency of the second oscillation element;
A control timing determination step for determining a control timing based on the oscillation frequency of the second oscillation element;
Correction for correcting the control timing determined by the control timing determination step based on the theoretical value when the cycle of the first signal is measured at the oscillation frequency of the second oscillation element and the count value obtained by the cycle measurement step Process,
Including a timing control method.
JP2005235297A 2005-08-15 2005-08-15 Timing control apparatus and timing control method Expired - Fee Related JP4233551B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005235297A JP4233551B2 (en) 2005-08-15 2005-08-15 Timing control apparatus and timing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005235297A JP4233551B2 (en) 2005-08-15 2005-08-15 Timing control apparatus and timing control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP22055398A Division JP4036973B2 (en) 1998-08-04 1998-08-04 Camera and control timing correction method

Publications (2)

Publication Number Publication Date
JP2005328579A JP2005328579A (en) 2005-11-24
JP4233551B2 true JP4233551B2 (en) 2009-03-04

Family

ID=35474488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005235297A Expired - Fee Related JP4233551B2 (en) 2005-08-15 2005-08-15 Timing control apparatus and timing control method

Country Status (1)

Country Link
JP (1) JP4233551B2 (en)

Also Published As

Publication number Publication date
JP2005328579A (en) 2005-11-24

Similar Documents

Publication Publication Date Title
US8970716B2 (en) Image-capturing apparatus and control method of the image-capturing apparatus
CN101494797B (en) Image picking-up device and method
JP5523124B2 (en) Imaging device
TWI492618B (en) Image pickup device and computer readable recording medium
US8253850B2 (en) Imaging apparatus and program thereof
EP1860871A1 (en) Image pickup apparatus and image pickup control method
JP4036973B2 (en) Camera and control timing correction method
JP6377286B2 (en) Imaging apparatus, control method therefor, and operation program
JP2001255451A (en) Autofocus device, digital camera, and portable information input device
JP2008148180A (en) Imaging apparatus, image processing apparatus and method, and computer program
JP4233551B2 (en) Timing control apparatus and timing control method
JP3742450B2 (en) camera
JP6728010B2 (en) Imaging device and method for controlling imaging device
JP2004145022A (en) Digital camera
JP4424201B2 (en) Imaging apparatus, imaging method, program, and projector system
JP2002344724A (en) Imaging device, image processing device, image processing method, and program
JP2006253970A (en) Imaging apparatus, shading correction data creation method and program
JP2004242045A (en) Imaging device and imaging method
JP2006217249A (en) Electronic camera, electronic camera system and program
JP2008085638A (en) Imaging apparatus and imaging method
JP2006262221A (en) Imaging apparatus and image processing method
JP2008020528A (en) Imaging device
JP4343192B2 (en) Automatic focusing device, digital camera, and portable information input device
JP3914367B2 (en) Automatic focusing device, digital camera, and portable information input device
JP2016092708A (en) Image pickup device, interval shooting method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050815

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080226

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081202

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081209

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

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 3

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131219

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees