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 PDF

Info

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
Application number
JP2014172013A
Other languages
Japanese (ja)
Inventor
稲倉 啓太
Keita Inakura
啓太 稲倉
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2014172013A priority Critical patent/JP2016046781A/en
Publication of JP2016046781A publication Critical patent/JP2016046781A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To shorten a tuning period by eliminating the need to wait test pattern reception in all latch timing.SOLUTION: A recording and reproducing device includes: communication means which transmits an instruction to a recording medium and receives data transmitted from the recording medium in response to a timing signal obtained by delaying a clock signal; and control means which controls the communication means in such a manner that a first instruction to transmit pattern data for adjusting a delay amount of the timing signal and a second instruction to transmit shorter data are transmitted to the recording medium, and adjusts the delay amount of the timing signal on the basis of whether the pattern data received by the communication means in response to the timing signal have a predetermined data stream. In the case where the communication means cannot rightly receive data transmitted from the recording medium in accordance with the second instruction, the control means controls the communication means in such a manner that the first instruction is not transmitted according to the association with the timing signal of a delay amount in that case.SELECTED DRAWING: Figure 1

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. Patent Document 1 discloses the tuning operation. In Patent Literature 1, when data output from a card is captured (card reading), test pattern data is captured while changing the reception timing to cover the entire range of one cycle of the card clock. The captured data is compared with the test pattern to determine whether the reception is successful or not, and the result is created as a data capture check pattern. In this check pattern, the center of the range in which the data has been successfully captured is selected as the reception timing.

特開2010−157058号公報JP 2010-157058 A

しかし、上述の方法では、受信タイミングをカードクロックの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.

発明の実施形態に対応する記録再生装置の構成例を示すブロック図。The block diagram which shows the structural example of the recording / reproducing apparatus corresponding to embodiment of invention. メモリカードコントローラの構成例を示す図。The figure which shows the structural example of a memory card controller. メモリカードのラッチタイミングを説明するための図。The figure for demonstrating the latch timing of a memory card. チューニングモードの動作を示すフローチャート。The flowchart which shows operation | movement of tuning mode. 発明の実施形態1に対応する処理の一例に対応するフローチャート。The flowchart corresponding to an example of the process corresponding to Embodiment 1 of invention. 発明の実施形態2に対応する処理の一例に対応するフローチャート。The flowchart corresponding to an example of the process corresponding to Embodiment 2 of invention.

以下、本発明の例示的な実施形態について、図面を参照して詳細に説明する。なお、以下に説明する実施形態では、記録再生装置の一例としての、接続されたメモリカードに対してデータの書き込み/読み出しが可能なデジタルカメラに、本発明を適用した例を説明する。しかし、本発明は、記録媒体に対するデータの書き込み/読み出しが可能な任意の機器(ホスト装置)に適用可能であり、デジタルカメラに限定されず、例えば、パソコン、携帯電話、スマートフォン、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が有する各ブロックの動作プログラムだけでなく、各ブロックの動作において必要となる定数等の情報を記憶する。
<Embodiment 1>
FIG. 1 is a block diagram showing a configuration example of a recording apparatus taking a digital camera 100 corresponding to the first embodiment of the invention as an example. The main microcomputer 118 is a CPU, for example. The main microcomputer 118 controls the operation of each block included in the digital camera 100. Specifically, the main microcomputer 118 controls the operation of each block by reading a program stored in the ROM 119 for executing various sequences to be described later for each block, developing the program in the SDRAM 116, and executing the program. The main microcomputer 118 also controls display of the liquid crystal panel 111 by controlling a liquid crystal driver 112 described later. Furthermore, in the present embodiment, a signal having the same pattern as the test data stored in the memory card 115 is stored for comparison, and a test pattern success / failure determination and an optimum latch timing determination operation described later are performed. The ROM 119 is a non-volatile memory that can electrically erase and record data, for example. The ROM 119 stores not only an operation program for each block of the digital camera 100 but also information such as constants necessary for the operation of each block.

撮影レンズ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 lens 101 captures the subject image, limits the amount of light to a predetermined amount by the diaphragm 102, and then forms the subject image on the image sensor 103. The image sensor 103 is, for example, a CCD or CMOS sensor, and photoelectrically converts a subject image formed on the imaging surface and outputs an analog image signal. The amount of light of the subject image formed by the photographing lens 101 is limited by controlling the opening amount of the diaphragm 102 by the main microcomputer 118. The analog image signal output from the image sensor 103 is converted into digital image data by applying A / D conversion processing by the A / D converter 104. The obtained image data is stored as uncompressed image data in the frame memory 106 after the processing relating to gamma correction, white balance correction, and noise reduction is applied in the image processing unit 105. The image generation unit (imaging unit) 10 of the digital camera 100 according to the present embodiment is configured by the photographing lens 101, the aperture 102, the image sensor 103, the A / D converter 104, the image processing unit 105, and the frame memory 106. Is done.

以下の実施形態では記録媒体であるメモリカード115に画像生成部10で生成された画像データを書き込む場合、或いは、書き込まれた画像データをメモリカード115から読み出す場合について説明する。しかし、本発明が適用可能な対象は画像データに限定されるものではなく、音声データ或いは、動画像データと音声データとを含むマルチメディアデータであってもよい。これらの種類のデータを総称して情報データと呼ぶことができる。本発明の実施形態としての記録再生装置は、情報データを生成するために、画像生成部10に追加してマイク、A/D変換器、音声処理部を含む音声生成部を更に備えることができる。   In the following embodiment, a case where the image data generated by the image generation unit 10 is written to the memory card 115 as a recording medium, or a case where the written image data is read from the memory card 115 will be described. However, the target to which the present invention is applicable is not limited to image data, and may be audio data or multimedia data including moving image data and audio data. These types of data can be collectively referred to as information data. The recording / reproducing apparatus as an embodiment of the present invention can further include an audio generation unit including a microphone, an A / D converter, and an audio processing unit in addition to the image generation unit 10 in order to generate information data. .

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 JPEG codec 108 compresses and encodes uncompressed image data according to an encoding format (JPEG format) when the digital camera 100 of the present embodiment records a still image, and generates JPEG still image data. The MPEG codec 109 compresses and encodes uncompressed image data as a frame according to a moving image encoding format (MPEG format) when the digital camera 100 of the present embodiment records a moving image, and generates MPEG moving image data. Various data generated by the JPEG codec 108 and the MPEG codec 109 are temporarily written in the SDRAM 116 via the data bus 107. The SDRAM 116 is a volatile memory. The SDRAM 116 stores image data converted for display on the liquid crystal panel 111 in addition to the data generated by the JPEG codec 108 and the MPEG codec 109. The SDRAM 116 is used as a buffer memory space when writing data to the memory card 115. The SDRAM 116 also provides a working memory space of the pixel number conversion circuit 110 that generates thumbnail images to be used for index display during playback from the captured images.

液晶パネル111は、例えばLCD等のデジタルカメラ100が有する表示装置である。上述したように、液晶パネル111の表示制御はメインマイコン118により行われる。具体的にはメインマイコン118からの命令を受けた液晶ドライバ112が、SDRAM116に格納されている表示用の画像データを液晶表示信号に変換して液晶パネル111に出力することで、表示制御が行われる。また液晶パネル111は、画素数変換回路110により液晶パネル111の表示画素数に変更された非圧縮画像データが液晶表示信号に変換されて入力されることで、電子ビューファインダとして機能する(スルー表示)。   The liquid crystal panel 111 is a display device included in the digital camera 100 such as an LCD. As described above, the display control of the liquid crystal panel 111 is performed by the main microcomputer 118. Specifically, the liquid crystal driver 112 that has received a command from the main microcomputer 118 converts display image data stored in the SDRAM 116 into a liquid crystal display signal and outputs the liquid crystal display signal to the liquid crystal panel 111, thereby performing display control. Is called. The liquid crystal panel 111 functions as an electronic viewfinder by converting the non-compressed image data, which has been changed to the number of display pixels of the liquid crystal panel 111 by the pixel number conversion circuit 110, into a liquid crystal display signal and inputting it (through display). ).

メモリカード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 / detection SW 114, for example, is composed of a NAND flash memory, and has a FAT (File Allocation Table) file having PC compatibility. Data is managed in a format compliant with the system. Communication such as data writing to the memory card 115 and data reading from the memory card 115 is performed by the memory card controller 113. The memory card controller 113 reads data for recording from the SDRAM 116 and writes the data to the memory card 115 when writing data. The memory card controller 113 reads data from the memory card 115 and stores it in the SDRAM 116 at the time of reading data.

カードスロット/検出SW114は、メモリカード115を装着するスロットであり、スロットへの装着の有無を検出する検出スイッチ(SW)を含む。検出スイッチは、カードスロットにメモリカード115が装着されたことを検出すると、検出信号をメインマイコン118に出力することができる。   The card slot / detection SW 114 is a slot into which the memory card 115 is attached, and includes a detection switch (SW) that detects whether or not the memory card 115 is attached. When the detection switch detects that the memory card 115 is inserted in the card slot, the detection switch can output a detection signal to the main microcomputer 118.

操作入力部117は、ユーザからの各種操作を受け付ける各種スイッチ等のユーザインタフェースである。操作入力部117は、静止画の撮影操作を行うシャッターボタンや、動画の撮影開始および撮影停止を指示するトリガーボタン、カメラ撮影モードと再生モードを切り替えるモードスイッチを含む。操作入力部117は、デジタルカメラ100に設けられた各種操作キーがユーザによって操作されると、該操作に応じた信号を受信し、操作に対応する制御信号をメインマイコン118に出力する。   The operation input unit 117 is a user interface such as various switches that accept various operations from the user. The operation input unit 117 includes a shutter button for performing a still image shooting operation, a trigger button for instructing start and stop of shooting of a moving image, and a mode switch for switching between the camera shooting mode and the playback mode. When various operation keys provided on the digital camera 100 are operated by the user, the operation input unit 117 receives a signal corresponding to the operation and outputs a control signal corresponding to the operation to the main microcomputer 118.

図2は、本実施形態に対応するメモリカードコントローラ113の構成例を示す図である。メモリカードコントローラ113は、メモリカード115へのデータの書き込み及び読み出しにおいて、CLKライン、CMDライン、及びDATラインを介して信号及びデータの送受信を行う。   FIG. 2 is a diagram illustrating a configuration example of the memory card controller 113 corresponding to the present embodiment. The memory card controller 113 transmits and receives signals and data through the CLK line, the CMD line, and the DAT line in writing and reading data to and from the memory card 115.

クロック源201は、メモリカード115に対してデータ書込み及び読出しのタイミングを与えるとともに、後述のホストコントローラ202に対してデータ送出および受信のタイミングを与える。ホストコントローラ202は、データの読み書きに係る命令であるコマンド信号の出力、及びメモリカード115からのコマンドに対するレスポンス信号の受信を、CMDラインを介して行う。またホストコントローラ202は、メモリカード115に書き込むデータ、あるいはメモリカード115から読み出したデータを、DATラインを介して送受信する制御を行う。具体的に、ホストコントローラ202はメインマイコン118からの指示により、メモリカード115の動作を制御するコマンドを発行すると共に、メモリカード115からのコマンドレスポンスを受信する。遅延素子203は、メモリカード115からのデータ読出時に、クロック源201からのクロック信号の位相をメインマイコン118からの制御に従う遅延量にて遅延させ、メモリカード115から出力されたデータをラッチするタイミングを表すタイミング信号を生成する。なお、コマンドの入出力、及び、データの送受信に応じたCMDラインとDATラインとの間の切り替えは、ホストコントローラ202の制御に従って信号分岐部205が行う。   The clock source 201 gives data writing and reading timings to the memory card 115 and gives data sending and receiving timings to the host controller 202 described later. The host controller 202 outputs a command signal, which is a command related to reading and writing data, and receives a response signal for the command from the memory card 115 via the CMD line. The host controller 202 performs control to transmit / receive data to be written to the memory card 115 or data read from the memory card 115 via the DAT line. Specifically, the host controller 202 issues a command for controlling the operation of the memory card 115 and receives a command response from the memory card 115 according to an instruction from the main microcomputer 118. The delay element 203 delays the phase of the clock signal from the clock source 201 by a delay amount according to the control from the main microcomputer 118 when data is read from the memory card 115, and latches the data output from the memory card 115. Is generated. Note that the signal branching unit 205 performs switching between the CMD line and the DAT line according to command input / output and data transmission / reception according to the control of the host controller 202.

フリップフロップ204は、遅延素子203からのタイミング信号に従ってメモリカード115からデータをラッチする。信号分岐部205は、ホストコントローラ202の制御に従って、データ書込およびデータ読出のためにDATラインとCMDラインとの間の切替を行う。   The flip-flop 204 latches data from the memory card 115 in accordance with the timing signal from the delay element 203. The signal branching unit 205 switches between the DAT line and the CMD line for data writing and data reading under the control of the host controller 202.

以下では、サンプリングクロックの遅延量の調整のための一つの方法を説明する。この方法では、メモリカードコントローラ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 memory card controller 113 issues a first command requesting the memory card 115 to transmit test data, the memory card 115 synchronizes with a clock signal (CLK signal) supplied from the clock source 201. A 64-byte data string of a predetermined pattern is returned. Therefore, the memory card controller 113 receives the data string according to the data latch timing obtained by delaying the clock signal generated by the clock source 201 based on the delay amount set in the delay element 203. That is, the data latch timing can change the phase relationship with the clock signal by changing the number of delay stages set in the delay element 203. A plurality of latch timings can be secured by setting a plurality of delay amounts for one cycle of the clock signal. In the example of FIG. 3, a latch timing of 16 steps is secured.

次に、図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 memory card controller 113 will be described. In the tuning operation, the main microcomputer 118 controls the memory card controller 113 to execute processing corresponding to each block. For this reason, the main microcomputer 118 will be described as being able to refer to data and the like acquired in the processing in the memory card controller 113.

チューニング動作が開始されると、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 main microcomputer 118 sets the number of delay stages of the delay element 203 to 1 in S401. In subsequent S <b> 402, the host controller 202 issues a first command to the memory card 115 in accordance with control by the main microcomputer 118. As the first command, for example, in the transfer mode of SDR50 or SDR104 defined by the UHS-I standard, a tuning block transmission command of CMD19 can be used. In response to the first command, the memory card 115 transmits a response signal in response to the command (for example, the response to the CMD 19 is R1) and test data of a 64-byte tuning pattern corresponding to the command. In subsequent S403, the host controller 202 receives the response and the test data transmitted from the memory card 115, and the main microcomputer 118 determines whether or not the received test data matches the predetermined pattern data in S404. To do. The main microcomputer 118 records OK (reception success) in the reception result table in S405 if all the patterns of the received data match the predetermined pattern, and NG (reception in the reception result table in S406 if they do not match. (Failure). As shown in FIG. 3, the reception result table is a table that records the relationship between the number of delay stages and whether or not test data can be received.

その後S407にて、メインマイコン118は遅延段数が最大値(最大遅延段数)まで来たかが確認され、最大値でなければ、S408にて遅延段数を1段増やして、S402からの処理を繰り返す。また遅延段数が最大値であった場合は、受信結果テーブルが完成したことになるので、メインマイコン118はS409にて、受信結果テーブルから受信が成功した範囲の中央値を判定し、これを最適ラッチタイミングとして決定する。図3においては、遅延段数5から13までが受信成功エリアの位相を示すので、その中央値となる遅延段数9を遅延素子203に適用すべき設定遅延量に決定する。   Thereafter, in S407, the main microcomputer 118 confirms whether or not the delay stage number has reached the maximum value (maximum delay stage number). If not, the main microcomputer 118 increases the delay stage number by one in S408 and repeats the processing from S402. If the number of delay stages is the maximum value, the reception result table is completed. In S409, the main microcomputer 118 determines the median of the range in which reception was successful from the reception result table, and optimizes this. The latch timing is determined. In FIG. 3, since the number of delay stages 5 to 13 indicates the phase of the reception success area, the delay stage number 9 as the median value is determined as the set delay amount to be applied to the delay element 203.

このように図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 host controller 202 issues a second command different from the first command to the memory card 115 in accordance with control by the main microcomputer 118. This second command is a command that transmits only a response and does not request a return of test data, or a command for returning data having a data size smaller than 64 bytes as test data. As an example of the second command, a CMD13 command defined by the UHS-I standard can be used. This CMD13 command is a status transmission command for inquiring the current status of the card. When this status transmission command is received, no data other than the response packet is transmitted from the memory card 115. The memory card 115 can respond to the command by including status information (32 bits) such as “Busy” and “Ready for Data” in the 48-bit response packet of the response R1. Note that when the transmission of a smaller data size is requested as the second command, the minimum value can be set to 0 to set an arbitrary data size. After issuing the second command, in subsequent S511, the main microcomputer 118 determines whether or not the host controller 202 can receive a response. Specifically, the host controller 202 determines whether a response is received within a predetermined period (within 64 clocks) defined by the standard. When a response is received within a predetermined period, it is determined whether an error has occurred in the received response. The presence / absence of the error can be determined based on a 7-bit CRC code included in the response R1 packet. If it is determined that the signal can be normally received, the process proceeds to S502 where the host controller 202 issues the first command according to the control by the main microcomputer 118. On the other hand, if it is determined that reception is not possible normally, the main microcomputer 118 updates the corresponding part of the reception result table to NG in S506.

このように、本実施形態によれば、サンプリングクロックの遅延量を変えながらテストパターンの受信結果を判定する以前に、レスポンスのみを要求するか、或いは、小さいデータサイズのテストデータの返信を要求するコマンドを送信する。これにより、それぞれの遅延量のサンプリングクロックによりテストパターンを受信させる必要が無くなる。即ち、第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 delay element 203 as an initial value of the delay stage number.

続くS614では、メインマイコン118による制御に従いホストコントローラ202が第1のコマンドをメモリカード115に対して発行する。S615では、ホストコントローラ202はメモリカード115から送信された64バイトのテストデータを受信する。続くS616では、メインマイコン118は、受信データが所定のパターンデータと64バイト全てが一致するか否かを判定する。一致していない場合、メインマイコン118はS617にてテーブルの中央値を時間的に前後のいずれかの方向、例えば、一段後方もしくは前方へずらして遅延段数を再選択する。   In subsequent S 614, the host controller 202 issues the first command to the memory card 115 under the control of the main microcomputer 118. In S615, the host controller 202 receives the 64-byte test data transmitted from the memory card 115. In subsequent S616, the main microcomputer 118 determines whether or not the received data matches the predetermined pattern data and all 64 bytes. If they do not match, the main microcomputer 118 reselects the number of delay stages by shifting the median value of the table in either the forward or backward direction, for example, one step backward or forward in S617.

なお、再選択においては、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 delay element 203, and the process proceeds to S614. For example, in the case of FIG. 3, three of 9, 10, and 11, or three of 7, 8, and 9 are reselected, and the minimum value of 9 or 7 is used as the initial value. Reset it. Note that the calculation may be omitted for the number of already determined delay stages.

また、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 SYMBOLS 101 Shooting lens, 102 Aperture, 103 Image sensor, 104 A / D converter, 105 Image processing circuit, 106 Frame memory, 107 Data bus, 108 JPEG codec, 109 MPEG codec, 110 Pixel number conversion circuit, 111 Liquid crystal panel, 112 Liquid crystal Driver, 113 Memory card controller, 114 Card slot / detection SW, 115 Memory card, 116 SDRAM, 117 Operation key, 118 Main microcomputer, 119 ROM, 201 Clock source, 202 Host controller, 203 Delay element, 204 Flip-flop, 205 Signal Bifurcation

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.
前記第2の命令に応じて前記記録媒体から送信される前記応答は、所定の応答パケット以外のデータを含まないことを特徴とする請求項1に記載の記録再生装置。   2. The recording / reproducing apparatus according to claim 1, wherein the response transmitted from the recording medium in response to the second command does not include data other than a predetermined response packet. 前記制御手段は、前記第2の命令に応じて前記記録媒体から送信されたデータを前記通信手段が正しく受信できたときに設定されていた前記タイミング信号の遅延量に基づき、前記パターンデータを受信するために設定する前記タイミング信号の遅延量を決定し、前記決定した遅延量のタイミング信号により前記パターンデータを受信するために、前記第1の命令を送信するように前記通信手段を制御することを特徴とする請求項1または2に記載の記録再生装置。   The control means receives the pattern data based on a delay amount of the timing signal set when the communication means has correctly received the data transmitted from the recording medium in response to the second command. Determining a delay amount of the timing signal to be set, and controlling the communication means to transmit the first command in order to receive the pattern data by the timing signal of the determined delay amount. The recording / reproducing apparatus according to claim 1 or 2. 前記制御手段は、前記通信手段が前記第2の命令を送信してから所定期間内に前記通信手段が前記第2の命令に対するデータを受信できない場合、正しく受信できないと判定することを特徴とする請求項1に記載の記録再生装置。   The control unit determines that the communication unit cannot correctly receive data when the communication unit cannot receive data for the second command within a predetermined period after the communication unit transmits the second command. The recording / reproducing apparatus according to claim 1. 前記制御手段は、前記通信手段が受信した、前記第2の命令に対して送信されたデータがエラーであった場合、正しく受信できないと判定することを特徴とする請求項1に記載の記録再生装置。   2. The recording / reproducing according to claim 1, wherein the control unit determines that the data cannot be correctly received when the data transmitted to the second command received by the communication unit is an error. apparatus. 前記制御手段は、前記第2の命令に応じて前記記録媒体から送信されたデータを前記通信手段が正しく受信できたときに設定されていた前記タイミング信号の遅延量のうちの、一部の遅延量の前記タイミング信号により前記パターンデータを受信するために、前記第1の命令を送信するように前記通信手段を制御することを特徴とする請求項1に記載の記録再生装置。   The control means is a part of the delay amount of the timing signal set when the communication means can correctly receive the data transmitted from the recording medium in response to the second command. 2. The recording / reproducing apparatus according to claim 1, wherein the communication means is controlled to transmit the first command in order to receive the pattern data in response to an amount of the timing signal. 前記制御手段は、前記一部の遅延量の前記タイミング信号により前記通信手段が受信した前記パターンデータのいずれかが前記所定のデータ列を有していないと判定された場合に、前記パターンデータを受信するための前記タイミング信号の遅延量を再選択することを特徴とする請求項6に記載の記録再生装置。   The control means determines the pattern data when it is determined that any of the pattern data received by the communication means does not have the predetermined data string by the timing signal of the partial delay amount. 7. The recording / reproducing apparatus according to claim 6, wherein a delay amount of the timing signal for reception is reselected. 前記制御手段は、前記遅延量を時間的に前後のいずれかの方向にずらすことにより前記再選択を行うことを特徴とする請求項7に記載の記録再生装置。   8. The recording / reproducing apparatus according to claim 7, wherein the control unit performs the reselection by shifting the delay amount in any direction before or after the time. 前記制御手段は、前記遅延量をずらす方向を、前記通信手段が受信した前記パターンデータのいずれかが前記所定のデータ列を有していないと判定されたタイミング信号に対応する遅延量が、再選択される前記遅延量に含まれない方向とすることを特徴とする請求項8に記載の記録再生装置。   The control means sets the delay amount corresponding to the timing signal determined that any one of the pattern data received by the communication means does not have the predetermined data string in a direction in which the delay amount is shifted. 9. The recording / reproducing apparatus according to claim 8, wherein the direction is not included in the selected delay amount. 前記一部の遅延量は少なくとも3つの遅延量であることを特徴とする請求項6から9のいずれか1項に記載の記録再生装置。   10. The recording / reproducing apparatus according to claim 6, wherein the partial delay amount is at least three delay amounts. 記録媒体に対してクロック信号を出力する出力手段と、
前記記録媒体に命令を送信すると共に、前記クロック信号を遅延させることにより得られたタイミング信号に応じて、前記記録媒体から送信されたデータを受信する通信手段と、
前記記録媒体に対して前記命令を送信するように前記通信手段を制御する制御手段と
を有する記録再生装置の制御方法であって、
前記制御手段が、
前記記録媒体に対して、前記タイミング信号の遅延量を調整するための所定のデータ列を有するパターンデータを送信させるための第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.
コンピュータを請求項1乃至10のいずれか1項に記載の記録再生装置の前記制御手段として機能させるためのプログラム。   The program for functioning a computer as the said control means of the recording / reproducing apparatus of any one of Claims 1 thru | or 10.
JP2014172013A 2014-08-26 2014-08-26 Recording and reproducing device, control method for recording and reproducing device, and program Pending JP2016046781A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
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