JP2004334578A - Optical disk device and optical disk interface system - Google Patents

Optical disk device and optical disk interface system Download PDF

Info

Publication number
JP2004334578A
JP2004334578A JP2003130403A JP2003130403A JP2004334578A JP 2004334578 A JP2004334578 A JP 2004334578A JP 2003130403 A JP2003130403 A JP 2003130403A JP 2003130403 A JP2003130403 A JP 2003130403A JP 2004334578 A JP2004334578 A JP 2004334578A
Authority
JP
Japan
Prior art keywords
host computer
optical disk
disk device
crc code
strobe
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
JP2003130403A
Other languages
Japanese (ja)
Inventor
Isamu Miyanishi
勇 宮西
Kazuyuki Nakahara
和之 中原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003130403A priority Critical patent/JP2004334578A/en
Publication of JP2004334578A publication Critical patent/JP2004334578A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enhance reliability by controlling strobe signals coming from an optical disk device when data are transferred from the optical disk device to a host computer. <P>SOLUTION: An optical disk interface system includes an optical disk device and a host computer connected to the optical disk device. The host computer has a CRC code generating means. The optical disk device has a means for transferring test data to the host computer; a means for generating strobe signals in such a way that the signals rise or fall at different minute time intervals with respect to the test data; a means for comparing a CRC code coming from the CRC code generating means of the host computer to a CRC code generated within the optical disk device to detect whether the transfer of the data to the host computer is normal or not; and a strobe signal control means which selects the appropriate strobe signal based on a plurality of signals generated by the detection means. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、CRCチェック機能を伴う光ディスク装置に関する。
【0002】
【従来の技術】
図8は、一般的な光ディスク装置2のブロック図である。該光ディスク装置2は、光ディスクを回すスピンドルモータ4、レーザピックアップ6、及び信号処理系統部を含む。更に信号処理系統部は、検出された信号をデジタルデータへ変換するRF系統部、モータの回転とピックアップの位置を制御するサーボ系統部、デジタルデータ処理系統部(具体的には、DSP8とCPU10)を含む。RF系統部とサーボ系統部とはアナログ信号を処理する部位であるから、これらの部位は一般にアナログフロントエンド(AFE)12と呼ばれる。AFE12は、ピックアップで検出した微小信号を増幅するプリアンプやゲインコントロール、レーザの出力制御回路、サーボ系のエラー検出などの回路で構成される。
【0003】
CD(コンパクトディスク)などの媒体をリードする(読み取る)場合、レーザピックアップ6にて読み込まれたデータが、AFE12でアナログ信号処理され、AFE12からのRF信号がDSP8でデジタルデータ処理される。そのあとデータは、ENDEC14でDRAM16とバッファリングされながら各種主処理回路で信号処理(例えば、エラー訂正/検出など)される。更に、データは、ホストコンピュータとのインターフェース部であるATAPIインターフェース部18を介してホストコンピュータ(例えば、パーソナルコンピュータ)によりリードされる(読み取られる)。図8におけるCPU10は、ENDEC14を制御するものである。
【0004】
ATAPIインターフェース部18からホストコンピュータ20へデータを転送する際の、ATAPIの転送方式には、PIO、シングルワードDMA、マルチワードDMA、Ultra DMA転送などがある。これらのうち、Ultra DMA転送は高速な転送速度を備える転送方式である。
【0005】
Ultra DMA転送には、MODE0〜4までの5つのモードが規定されている。それぞれのモードの最大転送速度は、以下のようである。
・MODE0:16.6Mbyte/sec
・MODE1:22Mbyte/sec
・MODE2:33Mbyte/sec
・MODE3:44Mbyte/sec
・MODE4:66Mbyte/sec
【0006】
Ultra DMA転送を利用する光ディスク装置2及びホストコンピュータ20には、転送されたデータのCRC(Cyclic Redundancy check:巡回冗長検査)コードを、ホストコンピュータ20と光ディスク装置2との両方で生成(計算)し、その結果を比較するというCRCチェック機能が通常設けられている。このCRCチェック機能は、データ転送の信頼性を向上させるためのものである。
【0007】
ところで従来の技術では、光ディスク装置からホストコンピュータへのデータ転送の際にCRCエラーが検出されると、転送速度を落とし再度転送を行う。この技術では信頼性は向上するが、転送速度を落とすためパフォーマンスはよくない。
【0008】
例えば、以下の特許文献1に係る発明では、CRCエラーとなったコマンドのリトライの場合、ディスクコントローラ内の電流制御回路を制御してホストインターフェースのインターフェース信号ラインをドライブする電流の値を下げると共に、ディスクコントローラ内の転送速度制御回路を制御してデータ転送速度を下げて、ホストコンピュータとの間のデータ転送を開始させる。
【0009】
【特許文献1】
特開平11−249821号公報
【0010】
【発明が解決しようとする課題】
本発明は、光ディスク装置からホストコンピュータにデータを転送する場合、CRCチェック機能のみでデータ転送の信頼性を高めるのではなく、光ディスク装置からのストローブ信号を制御することで更なる信頼性の向上をはかることを目的とする。更に、転送速度も落とすことなく転送ができることを目的とする。
【0011】
【課題を解決するための手段】
本発明は、上記の目的を達成するために為されたものである。本発明に係る請求項1に記載の光ディスク装置は、
CRCコード生成手段を持つホストコンピュータと接続する光ディスク装置である。その光ディスク装置は、
試験的なデータをホストコンピュータに転送する手段と、
上記の試験的なデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして生成する手段と、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを含む。
【0012】
本発明に係る請求項2に記載の光ディスクインターフェースシステムは、
光ディスク装置と、該光ディスク装置に接続するホストコンピュータとを含み、
上記ホストコンピュータは、CRCコード生成手段を持ち、
上記光ディスク装置は、
試験的なデータをホストコンピュータに転送する手段と、
上記の試験的なデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして生成する手段と、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを持つ。
【0013】
本発明に係る請求項3に記載の光ディスク装置は、
転送されてくるデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして連続的に生成する手段と、CRCコード生成手段とを持つホストコンピュータに接続する光ディスク装置である。その光ディスク装置は、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを含む。
【0014】
本発明に係る請求項4に記載の光ディスクインターフェースシステムは、
光ディスク装置と、該光ディスク装置に接続するホストコンピュータとを含み、
上記ホストコンピュータは、転送されてくるデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして連続的に生成する手段と、CRCコード生成手段とを持ち、
上記光ディスク装置は、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを持つ。
【0015】
【発明の実施の形態】
以下、図面を参照しつつ本発明に係る好適な実施の形態を説明する。
【0016】
図1に示すように、ホストコンピュータ20と光ディスク装置2とをATAPIインターフェイス部18を介して接続しUltra DMA転送で転送する場合、データ(DD[16:0])とストローブ信号(DSTROBE)が、光ディスク装置2からホストコンピュータ20に出力される。
【0017】
図2にて、光ディスク装置2から出力されるデータとストローブ信号とのタイミングチャートの例を示す。Ultra DMA転送においてストローブ信号は、立ち上がりと立ち下がりの両方でデータをとるようになっている。ところで、ストローブ信号の立ち上がり(又は立ち下がり)に対するセットアップタイム(図2の「tDVS」)、ホールドタイム(図2の「tDVH」)は、ATA/ATAPIの規格により拘束される(下記の表1参照。表1は、ATA/ATAPI5に準拠する。)。その規格を満たさないと、所望のデータ転送ができない可能性が生じる。
【表1】

Figure 2004334578
【0018】
以下では、光ディスク装置2から出力されるデータに対して、ストローブの位置を変更して、それらに対応したCRCコードをホストコンピュータで生成し、それを基にストローブ信号を制御する実施の形態を示す。
【0019】
≪第1の実施の形態≫
図3に示される第1の実施の形態では、光ディスク装置2から出力されるデータに対して、ストローブの位置を光ディスク装置2側で変更する。
【0020】
第1の実施の形態では、通常のデータを転送する前に、図4のようなデータ転送が試験的に行なわれる。DD[15:0]は内部クロック(clk)に同期化している。従って、図4の(1)の区間に何クロック分含まれるかが決まる。この図4の場合では、5クロック分である。よって、内部クロックに同期化するストローブ信号を(1)の区間で生成できる数がストローブカウンタ30で決定できる。図4の場合には、A〜Jの10種ということになる。
【0021】
まず、ストローブを図4の「A」の早いタイミングとして、ホストコンピュータ20に転送する。そして、ホストコンピュータ20のCRC生成回路38でCRCコードを生成し、そのCRCコードを光ディスク装置2に返す。ホストコンピュータ20から送られてきたCRCコードと、予め光ディスク装置2側で生成されているCRCコードとをCRC比較回路32にて比較し、一致していればCRCOK[0]のビットを“1”にし、不一致であればCRCNG[0]のビットを“1”にする。図4の場合ストローブが10種あるので、CRCOK、CRCNGは10ビットのバス幅となる。
【0022】
次に、ストローブカウンタ30が1カウントし、ストローブを図4の「B」のタイミングでホストコンピュータ20に転送する。そして、上記と同様に、光ディスク装置2のCRC比較回路32でOK/NGの判断をし、その結果をCRCOK[1]/CRCNG[1]ビットで表す。
【0023】
その後同様に、図4の「C」、「D」、「E」、「F」、「G」、「H」、「I」及び「J」のタイミングまでストローブをホストコンピュータ20に転送し、生成されるCRCコードの比較をする。その結果をCRCOK[2]〜[9]/CRCNG[2]〜[9]で表す。
【0024】
例えば、CRCOK[9:0]が、
0 0 0 0 1 1 1 1 1 0
となっていたなら、ストローブ制御回路28により、連続して“1”となっている点の中間点である「G」のストローブ信号が最適であるという判断がなされる。そして、「G」のストローブを選択するというストローブの制御が行なわれる。
【0025】
以上のように、CRCOK[9:0]の10ビットの中で、連続して”1”となっている点の中間点をデバイス側のストローブ制御回路28で検出することにより、最適なストローブを見つけることができる。
【0026】
ところで、図3の第1の実施形態では、通常のデータ転送と試験的なデータ転送とを区別するために、CRC比較回路32から出力するNGビットが設けられている。このNGビットは、通常のデータ転送でCRCエラーのときに“1”となるもので、その先にあるセレクタ34、36を制御する。通常のデータ転送のときは、これらのセレクタ34、36は“0”が選択される。よって、このとき、DRAM16からのデータに対して、光ディスク装置2側とホストコンピュータ側20との夫々にてCRCを生成して、CRC比較回路32で比較することになる。
【0027】
通常のデータ転送でCRCエラー(即ち、NGビットが“1”)であるときは図5に示すフローチャートの流れのようになる。データ転送(ステップS02)にてNGビットが“1”になると(ステップS04)、図3のセレクタ34、36は“1”が選択される。このとき、データ生成回路22から試験的なデータがDD[15:0]としてホストコンピュータ20に出力される(ステップS06)。
【0028】
その試験的データの開始により、ストローブカウンタ30がストローブの位置を図4のようにカウントする。そのカウントに応じてストローブ制御回路28から図4の「A」のタイミングにてストローブをホストコンピュータ20に出力する(ステップS06)。そして、図4の「A」のタイミングのストローブでのCRCを、光ディスク装置2側とホストコンピュータ20側とで生成し(ステップS10)、CRC比較回路32にてCRC比較を行なう(ステップS12)。その後、CRCOK/CRCNGをストローブ制御回路28に出力する。
【0029】
以降、図4のB〜Jに係るストローブについても(ステップS08)、同様な動作でCRCが比較される。それらの比較結果を受けて、ストローブ制御回路28が最適なストローブの位置を判断してストローブ生成回路26に伝える。ストローブカウンタ30からCRC比較器32に出力されている信号は、図4のJまでカウントし終わったら、NGビットをクリア(“0”と)する(ステップS16)。以上のことにより、ストローブ生成回路26は最適なストローブを発信し、よって、最適な状態でデータ転送が行なわれる。
【0030】
図4で示した例では、ストローブ信号を内部クロックに同期化させたが、更に細かくストローブを割り当てることもあり得る。このときは、内部クロックに非同期で(1)の区間に種々の間隔でストローブが立てられることになる。この場合も、CRCOK/CRCNGとして、ストローブを立てる数(CRCコードを生成する回数)だけのレジスタが確保されねばならない。
【0031】
≪第2の実施の形態≫
図6に示される第2の実施の形態では、光ディスク装置2から出力されるデータに対して、ストローブの位置をホストコンピュータ20側で変更する。
【0032】
第2の実施の形態に係る機構では、第1の実施の形態のようなデータ転送が試験的に行なわれる、ということはなく、該機構は通常のデータの転送において稼動する。まず、DD[15:0]は内部クロック(clk)に同期化している。従って、図4の(1)の区間に何クロック分含まれるかが決まる。図4の場合では、5クロック分である。
【0033】
ホストコンピュータ20側では、光ディスク装置2の内部クロックと同様のクロックを生成させる。そのホストコンピュータ20側のクロックに同期化するストローブ信号を図4(1)の区間で生成できる数がストローブカウンタ40で決定できる。A〜Jの10種となる。
【0034】
第2の実施の形態では、ホストコンピュータ20のストローブカウンタ40によってストローブを生成する。このストローブ生成は通常のデータ転送に対して行われるため、光ディスク装置2からは第1の実施の形態のように、何度も試験的にデータ転送をする必要がない。
【0035】
最初に、ストローブがAの点にあるときにCRCコードを生成し、それを光ディスク装置2に返す。光ディスク装置2では、ホストコンピュータ20から返されてきたCRCコードと、予め光ディスク装置2側で生成されているCRCコードとをCRC比較回路32にて比較し、一致していればCRCOK[0]のビットを“1”にし、不一致であればCRCNG[0]のビットを“1”にする。ストローブが10種あるので、CRCOK、CRCNGは10ビットのバス幅となる。
【0036】
ストローブがAの点にあるときにCRCコードを生成してから、その後連続してB〜J点までのストローブについてホストコンピュータ2のCRC生成回路38でCRCを生成し、連続して光ディスク装置2に返す。そして、上記と同様に、光ディスク装置2のCRC比較回路32で、連続してOK/NGの判断をし、その結果をCRCOK[1]〜[9]/CRCNG[1]〜[9]で表す。
【0037】
例えば、CRCOK[9:0]が、
0 0 0 0 1 1 1 1 1 0
となっていたなら、ストローブ制御回路28により、連続して“1”となっている点の中間点である「G」のストローブ信号が最適であるという判断がなされる。そして、「G」のストローブを選択するというストローブの制御が行なわれる。
【0038】
この場合、G点はA点の3クロック後であるので、光ディスク装置2側から出力したストローブ信号の3クロック後の点が最適なストローブの位置となる。
【0039】
ところで、図6の第2の実施形態においても、CRC比較回路32はNGビットを出力する。図7は、データ転送からNGビット確認・利用までのフローチャートである。DRAM16からのデータをリードする(読み取る)とき、光ディスク装置2側とホストコンピュータ20側とでそれぞれCRCが生成され、CRC比較回路32で比較される。データ転送がうまくいっているとき(即ち、CRC比較回路32で差異が無いとき)は、NGビットは“0”のままである。NGビットが“0”のときは、光ディスク装置2のストローブ生成回路26は、ストローブ制御回路28からのストローブ位置を参照しない。よって、ホストコンピュータ20は、そのままリード(読み取り)を継続する。
【0040】
データ転送でエラーが生じたとき(即ち、CRC比較回路32で差異が生じたとき)は、NGビットが“1”となり、データ転送中に予め決定しているストローブの位置がストローブ制御回路28からストローブ生成回路26に伝えられ、ストローブを制御する(図7・ステップS62)。
【0041】
最適なストローブ位置を予め決めておくために、転送するデータ(ステップ52)に関して、ストローブカウンタ40で連続するストローブ位置を決め(例えば、図4のA〜J)、ホストコンピュータ20側のストローブ生成回路42でそれぞれのストローブ位置に対してストローブ生成し(ステップS54)、それぞれに付きCRCを発行して光ディスク装置2側で比較しておき(ステップS56)、最適なストローブ位置を決めておく(ステップS58)。
【0042】
NGビットが“1”になるとストローブ制御回路28から最適なストローブがストローブ生成回路26に伝えられ、その後NGビットはクリアされる(ステップS62)。
【0043】
第2の実施の形態の説明においても、ストローブ信号を内部クロックに同期化させたが、更に細かくストローブを割り当てることもあり得る。このときは、ホストコンピュータ20のクロックに非同期で(1)の区間に種々の間隔でストローブが立てられることになる。この場合も、CRCOK/CRCNGとして、ストローブを立てる数(CRCコードを生成する回数)だけのレジスタが確保されねばならない。
【0044】
第1の実施の形態では、光ディスク装置2側がストローブを変化させるため、その都度ホストコンピュータ20にストローブを転送しなければならないのに対して、第2の実施の形態では、ホストコンピュータ20側がストローブを変化させるため、第1の実施の形態に比べると制御時間が短くて済み、更にデータ転送中でもストローブの制御を行なうことができる。
【0045】
【発明の効果】
本発明を利用することにより、以下のような効果を得ることができる。
【0046】
光ディスク装置からホストコンピュータにデータを転送する際に、ストローブの位置を最適化することで、転送の信頼性が向上する。
【0047】
更に、光ディスク装置からホストコンピュータにデータを転送する際に、ホストコンピュータ側でストローブタイミングを変化させることも可能であるため、試験的なデータ転送をすることなく、本来のデータ転送中にホストコンピュータ側でストローブの位置を最適化することができ、よって、短時間で最適なストローブ制御をすることができる。
【図面の簡単な説明】
【図1】光ディスク装置からホストコンピュータに送られるデータとストローブ信号を示す模式図である。
【図2】光ディスク装置から出力されるデータとストローブ信号とのタイミングチャートの例である。
【図3】本発明の第1の実施の形態に係る光ディスク装置及びホストコンピュータにおける回路のブロック図である。
【図4】本発明に係るストローブ信号の発生のパターンである。
【図5】本発明の第1の実施の形態に係る動作のフローチャートの例である。
【図6】本発明の第2の実施の形態に係る光ディスク装置及びホストコンピュータにおける回路のブロック図である。
【図7】本発明の第2の実施の形態に係る動作のフローチャートの例である。
【図8】一般的な光ディスク装置のブロック図である。
【符号の説明】
2・・・光ディスク装置、10・・・CPU、16・・・DRAM、18・・・ATAPIインターフェース部、20・・・ホストコンピュータ。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an optical disk device having a CRC check function.
[0002]
[Prior art]
FIG. 8 is a block diagram of a general optical disk device 2. The optical disk device 2 includes a spindle motor 4 for rotating an optical disk, a laser pickup 6, and a signal processing system. Further, the signal processing system includes an RF system for converting a detected signal into digital data, a servo system for controlling the rotation of the motor and the position of the pickup, and a digital data processing system (specifically, the DSP 8 and the CPU 10). including. Since the RF system unit and the servo system unit process analog signals, these units are generally called an analog front end (AFE) 12. The AFE 12 includes a preamplifier for amplifying a small signal detected by the pickup, a gain control, a laser output control circuit, and a servo system error detection circuit.
[0003]
When reading (reading) a medium such as a CD (compact disk), the data read by the laser pickup 6 is subjected to analog signal processing by the AFE 12, and the RF signal from the AFE 12 is processed by the DSP 8 to digital data. Thereafter, the data is subjected to signal processing (for example, error correction / detection, etc.) by various main processing circuits while being buffered with the DRAM 16 by the ENDEC 14. Further, the data is read (read) by a host computer (for example, a personal computer) via an ATAPI interface unit 18 which is an interface unit with the host computer. The CPU 10 in FIG. 8 controls the ENDEC 14.
[0004]
When transferring data from the ATAPI interface unit 18 to the host computer 20, the ATAPI transfer method includes PIO, single word DMA, multi-word DMA, Ultra DMA transfer, and the like. Among these, Ultra DMA transfer is a transfer method having a high transfer rate.
[0005]
Five modes from MODE0 to MODE4 are defined for the Ultra DMA transfer. The maximum transfer rate in each mode is as follows.
・ MODE0: 16.6 Mbyte / sec
・ MODE1: 22Mbyte / sec
・ MODE2: 33Mbyte / sec
・ MODE3: 44Mbyte / sec
・ MODE4: 66Mbyte / sec
[0006]
The optical disk device 2 and the host computer 20 that use Ultra DMA transfer generate (calculate) a CRC (Cyclic Redundancy check) code of the transferred data in both the host computer 20 and the optical disk device 2. , A CRC check function of comparing the results is usually provided. This CRC check function is for improving the reliability of data transfer.
[0007]
In the related art, when a CRC error is detected during data transfer from the optical disk device to the host computer, the transfer speed is reduced and the transfer is performed again. Although this technique increases reliability, it does not perform as well because it reduces transfer speed.
[0008]
For example, in the invention according to Patent Document 1 described below, in the case of retrying a command that has resulted in a CRC error, the current control circuit in the disk controller is controlled to reduce the value of the current for driving the interface signal line of the host interface, and The transfer rate control circuit in the disk controller is controlled to lower the data transfer rate and start data transfer with the host computer.
[0009]
[Patent Document 1]
JP-A-11-249821
[Problems to be solved by the invention]
According to the present invention, when data is transferred from the optical disk device to the host computer, the reliability of the data transfer is not increased only by the CRC check function, but the reliability is further improved by controlling the strobe signal from the optical disk device. The purpose is to measure. It is another object of the present invention that the transfer can be performed without lowering the transfer speed.
[0011]
[Means for Solving the Problems]
The present invention has been made to achieve the above object. An optical disc device according to claim 1 of the present invention is a
This is an optical disk device connected to a host computer having a CRC code generation unit. The optical disk device is
Means for transferring experimental data to a host computer;
Means for generating a strobe signal with a staggered rise or fall at minute intervals with respect to the experimental data,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control means for selecting an appropriate strobe signal based on a plurality of signals generated by the means for detecting whether data transfer to the host computer is normal or abnormal.
[0012]
An optical disk interface system according to claim 2 according to the present invention,
Including an optical disk device and a host computer connected to the optical disk device,
The host computer has a CRC code generating means,
The above optical disk device,
Means for transferring experimental data to a host computer;
Means for generating a strobe signal with a staggered rise or fall at minute intervals with respect to the experimental data,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control means for selecting an appropriate strobe signal based on the plurality of signals generated by the means for detecting whether the data transfer to the host computer is normal or abnormal.
[0013]
The optical disk device according to claim 3 according to the present invention,
An optical disk device connected to a host computer having means for continuously generating a strobe signal at a small interval with a rising or falling edge shifted for transferred data and a CRC code generating means. The optical disk device is
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control means for selecting an appropriate strobe signal based on a plurality of signals generated by the means for detecting whether data transfer to the host computer is normal or abnormal.
[0014]
An optical disk interface system according to claim 4 according to the present invention,
Including an optical disk device and a host computer connected to the optical disk device,
The host computer has means for continuously generating a strobe signal at a small interval with a rising or falling edge shifted for transferred data, and a CRC code generating means,
The above optical disk device,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control means for selecting an appropriate strobe signal based on the plurality of signals generated by the means for detecting whether the data transfer to the host computer is normal or abnormal.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments according to the present invention will be described with reference to the drawings.
[0016]
As shown in FIG. 1, when the host computer 20 and the optical disk device 2 are connected via the ATAPI interface unit 18 and are transferred by Ultra DMA transfer, the data (DD [16: 0]) and the strobe signal (DTROBE) are Output from the optical disk device 2 to the host computer 20.
[0017]
FIG. 2 shows an example of a timing chart of data output from the optical disk device 2 and a strobe signal. In the Ultra DMA transfer, the strobe signal takes data at both rising and falling. Incidentally, the setup time (“tDVS” in FIG. 2) and the hold time (“tDVH” in FIG. 2) with respect to the rising (or falling) of the strobe signal are restricted by the ATA / ATAPI standard (see Table 1 below). Table 1 conforms to ATA / ATAPI5.) If the standard is not satisfied, there is a possibility that desired data transfer cannot be performed.
[Table 1]
Figure 2004334578
[0018]
Hereinafter, an embodiment will be described in which the position of the strobe is changed for the data output from the optical disk device 2, the corresponding CRC code is generated by the host computer, and the strobe signal is controlled based on the generated code. .
[0019]
<< 1st Embodiment >>
In the first embodiment shown in FIG. 3, the position of the strobe is changed on the optical disk device 2 side with respect to the data output from the optical disk device 2.
[0020]
In the first embodiment, data transfer as shown in FIG. 4 is performed on a trial basis before normal data is transferred. DD [15: 0] is synchronized with the internal clock (clk). Therefore, how many clocks are included in the section (1) in FIG. 4 is determined. In the case of FIG. 4, it is for five clocks. Therefore, the number of strobe signals that can be synchronized with the internal clock in the section (1) can be determined by the strobe counter 30. In the case of FIG. 4, there are 10 types of A to J.
[0021]
First, the strobe is transferred to the host computer 20 as an earlier timing of "A" in FIG. Then, a CRC code is generated by the CRC generation circuit 38 of the host computer 20, and the CRC code is returned to the optical disk device 2. The CRC code sent from the host computer 20 is compared with a CRC code generated in advance in the optical disk device 2 by the CRC comparison circuit 32. If they match, the bit of CRCOK [0] is set to "1". If they do not match, the bit of CRCNG [0] is set to “1”. In the case of FIG. 4, since there are ten types of strobes, CRCOK and CRCNG have a bus width of 10 bits.
[0022]
Next, the strobe counter 30 counts 1 and transfers the strobe to the host computer 20 at the timing "B" in FIG. Then, in the same manner as described above, the CRC comparison circuit 32 of the optical disk device 2 determines OK / NG, and the result is represented by CRCOK [1] / CRCNG [1] bits.
[0023]
Thereafter, similarly, the strobe is transferred to the host computer 20 until the timings "C", "D", "E", "F", "G", "H", "I" and "J" in FIG. The generated CRC code is compared. The results are represented by CRCOK [2] to [9] / CRCNG [2] to [9].
[0024]
For example, CRCOK [9: 0]
0 0 0 0 1 1 1 1 1 1 0
If so, the strobe control circuit 28 determines that the strobe signal of “G”, which is the intermediate point between the points that are continuously “1”, is optimal. Then, the strobe control of selecting the “G” strobe is performed.
[0025]
As described above, the strobe control circuit 28 on the device side detects the intermediate point of the points that are continuously “1” in the 10 bits of CRCOK [9: 0], so that the optimum strobe is determined. Can be found.
[0026]
Incidentally, in the first embodiment shown in FIG. 3, an NG bit output from the CRC comparison circuit 32 is provided to distinguish between normal data transfer and test data transfer. This NG bit is set to “1” when a CRC error occurs in normal data transfer, and controls the selectors 34 and 36 at the end. During normal data transfer, "0" is selected for these selectors 34 and 36. Therefore, at this time, the CRC from the data from the DRAM 16 is generated by the optical disk device 2 and the host computer 20, respectively, and is compared by the CRC comparison circuit 32.
[0027]
When a CRC error (that is, the NG bit is “1”) occurs in normal data transfer, the flow is as shown in the flowchart of FIG. When the NG bit becomes "1" in the data transfer (step S02) (step S04), "1" is selected for the selectors 34 and 36 in FIG. At this time, test data is output from the data generation circuit 22 to the host computer 20 as DD [15: 0] (step S06).
[0028]
At the start of the test data, the strobe counter 30 counts the position of the strobe as shown in FIG. In response to the count, the strobe control circuit 28 outputs a strobe to the host computer 20 at the timing "A" in FIG. 4 (step S06). Then, the CRC at the strobe at the timing "A" in FIG. 4 is generated between the optical disk device 2 and the host computer 20 (step S10), and the CRC comparison circuit 32 performs a CRC comparison (step S12). After that, CRCOK / CRCNG is output to the strobe control circuit 28.
[0029]
Thereafter, the CRC is also compared by the same operation for the strobes related to B to J in FIG. 4 (step S08). In response to these comparison results, the strobe control circuit 28 determines the optimum strobe position and transmits it to the strobe generation circuit 26. When the signal output from the strobe counter 30 to the CRC comparator 32 has counted up to J in FIG. 4, the NG bit is cleared (to "0") (step S16). As described above, the strobe generating circuit 26 transmits an optimum strobe, and thus data transfer is performed in an optimum state.
[0030]
In the example shown in FIG. 4, the strobe signal is synchronized with the internal clock. However, the strobe signal may be assigned more finely. In this case, strobes are established at various intervals in the section (1) asynchronously with the internal clock. Also in this case, as many registers as CRCOK / CRCNG must be secured as many as the number of strobes (the number of times a CRC code is generated).
[0031]
<< 2nd Embodiment >>
In the second embodiment shown in FIG. 6, the position of the strobe is changed on the host computer 20 side with respect to the data output from the optical disk device 2.
[0032]
In the mechanism according to the second embodiment, the data transfer as in the first embodiment is not performed on a trial basis, and the mechanism operates in normal data transfer. First, DD [15: 0] is synchronized with the internal clock (clk). Therefore, how many clocks are included in the section (1) in FIG. 4 is determined. In the case of FIG. 4, it is for 5 clocks.
[0033]
The host computer 20 generates a clock similar to the internal clock of the optical disk device 2. The number of strobe signals that can be generated in the section shown in FIG. 4A can be determined by the strobe counter 40. There are 10 types of A to J.
[0034]
In the second embodiment, a strobe is generated by the strobe counter 40 of the host computer 20. Since this strobe generation is performed for normal data transfer, it is not necessary to repeatedly perform data transfer from the optical disk device 2 as in the first embodiment.
[0035]
First, when the strobe is at the point A, a CRC code is generated and returned to the optical disk device 2. In the optical disc device 2, the CRC code returned from the host computer 20 is compared with a CRC code generated in the optical disc device 2 in advance by the CRC comparison circuit 32. The bit is set to “1”, and if they do not match, the bit of CRCNG [0] is set to “1”. Since there are ten types of strobes, CRCOK and CRCNG have a bus width of 10 bits.
[0036]
After generating a CRC code when the strobe is at point A, the CRC generation circuit 38 of the host computer 2 continuously generates a CRC for the strobes from point B to point J, and continuously generates the CRC to the optical disk device 2. return. Then, in the same manner as described above, the CRC comparison circuit 32 of the optical disk device 2 continuously determines OK / NG, and the result is represented by CRCOK [1] to [9] / CRCNG [1] to [9]. .
[0037]
For example, CRCOK [9: 0]
0 0 0 0 1 1 1 1 1 1 0
If so, the strobe control circuit 28 determines that the strobe signal of “G”, which is the intermediate point between the points that are continuously “1”, is optimal. Then, the strobe control of selecting the “G” strobe is performed.
[0038]
In this case, since the point G is three clocks after the point A, the point three clocks after the strobe signal output from the optical disk device 2 is the optimum strobe position.
[0039]
Incidentally, also in the second embodiment of FIG. 6, the CRC comparison circuit 32 outputs NG bits. FIG. 7 is a flowchart from data transfer to NG bit confirmation / use. When reading (reading) data from the DRAM 16, CRCs are generated on the optical disk device 2 side and the host computer 20 side, respectively, and are compared by the CRC comparison circuit 32. When data transfer is successful (that is, when there is no difference in the CRC comparison circuit 32), the NG bit remains “0”. When the NG bit is “0”, the strobe generation circuit 26 of the optical disk device 2 does not refer to the strobe position from the strobe control circuit 28. Therefore, the host computer 20 continues reading (reading) as it is.
[0040]
When an error occurs in the data transfer (that is, when a difference occurs in the CRC comparison circuit 32), the NG bit becomes “1”, and the position of the strobe determined in advance during the data transfer is determined by the strobe control circuit 28. The signal is transmitted to the strobe generation circuit 26 and controls the strobe (FIG. 7, step S62).
[0041]
In order to determine the optimum strobe position in advance, the strobe counter 40 determines continuous strobe positions for the data to be transferred (step 52) (for example, A to J in FIG. 4), and a strobe generation circuit on the host computer 20 side. At 42, a strobe is generated for each strobe position (step S54), a CRC is issued for each strobe, and the optical disk device 2 compares them (step S56) to determine an optimal strobe position (step S58). ).
[0042]
When the NG bit becomes "1", the optimum strobe is transmitted from the strobe control circuit 28 to the strobe generation circuit 26, and then the NG bit is cleared (step S62).
[0043]
Also in the description of the second embodiment, the strobe signal is synchronized with the internal clock, but the strobe may be assigned more finely. In this case, strobes are established at various intervals in the section (1) asynchronously with the clock of the host computer 20. Also in this case, as many registers as CRCOK / CRCNG must be secured as many as the number of strobes (the number of times a CRC code is generated).
[0044]
In the first embodiment, since the optical disk device 2 changes the strobe, the strobe must be transferred to the host computer 20 each time. On the other hand, in the second embodiment, the strobe is changed by the host computer 20. Because of the change, the control time is shorter than in the first embodiment, and strobe control can be performed even during data transfer.
[0045]
【The invention's effect】
By utilizing the present invention, the following effects can be obtained.
[0046]
By optimizing the position of the strobe when data is transferred from the optical disk device to the host computer, transfer reliability is improved.
[0047]
Further, when data is transferred from the optical disk device to the host computer, the strobe timing can be changed on the host computer side. To optimize the position of the strobe, and therefore, it is possible to perform optimal strobe control in a short time.
[Brief description of the drawings]
FIG. 1 is a schematic diagram showing data and a strobe signal sent from an optical disk device to a host computer.
FIG. 2 is an example of a timing chart of data output from an optical disk device and a strobe signal.
FIG. 3 is a block diagram of a circuit in the optical disk device and a host computer according to the first embodiment of the present invention.
FIG. 4 is a pattern of generation of a strobe signal according to the present invention.
FIG. 5 is an example of a flowchart of an operation according to the first embodiment of the present invention.
FIG. 6 is a block diagram of a circuit in an optical disk device and a host computer according to a second embodiment of the present invention.
FIG. 7 is an example of a flowchart of an operation according to the second embodiment of the present invention.
FIG. 8 is a block diagram of a general optical disk device.
[Explanation of symbols]
2 ... optical disk device, 10 ... CPU, 16 ... DRAM, 18 ... ATAPI interface unit, 20 ... host computer.

Claims (4)

CRCコード生成手段を持つホストコンピュータと接続する光ディスク装置において、
試験的なデータをホストコンピュータに転送する手段と、
上記の試験的なデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして生成する手段と、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを含む、
光ディスク装置。
In an optical disk device connected to a host computer having a CRC code generating means,
Means for transferring experimental data to a host computer;
Means for generating a strobe signal with a staggered rise or fall at minute intervals with respect to the experimental data,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control unit for selecting an appropriate strobe signal based on a plurality of signals generated by the unit for detecting whether the data transfer to the host computer is normal or abnormal,
Optical disk device.
光ディスク装置と、該光ディスク装置に接続するホストコンピュータとを含み、
上記ホストコンピュータは、CRCコード生成手段を持ち、
上記光ディスク装置は、
試験的なデータをホストコンピュータに転送する手段と、
上記の試験的なデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして生成する手段と、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを持つ、
光ディスクインターフェースシステム。
Including an optical disk device and a host computer connected to the optical disk device,
The host computer has a CRC code generating means,
The above optical disk device,
Means for transferring experimental data to a host computer;
Means for generating a strobe signal with a staggered rise or fall at minute intervals with respect to the experimental data,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
Strobe signal control means for selecting an appropriate strobe signal based on a plurality of signals generated by the means for detecting whether the data transfer to the host computer is normal or abnormal,
Optical disk interface system.
転送されてくるデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして連続的に生成する手段と、CRCコード生成手段とを持つホストコンピュータに接続する光ディスク装置において、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを含む、
光ディスク装置。
In an optical disc device connected to a host computer having means for continuously generating strobe signals with shifted rising or falling at minute intervals with respect to transferred data and CRC code generating means,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
A strobe signal control unit for selecting an appropriate strobe signal based on a plurality of signals generated by the unit for detecting whether the data transfer to the host computer is normal or abnormal,
Optical disk device.
光ディスク装置と、該光ディスク装置に接続するホストコンピュータとを含み、
上記ホストコンピュータは、転送されてくるデータに対してストローブ信号を微小間隔で立ち上がり又は立ち下がりをずらして連続的に生成する手段と、CRCコード生成手段とを持ち、
上記光ディスク装置は、
上記ホストコンピュータの上記CRCコード生成手段からのCRCコードと、光ディスク装置内で生成されるCRCコードとを比較することにより、ホストコンピュータに対するデータ転送が正常か非正常かを検出する手段と、
上記のホストコンピュータに対するデータ転送が正常か非正常かを検出する手段が生成する複数の信号を基にして、適切なストローブ信号を選択するストローブ信号制御手段とを持つ、
光ディスクインターフェースシステム。
Including an optical disk device and a host computer connected to the optical disk device,
The host computer has means for continuously generating a strobe signal at a small interval with a rising or falling edge shifted for transferred data, and a CRC code generating means,
The above optical disk device,
Means for detecting whether the data transfer to the host computer is normal or abnormal by comparing the CRC code from the CRC code generation means of the host computer with the CRC code generated in the optical disk device;
Strobe signal control means for selecting an appropriate strobe signal based on a plurality of signals generated by the means for detecting whether the data transfer to the host computer is normal or abnormal,
Optical disk interface system.
JP2003130403A 2003-05-08 2003-05-08 Optical disk device and optical disk interface system Pending JP2004334578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003130403A JP2004334578A (en) 2003-05-08 2003-05-08 Optical disk device and optical disk interface system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003130403A JP2004334578A (en) 2003-05-08 2003-05-08 Optical disk device and optical disk interface system

Publications (1)

Publication Number Publication Date
JP2004334578A true JP2004334578A (en) 2004-11-25

Family

ID=33505945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003130403A Pending JP2004334578A (en) 2003-05-08 2003-05-08 Optical disk device and optical disk interface system

Country Status (1)

Country Link
JP (1) JP2004334578A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008271075A (en) * 2007-04-19 2008-11-06 Nikon Corp Electronic device, electronic camera, and data transfer program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008271075A (en) * 2007-04-19 2008-11-06 Nikon Corp Electronic device, electronic camera, and data transfer program
US8564692B2 (en) 2007-04-19 2013-10-22 Nikon Corporation Electronic device, electronic camera, and data transfer program for changing transfer rate and communication protocol

Similar Documents

Publication Publication Date Title
US6600779B1 (en) Signal processor having feedback loop control for decision feedback equalizer
US5231545A (en) Fault tolerant rll data sector address mark decoder
US5987562A (en) Waveform sampler and method for sampling a signal from a read channel
US6754018B2 (en) Magnetic disc device and error correction method therefor
US8238207B2 (en) Device and method for reproducing digital signal and device and method for recording digital signal
KR100545592B1 (en) Fault Detectors and Detection Methods in Magnetic Media of Mass Storage Systems
KR19990029804A (en) Server Hard Disk Drive Integrated Circuits and Operation Methods
US7010711B2 (en) Method and apparatus of automatic power management control for native command queuing Serial ATA device
JP2003515861A (en) Data error repair method and apparatus using defect threshold detector and Viterbi gain
JPH10106191A (en) Servo demodulator and synchronous servo demodulation method
JPH1031557A (en) Method and circuit for data synchronization using time-out counter
US6567489B1 (en) Method and circuitry for acquiring a signal in a read channel
US9054691B2 (en) Information processing apparatus or information processing method
JP2004334578A (en) Optical disk device and optical disk interface system
JP2007317271A (en) Data storage device and error processing method in its lead processing
US5298840A (en) Motor control circuit and motor drive system using the same
US7032157B2 (en) Method for optimizing UDMA transfer signals using CRC errors
KR100459705B1 (en) Method and apparatus for removing vibration in the disc driver
JP2007317263A (en) Serial data transfer method and system thereof, and data storage device
JP2001143406A (en) Disk storage device, and data decoding method and disk medium applied to the device
JP2968686B2 (en) Optical information control device
JP2754398B2 (en) Automatic equalization control method
JPH08321142A (en) Method for judging correctness of servo sector address, disk-type storage, and its control device
JP3680008B2 (en) Optical disc data reading device, optical disc data copying device, and optical disc data reading speed control method
JP2000123475A (en) Magnetic disk controller