JP2016046781A - Recording and reproducing device, control method for recording and reproducing device, and program - Google Patents
Recording and reproducing device, control method for recording and reproducing device, and program Download PDFInfo
- Publication number
- JP2016046781A JP2016046781A JP2014172013A JP2014172013A JP2016046781A JP 2016046781 A JP2016046781 A JP 2016046781A JP 2014172013 A JP2014172013 A JP 2014172013A JP 2014172013 A JP2014172013 A JP 2014172013A JP 2016046781 A JP2016046781 A JP 2016046781A
- Authority
- JP
- Japan
- Prior art keywords
- data
- command
- timing signal
- recording
- delay amount
- 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
Links
Images
Abstract
Description
本発明は、記録再生装置、記録再生装置の制御方法及びプログラムに関する。 The present invention relates to a recording / reproducing apparatus, a control method for the recording / reproducing apparatus, and a program.
従来、SDメモリカードに対してデータの読み出しを行う場合、ホストコントローラからカードに与えられるクロックに対する、カードからのデータ送信の遅延量は規格化された固定値であった。したがって、ホストコントローラはクロック送信に対して規定量の遅延タイミングによってデータラッチを行うことにより、カードアクセスを問題なく行うことができた。 Conventionally, when data is read from an SD memory card, the delay amount of data transmission from the card with respect to the clock given from the host controller to the card has been a standardized fixed value. Therefore, the host controller can perform card access without any problem by performing data latching with a predetermined amount of delay timing with respect to clock transmission.
しかし近年、メモリカードのアクセス速度向上に伴うクロックの高速化により、前述の遅延量は固定値では規定できなくなっている。このためSDメモリカードの高速規格であるUHS−I(Ultra High Speed−1)においては、所定周波数より高周波数のクロックを使用する場合にデータラッチのタイミング調整が必要であることが規定されている。このラッチタイミングの調整はチューニングと呼ばれ、ホストコントローラを有するシステムの起動時またはカード認識時に行うのが一般的である。 However, in recent years, the above-mentioned delay amount cannot be defined with a fixed value due to an increase in clock speed accompanying an increase in the access speed of the memory card. For this reason, UHS-I (Ultra High Speed-1), which is a high-speed standard for SD memory cards, stipulates that data latch timing adjustment is required when a clock with a frequency higher than a predetermined frequency is used. . This adjustment of the latch timing is called tuning and is generally performed at the time of starting the system having the host controller or at the time of card recognition.
また、このチューニングのためのテストパターン信号を発行する機能がUHS−Iに対応するSDカードには備わっている。特許文献1は、当該チューニング動作を開示する。特許文献1では、カードから出力されるデータの取り込み(カード読み出し)に際し、受信タイミングをカードクロックの1周期全体の範囲をカバーするように変更しながら、テストパターンデータの取り込みを行う。取り込まれたデータをテストパターンと比較して、受信の成否を判定し、その結果をデータ取り込みのチェックパターンとして作成する。そして、このチェックパターンの中で、データ取り込みに成功している範囲の中心を、受信タイミングとして選択する。
The SD card corresponding to UHS-I has a function of issuing a test pattern signal for tuning.
しかし、上述の方法では、受信タイミングをカードクロックの1周期全体の範囲をカバーするように変更した上で、各ラッチタイミングにおいて、成功の如何に関わらずテストパターン信号の受信を行っている間は待機しなければならず、チューニング時間の短縮が困難である。 However, in the above method, the reception timing is changed to cover the entire range of one cycle of the card clock, and the test pattern signal is received at each latch timing regardless of success. It is difficult to shorten the tuning time due to waiting.
そこで、本発明は、テストパターン受信をラッチタイミング全てにおいて待機する必要性を無くし、チューニング期間の短縮を可能とすることを目的とする。 Therefore, an object of the present invention is to eliminate the need to wait for test pattern reception at all latch timings and to shorten the tuning period.
上記課題を解決するための本発明は記録再生装置であって、
記録媒体に対してクロック信号を出力する出力手段と、
前記記録媒体に命令を送信すると共に、前記クロック信号を遅延させることにより得られたタイミング信号に応じて、前記記録媒体から送信されたデータを受信する通信手段と、
前記記録媒体に対して、前記タイミング信号の遅延量を調整するための所定のデータ列を有するパターンデータを送信させるための第1の命令と、前記パターンデータよりも短いデータを送信させるための第2の命令とを送信するように前記通信手段を制御するとともに、前記クロック信号を複数の遅延量のうちいずれかに遅延させて得られたタイミング信号に応じて前記通信手段が受信した前記パターンデータが前記所定のデータ列を有しているか否かに基づき、前記タイミング信号の遅延量を調整する制御手段と
を有し、
前記制御手段は、前記第2の命令に応じて前記記録媒体から送信されたデータを前記通信手段が正しく受信できない場合、前記正しく受信できなかったときに設定された遅延量の前記タイミング信号により前記パターンデータを受信するために前記第1の命令を送信しないように、前記通信手段を制御することを特徴とする。
The present invention for solving the above problems is a recording / reproducing apparatus,
An output means for outputting a clock signal to the recording medium;
A communication means for transmitting data to the recording medium and receiving data transmitted from the recording medium according to a timing signal obtained by delaying the clock signal;
A first command for transmitting pattern data having a predetermined data string for adjusting the delay amount of the timing signal to the recording medium, and a first command for transmitting data shorter than the pattern data. The pattern data received by the communication unit in response to a timing signal obtained by controlling the communication unit to transmit two commands and delaying the clock signal to any one of a plurality of delay amounts Control means for adjusting the delay amount of the timing signal based on whether or not has the predetermined data string,
When the communication unit cannot correctly receive the data transmitted from the recording medium according to the second command, the control unit uses the timing signal of the delay amount set when the data cannot be received correctly. The communication means is controlled not to transmit the first command to receive pattern data.
本発明によれば、テストパターン受信をラッチタイミング全てにおいて待機する必要性が無く、チューニング期間の短縮することができる。 According to the present invention, there is no need to wait for test pattern reception at all latch timings, and the tuning period can be shortened.
以下、本発明の例示的な実施形態について、図面を参照して詳細に説明する。なお、以下に説明する実施形態では、記録再生装置の一例としての、接続されたメモリカードに対してデータの書き込み/読み出しが可能なデジタルカメラに、本発明を適用した例を説明する。しかし、本発明は、記録媒体に対するデータの書き込み/読み出しが可能な任意の機器(ホスト装置)に適用可能であり、デジタルカメラに限定されず、例えば、パソコン、携帯電話、スマートフォン、PDA、デジタルビデオカメラ等も含まれる。 Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings. In the embodiment described below, an example in which the present invention is applied to a digital camera capable of writing / reading data to / from a connected memory card as an example of a recording / reproducing apparatus will be described. However, the present invention can be applied to any device (host device) capable of writing / reading data to / from a recording medium, and is not limited to a digital camera, for example, a personal computer, a mobile phone, a smartphone, a PDA, a digital video Cameras are also included.
<実施形態1>
図1は、発明の第1の実施形態に対応するデジタルカメラ100を例とした記録装置の構成例を示すブロック図である。メインマイコン118は、例えばCPUである。メインマイコン118は、デジタルカメラ100が有する各ブロックの動作を制御する。具体的にはメインマイコン118は、ROM119に記憶された、各ブロックに対して後述の各種シーケンスを実行させるためのプログラムを読み出し、SDRAM116に展開して実行することにより各ブロックの動作を制御する。またメインマイコン118は、後述の液晶ドライバ112を制御することで液晶パネル111の表示制御も行う。さらに本実施形態では、メモリカード115が記憶するテストデータと同じパターンの信号を比較用に記憶し、後述するテストパターンの成否判定、最適ラッチタイミングの決定動作を行う。ROM119は、例えば電気的にデータの消去・記録が可能な不揮発性メモリである。ROM119は、デジタルカメラ100が有する各ブロックの動作プログラムだけでなく、各ブロックの動作において必要となる定数等の情報を記憶する。
<
FIG. 1 is a block diagram showing a configuration example of a recording apparatus taking a
撮影レンズ101は、被写体像をとらえ、絞り102によって光量を所定量に制限した後、撮像素子103上に被写体像を結像させる。撮像素子103は例えばCCDやCMOSセンサであり、撮像面に結像された被写体像を光電変換し、アナログ画像信号を出力する。撮影レンズ101により結像される被写体像の光量は、メインマイコン118による絞り102の開口量制御により制限される。撮像素子103により出力されたアナログ画像信号は、A/D変換器104によりA/D変換処理が適用されることで、デジタルの画像データに変換される。得られた画像データは、画像処理部105においてガンマ補正、ホワイトバランス補正、ノイズリダクションに係る処理が適用された後、フレームメモリ106に非圧縮画像データとして格納される。このような撮影レンズ101、絞り102、撮像素子103、A/D変換器104、画像処理部105、及びフレームメモリ106により、本実施形態のデジタルカメラ100の画像生成部(撮像部)10が構成される。
The taking
以下の実施形態では記録媒体であるメモリカード115に画像生成部10で生成された画像データを書き込む場合、或いは、書き込まれた画像データをメモリカード115から読み出す場合について説明する。しかし、本発明が適用可能な対象は画像データに限定されるものではなく、音声データ或いは、動画像データと音声データとを含むマルチメディアデータであってもよい。これらの種類のデータを総称して情報データと呼ぶことができる。本発明の実施形態としての記録再生装置は、情報データを生成するために、画像生成部10に追加してマイク、A/D変換器、音声処理部を含む音声生成部を更に備えることができる。
In the following embodiment, a case where the image data generated by the
JPEGコーデック108は、本実施形態のデジタルカメラ100が静止画像を記録する際の符号化形式(JPEG形式)に従って、非圧縮画像データを圧縮符号化し、JPEG静止画像データを生成する。またMPEGコーデック109は、本実施形態のデジタルカメラ100が動画像を記録する際の動画符号化形式(MPEG形式)に従って、非圧縮画像データをフレームとして圧縮符号化し、MPEG動画像データを生成する。JPEGコーデック108及びMPEGコーデック109により生成された各種データは、データバス107を介してSDRAM116に一時的に書き込まれる。SDRAM116は、揮発性メモリである。SDRAM116には、JPEGコーデック108及びMPEGコーデック109により生成されたデータに加え、液晶パネル111への表示用に変換された画像データが格納される。またSDRAM116は、メモリカード115へのデータ書き込みにおいてバッファメモリ空間として利用される。またSDRAM116は、撮影された画像から再生時のインデックス表示で使用するサムネイル画像を生成する画素数変換回路110の作業メモリ空間の提供も行う。
The
液晶パネル111は、例えばLCD等のデジタルカメラ100が有する表示装置である。上述したように、液晶パネル111の表示制御はメインマイコン118により行われる。具体的にはメインマイコン118からの命令を受けた液晶ドライバ112が、SDRAM116に格納されている表示用の画像データを液晶表示信号に変換して液晶パネル111に出力することで、表示制御が行われる。また液晶パネル111は、画素数変換回路110により液晶パネル111の表示画素数に変更された非圧縮画像データが液晶表示信号に変換されて入力されることで、電子ビューファインダとして機能する(スルー表示)。
The
メモリカード115は、カードスロット/検出SW114を介してカメラ本体に対して着脱が可能な、例えばNAND型フラッシュメモリで構成されているメモリーカードであり、PC互換性を持つFAT(File Allocation Table)ファイルシステムに準拠したフォーマットでデータの管理がなされる。メモリカード115へのデータの書き込み、及びメモリカード115からのデータの読み出し等の通信は、メモリカードコントローラ113により行われる。メモリカードコントローラ113は、データの書き込み時はSDRAM116から記録用のデータを読み出し、メモリカード115への書き込みを行う。またメモリカードコントローラ113は、データの読み出し時はメモリカード115からデータを読み出し、SDRAM116に格納する。
The memory card 115 is a memory card that is detachable from the camera body via the card slot /
カードスロット/検出SW114は、メモリカード115を装着するスロットであり、スロットへの装着の有無を検出する検出スイッチ(SW)を含む。検出スイッチは、カードスロットにメモリカード115が装着されたことを検出すると、検出信号をメインマイコン118に出力することができる。
The card slot /
操作入力部117は、ユーザからの各種操作を受け付ける各種スイッチ等のユーザインタフェースである。操作入力部117は、静止画の撮影操作を行うシャッターボタンや、動画の撮影開始および撮影停止を指示するトリガーボタン、カメラ撮影モードと再生モードを切り替えるモードスイッチを含む。操作入力部117は、デジタルカメラ100に設けられた各種操作キーがユーザによって操作されると、該操作に応じた信号を受信し、操作に対応する制御信号をメインマイコン118に出力する。
The
図2は、本実施形態に対応するメモリカードコントローラ113の構成例を示す図である。メモリカードコントローラ113は、メモリカード115へのデータの書き込み及び読み出しにおいて、CLKライン、CMDライン、及びDATラインを介して信号及びデータの送受信を行う。
FIG. 2 is a diagram illustrating a configuration example of the
クロック源201は、メモリカード115に対してデータ書込み及び読出しのタイミングを与えるとともに、後述のホストコントローラ202に対してデータ送出および受信のタイミングを与える。ホストコントローラ202は、データの読み書きに係る命令であるコマンド信号の出力、及びメモリカード115からのコマンドに対するレスポンス信号の受信を、CMDラインを介して行う。またホストコントローラ202は、メモリカード115に書き込むデータ、あるいはメモリカード115から読み出したデータを、DATラインを介して送受信する制御を行う。具体的に、ホストコントローラ202はメインマイコン118からの指示により、メモリカード115の動作を制御するコマンドを発行すると共に、メモリカード115からのコマンドレスポンスを受信する。遅延素子203は、メモリカード115からのデータ読出時に、クロック源201からのクロック信号の位相をメインマイコン118からの制御に従う遅延量にて遅延させ、メモリカード115から出力されたデータをラッチするタイミングを表すタイミング信号を生成する。なお、コマンドの入出力、及び、データの送受信に応じたCMDラインとDATラインとの間の切り替えは、ホストコントローラ202の制御に従って信号分岐部205が行う。
The
フリップフロップ204は、遅延素子203からのタイミング信号に従ってメモリカード115からデータをラッチする。信号分岐部205は、ホストコントローラ202の制御に従って、データ書込およびデータ読出のためにDATラインとCMDラインとの間の切替を行う。
The flip-
以下では、サンプリングクロックの遅延量の調整のための一つの方法を説明する。この方法では、メモリカードコントローラ113がメモリカード115にテストデータの送信を要求する第1のコマンドを発行すると、メモリカード115は、クロック源201から供給されるクロック信号(CLK信号)に同期して、所定のパターンの64バイトのデータ列を返信する。そこで、メモリカードコントローラ113は、クロック源201が生成するクロック信号を遅延素子203に設定された遅延量に基づき遅延させて得られるデータラッチタイミングに応じてデータ列を受信する。即ち、データラッチタイミングは、遅延素子203に設定される遅延段数を変化させることで、クロック信号との位相関係を変化させることができる。なお、クロック信号の1周期分に対して複数の遅延量を設定して複数のラッチタイミングを確保することができる。図3の例では、16ステップのラッチタイミングを確保している。
Hereinafter, one method for adjusting the delay amount of the sampling clock will be described. In this method, when the
次に、図4を参照して、メモリカードコントローラ113による、サンプリングクロックの遅延量の調整方法に対応するチューニング動作を説明する。当該チューニング動作は、メインマイコン118がメモリカードコントローラ113を制御することにより、各ブロックが対応する処理を実行する。このため、メインマイコン118は、メモリカードコントローラ113における処理において取得されたデータ等を参照可能であるものとして説明する。
Next, with reference to FIG. 4, the tuning operation corresponding to the method of adjusting the delay amount of the sampling clock by the
チューニング動作が開始されると、S401にて、メインマイコン118が遅延素子203の遅延段数を1に設定する。続くS402では、メインマイコン118による制御に従いホストコントローラ202が第1のコマンドをメモリカード115に対して発行する。当該第1のコマンドは、例えばUHS−I規格で定められたSDR50やSDR104の転送モードでは、CMD19のチューニングブロック送信コマンドを利用することができる。当該第1のコマンドに対し、メモリカード115はコマンドに応答する応答信号(例えば、CMD19に対するレスポンスはR1)と、コマンドに対応する64バイトのチューニングパターンのテストデータとを送信する。続くS403では、ホストコントローラ202は、メモリカード115から送信されたレスポンスとテストデータとを受信し、メインマイコン118がS404にて該受信したテストデータが所定のパターンデータと一致するか否かを判定する。メインマイコン118は、受信データのパターンが所定パターンとすべて一致していればS405にて受信結果テーブルにOK(受信成功)を記録し、一致していなければS406にて受信結果テーブルにNG(受信失敗)を記録する。なお、受信結果テーブルとは、図3に示すように、遅延段数とテストデータの受信可否の関係を記録したテーブルである。
When the tuning operation is started, the
その後S407にて、メインマイコン118は遅延段数が最大値(最大遅延段数)まで来たかが確認され、最大値でなければ、S408にて遅延段数を1段増やして、S402からの処理を繰り返す。また遅延段数が最大値であった場合は、受信結果テーブルが完成したことになるので、メインマイコン118はS409にて、受信結果テーブルから受信が成功した範囲の中央値を判定し、これを最適ラッチタイミングとして決定する。図3においては、遅延段数5から13までが受信成功エリアの位相を示すので、その中央値となる遅延段数9を遅延素子203に適用すべき設定遅延量に決定する。
Thereafter, in S407, the
このように図4に示す方法では、全ての遅延段数について64バイトのテストデータの受信を行うことが必要となる。よって、仮に設定された遅延段数ではテストデータが正確に受信できない場合であっても64バイトのテストデータを受信するのに必要な所定期間は待機しなければならない。これに対し以下に説明する本実施形態の方法では、設定された遅延段数において正確な受信が可能かどうかを上記の第1のコマンドとは異なる第2のコマンドを利用して簡易的に確認しておく。これにより不必要な判定処理を省略し、正確な受信が可能と見込まれる遅延段数についてのみ第1のコマンドを発行してテストデータの受信結果を判定することを可能とする。 As described above, in the method shown in FIG. 4, it is necessary to receive test data of 64 bytes for all the number of delay stages. Therefore, even if the test data cannot be correctly received with the set number of delay stages, it is necessary to wait for a predetermined period necessary to receive the 64-byte test data. On the other hand, in the method of this embodiment described below, whether or not accurate reception is possible with the set number of delay stages is simply confirmed using a second command different from the first command. Keep it. Thus, unnecessary determination processing can be omitted, and the first command can be issued only for the number of delay stages that are expected to be able to be accurately received, and the reception result of the test data can be determined.
以下では図5を参照して、本実施形態に対応するチューニング動作を説明する。図5におけるS501からS509までの処理は、それぞれ図4のS401からS409と同じであるので、説明は省略する。以下、図4と異なるS510とS511における処理を説明する。まず、S510では、メインマイコン118による制御に従いホストコントローラ202がメモリカード115に対して上記第1のコマンドとは異なる第2のコマンドを発行する。この第2のコマンドは、レスポンスのみを送信し、テストデータの返信を要求しないコマンド、もしくはテストデータとして、64バイトよりも小さいデータサイズのデータを返却させるためのコマンドである。第2のコマンドの一例として、UHS−I規格で定められたCMD13のコマンドを利用することができる。このCMD13コマンドは、カードの現在のステータスを問い合せるためのステータス送信コマンドであって、このステータス送信コマンドを受けとった場合、メモリカード115からは応答パケット以外にデータは送信されない。メモリカード115は、レスポンスR1の48ビットの応答パケット内に「Busy」や「Ready for Data」等のステータス情報(32ビット)を含めてコマンドに応答することができる。なお、第2のコマンドとして、より小さいデータサイズの送信を要求する場合、最小値を0として任意のデータサイズとすることができる。当該第2のコマンドを発行した後、続くS511では、メインマイコン118はホストコントローラ202がレスポンスを受信可能であるか否かを判定する。具体的に、ホストコントローラ202が、規格で定められている所定期間内(64クロック以内)にレスポンスを受信したか否かを判定する。また、所定期間内にレスポンスが受信された場合、受信したレスポンスにエラーが発生していないかを判定する。当該エラーの有無は、レスポンスR1のパケットに含まれる7ビットのCRCコードに基づき判定することができる。もし、正常に受信が可能と判定された場合は、S502に進んでメインマイコン118による制御に従いホストコントローラ202が第1のコマンドを発行する。一方、正常に受信が可能でないと判定された場合は、S506にてメインマイコン118は受信結果テーブルの該当箇所をNGに更新する。
Hereinafter, a tuning operation corresponding to the present embodiment will be described with reference to FIG. The processing from S501 to S509 in FIG. 5 is the same as S401 to S409 in FIG. Hereinafter, processing in S510 and S511 different from FIG. 4 will be described. First, in S510, the
このように、本実施形態によれば、サンプリングクロックの遅延量を変えながらテストパターンの受信結果を判定する以前に、レスポンスのみを要求するか、或いは、小さいデータサイズのテストデータの返信を要求するコマンドを送信する。これにより、それぞれの遅延量のサンプリングクロックによりテストパターンを受信させる必要が無くなる。即ち、第2のコマンドに対するレスポンスの受信に成功したラッチタイミング設定でのみ第1のコマンドに対するテストパターンの成否判定を行ので、最適ラッチタイミングの決定動作を短縮することができる。 As described above, according to this embodiment, before determining the reception result of the test pattern while changing the delay amount of the sampling clock, only the response is requested or the test data with a small data size is requested to be returned. Send a command. As a result, it is not necessary to receive the test pattern with the sampling clock of each delay amount. That is, since the test pattern success / failure determination for the first command is performed only at the latch timing setting in which the response to the second command has been successfully received, the operation for determining the optimum latch timing can be shortened.
<実施形態2>
次に、発明の第2の実施形態を説明する。本実施形態に対応する記録装置の構成例およびチューニング動作は、実施形態1で説明した図1及び図2で説明した構成及び動作と同様であるので省略する。本実施形態では、第1のコマンドを発行する前に、サンプリングクロックの全ての遅延量により第2のコマンドに対するレスポンスが正しく受信できたか否かを判別する。そして、この判別の結果に基づいて改めてサンプリングクロックの遅延量を選択し、選択した遅延量のサンプリングクロックで、テストデータを受信する。
<Embodiment 2>
Next, a second embodiment of the invention will be described. The configuration example and tuning operation of the recording apparatus corresponding to the present embodiment are the same as the configuration and operation described in FIG. 1 and FIG. In this embodiment, before issuing the first command, it is determined whether or not a response to the second command has been correctly received based on all the delay amounts of the sampling clock. Then, the delay amount of the sampling clock is selected again based on the determination result, and the test data is received with the sampling clock having the selected delay amount.
まず図6を参照して、本実施形態に対応するチューニング動作を説明する。図6におけるS601、S605からS608、S610、S611までの処理は、S501、S505からS508、S510、S511と同様であるので説明を省略する。以下、図5と異なるステップにおける処理を説明する。 First, the tuning operation corresponding to the present embodiment will be described with reference to FIG. The processes from S601 and S605 to S608, S610, and S611 in FIG. 6 are the same as S501, S505 to S508, S510, and S511, and thus description thereof is omitted. Hereinafter, processing in steps different from those in FIG. 5 will be described.
S612では、作成した受信結果テーブルにてOK判定(第2のコマンドに対するレスポンス受信に成功)である遅延段数の範囲における中央値を判定し、当該中央値を基準に所定数の遅延段数を選択する。なお以下では一例として、3つの遅延段数を選択する場合を説明する。例えば、図3であれば8段,9段,10段を選択する。なお、選択する段数は、OK判定が得られた遅延段数のうちの一部であればよく、3つに限定されるものではなく、より多くても、或いは、少なくてもよい。S612ではまた、遅延段数の初期値として3つ遅延段数中の最小値を遅延素子203の遅延段数に設定する。
In S612, the median value in the range of the number of delay stages that is OK determination (successfully received response to the second command) is determined in the created reception result table, and a predetermined number of delay stages is selected based on the median value. . In the following, a case where three delay stages are selected will be described as an example. For example, in the case of FIG. 3, 8, 9, and 10 stages are selected. It should be noted that the number of stages to be selected is not limited to three as long as it is a part of the number of delay stages for which the OK determination is obtained, and may be more or less. In S612, the minimum value among the three delay stages is set as the delay stage number of the
続くS614では、メインマイコン118による制御に従いホストコントローラ202が第1のコマンドをメモリカード115に対して発行する。S615では、ホストコントローラ202はメモリカード115から送信された64バイトのテストデータを受信する。続くS616では、メインマイコン118は、受信データが所定のパターンデータと64バイト全てが一致するか否かを判定する。一致していない場合、メインマイコン118はS617にてテーブルの中央値を時間的に前後のいずれかの方向、例えば、一段後方もしくは前方へずらして遅延段数を再選択する。
In
なお、再選択においては、S616において一致しないと判定された遅延段数が含まれなくなる方向にずらすことができる。例えば、8段,9段,10段が選択され、8段、9段は受信テストデータが所定のパターンデータと一致したのに対し、10段が一致しなかった場合を考える。この場合、再選択される遅延段数に10段が含まれず、7段、8段、9段が含まれるように時間的に前方にずらすことができる。なお、ずらす段数は1段ではなく、2段であっても良い。例えば、8段,9段,10段が選択され、8段は受信テストデータが所定のパターンデータと一致したのに対し、9段が一致しなかった場合を考える。この場合9段を再選択する意味がないので、2段ずらして6段、7段、8段が含まれるように時間的に前方にずらすのがよい。 In the reselection, the delay stage number determined not to match in S616 can be shifted so as not to be included. For example, consider the case where the 8th, 9th, and 10th stages are selected, and the 8th and 9th stages have received test data that matches predetermined pattern data, but the 10th stage does not match. In this case, the number of delay stages to be reselected is not included in 10 stages, and can be shifted forward in time so as to include 7 stages, 8 stages, and 9 stages. The number of stages to be shifted is not limited to one and may be two. For example, consider the case where the 8th, 9th, and 10th stages are selected, and the 8th stage does not match the 9th stage while the received test data matches the predetermined pattern data. In this case, there is no point in reselecting the 9th stage, so it is better to shift it forward in time so that 6th stage, 7th stage, and 8th stage are included by shifting 2 stages.
このようにして再選択された遅延段数のうちの最小値を初期値として遅延素子203の遅延段数に設定し、S614に進む。例えば、図3の場合では、9段,10段,11段の3つ、又は、7段,8段,9段の3つを再選択し、最小値の9段又は7段を初期値として再設定する。なお、既に判定済みの遅延段数については計算を省略しても良い。
The minimum value of the number of delay stages reselected in this way is set as the initial value to the number of delay stages of the
また、S616で、受信テストデータが所定のパターンデータと一致する場合、S618においてS612又はS617で選択した3つの遅延段数全てに対して完了したかを確認し、完了していない場合は、S613に移行する。S613では、遅延段数を1段変更して、S614の第1のコマンドの発行処理へ遷移する。3つの遅延段数全てについて完了している場合は、S619にて、S612もしくはS617で選択した3つの遅延段数の中央値の遅延段数が最適ラッチタイミングとして決定される。 If the received test data matches the predetermined pattern data in S616, it is checked in S618 whether all three delay stages selected in S612 or S617 are completed. If not, the process goes to S613. Transition. In S613, the number of delay stages is changed by 1, and the process proceeds to the first command issuance process in S614. If all three delay stages have been completed, the median delay stage number of the three delay stages selected in S612 or S617 is determined as the optimum latch timing in S619.
以上の本実施形態によれば、第2のコマンドのレスポンスを正常に受信できた遅延段数の中心付近に対してのみ第1のコマンドに対するテストパターンの成否判定を行ので、最適ラッチタイミングの決定動作を短縮することができる。 According to the above embodiment, the test pattern success / failure determination for the first command is performed only for the vicinity of the center of the delay stage number at which the response of the second command has been normally received, so that the determination operation of the optimum latch timing is performed. Can be shortened.
(その他の実施例)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other examples)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.
101 撮影レンズ、102 絞り、103 撮像素子、104 A/Dコンバータ、105 画像処理回路、106 フレームメモリ、107 データバス、108 JPEGコーデック、109 MPEGコーデック、110 画素数変換回路、111 液晶パネル、112 液晶ドライバ、113 メモリカードコントローラ、114 カードスロット/検出SW、115 メモリカード、116 SDRAM、117 操作キー、118 メインマイコン、119 ROM、201 クロック源、202 ホストコントローラ、203 遅延素子、204 フリップフロップ、205 信号分岐部
DESCRIPTION OF
Claims (12)
前記記録媒体に命令を送信すると共に、前記クロック信号を遅延させることにより得られたタイミング信号に応じて、前記記録媒体から送信されたデータを受信する通信手段と、
前記記録媒体に対して、前記タイミング信号の遅延量を調整するための所定のデータ列を有するパターンデータを送信させるための第1の命令と、前記パターンデータよりも短いデータを送信させるための第2の命令とを送信するように前記通信手段を制御するとともに、前記クロック信号を複数の遅延量のうちいずれかに遅延させて得られたタイミング信号に応じて前記通信手段が受信した前記パターンデータが前記所定のデータ列を有しているか否かに基づき、前記タイミング信号の遅延量を調整する制御手段と
を有し、
前記制御手段は、前記第2の命令に応じて前記記録媒体から送信されたデータを前記通信手段が正しく受信できない場合、前記正しく受信できなかったときに設定された遅延量の前記タイミング信号により前記パターンデータを受信するために前記第1の命令を送信しないように、前記通信手段を制御する
ことを特徴とする記録再生装置。 An output means for outputting a clock signal to the recording medium;
A communication means for transmitting data to the recording medium and receiving data transmitted from the recording medium according to a timing signal obtained by delaying the clock signal;
A first command for transmitting pattern data having a predetermined data string for adjusting the delay amount of the timing signal to the recording medium, and a first command for transmitting data shorter than the pattern data. The pattern data received by the communication unit in response to a timing signal obtained by controlling the communication unit to transmit two commands and delaying the clock signal to any one of a plurality of delay amounts Control means for adjusting the delay amount of the timing signal based on whether or not has the predetermined data string,
When the communication unit cannot correctly receive the data transmitted from the recording medium according to the second command, the control unit uses the timing signal of the delay amount set when the data cannot be received correctly. A recording / reproducing apparatus for controlling the communication means so as not to transmit the first command for receiving pattern data.
前記記録媒体に命令を送信すると共に、前記クロック信号を遅延させることにより得られたタイミング信号に応じて、前記記録媒体から送信されたデータを受信する通信手段と、
前記記録媒体に対して前記命令を送信するように前記通信手段を制御する制御手段と
を有する記録再生装置の制御方法であって、
前記制御手段が、
前記記録媒体に対して、前記タイミング信号の遅延量を調整するための所定のデータ列を有するパターンデータを送信させるための第1の命令と、前記パターンデータよりも短いデータを送信させるための第2の命令とを送信するように前記通信手段を制御する工程と、
前記クロック信号を複数の遅延量のうちいずれかに遅延させて得られたタイミング信号に応じて前記通信手段が受信した前記パターンデータが、前記所定のデータ列を有しているか否かに基づき、前記タイミング信号の遅延量を調整する工程と、
前記第2の命令に応じて前記記録媒体から送信されたデータを前記通信手段が正しく受信できない場合、前記正しく受信できなかったときに設定された遅延量の前記タイミング信号により前記パターンデータを受信するために前記第1の命令を送信しないように、前記通信手段を制御する工程と
を有することを特徴とする
記録再生装置の制御方法。 An output means for outputting a clock signal to the recording medium;
A communication means for transmitting data to the recording medium and receiving data transmitted from the recording medium according to a timing signal obtained by delaying the clock signal;
A control method for a recording / reproducing apparatus, comprising: control means for controlling the communication means to transmit the command to the recording medium,
The control means is
A first command for transmitting pattern data having a predetermined data string for adjusting the delay amount of the timing signal to the recording medium, and a first command for transmitting data shorter than the pattern data. Controlling the communication means to transmit two instructions;
Based on whether the pattern data received by the communication unit according to a timing signal obtained by delaying the clock signal to any one of a plurality of delay amounts has the predetermined data string, Adjusting the delay amount of the timing signal;
When the communication means cannot correctly receive the data transmitted from the recording medium in response to the second command, the pattern data is received by the timing signal having a delay amount set when the data cannot be correctly received. And a step of controlling the communication means so as not to transmit the first command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014172013A JP2016046781A (en) | 2014-08-26 | 2014-08-26 | Recording and reproducing device, control method for recording and reproducing device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014172013A JP2016046781A (en) | 2014-08-26 | 2014-08-26 | Recording and reproducing device, control method for recording and reproducing device, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016046781A true JP2016046781A (en) | 2016-04-04 |
Family
ID=55636920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014172013A Pending JP2016046781A (en) | 2014-08-26 | 2014-08-26 | Recording and reproducing device, control method for recording and reproducing device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016046781A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022176358A1 (en) | 2021-02-16 | 2022-08-25 | パナソニックIpマネジメント株式会社 | Host device, slave device, and data transfer system |
-
2014
- 2014-08-26 JP JP2014172013A patent/JP2016046781A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022176358A1 (en) | 2021-02-16 | 2022-08-25 | パナソニックIpマネジメント株式会社 | Host device, slave device, and data transfer system |
US11880225B2 (en) | 2021-02-16 | 2024-01-23 | Panasonic Intellectual Property Management Co., Ltd. | Host device, slave device, and data transfer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102088559B (en) | Digital photographing apparatus and method of controlling the same | |
US10152368B2 (en) | Recording apparatus and control method for recording apparatus | |
JP2006229474A (en) | Imaging apparatus and control method thereof | |
CN108632552B (en) | Recording apparatus, control method, and storage medium | |
CN101282421B (en) | Image pickup apparatus and control method thereof | |
JP6784631B2 (en) | Recording / playback device, control method of recording / playback device, and program | |
US9240231B2 (en) | Recording apparatus and control method for recording apparatus | |
JP6417094B2 (en) | RECORDING / REPRODUCING DEVICE, RECORDING / REPRODUCING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM | |
US10896124B2 (en) | Recording control apparatus, control method thereof and non-transitory computer-readable storage medium | |
JP2016046781A (en) | Recording and reproducing device, control method for recording and reproducing device, and program | |
JP6151976B2 (en) | Recording / reproducing apparatus and control method | |
JP6857066B2 (en) | Recording / playback device, control method of recording / playback device, and program | |
CN110876031B (en) | Recording control apparatus and control method thereof | |
JP2015118568A (en) | Recording reproducing device, method for controlling recording reproducing device, and computer program | |
JP2015210540A (en) | Recording device, imaging apparatus, control method of recording device, and program | |
JP2016139924A (en) | Photographing apparatus, photographing method, and program | |
JP2013030847A (en) | Data recording device and its control method | |
JP2018147260A (en) | Recording and reproducing device, control method of recording and reproducing device, and program | |
US8624987B2 (en) | Image capturing apparatus, method of controlling the same, and program therefor | |
JP2020091696A (en) | Recording and reproducing apparatus | |
JP5451230B2 (en) | Imaging apparatus, control method, and program | |
JP2015219775A (en) | Recording device, imaging apparatus, control method of recording device, and program | |
JP2017098854A (en) | Image processor, control method and program of image processor | |
JP2007013691A (en) | Imaging device, controlling method thereof and program performing the same, and storage media |