[go: up one dir, main page]

JP2018147260A - Recording and reproducing device, control method of recording and reproducing device, and program - Google Patents

Recording and reproducing device, control method of recording and reproducing device, and program Download PDF

Info

Publication number
JP2018147260A
JP2018147260A JP2017042082A JP2017042082A JP2018147260A JP 2018147260 A JP2018147260 A JP 2018147260A JP 2017042082 A JP2017042082 A JP 2017042082A JP 2017042082 A JP2017042082 A JP 2017042082A JP 2018147260 A JP2018147260 A JP 2018147260A
Authority
JP
Japan
Prior art keywords
clock
data
recording
storage medium
transmission
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
JP2017042082A
Other languages
Japanese (ja)
Inventor
前田 昌峰
Masamine Maeda
昌峰 前田
昭雄 藤井
Akio Fujii
昭雄 藤井
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 JP2017042082A priority Critical patent/JP2018147260A/en
Publication of JP2018147260A publication Critical patent/JP2018147260A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System (AREA)

Abstract

【課題】連続的にカードアクセスが発生する場合に、再チューニングを行なわずとも高速書き込みの信頼性を確保することを可能とする。【解決手段】記録再生装置であって、記憶媒体に、データの送受信のためのクロックを供給するクロック供給手段と、前記クロックに応じて前記記憶媒体にデータを送信し、前記記憶媒体が前記クロック供給手段により供給されたクロックに応じて送信したデータを前記クロックに応じて受信する送受信手段と、前記送受信手段が前記記憶媒体からのデータを受信する場合に第一クロックを供給し、前記送受信手段が前記記憶媒体にデータを送信する場合に前記第一クロックよりも高速な第二クロックを供給するように制御する制御手段と、を備える。【選択図】図1PROBLEM TO BE SOLVED: To secure reliability of high-speed writing without retuning when card accesses occur continuously. In a recording/reproducing apparatus, clock supply means for supplying a clock for transmitting and receiving data to a storage medium, and for transmitting data to the storage medium according to the clock, the storage medium is the clock. Transmitting/receiving means for receiving the data transmitted according to the clock supplied by the supplying means according to the clock, and supplying the first clock when the transmitting/receiving means receives the data from the storage medium, and transmitting/receiving means When the data is transmitted to the storage medium, the control means controls to supply a second clock that is faster than the first clock. [Selection diagram] Figure 1

Description

本発明は、記録再生装置、記録再生装置の制御方法、及び、プログラムに関する。   The present invention relates to a recording / reproducing apparatus, a control method for the recording / reproducing apparatus, and a program.

SDメモリカードからデータの読み出しを行う場合、ホストからカードに与えられるクロックに対するカードからのデータ送信の遅延量は、規定された固定遅延量であった。したがって、ホスト側は送信クロック送信に対し規定量の遅延タイミングでデータラッチを行うことにより、カードアクセスを問題なく行うことができた。   When data is read from the SD memory card, the delay amount of data transmission from the card with respect to the clock given from the host to the card is a prescribed fixed delay amount. Therefore, the host side can perform card access without any problem by performing data latch at a predetermined amount of delay timing with respect to transmission clock transmission.

しかし近年、メモリカードのアクセス速度向上に伴うクロックの高速化により、前述の遅延量は固定値としては規定できなくなっている。このためSDメモリカードの高速規格であるUHS−I(Ultra High Speed−1)においては、所定より高速のクロックを使用する場合は可変遅延量となり、データラッチのタイミングの調整が必要であることが規定されている。このラッチタイミングの調整作業はチューニングまたはキャリブレーションと呼ばれ、メモリカードのカードマウント時に行うのが一般的である。しかし前述の遅延量はカードの温度など外的要因によって変動するため、チューニングを行っていても、その後のカードアクセスの繰り返しによりカードの温度の変化に伴って遅延量が変化し、データの転送が失敗してしまう可能性がある。一方、チューニング中はカードのデータ転送ができないため、頻繁にチューニングを行なうことは転送効率の低下につながる。   However, in recent years, the above-mentioned delay amount cannot be defined as a fixed value due to an increase in clock speed accompanying an increase in the access speed of the memory card. For this reason, in UHS-I (Ultra High Speed-1), which is a high-speed standard for SD memory cards, a variable delay amount is required when a clock faster than a predetermined speed is used, and the data latch timing needs to be adjusted. It is prescribed. This adjustment operation of the latch timing is called tuning or calibration, and is generally performed when the memory card is mounted. However, since the delay amount described above varies depending on external factors such as the card temperature, even if tuning is performed, the delay amount changes as the card temperature changes due to repeated card access, and data transfer is not possible. There is a possibility of failure. On the other hand, since the card data cannot be transferred during tuning, frequent tuning leads to a decrease in transfer efficiency.

特許文献1は、この課題の解決策を提案する。提案手法では、まず、カードから出力されるデータの受信(カード読み出し)に際し、キャリブレーション(チューニング)で得られた正確にデータ受信ができる位相の範囲内に互いに異なる3つの位相のデータ取り込みタイミングを設定する。その上で、1つのデータに対して異なる位相を持つ3つの同一周波数のクロックを用いてデータを取り込む。ここで、3つの位相で所定サイズ(512バイトなど)を受信したときに、中心の位相で取られたデータに対して、前位相、後位相で得られた各データが異なっている数を集計する。その集計結果から所定の数以上異なる数が出た位相がある場合は、該位相の反対方向に位相をシフトすることにより、遅延量の変化に追従するというものである。   Patent Document 1 proposes a solution to this problem. In the proposed method, when data output from the card is received (card reading), data acquisition timings of three phases different from each other within the phase range where data can be accurately received obtained by calibration (tuning) are set. Set. In addition, data is captured using three clocks having the same frequency and different phases for one data. Here, when a predetermined size (512 bytes, etc.) is received in three phases, the number of differences in each data obtained in the previous phase and the subsequent phase is counted with respect to the data taken in the center phase. To do. If there is a phase whose number differs from the total number by a predetermined number or more, the phase is shifted in the opposite direction of the phase to follow the change in the delay amount.

しかしながら、キャリブレーションの実施から時間を置いて記録を開始する場合は、その時間の間に遅延量が変化している可能性がある。また3つの位相のタイミング間隔は、タイミングの差を作るための遅延素子の温度特性により変化し、たとえば正しくデータ受信ができない位相が、位相の間に入り込んでしまう可能性がある。これらの場合、中心の位相によるデータ受信は正しくデータ受信ができない位相のごく近傍で行われる状態となり、少しの遅延量の変化でデータの転送が正常にできなくなってしまう。したがって、特許文献1の提案手法の実施によってもカードアクセス中における再チューニングの発生による転送効率の低下をなくすことはできない。   However, when recording is started after the calibration has been performed, the delay amount may change during that time. In addition, the timing intervals of the three phases change depending on the temperature characteristics of the delay elements for making a timing difference, and for example, a phase in which data cannot be correctly received may enter between the phases. In these cases, the data reception by the center phase is performed in the very vicinity of the phase where the data cannot be correctly received, and the data transfer cannot be normally performed with a slight change in the delay amount. Therefore, even if the proposed method of Patent Document 1 is implemented, it is not possible to eliminate a decrease in transfer efficiency due to the occurrence of retuning during card access.

特開2011−134009号公報JP 2011-134209 A

そこで本発明は、連続的にカードアクセスが発生する場合に、再チューニングを行なわずとも高速書き込みの信頼性を確保することを可能とする技術を提供するものである。   Therefore, the present invention provides a technique that can ensure the reliability of high-speed writing without performing retuning when card accesses occur continuously.

上記課題を解決する本発明は、記録再生装置であって、
記憶媒体に、データの送受信のためのクロックを供給するクロック供給手段と、
前記クロックに応じて前記記憶媒体にデータを送信し、前記記憶媒体が前記クロック供給手段により供給されたクロックに応じて送信したデータを前記クロックに応じて受信する送受信手段と、
前記送受信手段が前記記憶媒体からのデータを受信する場合に第一クロックを供給し、前記送受信手段が前記記憶媒体にデータを送信する場合に前記第一クロックよりも高速な第二クロックを供給するように制御する制御手段と、を備える。
The present invention for solving the above problems is a recording / reproducing apparatus,
Clock supply means for supplying a clock for transmitting and receiving data to the storage medium;
Transmitting / receiving means for transmitting data to the storage medium in accordance with the clock, and receiving data transmitted in accordance with the clock supplied by the clock supply means in accordance with the clock;
A first clock is supplied when the transmission / reception means receives data from the storage medium, and a second clock faster than the first clock is supplied when the transmission / reception means transmits data to the storage medium. And control means for controlling as described above.

本発明によれば、連続的にカードアクセスが発生する場合に、再チューニングを行なわずとも高速書き込みの信頼性を確保することを可能とする技術を提供することができる。   According to the present invention, it is possible to provide a technique capable of ensuring the reliability of high-speed writing without performing retuning when card accesses occur continuously.

発明の実施形態に対応する記録再生装置の構成例を示すブロック図。The block diagram which shows the structural example of the recording / reproducing apparatus corresponding to embodiment of invention. 発明の実施形態に対応するホストコントローラ回路111の構成例を示すブロック図。The block diagram which shows the structural example of the host controller circuit 111 corresponding to embodiment of invention. 発明の実施形態に対応する記録再生装置の動作の一例を示すフローチャート。The flowchart which shows an example of operation | movement of the recording / reproducing apparatus corresponding to embodiment of invention. 発明の実施形態に対応する記録再生装置の動作の一例を示すシーケンスチャート。The sequence chart which shows an example of operation | movement of the recording / reproducing apparatus corresponding to embodiment of invention. 発明の実施形態に対応する記録再生装置の動作時の信号状態の一例を示すタイミングチャート。The timing chart which shows an example of the signal state at the time of operation | movement of the recording / reproducing apparatus corresponding to embodiment of invention. 発明の実施形態に対応するクロックに対するデータの遅延を説明するための図。The figure for demonstrating the delay of the data with respect to the clock corresponding to embodiment 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 will be described as an example of a recording / reproducing apparatus. 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 It can also be implemented as an arbitrary host device such as a camera, a tablet terminal, or a portable media player, an information processing device, an imaging device, a data generation device, or the like.

図1は、本実施形態のデジタルカメラ100の構成の一例を示すブロック図であり、撮影レンズ101は、被写体像をとらえ、絞り102によって光量を所定量に制限した後、撮像素子103上に被写体像を結像させる。結像した被写体像は、A/Dコンバータ104でデジタル化され、画像処理部105でガンマ補正やホワイトバランス補正、ノイズリダクション処理等が行われる。本実施形態において、撮影レンズ101から画像処理部105までの構成を撮像部10と呼ぶことにする。以下の実施形態では、撮像部10から出力される画像データを記憶媒体であるメモリカード112に書き込む場合等について説明する。しかし、本発明が適用可能な対象は画像データに限定されるものではなく、音声データ、動画像データと音声データとを含むマルチメディアデータ、或いは、その他のメモリカード112への書き込み対象となり得る任意のデータであってもよい。これらの種類のデータを総称して情報データと呼ぶことができる。本発明の実施形態としての記録再生装置は、情報データを生成するために、撮像部10に追加してマイク、A/D変換器、音声処理部を含む音声生成部等を更に備えることができる。   FIG. 1 is a block diagram showing an example of the configuration of the digital camera 100 according to the present embodiment. A photographing lens 101 captures a subject image, limits the amount of light to a predetermined amount by a diaphragm 102, and then places a subject on the image sensor 103. Form an image. The formed subject image is digitized by the A / D converter 104, and gamma correction, white balance correction, noise reduction processing, and the like are performed by the image processing unit 105. In the present embodiment, the configuration from the photographing lens 101 to the image processing unit 105 is referred to as the imaging unit 10. In the following embodiment, a case where image data output from the imaging unit 10 is written in a memory card 112 as a storage medium will be described. However, the object to which the present invention can be applied is not limited to image data, but audio data, multimedia data including moving image data and audio data, or any other object that can be written to the memory card 112. It may be the 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 imaging unit 10 in order to generate information data. .

撮像部10は、データバス106に非圧縮画像データおよび画像表示用のデータを出力し、当該データはメモリ113に格納される。メモリ113は、例えばDRAMとして構成されても良い。ディスプレイ109は、画像や各種情報を表示する表示部であって、例えば液晶パネルで構成される。ディスプレイドライバ110は、メモリ113に格納(保持)されている画像表示用のデータを、ディスプレイ109用の表示信号に変換してディスプレイ109に逐次転送して表示する。これによりディスプレイ109は電子ビューファインダとして機能し、画像表示を行うことができる。画像サイズ変換部107は、本体に設定されている動画解像度設定に応じて、メモリ113に格納されている非圧縮画像データの画像サイズを変換する。たとえば、設定が「720P」の場合、FULL−HD(1920x1080画素)の非圧縮画像データから1280x720画素に変換を行い、再びメモリ(DRAM)113に格納する。また、設定が「FULL−HD」の場合は、画像サイズ変換部107は動作を行わない。   The imaging unit 10 outputs uncompressed image data and image display data to the data bus 106, and the data is stored in the memory 113. The memory 113 may be configured as a DRAM, for example. The display 109 is a display unit that displays images and various types of information, and is configured by a liquid crystal panel, for example. The display driver 110 converts the image display data stored (held) in the memory 113 into a display signal for the display 109 and sequentially transfers it to the display 109 for display. Thus, the display 109 functions as an electronic viewfinder and can display an image. The image size conversion unit 107 converts the image size of the uncompressed image data stored in the memory 113 according to the moving image resolution setting set in the main body. For example, when the setting is “720P”, the uncompressed image data of FULL-HD (1920 × 1080 pixels) is converted into 1280 × 720 pixels, and is stored again in the memory (DRAM) 113. When the setting is “FULL-HD”, the image size conversion unit 107 does not operate.

符号化処理部108は、メモリ113に格納されている非圧縮画像データを動画として圧縮符号化し、符号化動画データを生成し、再びメモリ113に格納する。メモリ113は、前述の作業用メモリとしての空間を提供するとともに、ストリームバッファ113Aとしてのメモリ空間を提供する。具体的に、符号化処理部108が生成した符号化動画データは、メモリカード112への転送状況に応じて、メモリ113へデータ蓄積され、またメモリ113からデータ読み出しが行なわれ、これによりメモリカード112の記録速度との調停を行うことができる。   The encoding processing unit 108 compresses and encodes the uncompressed image data stored in the memory 113 as a moving image, generates encoded moving image data, and stores the encoded moving image data in the memory 113 again. The memory 113 provides a space as the above-described working memory and a memory space as the stream buffer 113A. Specifically, the encoded moving image data generated by the encoding processing unit 108 is stored in the memory 113 and read out from the memory 113 in accordance with the transfer status to the memory card 112, whereby the memory card Arbitration with the recording speed of 112 can be performed.

メモリカード112は、デジタルカメラ100本体に対して着脱が可能な、NAND型フラッシュメモリおよびフラッシュコントローラで構成された記憶媒体として構成することができる。また、メモリカード112は、PC互換性を持つFAT(File Allocation Table)ファイルシステムでフォーマットされている。符号化動画データは、該フォーマットに則り、ファイル化されてメモリカード112に記録される。ホストコントローラ回路111は、後述の制御部115からの指示に基づいてメモリカード112に対してコマンド信号を送信し、メモリ113からメモリカード112への送信対象データである符号化動画データの記録を実行する。また、ホストコントローラ回路111は、メモリカード112から符号化動画データを読み出し、メモリ113へ符号化動画データを書き込む一連の動作(転送)も制御する。   The memory card 112 can be configured as a storage medium composed of a NAND flash memory and a flash controller that can be attached to and detached from the digital camera 100 main body. The memory card 112 is formatted with a FAT (File Allocation Table) file system compatible with PC. The encoded moving image data is filed according to the format and recorded on the memory card 112. The host controller circuit 111 transmits a command signal to the memory card 112 based on an instruction from the control unit 115 to be described later, and executes recording of encoded moving image data that is data to be transmitted from the memory 113 to the memory card 112. To do. The host controller circuit 111 also controls a series of operations (transfer) for reading the encoded moving image data from the memory card 112 and writing the encoded moving image data to the memory 113.

操作部114は、ユーザが行う不図示の操作キーなどを通じた操作を受け付けるユーザインタフェースである。操作部114は、例えば、動画の撮影開始および撮影停止を指示するトリガーキー、撮影モードや再生モードなどのカメラのモードを設定するモードスイッチ、および各種設定項目の設定キーを含むことができる。制御部115は、例えばCPU等の1以上のプロセッサにより構成され、後述のROM116に格納されているプログラムを実行し、後述する本実施形態の各処理を実現する。また、ディスプレイドライバ110等を制御することにより表示制御も行う。ROM116は、電気的に消去・記録可能な不揮発性メモリであって、前述のプログラム、本体の設定内容等が格納される。ROM116は、ハードディスク等のデータ格納装置として構成されても良い。システムクロック生成部117は、ホストコントローラ回路111や制御部115などの各ブロックが使用するクロックを、それぞれのブロックが必要な周波数で生成・供給する。   The operation unit 114 is a user interface that receives an operation performed by a user through an operation key (not illustrated). The operation unit 114 can include, for example, a trigger key for instructing to start and stop shooting a moving image, a mode switch for setting a camera mode such as a shooting mode and a playback mode, and setting keys for various setting items. The control unit 115 is configured by one or more processors such as a CPU, for example, and executes programs stored in a ROM 116 described later to realize each process of the present embodiment described later. Display control is also performed by controlling the display driver 110 and the like. The ROM 116 is an electrically erasable / recordable non-volatile memory, and stores the above-described program, setting contents of the main body, and the like. The ROM 116 may be configured as a data storage device such as a hard disk. The system clock generation unit 117 generates and supplies a clock used by each block such as the host controller circuit 111 and the control unit 115 at a frequency necessary for each block.

なお、図1は、本発明がデジタルカメラとして機能する場合を考慮して撮影レンズ101から画像処理部105で構成される撮像部を含む構成を示した。しかし、発明の実施形態としては、メモリカード112へのデータの書き込みを制御する装置であればよいので、撮像部を有しない構成で、データ記録装置、データ書込装置、或いは、カードリーダライタ等として実現することもできる。   Note that FIG. 1 shows a configuration including an imaging unit including the imaging lens 101 and the image processing unit 105 in consideration of the case where the present invention functions as a digital camera. However, as an embodiment of the invention, any device that controls the writing of data to the memory card 112 may be used. Therefore, a data recording device, a data writing device, a card reader / writer, or the like having a configuration that does not include an imaging unit. It can also be realized as.

次に、図2を参照してホストコントローラ回路111の構成及び動作について説明する。図2は、ホストコントローラ回路111の構成の一例を示すブロック図である。図2において点線枠で示す範囲は、ホストコントローラ回路111を示している。また、メモリカード112、メモリ113、制御部115もそれぞれ、図1の同一記号を付したブロックを示している。   Next, the configuration and operation of the host controller circuit 111 will be described with reference to FIG. FIG. 2 is a block diagram illustrating an example of the configuration of the host controller circuit 111. In FIG. 2, a range indicated by a dotted line frame indicates the host controller circuit 111. Further, the memory card 112, the memory 113, and the control unit 115 also indicate blocks with the same symbols in FIG.

ホストコントローラ201は、制御部115からの指示により、メモリカード112へのデータの送受信動作を制御するとともに、ホストコントローラ回路111の全体の制御を行う。バッファ202は、システムクロック生成部117からホストコントローラ回路111内の各ブロックに動作クロックを分配するために必要な信号駆動能力を確保する。レスポンス判定部203は、ホストコントローラ201からメモリカード112にコマンドを送信した後、メモリカードが応答したことを示すために送り返してくるレスポンス信号を受信し、その内容を判定する。   The host controller 201 controls the data transmission / reception operation to / from the memory card 112 and controls the entire host controller circuit 111 in accordance with an instruction from the control unit 115. The buffer 202 ensures a signal driving capability necessary for distributing the operation clock from the system clock generation unit 117 to each block in the host controller circuit 111. The response determination unit 203 receives a response signal sent back to indicate that the memory card has responded after transmitting a command from the host controller 201 to the memory card 112, and determines the content thereof.

メモリインターフェース204は、メモリカード112に対して書き込むためのデータをメモリ113から読み出したり、またメモリカード112から読み出したデータをメモリ113に書き込んだりするためのインターフェースである。CRC(Cyclic Redundancy Check:巡回冗長検査)ステータス判定部205は、メモリ113からメモリカード112にデータを送信した後、テータの転送が成功したか否かを示すために送り返してくるCRCステータス信号を受信し、その内容を判定する。   The memory interface 204 is an interface for reading data to be written to the memory card 112 from the memory 113 and writing data read from the memory card 112 to the memory 113. A CRC (Cyclic Redundancy Check) status determination unit 205 transmits data from the memory 113 to the memory card 112, and then receives a CRC status signal sent back to indicate whether or not the data transfer is successful. The contents are determined.

読み出しクロック生成部206は、メモリカード112からのデータ受信におけるタイミングの基となるクロック(第一クロック)を生成・供給する。書き込みクロック生成部207は、メモリカード112へのデータ送信におけるタイミングの基となるクロック(第二クロック)を生成・供給する。このとき、第一クロックと第二クロックとは、システムクロック生成部117から供給される同一のクロック源から生成することができる。また、本実施形態では、第二クロックを第一クロックよりも高速のクロックとすることができる。言い換えれば、第二クロックの周波数は、第一クロックの周波数よりも高くすることができる。   The read clock generation unit 206 generates and supplies a clock (first clock) that is a timing base in data reception from the memory card 112. The write clock generation unit 207 generates and supplies a clock (second clock) that is a timing base in data transmission to the memory card 112. At this time, the first clock and the second clock can be generated from the same clock source supplied from the system clock generation unit 117. In the present embodiment, the second clock can be a clock faster than the first clock. In other words, the frequency of the second clock can be higher than the frequency of the first clock.

コマンドバッファ208は、ホストコントローラ201からのコマンド信号を受け、出力D−フリップフロップ214との協調動作により、書き込みクロック生成部207からの書き込みクロック信号のタイミングに合わせてコマンド信号(CMD)を送出する。レスポンスバッファ209は、入力D−フリップフロップ215との協調動作により、メモリカード112からのレスポンス信号を読み出しクロック生成部206からの読み出しクロック信号のタイミングで取り込み、レスポンス信号をレスポンス判定部203に送出する。   The command buffer 208 receives a command signal from the host controller 201 and sends a command signal (CMD) in accordance with the timing of the write clock signal from the write clock generation unit 207 in cooperation with the output D-flip flop 214. . The response buffer 209 captures the response signal from the memory card 112 at the timing of the read clock signal from the read clock generation unit 206 and sends the response signal to the response determination unit 203 in cooperation with the input D-flip flop 215. .

またWriteデータバッファ210は、メモリインターフェース204を通じてメモリ113から読み出したデータを、出力D−フリップフロップ216との協調動作により、書き込みクロック生成部207からの書き込みクロック信号のタイミングに合わせてWriteデータとして送出する(DAT)。Readデータバッファ211は、入力D−フリップフロップ217との協調動作により、メモリカード112からのデータを、読み出しクロック生成部206からの読み出しクロック信号のタイミングで取り込み(DAT)、該取り込んだデータを、メモリインターフェース204を通じてメモリ113に送出する。ステータスバッファ212は、入力D−フリップフロップ218との協調動作により、メモリカード112からのCRCステータス信号を、読み出しクロック生成部206からの読み出しクロック信号のタイミングで取り込み(DAT)、該信号をCRCステータス判定部205に送出する。クロック切替器213は、メモリカード112に送出するカードクロック信号(CLK)として、読み出しクロック生成部206からのクロック信号か書き込みクロック生成部207からのクロック信号かどちらを出力するかを切り替える。入出力バッファ群219は、ホストコントローラ回路111とメモリカード112との間の各信号通信に必要な信号駆動能力を確保するとともに、ホストコントローラ201の指示に基づき、データの入出力方向の切り替えを行う。   Also, the write data buffer 210 sends data read from the memory 113 through the memory interface 204 as write data in accordance with the timing of the write clock signal from the write clock generation unit 207 by the cooperative operation with the output D-flip flop 216. (DAT). The Read data buffer 211 captures data from the memory card 112 at the timing of the read clock signal from the read clock generation unit 206 (DAT) by cooperative operation with the input D-flip flop 217, and the captured data is The data is sent to the memory 113 through the memory interface 204. The status buffer 212 fetches the CRC status signal from the memory card 112 at the timing of the read clock signal from the read clock generation unit 206 (DAT) by the cooperative operation with the input D-flip flop 218, and receives the CRC status signal. The data is sent to the determination unit 205. The clock switch 213 switches between outputting a clock signal from the read clock generation unit 206 or a clock signal from the write clock generation unit 207 as a card clock signal (CLK) to be sent to the memory card 112. The input / output buffer group 219 secures signal driving capability necessary for each signal communication between the host controller circuit 111 and the memory card 112, and switches the input / output direction of data based on an instruction from the host controller 201. .

なお、本実施形態のメモリカード112は、ホスト―カード間でのアクセスに使用するクロックはホストからカードへ一方向に供給されており、ホストからカードへのデータ送信時は、データまたは信号の送信方向とクロック供給の方向が同一となるので、ホストはクロックに対してカード側の規格で定められたセットアップ―ホールド期間を満たすタイミングでデータを送信する。   In the memory card 112 of the present embodiment, the clock used for access between the host and the card is supplied in one direction from the host to the card. When data is transmitted from the host to the card, data or signals are transmitted. Since the direction of the clock and the direction of the clock supply are the same, the host transmits data at a timing that satisfies the setup-hold period defined by the card-side standard with respect to the clock.

一方、カードからホストへのデータ送信時は、クロックの周波数が所定値以下の場合、カードは、ホストから送られてくるクロックに対してカード側の規格で定められた遅延量以内のタイミングでデータをホストに送信する。以後、これを「固定遅延量モード」と呼ぶことにする。また、クロックの周波数が所定値より高い場合、カードからのデータの出力タイミングは、クロックの立ち上がり、立ち下がりからの最小遅延、最大遅延で規定されず、温度などの影響により、カードにクロックを出力してからデータを受けるまでの遅延時間が変化する。以後、これを「可変遅延量モード」と呼ぶことにする。   On the other hand, when sending data from the card to the host, if the clock frequency is below the specified value, the card will send data at a timing within the delay amount specified by the card-side standard with respect to the clock sent from the host. To the host. Hereinafter, this is referred to as “fixed delay amount mode”. In addition, when the clock frequency is higher than the specified value, the data output timing from the card is not defined by the minimum delay or maximum delay from the rising or falling of the clock, and the clock is output to the card due to the influence of temperature, etc. The delay time from receiving data to receiving data changes. Hereinafter, this is referred to as “variable delay amount mode”.

本実施形態においては、読み出しクロック生成部206が生成する第一クロックは「固定遅延量モード」となるクロック周波数を有するクロックとする。この第一クロックは、該第一クロックに従ってメモリカード112を動作させた場合に想定される出力データの遅延が、第一クロックの立ち上がりまたは立ち下がりから所定の期間内に収まるような周波数を有する。また、書き込みクロック生成部207が生成する第二クロックは「可変遅延量モード」となるクロック周波数を有するクロックとする。この第二クロックは、該第二クロックに従ってメモリカード112を動作させた場合に想定される出力データの遅延が、該第二クロックの立ち上がりまたは立ち下がりからの所定の遅延時間で規定されず、かつ、動作条件に応じて異なり得る周波数を有する。本実施形態では、例えば、後述する図5に示すように、第一クロックの周波数を100MHzとし、第二クロックの周波数を200MHzとすることができるが、これらはあくまで一例にすぎない。   In the present embodiment, the first clock generated by the read clock generation unit 206 is a clock having a clock frequency for the “fixed delay amount mode”. The first clock has a frequency such that the delay of output data assumed when the memory card 112 is operated in accordance with the first clock falls within a predetermined period from the rise or fall of the first clock. Further, the second clock generated by the write clock generation unit 207 is a clock having a clock frequency at which the “variable delay amount mode” is set. In the second clock, the delay of output data assumed when the memory card 112 is operated according to the second clock is not defined by a predetermined delay time from the rise or fall of the second clock, and , Having a frequency that can vary depending on operating conditions. In the present embodiment, for example, as shown in FIG. 5 described later, the frequency of the first clock can be set to 100 MHz and the frequency of the second clock can be set to 200 MHz. However, these are only examples.

ここで、図6を参照し、クロックとデータの遅延との関連について一例を説明する。図6(a)は、クロックの立ち上がりに対しデータが遅延する例を示し、図6(b)はクロックの立ち下がりに対してデータが遅延する例を示している。   Here, an example of the relationship between the clock and the data delay will be described with reference to FIG. FIG. 6A shows an example in which data is delayed with respect to the rising edge of the clock, and FIG. 6B shows an example in which data is delayed with respect to the falling edge of the clock.

まず、図6(a)において、クロック601の立ち上がりに対し、データ602がTd1だけ遅延している。この場合、タイミング603や605ではデータのラッチに失敗するが、タイミング604ではラッチに成功する。また、図6(b)において、クロック606の立ち下がりに対し、データ607がTd2だけ遅延している。この場合、タイミング608や610ではデータのラッチに失敗するが、タイミング609ではラッチに成功する。上記の固定遅延量モードでは、クロックの立ち上がりや立ち下がりからのデータの遅延量が規定の範囲内に収まるため、予め定められ位置でラッチすることによりデータを受信することができる。一方、可変遅延量モードでは、遅延量が条件によって変化するため、固定的なタイミングでラッチしてもデータを正確に受信することができない。但し、可変遅延量モードが問題となるのは上記のように、メモリカード112からのデータの読出し時であり、本実施形態では、データの読出し時には固定遅延量モードの低速のクロック周波数を使用するので、可変遅延量に起因してデータの受信に失敗するという問題は生じ得ない。   First, in FIG. 6A, the data 602 is delayed by Td1 with respect to the rising edge of the clock 601. In this case, data latch fails at timings 603 and 605, but latching succeeds at timing 604. In FIG. 6B, the data 607 is delayed by Td2 with respect to the falling edge of the clock 606. In this case, data latch fails at timings 608 and 610, but latching succeeds at timing 609. In the above-described fixed delay amount mode, the data delay amount from the rising edge or falling edge of the clock falls within a specified range, so that data can be received by latching at a predetermined position. On the other hand, in the variable delay amount mode, the delay amount changes depending on conditions, and therefore data cannot be received accurately even if latched at a fixed timing. However, the variable delay amount mode becomes a problem when reading data from the memory card 112 as described above. In this embodiment, the low-speed clock frequency of the fixed delay amount mode is used when reading data. Therefore, the problem that data reception fails due to the variable delay amount cannot occur.

以上の構成における、本実施形態のデジタルカメラ100のカメラ撮影モードにおける動作を説明する。図3は、本実施形態のデジタルカメラ100のカメラ撮影モードにおける動作を示すフローチャートである。該フローチャートに対応する処理は、例えば、制御部115として機能する1以上のプロセッサが対応するプログラム(ROM116等に格納)を実行し、ホストコントローラ回路111等の各ブロックの動作を制御することにより実現できる。   The operation in the camera shooting mode of the digital camera 100 of the present embodiment having the above configuration will be described. FIG. 3 is a flowchart showing an operation in the camera photographing mode of the digital camera 100 of the present embodiment. The processing corresponding to the flowchart is realized, for example, by one or more processors functioning as the control unit 115 executing a corresponding program (stored in the ROM 116 or the like) and controlling the operation of each block such as the host controller circuit 111 or the like. it can.

まず、デジタルカメラ100の電源が投入され、デジタルカメラ100の動作モードがカメラ撮影モードにセットされると、S301にて、メモリインターフェース204がメモリカード112からファイルシステム情報を読み出し、メモリカード112を記録可能な状態にするマウント処理を実行する。このように、電源投入後、メモリカード112へのデータの記録が開始される前に、マウント処理が実行される。続くS302では、制御部115は、ユーザが操作部114を操作して行なった記録指示を受付けたか否かを判定する。記録指示を受付けたと判定した場合、処理はS303に進む。一方、記録指示を受付けていないと判定された場合はS302に戻ってユーザからの指示の受付けを監視する。S303では、制御部115は撮像部を制御し記録指示に応じて動画の記録を開始し、生成された非圧縮画像データをメモリ113に格納する。続くS304では、符号化処理部108が、メモリ113に記憶された非圧縮画像データに対しH.264、MPEG−2等のフレーム間符号化、あるいはイントラ符号化を行ない、メモリ113上のストリームバッファ113Aの領域に符号化ストリームデータを蓄積していく。   First, when the power of the digital camera 100 is turned on and the operation mode of the digital camera 100 is set to the camera photographing mode, the memory interface 204 reads the file system information from the memory card 112 and records the memory card 112 in S301. Execute mount processing to make it possible. As described above, after the power is turned on, the mounting process is executed before the data recording to the memory card 112 is started. In subsequent S302, the control unit 115 determines whether or not a recording instruction given by the user operating the operation unit 114 has been received. If it is determined that the recording instruction has been accepted, the process proceeds to S303. On the other hand, if it is determined that the recording instruction has not been received, the process returns to S302 to monitor the reception of the instruction from the user. In step S <b> 303, the control unit 115 controls the imaging unit, starts recording a moving image in response to a recording instruction, and stores the generated uncompressed image data in the memory 113. In subsequent S <b> 304, the encoding processing unit 108 performs H.264 processing on the uncompressed image data stored in the memory 113. H.264, MPEG-2 or other interframe coding or intra coding is performed, and the coded stream data is accumulated in the area of the stream buffer 113A on the memory 113.

続くS305では制御部115は、ユーザが操作部114を操作して行なった録画停止の指示を受付けたか否かを判定する。もし、録画停止指示を受付けたと判定した場合、処理はS309に進む。一方、録画停止指示を受付けていないと判定した場合には、処理はS306に進む。まず、S306にて、制御部115はストリームバッファ113に蓄積された符号化ストリームデータの蓄積量が、所定量(例えば2MB)を超えたか否かを判定する。制御部115が、蓄積量が所定量を超えたと判定した場合、処理はS307に進む。一方、蓄積量が所定量を超えていないと判定した場合、蓄積量の監視を継続する。続くS307において、制御部115は、ホストコントローラ回路111に対して、所定量のデータをメモリカード112に書き込むためのWriteコマンドを発行するように指示を出す。また、ホストコントローラ回路111は、メモリ113上のストリームバッファ113Aからメモリカード112への符号化ストリームデータの書き込みを行う。なお、このWriteコマンドによる動作の詳細は、後に述べる。その後、S308にて、ホストコントローラ201はFATアップデートを実行し、処理はS305に戻る。   In subsequent S305, the control unit 115 determines whether or not an instruction to stop recording performed by the user operating the operation unit 114 has been received. If it is determined that a recording stop instruction has been received, the process proceeds to S309. On the other hand, if it is determined that a recording stop instruction has not been received, the process proceeds to S306. First, in S306, the control unit 115 determines whether or not the amount of encoded stream data stored in the stream buffer 113 exceeds a predetermined amount (for example, 2 MB). When the control unit 115 determines that the accumulated amount exceeds the predetermined amount, the process proceeds to S307. On the other hand, when it is determined that the accumulated amount does not exceed the predetermined amount, the accumulated amount is continuously monitored. In subsequent S307, the control unit 115 instructs the host controller circuit 111 to issue a Write command for writing a predetermined amount of data to the memory card 112. The host controller circuit 111 writes encoded stream data from the stream buffer 113A on the memory 113 to the memory card 112. Details of the operation by the Write command will be described later. Thereafter, in S308, the host controller 201 executes FAT update, and the process returns to S305.

また、S305にて録画停止指示を受付けたとして、処理はS309に進んだ場合、S309では、ホストコントローラ201がストリームバッファ113Aに残っている符号化ストリームデータのメモリカード112への書き込みを実行する。その後、S310にて、ホストコントローラ201はFATアップデートを行ない、S311にて録画が停止する。その後処理はS302に戻り、ユーザからの録画開始操作待ちの状態になる。   Further, assuming that the recording stop instruction is accepted in S305, when the process proceeds to S309, in S309, the host controller 201 writes the encoded stream data remaining in the stream buffer 113A to the memory card 112. Thereafter, in S310, the host controller 201 performs FAT update, and recording is stopped in S311. Thereafter, the processing returns to S302, and the recording start operation waiting state from the user is awaited.

以下に、Writeコマンドによるデータの書き込み処理に関連する動作の詳細を述べる。図4は、Writeコマンドによるデータの書き込み処理に関連する動作の詳細を示すシーケンスチャートである。また図5は、Writeコマンド時の、ホストおよびメモリカードの間の信号状態を時間経過に沿って示すタイミングチャートである。   Details of operations related to data write processing by the Write command will be described below. FIG. 4 is a sequence chart showing details of an operation related to a data writing process by the Write command. FIG. 5 is a timing chart showing the signal state between the host and the memory card along with the passage of time at the time of the Write command.

図4において、ホストコントローラ201、メモリカード112、制御部115はそれぞれ図1および図2の同一記号を付したブロックを示しており、それぞれの間でなされる操作および通信、データ転送などを時間の経過に沿って示している。S401にて、制御部115がホストコントローラ201に対しWriteコマンドの実行を指示すると、S402にて、ホストコントローラ201はクロック切替器213を第二クロック側に切替える。次にS403にて、ホストコントローラ201は、メモリカードへクロック出力を開始する。   In FIG. 4, the host controller 201, the memory card 112, and the control unit 115 show blocks with the same symbols in FIGS. 1 and 2, respectively. Shown along the course. When the control unit 115 instructs the host controller 201 to execute the write command in S401, the host controller 201 switches the clock switch 213 to the second clock side in S402. In step S403, the host controller 201 starts clock output to the memory card.

このときの、クロックの様子は、図5に示す通りである。図5では、メモリカード112の入出力ラインであるクロック(CLK)、コマンド(CMD)、データ(DAT)を時間経過に対応させて示している。タイミング501において、ホストコントローラ201がクロック切替器213を第二クロック側に切替えて、クロック信号は200MHzの信号となる。   The state of the clock at this time is as shown in FIG. In FIG. 5, the clock (CLK), command (CMD), and data (DAT), which are input / output lines of the memory card 112, are shown in correspondence with the passage of time. At timing 501, the host controller 201 switches the clock switch 213 to the second clock side, and the clock signal becomes a signal of 200 MHz.

図4に戻り、S404にて、ホストコントローラ201はコマンドバッファ208を制御し、メモリカードに対してWriteコマンドを発行する。ホストコントローラ201は、Writeコマンドの発行を完了すると、S405にてクロック切替器213を第一クロック側にセットし、メモリカード側からのコマンドレスポンス送信を待つ。   Returning to FIG. 4, in step S404, the host controller 201 controls the command buffer 208 and issues a write command to the memory card. When the host controller 201 completes the issuance of the write command, the host controller 201 sets the clock switch 213 to the first clock side in S405 and waits for a command response transmission from the memory card side.

図5は、S404における処理に対応してタイミング502においてCMD上でWriteコマンドがホスト側からカード側に対して発行されたことを示している。Writeコマンドはタイミング502から503の間において発行される。そして、Writeコマンドが完了すると、タイミング503において、CLKが100MHzのクロック信号に切り替る。本実施形態において、第二クロックは、第一クロックの2倍の速度となっている。但し、第二クロックが第一クロックよりも高速であれば良く、必ずしも2倍に限定されるものではない。図5では、第二クロックを200MHzとし、第一クロックを100MHzとしている。   FIG. 5 shows that the Write command is issued from the host side to the card side on the CMD at timing 502 corresponding to the processing in S404. The Write command is issued between timings 502 to 503. When the Write command is completed, at timing 503, CLK is switched to a clock signal of 100 MHz. In this embodiment, the second clock is twice as fast as the first clock. However, the second clock only needs to be faster than the first clock, and is not necessarily limited to twice. In FIG. 5, the second clock is 200 MHz and the first clock is 100 MHz.

その後、S406にてメモリカード112からホストコントローラ回路111にコマンドレスポンスが送信され、レスポンスバッファ209がその受信を完了すると、レスポンス判定部203がコマンドレスポンスの内容を判定する。ここで、コマンドレスポンスにエラーを示す情報が含まれていた場合、S407にてホストコントローラ201から制御部115にエラー割り込みを入れ、コマンドレスポンスの内容を通知する。レスポンス判定部203がエラーを検出しなければS408にて、ホストコントローラ201はクロック切替器213を第二クロック側に切替える。図5は、タイミング503で100MHzにクロック信号が切り替った後、CMD上でメモリカード112からホストコントローラ回路111がレスポンスを受信することを示している。そして、タイミング504にてレスポンスの受信が完了すると、CLKが100MHzから200MHzに切り替る。   Thereafter, in S406, a command response is transmitted from the memory card 112 to the host controller circuit 111. When the response buffer 209 completes the reception, the response determination unit 203 determines the content of the command response. If information indicating an error is included in the command response, an error interrupt is input from the host controller 201 to the control unit 115 in S407, and the content of the command response is notified. If the response determination unit 203 does not detect an error, the host controller 201 switches the clock switch 213 to the second clock side in S408. FIG. 5 shows that the host controller circuit 111 receives a response from the memory card 112 on the CMD after the clock signal is switched to 100 MHz at the timing 503. When the response reception is completed at timing 504, CLK is switched from 100 MHz to 200 MHz.

次にS409にて、ホストコントローラ201は、メモリインターフェース204を介してメモリ113から取得したデータのメモリカード112への送信を、Writeデータバッファ210を介して開始する。なお、このデータ送信は所定サイズ(例えば、512バイト)の「ブロック」を1単位として行い、ブロック単位の通信が終了する度に、1ブロック分の受信データについてメモリカード112側が行なった動作に関するステータス、例えば、通信エラーがなかったか否かを示すCRCステータスがメモリカード112からホストコントローラ201に返される。   In step S <b> 409, the host controller 201 starts transmission of data acquired from the memory 113 via the memory interface 204 to the memory card 112 via the write data buffer 210. Note that this data transmission is performed with a “block” of a predetermined size (for example, 512 bytes) as one unit, and each time the communication in the block unit is completed, the status relating to the operation performed by the memory card 112 on the received data for one block. For example, a CRC status indicating whether or not a communication error has occurred is returned from the memory card 112 to the host controller 201.

具体的に、1ブロックのデータ送信が終了すると、ホストコントローラ201は、S410にてクロック切替器213を第一クロック側に切替え、メモリカード112側からのCRCステータス送信を待つ。その後S411にてメモリカード112からホストコントローラ回路111にCRCステータスが送信され、ステータスバッファ212においてその受信が完了する。その後CRCステータス判定部205がCRCステータスの内容を判定する。もし、ブロック通信が失敗したことを示すエラー情報が含まれていた場合、S412にて、ホストコントローラ201は制御部115に転送エラーを示すエラー割り込みを入れ、CRCステータスの内容を通知する。次にS413にて、ホストコントローラ201はクロック切替器213を第二クロック側に切替える。   Specifically, when the transmission of one block of data is completed, the host controller 201 switches the clock switch 213 to the first clock side in S410 and waits for CRC status transmission from the memory card 112 side. In step S411, the CRC status is transmitted from the memory card 112 to the host controller circuit 111, and the reception is completed in the status buffer 212. Thereafter, the CRC status determination unit 205 determines the contents of the CRC status. If error information indicating that block communication has failed is included, in step S412, the host controller 201 inputs an error interrupt indicating a transfer error to the control unit 115 and notifies the contents of the CRC status. In step S413, the host controller 201 switches the clock switch 213 to the second clock side.

図5は、タイミング504で200MHzにクロック信号が切り替った後、DAT上でブロックデータの送信を行い、タイミング506にて1ブロック分のデータ送信が完了すると、CLKが200MHzから100MHzに切り替ることを示している。そして、CLKが100MHzの間にステータスがメモリカード112からホストコントローラ回路111へ送信される。タイミング507でステータスの送信が完了すると、CLKが100MHzから200MHzに切り替る。   In FIG. 5, after the clock signal is switched to 200 MHz at timing 504, block data is transmitted on DAT, and when data transmission for one block is completed at timing 506, CLK is switched from 200 MHz to 100 MHz. Is shown. The status is transmitted from the memory card 112 to the host controller circuit 111 while CLK is 100 MHz. When transmission of status is completed at timing 507, CLK is switched from 100 MHz to 200 MHz.

上述のS409からS413の動作は、S401におけるWrite指示に伴って制御部115からホストコントローラ201に通知された転送ブロック数に相当する回数だけ繰り返される。データ転送がすべて終了すると、S414にて、ホストコントローラ201は制御部115にWriteコマンドの終了を示す終了割り込みを行なう。その後S415にて、制御部115はホストコントローラ201に対し、メモリカード112にデータ転送の終了を通知するためのStopコマンドの発行を指示する。続くS416では、ホストコントローラ201は、コマンドバッファ208を制御して、メモリカード112に対してStopコマンドを発行する。ホストコントローラ201は該コマンドの発行が完了すると、S417にてクロック切替器213を第一クロック側に切替えし、メモリカード112側からのコマンドレスポンス送信を待つ。   The operations from S409 to S413 described above are repeated as many times as the number of transfer blocks notified from the control unit 115 to the host controller 201 in accordance with the Write instruction in S401. When all the data transfers are completed, in S414, the host controller 201 issues an end interrupt indicating the end of the Write command to the control unit 115. Thereafter, in step S415, the control unit 115 instructs the host controller 201 to issue a Stop command for notifying the memory card 112 of the end of data transfer. In subsequent S 416, the host controller 201 controls the command buffer 208 and issues a Stop command to the memory card 112. When the issuance of the command is completed, the host controller 201 switches the clock switch 213 to the first clock side in S417 and waits for a command response transmission from the memory card 112 side.

その後S418にてメモリカード112からホストコントローラ回路111にコマンドレスポンスが送信されると、レスポンスバッファ209が受信する。受信したコマンドレスポンスの内容は、レスポンス判定部203によって判定され、コマンドレスポンスにエラーを示す情報が含まれていた場合、S419にてホストコントローラ201が制御部115にエラー割り込みを行なってコマンドレスポンスの内容を通知する。該エラー通知がなければS420にて、ホストコントローラ201はクロック切替器213を第二クロック側に切替え、S421にて、クロックの出力が停止する。最後にS422にて、ホストコントローラ201から制御部115にS401からの一連のWrite指示の動作が終了したことを示すWrite終了割り込みを行なって一連の動作を終了する。   Thereafter, when a command response is transmitted from the memory card 112 to the host controller circuit 111 in S418, the response buffer 209 receives it. The content of the received command response is determined by the response determination unit 203. If the command response includes information indicating an error, the host controller 201 issues an error interrupt to the control unit 115 in S419 and the content of the command response. To be notified. If there is no error notification, the host controller 201 switches the clock switch 213 to the second clock side in S420, and the clock output stops in S421. Finally, in S422, the host controller 201 performs a write end interrupt indicating that the operation of a series of write instructions from S401 is completed to the control unit 115, and the series of operations ends.

図5の下段では最終ブロックデータの書き込みが完了し、CLKが200MHzから100MHzに切り替った後、ステータスがメモリカード112からホストコントローラ回路111へ送信される。タイミング508でステータスの送信が完了すると、CLKが100MHzから200MHzに切り替り、タイミング509においてStopコマンドがCMD上でホストコントローラ回路111からメモリカード112へ送信される。コマンド送信がタイミング510で完了すると、CLKが100MHzに切り替わり、メモリカード112からのレスポンスの送信がタイミング511まで行なわれる。レスポンスの受信が完了すると、CLKは再び200MHzに切り替る。   In the lower part of FIG. 5, writing of the final block data is completed, and after the CLK is switched from 200 MHz to 100 MHz, the status is transmitted from the memory card 112 to the host controller circuit 111. When the status transmission is completed at timing 508, CLK is switched from 100 MHz to 200 MHz, and at timing 509, a Stop command is transmitted from the host controller circuit 111 to the memory card 112 on the CMD. When command transmission is completed at timing 510, CLK is switched to 100 MHz, and response transmission from the memory card 112 is performed until timing 511. When the reception of the response is completed, CLK switches to 200 MHz again.

以上の本実施形態の構成では、可変遅延量の影響を受けない、ホストコントローラ回路111からメモリカード112へのコマンド送信時および書込データ送信時は、「可変遅延量モード」となる高速クロック周波数によるアクセスを行う。その一方で、メモリカード112からのコマンドレスポンスやCRCステータスの受信時、及び、読出データの受信時は「固定遅延量モード」となるクロック周波数でのアクセスとする。これにより、高速クロック周波数を用いるのがカードへの書き込み時に限定されるので、高速カード書き込みが連続して長時間発生している場合でも再チューニングを必要とせず、高速書き込みの信頼性を確保することができる。   In the configuration of the present embodiment described above, the high-speed clock frequency that is not affected by the variable delay amount and is in the “variable delay amount mode” at the time of command transmission from the host controller circuit 111 to the memory card 112 and at the time of write data transmission. Access by. On the other hand, when a command response or CRC status is received from the memory card 112 and when read data is received, the access is performed at a clock frequency at which the “fixed delay amount mode” is set. As a result, the use of a high-speed clock frequency is limited to writing to the card, so even if high-speed card writing occurs continuously for a long time, re-tuning is not required and high-speed writing reliability is ensured. be able to.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in the computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

10 撮影部、111 ホストコントローラ回路、112 メモリカード、113 メモリ、115 制御部、201 ホストコントローラ 10 shooting unit, 111 host controller circuit, 112 memory card, 113 memory, 115 control unit, 201 host controller

Claims (13)

記憶媒体に、データの送受信のためのクロックを供給するクロック供給手段と、
前記クロックに応じて前記記憶媒体にデータを送信し、前記記憶媒体が前記クロック供給手段により供給されたクロックに応じて送信したデータを前記クロックに応じて受信する送受信手段と、
前記送受信手段が前記記憶媒体からのデータを受信する場合に第一クロックを供給し、前記送受信手段が前記記憶媒体にデータを送信する場合に前記第一クロックよりも高速な第二クロックを供給するように制御する制御手段と、を備える
ことを特徴とする記録再生装置。
Clock supply means for supplying a clock for transmitting and receiving data to the storage medium;
Transmitting / receiving means for transmitting data to the storage medium in accordance with the clock, and receiving data transmitted in accordance with the clock supplied by the clock supply means in accordance with the clock;
A first clock is supplied when the transmission / reception means receives data from the storage medium, and a second clock faster than the first clock is supplied when the transmission / reception means transmits data to the storage medium. And a control means for controlling the recording / reproducing apparatus.
前記制御手段は、前記送受信手段によるデータの送信、及び、前記送受信手段によるデータの受信に先だって、前記クロック供給手段が供給する前記クロックの速度を切替えることを特徴とする請求項1に記載の記録再生装置。   2. The recording according to claim 1, wherein the control unit switches a speed of the clock supplied by the clock supply unit prior to transmission of data by the transmission / reception unit and reception of data by the transmission / reception unit. Playback device. 前記送受信手段により送信されるデータには、前記記憶媒体にデータを書き込むためのコマンドが含まれ、前記送受信手段により受信されるデータには、前記コマンドに対して前記記憶媒体から送信されるレスポンスが含まれ、
前記制御手段は、前記送受信手段が前記コマンドを送信する場合に前記第二クロックを供給し、前記送受信手段が前記レスポンスを受信する場合に前記第一クロックを供給するように制御することを特徴とする請求項1または2に記載の記録再生装置。
The data transmitted by the transmission / reception means includes a command for writing data to the storage medium, and the data received by the transmission / reception means includes a response transmitted from the storage medium in response to the command. Included,
The control means controls to supply the second clock when the transmission / reception means transmits the command, and to supply the first clock when the transmission / reception means receives the response. The recording / reproducing apparatus according to claim 1 or 2.
前記制御手段は、前記クロック供給手段から供給するクロックを、前記コマンドの送信の後に前記第一クロックに切替え、前記レスポンスの受信の後に前記第二クロックに切替えるように制御することを特徴とする請求項3に記載の記録再生装置。   The control means controls to switch the clock supplied from the clock supply means to the first clock after transmission of the command and to switch to the second clock after reception of the response. Item 4. The recording / reproducing apparatus according to Item 3. 前記記憶媒体に記録されるデータを保持するメモリを更に備え、
前記送受信手段が送信するデータには、前記メモリが保持する前記記録されるデータが含まれ、前記送受信手段が受信するデータには、前記記録されるデータについて前記記憶媒体が行なった動作に関するステータスに関するデータが含まれることを特徴とする請求項1から4のいずれか1項に記載の記録再生装置。
A memory for holding data recorded in the storage medium;
The data transmitted by the transmission / reception means includes the recorded data held by the memory, and the data received by the transmission / reception means relates to a status relating to operations performed by the storage medium on the recorded data. 5. The recording / reproducing apparatus according to claim 1, wherein data is included.
前記送受信手段は、前記記録されるデータを所定のサイズのブロック単位で前記記憶媒体に送信し、1ブロックに相当するデータの送信の度に前記ステータスに関するデータを受信することを特徴とする請求項5に記載の記録再生装置。   The transmission / reception means transmits the recorded data to the storage medium in units of blocks of a predetermined size, and receives the data related to the status each time data corresponding to one block is transmitted. 6. The recording / reproducing apparatus according to 5. 前記制御手段は、前記クロック供給手段から供給するクロックを、前記1ブロックに相当するデータの送信の後に前記第一クロックに切替え、前記ステータスに関するデータの受信の後に前記第二クロックに切替えるように制御することを特徴とする請求項6に記載の記録再生装置。   The control means controls the clock supplied from the clock supply means to be switched to the first clock after transmission of data corresponding to the one block, and to be switched to the second clock after reception of data relating to the status. The recording / reproducing apparatus according to claim 6. 前記第一クロックは、該第一クロックに従って前記記憶媒体が動作した場合に想定される出力データの遅延が、前記第一クロックの立ち上がりまたは立ち下がりから所定の期間内に収まるように前記記憶媒体が動作する周波数を有することを特徴とする、請求項1から7のいずれか1項記載の記録再生装置。   The first clock is configured so that a delay of output data assumed when the storage medium operates according to the first clock falls within a predetermined period from the rising or falling edge of the first clock. 8. The recording / reproducing apparatus according to claim 1, wherein the recording / reproducing apparatus has an operating frequency. 前記第二クロックは、該第二クロックに従って前記記憶媒体が動作した場合に想定される出力データの遅延が、前記第二クロックの立ち上がりまたは立ち下がりからの所定の遅延時間で規定されず、かつ、動作条件に応じて異なり得る周波数を有することを特徴とする、請求項1から8のいずれか1項記載の記録再生装置。   In the second clock, the delay of output data assumed when the storage medium operates according to the second clock is not defined by a predetermined delay time from the rising or falling of the second clock, and 9. The recording / reproducing apparatus according to claim 1, wherein the recording / reproducing apparatus has a frequency that can vary depending on operating conditions. 前記クロック供給手段は、同一のクロック源からの信号を用いて前記第一クロックと前記第二クロックとを供給することを特徴とする請求項1から9のいずれか1項に記載の記録再生装置。   10. The recording / reproducing apparatus according to claim 1, wherein the clock supply means supplies the first clock and the second clock using signals from the same clock source. . 前記データを生成する生成手段を更に備えることを特徴とする請求項1から10のいずれか1項に記載の記録再生装置。   The recording / reproducing apparatus according to claim 1, further comprising a generating unit that generates the data. 記憶媒体に、データの送受信のためのクロックを供給するクロック供給工程と、
前記クロックに応じて前記記憶媒体にデータを送信し、前記記憶媒体が前記クロック供給工程において供給されたクロックに応じて送信したデータを前記クロックに応じて受信する送受信工程と、
前記送受信工程において、前記記憶媒体からのデータを受信する場合に第一クロックを供給し、前記送受信工程において前記記憶媒体にデータを送信する場合に前記第一クロックよりも高速な第二クロックを供給するように制御する制御工程と
を含む、記録再生装置の制御方法。
A clock supply step for supplying a clock for transmitting and receiving data to the storage medium;
A transmission / reception step of transmitting data to the storage medium according to the clock, and receiving the data transmitted according to the clock supplied by the storage medium in the clock supply step according to the clock;
In the transmission / reception step, a first clock is supplied when data from the storage medium is received, and when a data is transmitted to the storage medium in the transmission / reception step, a second clock faster than the first clock is supplied. And a control process for controlling the recording / reproducing apparatus.
コンピュータを請求項1から11のいずれか1項に記載の記録再生装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the recording / reproducing apparatus of any one of Claim 1 to 11.
JP2017042082A 2017-03-06 2017-03-06 Recording and reproducing device, control method of recording and reproducing device, and program Pending JP2018147260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017042082A JP2018147260A (en) 2017-03-06 2017-03-06 Recording and reproducing device, control method of recording and reproducing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017042082A JP2018147260A (en) 2017-03-06 2017-03-06 Recording and reproducing device, control method of recording and reproducing device, and program

Publications (1)

Publication Number Publication Date
JP2018147260A true JP2018147260A (en) 2018-09-20

Family

ID=63592129

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017042082A Pending JP2018147260A (en) 2017-03-06 2017-03-06 Recording and reproducing device, control method of recording and reproducing device, and program

Country Status (1)

Country Link
JP (1) JP2018147260A (en)

Similar Documents

Publication Publication Date Title
JP6356970B2 (en) Recording apparatus and control method of recording apparatus
CN104637466B (en) Timing controller and its operating method and data processing system including it
CN103686042A (en) Method and apparatus for image data processing, and electronic device including the apparatus
US10771681B2 (en) Imaging pickup apparatus of which display start timing and display quality are selectable, method of controlling the same
CN108632552B (en) Recording apparatus, control method, and storage medium
US10439619B2 (en) Recording apparatus, control method, and storage medium
US10545680B2 (en) Recording/reproduction apparatus, control method of recording/reproduction apparatus, and non-transitory computer-readable storage medium
JP6417094B2 (en) RECORDING / REPRODUCING DEVICE, RECORDING / REPRODUCING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
US9240231B2 (en) Recording apparatus and control method for recording apparatus
JP2018147260A (en) Recording and reproducing device, control method of recording and reproducing device, and program
JP6151976B2 (en) Recording / reproducing apparatus and control method
KR100663380B1 (en) Image pickup device and video signal generation method
JP7611715B2 (en) Electronic device, imaging device, and control method thereof
JP6857066B2 (en) Recording / playback device, control method of recording / playback device, and program
JP2016046781A (en) RECORDING / REPRODUCING DEVICE, RECORDING / REPRODUCING DEVICE CONTROL METHOD, AND PROGRAM
JP2020091696A (en) Recording/playback device
JP2015210540A (en) Recording device, imaging apparatus, control method of recording device, and program
JP2007328125A (en) Sound recording apparatus
JP2015118568A (en) Recording / reproducing apparatus, control method for recording / reproducing apparatus, and computer program
JP2015219775A (en) RECORDING DEVICE, IMAGING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2014232955A (en) Imaging device