JP4495924B2 - Interface circuit, electronic device, and medium storage device - Google Patents

Interface circuit, electronic device, and medium storage device Download PDF

Info

Publication number
JP4495924B2
JP4495924B2 JP2003175710A JP2003175710A JP4495924B2 JP 4495924 B2 JP4495924 B2 JP 4495924B2 JP 2003175710 A JP2003175710 A JP 2003175710A JP 2003175710 A JP2003175710 A JP 2003175710A JP 4495924 B2 JP4495924 B2 JP 4495924B2
Authority
JP
Japan
Prior art keywords
serial
data
memory
clock
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003175710A
Other languages
Japanese (ja)
Other versions
JP2005011129A (en
Inventor
隆樹 久保原
辰彦 小杉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Storage Device Corp
Original Assignee
Toshiba Storage Device Corp
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 Toshiba Storage Device Corp filed Critical Toshiba Storage Device Corp
Priority to JP2003175710A priority Critical patent/JP4495924B2/en
Publication of JP2005011129A publication Critical patent/JP2005011129A/en
Application granted granted Critical
Publication of JP4495924B2 publication Critical patent/JP4495924B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、シリアルラインを使用して、シリアルデータをやり取りするためのインタフェース回路、電子装置及び媒体記憶装置に関し、特に、シリアルデータの送受信のため、シリアルクロック、イネーブル、シリアルデータを出力制御するシリアルパターンを生成するインタフェース回路、電子装置及び媒体記憶装置に関する。
【0002】
【従来の技術】
近年のLSI技術の進展により、各種の回路が、1チップ化されている。各種の電子装置は、必要な機能に応じて、これらのLSIチップを組み合わせ、構成される。このようなLSIチップには、MPUとの接続のためのパラレルバスインタフェースを持つLSIチップと、シリアルインタフェースを持つLSIチップがある。
【0003】
このパラレルインタフェースのLSIチップと、シリアルインタフェースのLSIチップで、データを交信するには、これらLSI間に、インタフェース回路を設ける方法が有効である。このインタフェース回路は、同期をとって、パラレルデータをシリアル出力し、逆に、シリアルデータをパラレル出力する。
【0004】
図10は、従来のインタフェース回路の構成図、図11(A)及び図11(B)は、シリアル出力の説明図である。図10に示すように、シリアルインタフェースのLSIチップ110とデータ転送するため、インタフェース回路100が、図示しないパラレルインタフェースのLSIチップとの間に設けられる。
【0005】
このシリアルインタフェース120は、通常、シリアルクロックと、イネーブルと、アドレス/データの各々を、シリアルラインで供給する。このため、インタフェース回路100は、シリアルクロックのドライバ102と、イネーブル信号のドライバ106と、並列データを直列データに変換し、アドレス/データ線に出力し、アドレス/データ線からの直列データを並列データに変換する双方向ドライバ104と有する。
【0006】
シリアル出力発生回路108は、外部(LSIチップ)のシリアル出力要求に応じて、各ドライバ102、104、106を動作するためのシリアルパターンを出力する。即ち、図11(A)に示すように、16ビットのデータ「f」〜「0」をシリアル出力するには、先ず、シリアルイネーブル信号を有効(図11(A)では、ローレベル)とし、次に、シリアルクロックを生成し、これに同期して、並列データを直列データに変換し、送信する。
【0007】
そして、所定数(16ビット)のシリアルデータの送出により、シリアルクロックを停止し、その後、シリアルイネーブル信号を無効(図11(A)では、ハイレベル)とする。
【0008】
送信されたLSIチップ110では、シリアルイネーブル信号により、データ線のデータが有効であることを認識し、シリアルクロックにより、シリアルデータの各ビットを確定する。図11(A)では、シリアルクロックの立下りで、データ線のデータを確定する。
【0009】
このようなシリアルクロック、シリアルイネーブル、シリアルデータを出力するため、シリアル出力発生回路108は、シリアルパターンを発生し、各ドライバ102、104、106を駆動する。
【0010】
従来は、このようなシリアルパターンは、相手のLSIチップ110の仕様により、一定であることから、シリアル出力発生回路は、この一定のシリアルパターンを生成するワイヤードロジック回路で構成していた。
【0011】
【発明が解決しようとする課題】
近年、LSI技術の進展により、各種のLSIが豊富に提供されている。このため、かかるLSIでも、種類や仕様変更により、シリアルパターンの仕様が若干異なるものも提供されている。例えば、図11(B)の例では、シリアルイネーブル信号は、ハイレベルで有効を示し、シリアルクロックの立ち上がりで、シリアルデータが確定するように、シリアルデータを出力する。
【0012】
図11(A)のシリアルクロックの立下り基準でシリアルデータが確定するインタフェースで、シリアルクロックの立ち上がり基準でデータが確定するLSIを接続すると、図11(A)の「B」のように、データ(ビット)3とデータ(ビット)2の境界でデータが確定する。このため、いずれかのデータがレジスタに設定され、設定値が条件により異なる可能性があり、データが不定となる。
【0013】
このため、LSIチップの仕様に合わせたシリアル出力パターンを発生する必要があるが、従来技術では、予め決められた固定シリアルパターンをワイヤードロジック回路で指定していたため、シリアルパターンの間違いやLSIチップの仕様が変更された場合には、このシリアルパターン発生回路を作成し直す必要があった。このため、新規なLSIチップの評価等の開発工程が削減できず、且つ作り直しにより、改版コストが増加するという問題が生じる。
【0014】
従って、本発明の目的は、シリアル出力パターンを容易に可変とすることができ、種々のシリアルインタフェース仕様に適合するためのインタフェース回路、電子装置及び媒体記憶装置を提供することにある。
【0015】
又、本発明の他の目的は、種々のシリアルインタフェース仕様に容易に適応するためのインタフェース回路、電子装置及び媒体記憶装置を提供することにある。
【0016】
更に、本発明の他の目的は、シリアル出力パターンの不具合の修正やデバッグを容易に実現するためのインタフェース回路、電子装置及び媒体記憶装置を提供することにある。
【0017】
【課題を解決するための手段】
この目的の達成のため、本発明のシリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路において、各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、前記シリアルクロックをクロックラインに出力するクロックドライバと、前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、前記シリアルパターンメモリは、他の電子回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記他の電子回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる。
【0018】
又、本発明の電子装置は、一の回路にバスで接続されたインタフェース回路からシリアルインタフェースで他の回路にデータを転送する電子装置において、前記インタフェース回路は、各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、前記シリアルクロックをクロックラインに出力するクロックドライバと、前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、前記シリアルパターンメモリは、前記他の回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記他の回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる。
【0019】
又、本発明の媒体からデータを少なくとも読み出す媒体記憶装置は、制御部と、前記媒体記憶装置の機構部を駆動するドライブ回路と、前記制御部のパラレルインタフェースに接続され、前記ドライブ回路に、シリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路とを有し、前記インタフェース回路は、各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、前記シリアルクロックをクロックラインに出力するクロックドライバと、前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、前記シリアルパターンメモリは、前記ドライブ回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記ドライブ回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる。
【0020】
本発明では、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御するシリアル出力パターンを書込み可能なメモリに展開し、メモリをインクリメントして、シリアル出力パターンを順次出力し、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御する。
【0021】
このため、シリアル出力パターンを容易に可変でき、シリアル出力パターンの不具合の修正やデバッグを、メモリのパターンの変更で実現できる。これにより、シリアルインタフェ−ス接続される各種のLSIチップを使用した電子装置の開発工程を削減でき、且つ改版コストを削減できる。
【0022】
又、本発明では、好ましくは、前記メモリは、前記シリアル出力シーケンスの終了を示すホルトビットを格納し、前記読出回路は、前記ホルトビットに応じて、前記メモリの読出しを停止する。これにより、シリアル出力の停止も制御できる。
【0023】
又、本発明では、好ましくは、データライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、データリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記読出回路は、与えられた開始アドレスに応じて、前記ライトシリアルパターンと前記リードシリアルパターンを選択して、順次読み出す。
【0024】
これにより、メモリの設定により、ライトとリードのシーケンスを個別にシリアル制御できる。
【0025】
又、本発明では、好ましくは、前記メモリのリードシリアルパターンは、前記データドライバの入出力方向ビットと、前記リードデータのリードストローブビットとを含む。これにより、リード時のシーケンスが一層容易となる。
【0026】
又、本発明では、好ましくは、前記メモリアドレスを順次インクリメントするベースクロックを選択するクロック選択回路を更に有する。これにより、転送速度も変更できる。
【0027】
又、本発明では、好ましくは、前記データドライバが、入出力ドライバで構成され、且つ前記データドライバからのシリアルデータをパラレルデータに組み立てるリードレジスタとを更に有する。これにより、リード処理が容易となる。
【0028】
【発明の実施の形態】
以下、本発明の実施の形態を、媒体記憶装置、インタフェース回路、他の実施の形態の順で説明する。
【0029】
[媒体記憶装置]
図1は、本発明の一実施の形態の媒体記憶装置の構成図である。図1は、媒体記憶装置として、磁気デイスクにデータをリード/ライトする磁気デイスク装置(HDD)を例に示す。磁気デイスク装置10は、パーソナルコンピュータ等のホスト8とATA(AT Attachment)規格のインタフェースのケーブル9で接続される。
【0030】
磁気デイスク装置10は、磁気デイスク19と、磁気デイスク19を回転するスピンドルモータ20と、磁気デイスク19にデータをリード/ライトする磁気ヘッド25と、磁気ヘッド25を磁気デイスク19の半径方向(トラック横断方向)に移動するアクチュエータ(VCM)22とを備える。
【0031】
又、制御部として、HDC(Hard Disk Controller)12と、データバッファ14と、MCU(Micro Control Unit)11と、メモリ13と、DSP(Digital Signal Processor)15と、リード/ライト回路(LSI)16、ドライブインタフェース回路17と、ヘッドIC18と、スピンドルモータドライバとVCMドライバを含むサーボドライバ23と、駆動トランジスタ(FET)21と、サーボ復調回路24とを備える。
【0032】
HDC12は、ホストと交信するためのATAインタフェース制御回路と、データバッファ14を制御するデータバッファ制御回路とを有する。リード/ライト回路16は、記録データのフォーマット制御を行う。
【0033】
ヘッドIC18は、ライト時は、記録データに従い磁気ヘッド25に記録電流を流し、リード時は、磁気ヘッド25からの読取信号を増幅して、リード信号(サーボ情報を含む)を出力する。サーボ復調回路24は、リード/ライト回路16を介するヘッドIC18からのサーボ情報を復調し、磁気ヘッド25の位置を検出する。
【0034】
サーボドライバ23のスピンドルドライバは、駆動トランジスタ21を介しスピンドルモータ20を回転駆動する。サーボドライバ23のVCMドライバは、磁気ヘッド25を移動するVCM22を駆動する。
【0035】
DSP15は、サーボ復調回路24からの検出位置に応じて、VCM22をサーボ制御する。MCU11は、リード/ライト制御、リトライ制御を行う。メモリ13は、MCU11の処理に必要なテーブル、データを格納する。ドライブインタフェース回路17は、磁気デイスクのドライブ系と処理系のインタフェースを行うものである。データ/アドレスバス26は、MCU11、メモリ13、HDC12とドライブインタフェース回路17を接続する。ドライブインタフェース回路17は、DSP15にも接続される。
【0036】
ドライブインタフェース回路17は、シリアルインタフェースライン27A乃至27Dの各々により、サーボドライバ23、ヘッドIC18,サーボ復調回路24、リード/ライト回路16と接続され、アドレス/データのやり取りをシリアルインタフェースで行う。
【0037】
図1では、ドライブインタフェース回路17が、パラレルデータ系のMCU11,DSP15と、シリアルデータ系のサーボドライバ23、ヘッドIC18,サーボ復調回路24、リード/ライト回路16とのP/S変換及びS/P変換を行う。
【0038】
[インタフェース回路]
次に、図1のドライブインタフェース回路を説明する。図2は、図1のドライブインタフェース回路の構成図、図3は、図2のシリアルシーケンサの構成図、図4は、図3のシリアルシーケンサの動作手順の説明図である。
【0039】
図2に示すように、インタフェース回路17は、MCU11等とパラレルバス26で接続され、サーボドライバ23とシリアルライン50,51,52で接続される。ここでは、シリアル接続されるLSIチップとして、サーボドライバ23を示しているが、図1のように、サーボ復調回路24、リード/ライト回路16、ヘッドIC18も同様である。
【0040】
このインタフェース回路17は、MCU11のパラレルデータを、シリアルデータに変換し、サーボドライバ23にライトし、サーボドライバ23のシリアルデータをパラレルデータに変換し、MCU11がリードする。
【0041】
インタフェース回路17は、バス26からのライトデータを格納するライトレジスタ30と、ライトレジスタ30のパラレルデータをシリアルデータに変換するための変換レジスタ31と、変換レジスタ31に接続された双方向ドライバ32と、双方向ドライバ32のシリアルデータをパラレルデータに組み立てる組み立てレジスタ33と、組み立てレジスタ33のパラレルデータがセットされるリードレジスタ34とを有する。
【0042】
又、インタフェース回路17は、更に、シリアルクロックライン51にシリアルクロックを出力するクロックドライバ35と、イネーブルライン52にイネーブル信号を出力するイネーブルドライバ36と、シリアル出力パターンを発生するシリアルシーケンサ40とを有する。
【0043】
シリアルシーケンサ40は、図3に示すように、16ビット幅のメモリ42と、メモリ42のリードクロック(ベースクロック)を選択するクロックセレクタ43と、メモリ42の開始アドレスがセットされ、ベースクロックに応じて、メモリ42の読出しアドレスを生成し、メモリ42から16ビット幅の格納データ(シリアル出力シーケンスデータ)を順次読み出す読出し制御回路41とを有する。
【0044】
メモリ42の16ビット幅の格納データとして、ビット9に、イネーブル信号のハイ、ローを示すイネーブルビット、ビット8に、MCU11にリードデータを読めるタイミングを通知するリードレデイビット、ビット7に、シーケンスデータの出力停止を示すホルトビットを設定する。
【0045】
又、ビット6に、シリアルクロックのハイ、ローを示すクロックビット、ビット5に、アドレス/データライン50のデータの方向(双方向ドライバ32の入出力)を示すデレクションビット、ビット4に、リードレジスタ34のリードストローブを示すリードビットを設定する。更に、ビット3〜0に、レジスタ31,33のアドレスを設定し、ビットF〜Aは、使用しない。
【0046】
図2に示すように、このメモリ42のイネーブルビット出力は、イネーブルドライバ36に、リードレデイビット出力は、MCU11へ、ホルトビット出力は、図3の読出し制御回路41に、クロックビット出力は、クロックドライバ35に、デレクションビット出力は、双方向ドライバ32に、リードビット出力は、リードレジスタ34に、アドレス出力は、レジスタ31,33に、供給される。
【0047】
図4に示すように、メモリ42には、ライト時のシリアル出力シーケンスW1を、例えば、0〜47番地の16ビット幅の領域に格納し、リード時のシリアル出力シーケンスR1を、48〜96番地に格納する。ここでは、他のシリアルインタフェースのライト時のシリアル出力シーケンスW2を、97番地以下の16ビット幅の領域に格納し、リード時のシリアル出力シーケンスR2を、それ以降の番地に格納している。
【0048】
図4も使用して、この構成の動作を説明する。メモリ42に、シリアル出力パターンを格納した後、シリアル出力要求命令が、例えば、MCU11からシリアルシーケンサ40に発行される。この命令は、図3で示したクロック選択信号と、開始アドレスである。
【0049】
読出し制御回路41は、開始アドレスをアドレスカウンタにセットし、アドレスカウンタでメモリ42を読み出す。そして、アドレスカウンタは、ベースクロックをカウントし、メモリアドレスをインクリメントし、メモリ42から順次16ビット幅のシリアルパターンを出力する。読出し制御回路41は、メモリ42のホルトビットを入力され、ホルトビットによりホルトを検出すると、アドレスカウンタのカウントを停止する。これにより、シリアルパターンの出力が停止される。
【0050】
更に、具体的に、説明する。図5は、ライト時のシリアル出力のタイムチャートであり、図6は、図5のシリアル出力のため設定されたメモリ42のシリアルシーケンスパターンのビットマップ図である。
【0051】
図5において、ベースクロックと、シリアルライン51に出力されるシリアルクロック、イネーブルライン52に出力されるイネーブル信号と、16ビットのシリアルライトデータとの関係を示す。又、そのための16ビット幅のシリアル出力パターンの下位12ビットの値を4ビット毎、4進表示で示し、且つ対応するメモリアドレスを表示している。又、図6は、各メモリアドレスのシリアル出力パターンを2進表示したものである。
【0052】
ここでは、開始アドレスとして、「00」が指示されたものとし、ベースクロックに応じて、図6のメモリ42のメモリアドレスが順次インクリメントする。これにより、図6のメモリ42のシリアル出力パターンデータが、アドレス00から図の下方に順次読み出される。
【0053】
ここでは、最初にシリアルイネーブル信号をベースクロックの2クロック分、ハイ(EN=1,無効)に設定してから、シリアルイネーブル信号をロー(EN=0,有効)とする。次に、メモリアドレス「03」で、デレクションDIRをハイ(データ出力)とし、シリアルクロックCLKをハイ、データアドレスを「f」とし、レジスタ31のアドレスfのビットを双方向ドライバ50から出力する。
【0054】
次に、メモリアドレス「04」で、シリアルクロックCLKをロー、データアドレスを「f」とし、レジスタ31のアドレスfのビットを双方向ドライバ50から出力する。
【0055】
即ち、シリアルクロックを生成し、これに同期して、並列データを直列データに変換し、送信する。この例では、シリアルクロックの立下りで、データを確定するサーボドライバ23の仕様に対応している。
【0056】
以降、シリアルクロックのハイ/ローを繰り返し、データアドレスを変えていく。これにより、レジスタ31の所定数(16ビット)のシリアルデータ(8ビットアドレス+8ビットデータ)の送出が、メモリアドレス「34」まで行われる。そして、メモリアドレス「35」、「36」で、シリアルクロックを停止し(CLK=0)、その後、メモリアドレス「37」からシリアルイネーブル信号を無効(EN=1、ハイレベル)とする。
【0057】
以降、シリアル出力終了シーケンスのためのシリアルクロックを2つ発生した後、メモリアドレス「47」のホルト(HLT=1)により、メモリアドレスのインクリメントを停止し、シリアル出力を終了する。
【0058】
次に、リード動作を説明する。図7は、リード時のシリアル出力のタイムチャートであり、図8は、図7のシリアル出力のため設定されたメモリ42のシリアルシーケンスパターンのビットマップ図である。
【0059】
図7において、ベースクロックと、シリアルライン51に出力されるシリアルクロック、イネーブルライン52に出力されるイネーブル信号と、8ビットのシリアルリードアドレス、8ビットのリードデータとの関係を示す。又、そのための16ビット幅のシリアル出力パターンの下位12ビットの値を4ビット毎、4進表示で示し、且つ対応するメモリアドレスを表示している。又、図8は、各メモリアドレスのシリアル出力パターンを2進表示したものである。
【0060】
ここでは、開始アドレスとして、「48」が指示されたものとし、ベースクロックに応じて、図8のメモリ42のメモリアドレスが順次インクリメントする。これにより、図8のメモリ42のシリアル出力パターンデータが、アドレス48から図の下方に順次読み出される。
【0061】
ここでは、最初にシリアルイネーブル信号をベースクロックの2クロック分、ハイ(EN=1,無効)に設定してから、シリアルイネーブル信号をロー(EN=0,有効)とする。次に、メモリアドレス「03」で、デレクションDIRをハイ(データ出力)とし、シリアルクロックCLKをハイ、データアドレスを「f」とし、レジスタ31のアドレスfのビットを双方向ドライバ50から出力する。
【0062】
次に、メモリアドレス「04」で、シリアルクロックCLKをロー、データアドレスを「f」とし、レジスタ31のアドレスfのビットを双方向ドライバ50から出力する。
【0063】
即ち、シリアルクロックを生成し、これに同期して、レジスタ31の8ビットの並列データを直列データに変換し、送信する。この例では、シリアルクロックの立下りで、データを確定するサーボドライバ23の仕様に対応している。
【0064】
以降、シリアルクロックのハイ/ローを繰り返し、データアドレスを変えていく。これにより、レジスタ31の所定数(8ビットアドレス)の送出が、メモリアドレス「67」まで行われる。
【0065】
次に、メモリアドレス「68」で、デレクションDIRをロー(データ入力)とし、双方向レジスタ50を入力に切り換える。次に、メモリアドレス「69」で、デレクションDIRをローに維持し、シリアルクロックCLKをハイ、データアドレスを「7」とし、レジスタ33のアドレス「7」に、双方向ドライバ50からのシリアルデータへ出力する。
【0066】
次に、メモリアドレス「70」で、シリアルクロックCLKをロー、データアドレスを「7」とし、レジスタ33のアドレス「7」に、を双方向ドライバ50からシリアルデータを格納する。
【0067】
即ち、シリアルクロックを生成し、これに同期して、レジスタ33に、8ビットの直列データを格納する。この例では、シリアルクロックの立下りで、データを確定するサーボドライバ23の仕様に対応している。
【0068】
以降、シリアルクロックのハイ/ローを繰り返し、データアドレスを変えていく。これにより、レジスタ33への所定数(8ビットアドレス)の送出が、メモリアドレス「84」まで行われる。そして、メモリアドレス「85」で、シリアルクロックを停止し、リードストローブをハイ(RR=1)とし、16ビットレジスタ33のデータを、リードレジスタ34にセットする。その後、メモリアドレス「86」からシリアルイネーブル信号を無効(EN=1、ハイレベル)とする。
【0069】
以降、シリアル出力終了シーケンスのためのシリアルクロックを2つ発生した後、メモリアドレス「96」のホルト(HLT=1)により、メモリアドレスのインクリメントを停止し、シリアル出力を終了する。
【0070】
このように、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御するシリアル出力パターンを書込み可能なメモリに展開し、メモリをインクリメントして、シリアル出力パターンを順次出力し、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御する。
【0071】
このため、シリアル出力パターンを容易に可変でき、シリアル出力パターンの不具合の修正やデバッグを、メモリのパターンの変更で実現できる。これにより、シリアルインタフェ−ス接続される各種のLSIチップを使用した電子装置の開発工程を削減でき、且つ改版コストを削減できる。
【0072】
又、ライトとリードで異なるパターンを設定でき、接続されるLSIチップに適合したシリアルインタフェースでのリード/ライトを可能とする。更に、ベースクロックを選択することができるため、ベースクロックを可変にして、シリアル出力の動作クロックを変更できる。即ち、インタフェース速度を容易に変更できる。
【0073】
しかも、メモリ42のデレクションDIRと、リードストローブRRを変え、シリアルリード出力のアドレス部とデータ部との比率を可変にできる。又、データ部の長さの変更により、シリアル出力の長さ(ビット数)を可変にできる。
【0074】
[他の実施の形態]
図9は、本発明の他の実施の形態の構成図である。この例では、シリアルシーケンサ40のメモリ42は、1種類のライト/リードシリアル出力パターンを格納する。一方、MCU11のメモリ13には、複数種類のライト/リードシリアル出力パターンを格納する。
【0075】
図1の回路が実装されるプリント板には、設定ピン60が設けられており、実装されるサーボドライバ23等の仕様に応じて、種類を設定する。MCU11は、この設定ピン60を読み取り、接続されるシリアルインタフェース仕様を自動認識し、メモリ13から対応するライト/リードシリアル出力パターンを読み出し、シリアルシーケンサ40のメモリ42にロードする。
【0076】
これにより、インタフェース回路17は、自動的に、接続されるLSIチップのシリアルインタフェース仕様のシリアル出力パターン発生回路を持つことができる。
【0077】
前述の実施の形態では、媒体記憶装置の媒体を磁気デイスクで説明したが、光デイスク、光磁気デイスク、他の記憶媒体にも適用できる。又、電子装置を、ハードデイスクの制御部で説明したが、他の制御部等の電子装置に適用できる。更に、インタフェースは、ATAに限らず、他のインタフェースにも適用できる。
【0078】
以上、本発明を実施の形態により説明したが、本発明の趣旨の範囲内において、本発明は、種々の変形が可能であり、本発明の範囲からこれらを排除するものではない。
【0079】
(付記1)シリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路において、前記データを格納するレジスタと、前記シリアルクロックをクロックラインに出力するクロックドライバと、前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、前記シリアルデータをデータラインに出力するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有することを特徴とするインタフェース回路。
【0080】
(付記2)前記メモリは、前記シリアル出力シーケンスの終了を示すホルトビットを格納し、前記読出回路は、前記ホルトビットに応じて、前記メモリの読出しを停止することを特徴とする付記1のインタフェース回路。
【0081】
(付記3)データライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、データリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記読出回路は、与えられた開始アドレスに応じて、前記ライトシリアルパターンと前記リードシリアルパターンを選択して、順次読み出すことを特徴とする付記1のインタフェース回路。
【0082】
(付記4)前記メモリのリードシリアルパターンは、前記データドライバの入出力方向ビットと、前記リードデータのリードストローブビットとを含むことを特徴とする付記3のインタフェース回路。
【0083】
(付記5)前記メモリアドレスを順次インクリメントするベースクロックを選択するクロック選択回路を更に有することを特徴とする付記1のインタフェース回路。
【0084】
(付記6)前記データドライバが、入出力ドライバで構成され、且つ前記データドライバからのシリアルデータをパラレルデータに組み立てるリードレジスタとを更に有することを特徴とする付記4のインタフェース回路。
【0085】
(付記7)インタフェース回路からシリアルインタフェースで他の回路にデータを転送する電子装置において、前記インタフェース回路は、前記データを格納するレジスタと、シリアルクロックをクロックラインに出力するクロックドライバと、シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、シリアルデータをデータラインに出力するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有することを特徴とする電子装置。
【0086】
(付記8)前記メモリは、前記シリアル出力シーケンスの終了を示すホルトビットを格納し、前記読出回路は、前記ホルトビットに応じて、前記メモリの読出しを停止することを特徴とする付記7の電子装置。
【0087】
(付記9)データライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、データリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記読出回路は、与えられた開始アドレスに応じて、前記ライトシリアルパターンと前記リードシリアルパターンを選択して、順次読み出すことを特徴とする付記7の電子装置。
【0088】
(付記10)前記メモリのリードシリアルパターンは、前記データドライバの入出力方向ビットと、前記リードデータのリードストローブビットとを含むことを特徴とする付記9の電子装置。
【0089】
(付記11)前記メモリアドレスを順次インクリメントするベースクロックを選択するクロック選択回路を更に有することを特徴とする付記7の電子装置。
【0090】
(付記12)前記データドライバが、入出力ドライバで構成され、且つ前記データドライバからのシリアルデータをパラレルデータに組み立てるリードレジスタとを更に有することを特徴とする付記10の電子装置。
【0091】
(付記13)媒体からデータを少なくとも読み出す媒体記憶装置において、制御部と、前記媒体記憶装置の機構部を駆動するドライブ回路と、前記制御部のパラレルインタフェースに接続され、前記ドライブ回路に、シリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路とを有し、前記インタフェース回路は、前記データを格納するレジスタと、前記シリアルクロックをクロックラインに出力するクロックドライバと、前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、前記シリアルデータをデータラインに出力するデータドライバと、シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有することを特徴とする媒体記憶装置。
【0092】
(付記14)前記メモリは、前記シリアル出力シーケンスの終了を示すホルトビットを格納し、前記読出回路は、前記ホルトビットに応じて、前記メモリの読出しを停止することを特徴とする付記13の媒体記憶装置。
【0093】
(付記15)データライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、データリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、前記読出回路は、与えられた開始アドレスに応じて、前記ライトシリアルパターンと前記リードシリアルパターンを選択して、順次読み出すことを特徴とする付記13の媒体記憶装置。
【0094】
(付記16)前記メモリのリードシリアルパターンは、前記データドライバの入出力方向ビットと、前記リードデータのリードストローブビットとを含むことを特徴とする付記15の媒体記憶装置。
【0095】
(付記17)前記メモリアドレスを順次インクリメントするベースクロックを選択するクロック選択回路を更に有することを特徴とする付記13の媒体記憶装置。
【0096】
(付記18)前記データドライバが、入出力ドライバで構成され、且つ前記データドライバからのシリアルデータをパラレルデータに組み立てるリードレジスタとを更に有することを特徴とする付記16の媒体記憶装置。
【0097】
【発明の効果】
このように、本発明では、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御するシリアル出力パターンを書込み可能なメモリに展開し、メモリをインクリメントして、シリアル出力パターンを順次出力し、シリアルインタフェースに必要なシリアルイネーブル、シリアルクロック、シリアルデータのタイミングを制御する。
【0098】
このため、シリアル出力パターンを容易に可変でき、シリアル出力パターンの不具合の修正やデバッグを、メモリのパターンの変更で実現できる。これにより、シリアルインタフェ−ス接続される各種のLSIチップを使用した電子装置の開発工程を削減でき、且つ改版コストを削減できる。
【0099】
又、複数のLSIを、シリアルインタフェース接続するドライブインタフェースを持つ媒体記憶装置の開発を容易にし、且つ種々のLSIを仕様でき、よりコストダウンに寄与する。
【図面の簡単な説明】
【図1】本発明の一実施の形態の媒体記憶装置の構成図である。
【図2】図1のドライブインタフェース回路の構成図である。
【図3】図2のシリアルシーケンサの構成図である。
【図4】図3のシリアルシーケンサの動作説明図である。
【図5】図2のドライブインタフェース回路のライトシーケンスのタイムチャート図である。
【図6】図5のライトシーケンスのためのメモリのシリアル出力パターンの説明図である。
【図7】図2のドライブインタフェース回路のリードシーケンスのタイムチャート図である。
【図8】図7のリードシーケンスのためのメモリのシリアル出力パターンの説明図である。
【図9】本発明の他の実施の形態の構成図である。
【図10】従来のシリアルインタフェース回路の構成図である。
【図11】従来のシリアルインタフェースのタイムチャート図である。
【符号の説明】
8 ホスト
9 ATAインタフェース
10 媒体記憶装置(磁気デイスク装置)
11 MCU(処理ユニット)
12 HDC
13 メモリ
14 データバッファ
15 DSP
16 リード/ライトLSI
17 ドライブインタフェース回路
18 ヘッドIC
19 媒体(磁気デイスク)
20 スピンドルモータ
22 アクチュエータ(VCM)
23 サーボドライバ
24 サーボ復調回路
25 ヘッド(磁気ヘッド)
26 バス
27A〜27D シリアルライン
30,31,33,34 レジスタ
32 双方向ドライバ
35,36 出力ドライバ
40 シリアルシーケンサ
41 読出し制御回路
42 メモリ
43 クロックセレクタ
50〜52 シリアルライン
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an interface circuit, an electronic device, and a medium storage device for exchanging serial data using a serial line, and more particularly, a serial clock, enable, and serial for output control of serial data for transmission / reception of serial data. The present invention relates to an interface circuit for generating a pattern, an electronic device, and a medium storage device.
[0002]
[Prior art]
Due to recent advances in LSI technology, various circuits have been integrated into a single chip. Various electronic devices are configured by combining these LSI chips according to required functions. Such LSI chips include an LSI chip having a parallel bus interface for connection to an MPU and an LSI chip having a serial interface.
[0003]
In order to exchange data between the parallel interface LSI chip and the serial interface LSI chip, a method of providing an interface circuit between these LSIs is effective. This interface circuit synchronizes and outputs parallel data serially, and conversely outputs serial data in parallel.
[0004]
FIG. 10 is a configuration diagram of a conventional interface circuit, and FIGS. 11A and 11B are explanatory diagrams of serial output. As shown in FIG. 10, an interface circuit 100 is provided between a serial interface LSI chip 110 and a parallel interface LSI chip (not shown) for data transfer with the serial interface LSI chip 110.
[0005]
The serial interface 120 normally supplies a serial clock, enable, and address / data via a serial line. Therefore, the interface circuit 100 converts the serial data from the serial clock driver 102 and the enable signal driver 106 into serial data, outputs the serial data to the address / data line, and converts the serial data from the address / data line into the parallel data. And a bi-directional driver 104 for conversion into
[0006]
The serial output generation circuit 108 outputs a serial pattern for operating the drivers 102, 104, 106 in response to an external (LSI chip) serial output request. That is, as shown in FIG. 11A, in order to serially output 16-bit data “f” to “0”, first, the serial enable signal is made valid (low level in FIG. 11A), Next, a serial clock is generated, and in parallel with this, parallel data is converted into serial data and transmitted.
[0007]
Then, the serial clock is stopped by sending a predetermined number (16 bits) of serial data, and then the serial enable signal is disabled (high level in FIG. 11A).
[0008]
The transmitted LSI chip 110 recognizes that the data on the data line is valid by the serial enable signal, and determines each bit of the serial data by the serial clock. In FIG. 11A, data on the data line is determined at the falling edge of the serial clock.
[0009]
In order to output such serial clock, serial enable, and serial data, the serial output generation circuit 108 generates a serial pattern and drives the drivers 102, 104, and 106.
[0010]
Conventionally, since such a serial pattern is constant according to the specification of the other LSI chip 110, the serial output generation circuit is constituted by a wired logic circuit that generates this constant serial pattern.
[0011]
[Problems to be solved by the invention]
In recent years, various types of LSIs have been provided in abundance due to advances in LSI technology. For this reason, such LSIs are also provided that have slightly different serial pattern specifications depending on the type and specification change. For example, in the example of FIG. 11B, the serial enable signal is valid at a high level, and serial data is output so that the serial data is determined at the rising edge of the serial clock.
[0012]
When an LSI whose data is determined on the basis of the rising edge of the serial clock is connected to the interface in which the serial data is determined on the basis of the falling edge of the serial clock in FIG. 11A, the data as shown in “B” in FIG. Data is determined at the boundary between (bit) 3 and data (bit) 2. For this reason, any data is set in the register, and the set value may differ depending on the condition, and the data becomes indefinite.
[0013]
For this reason, it is necessary to generate a serial output pattern that matches the specifications of the LSI chip. However, in the prior art, a fixed serial pattern determined in advance is specified by a wired logic circuit. When the specification was changed, it was necessary to recreate this serial pattern generation circuit. For this reason, the development process such as the evaluation of a new LSI chip cannot be reduced, and there arises a problem that the revision cost increases due to remanufacturing.
[0014]
Accordingly, it is an object of the present invention to provide an interface circuit, an electronic device, and a medium storage device that can easily change the serial output pattern and conform to various serial interface specifications.
[0015]
Another object of the present invention is to provide an interface circuit, an electronic device, and a medium storage device for easily adapting to various serial interface specifications.
[0016]
Furthermore, another object of the present invention is to provide an interface circuit, an electronic device, and a medium storage device that can easily realize correction and debugging of a serial output pattern defect.
[0017]
[Means for Solving the Problems]
In order to achieve this object, in the interface circuit for synchronously outputting the serial clock, serial enable and serial data of the present invention, Each On the bus Connected to read register and write register Connected, Parallel day Store A pair of A register; a clock driver that outputs the serial clock to a clock line; an enable driver that outputs the serial enable to an enable line; and a serial data line, the serial data being output to the serial data line; A data driver for receiving the serial data from the data line, a serial pattern memory for storing the serial clock, the high / low bits of the serial enable, and the address of the register in successive memory addresses according to a serial output sequence; The memory address of the serial pattern memory is sequentially incremented, the clock driver is driven with the high / low bits of the serial clock of the memory, and the serial enable Drives said enable driver Lee / low bit, and a memory read circuit for driving the register address of the register, the serial pattern memory, To other electronic circuits Write serial pattern that defines the serial output sequence when writing data, and From the other electronic circuit Stores the read serial pattern that defines the serial output sequence when reading data, The memory The read circuit reads the write serial pattern and writes the address during the data write. To the one register to which parallel data is written from the bus of the pair of registers, the one register, Parallel data written from the bus is converted into serial data, and output from the data driver in synchronization with the serial clock and the serial enable, and at the time of data read, the read serial pattern is read, address Is output to the other of the pair of registers, and the other register The serial data received by the data driver in synchronization with the serial clock and the serial enable, The other The register is assembled into parallel data of the bus.
[0018]
The electronic device according to the present invention is an electronic device that transfers data from an interface circuit connected to one circuit via a bus to another circuit using a serial interface. Each On the bus Connected to read register and write register Connected, Parallel day Store A pair of Registers, Said A clock driver that outputs a serial clock to the clock line; Said An enable driver for outputting a serial enable to an enable line; a data driver connected to a serial data line; outputting the serial data to the serial data line; and receiving the serial data from the serial data line; and a serial output sequence The serial pattern memory for storing the serial clock, the high / low bit of the serial enable and the address of the register in successive memory addresses, and sequentially incrementing the memory address of the serial pattern memory, and the serial clock of the memory The high / low bit drives the clock driver, the serial enable high / low bit drives the enable driver, and the register address is used to register the register. And a memory read circuit for driving the motor, the serial pattern memory, To other circuit Write serial pattern defining the serial output sequence at the time of data write, From the other circuit Stores the read serial pattern that defines the serial output sequence when reading data, The memory The read circuit reads the write serial pattern and writes the address during the data write. To the one register to which parallel data is written from the bus of the pair of registers, the one register, Parallel data written from the bus is converted into serial data, and output from the data driver in synchronization with the serial clock and the serial enable, and at the time of data read, the read serial pattern is read, address Is output to the other of the pair of registers, and the other register The serial data received by the data driver in synchronization with the serial clock and the serial enable, The other The register is assembled into parallel data of the bus.
[0019]
In addition, a medium storage device that reads at least data from the medium of the present invention is connected to a control unit, a drive circuit that drives a mechanism unit of the medium storage device, and a parallel interface of the control unit. An interface circuit for outputting a clock, serial enable and serial data in synchronization with each other. Each On the bus Connected to read register and write register Connected, Parallel day Store A pair of A register; a clock driver that outputs the serial clock to a clock line; an enable driver that outputs the serial enable to an enable line; and a serial data line, the serial data being output to the serial data line; A data driver for receiving the serial data from the data line, a serial pattern memory for storing the serial clock, the high / low bits of the serial enable, and the address of the register in successive memory addresses according to a serial output sequence; The memory address of the serial pattern memory is sequentially incremented, the clock driver is driven with the high / low bits of the serial clock of the memory, and the serial enable Drives said enable driver Lee / low bit, and a memory read circuit for driving the register address of the register, the serial pattern memory, To the drive circuit Write serial pattern defining the serial output sequence at the time of data write, From the drive circuit Stores the read serial pattern that defines the serial output sequence when reading data, The memory The read circuit reads the write serial pattern and writes the address during the data write. To the one register to which parallel data is written from the bus of the pair of registers, the one register, Parallel data written from the bus is converted into serial data, and output from the data driver in synchronization with the serial clock and the serial enable, and at the time of data read, the read serial pattern is read, address Is output to the other of the pair of registers, and the other register The serial data received by the data driver in synchronization with the serial clock and the serial enable, The other The register is assembled into parallel data of the bus.
[0020]
In the present invention, a serial output pattern for controlling the timing of serial enable, serial clock, and serial data necessary for the serial interface is developed in a writable memory, the memory is incremented, and the serial output pattern is sequentially output. Controls the timing of serial enable, serial clock, and serial data required for data.
[0021]
For this reason, the serial output pattern can be easily changed, and the correction and debugging of the serial output pattern can be realized by changing the memory pattern. As a result, the development process of an electronic device using various LSI chips connected to the serial interface can be reduced, and the revision cost can be reduced.
[0022]
In the present invention, it is preferable that the memory stores a halt bit indicating the end of the serial output sequence, and the reading circuit stops reading of the memory according to the halt bit. Thereby, the stop of serial output can also be controlled.
[0023]
In the present invention, preferably, a write serial pattern defining the serial output sequence at the time of data writing and a read serial pattern defining the serial output sequence at the time of data reading are stored, and the reading circuit provides The write serial pattern and the read serial pattern are selected and read sequentially according to the start address.
[0024]
Thus, the write and read sequences can be individually serially controlled by setting the memory.
[0025]
In the present invention, it is preferable that the read serial pattern of the memory includes an input / output direction bit of the data driver and a read strobe bit of the read data. This further facilitates the sequence during reading.
[0026]
The present invention preferably further includes a clock selection circuit for selecting a base clock for sequentially incrementing the memory address. Thereby, the transfer rate can also be changed.
[0027]
In the present invention, it is preferable that the data driver further includes a read register configured by an input / output driver and assembling serial data from the data driver into parallel data. This facilitates read processing.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in the order of a medium storage device, an interface circuit, and other embodiments.
[0029]
[Media storage device]
FIG. 1 is a configuration diagram of a medium storage device according to an embodiment of the present invention. FIG. 1 shows an example of a magnetic disk device (HDD) that reads / writes data on a magnetic disk as a medium storage device. The magnetic disk device 10 is connected to a host 8 such as a personal computer via an ATA (AT Attachment) standard interface cable 9.
[0030]
The magnetic disk device 10 includes a magnetic disk 19, a spindle motor 20 that rotates the magnetic disk 19, a magnetic head 25 that reads / writes data on the magnetic disk 19, and the magnetic head 25 in the radial direction of the magnetic disk 19 (track crossing). And an actuator (VCM) 22 that moves in the direction).
[0031]
As control units, an HDC (Hard Disk Controller) 12, a data buffer 14, an MCU (Micro Control Unit) 11, a memory 13, a DSP (Digital Signal Processor) 15, and a read / write circuit (LSI) 16 are provided. , A drive interface circuit 17, a head IC 18, a servo driver 23 including a spindle motor driver and a VCM driver, a drive transistor (FET) 21, and a servo demodulation circuit 24.
[0032]
The HDC 12 has an ATA interface control circuit for communicating with the host and a data buffer control circuit for controlling the data buffer 14. The read / write circuit 16 controls the format of recording data.
[0033]
The head IC 18 sends a recording current to the magnetic head 25 according to the recording data during writing, and amplifies the read signal from the magnetic head 25 during reading, and outputs a read signal (including servo information). The servo demodulation circuit 24 demodulates the servo information from the head IC 18 via the read / write circuit 16 and detects the position of the magnetic head 25.
[0034]
The spindle driver of the servo driver 23 rotationally drives the spindle motor 20 via the drive transistor 21. The VCM driver of the servo driver 23 drives the VCM 22 that moves the magnetic head 25.
[0035]
The DSP 15 servo-controls the VCM 22 according to the detection position from the servo demodulation circuit 24. The MCU 11 performs read / write control and retry control. The memory 13 stores tables and data necessary for the processing of the MCU 11. The drive interface circuit 17 performs an interface between a magnetic disk drive system and a processing system. The data / address bus 26 connects the MCU 11, the memory 13, the HDC 12 and the drive interface circuit 17. The drive interface circuit 17 is also connected to the DSP 15.
[0036]
The drive interface circuit 17 is connected to the servo driver 23, the head IC 18, the servo demodulation circuit 24, and the read / write circuit 16 through each of the serial interface lines 27A to 27D, and performs address / data exchange through the serial interface.
[0037]
In FIG. 1, the drive interface circuit 17 performs P / S conversion and S / P between the parallel data MCU 11 and DSP 15, the serial data servo driver 23, the head IC 18, the servo demodulation circuit 24, and the read / write circuit 16. Perform conversion.
[0038]
[Interface circuit]
Next, the drive interface circuit of FIG. 1 will be described. 2 is a configuration diagram of the drive interface circuit of FIG. 1, FIG. 3 is a configuration diagram of the serial sequencer of FIG. 2, and FIG. 4 is an explanatory diagram of an operation procedure of the serial sequencer of FIG.
[0039]
As shown in FIG. 2, the interface circuit 17 is connected to the MCU 11 and the like through a parallel bus 26, and is connected to the servo driver 23 through serial lines 50, 51, and 52. Here, the servo driver 23 is shown as a serially connected LSI chip, but the servo demodulator circuit 24, the read / write circuit 16, and the head IC 18 are the same as shown in FIG.
[0040]
The interface circuit 17 converts the parallel data of the MCU 11 into serial data, writes it to the servo driver 23, converts the serial data of the servo driver 23 into parallel data, and the MCU 11 reads.
[0041]
The interface circuit 17 includes a write register 30 for storing write data from the bus 26, a conversion register 31 for converting parallel data in the write register 30 into serial data, and a bidirectional driver 32 connected to the conversion register 31. The assembly register 33 assembles serial data of the bidirectional driver 32 into parallel data, and a read register 34 in which parallel data of the assembly register 33 is set.
[0042]
The interface circuit 17 further includes a clock driver 35 that outputs a serial clock to the serial clock line 51, an enable driver 36 that outputs an enable signal to the enable line 52, and a serial sequencer 40 that generates a serial output pattern. .
[0043]
As shown in FIG. 3, the serial sequencer 40 is set with a memory 42 having a 16-bit width, a clock selector 43 for selecting a read clock (base clock) of the memory 42, and a start address of the memory 42. A read control circuit 41 for generating a read address of the memory 42 and sequentially reading stored data (serial output sequence data) having a 16-bit width from the memory 42.
[0044]
As 16-bit width storage data of the memory 42, bit 9 is an enable bit indicating the enable signal high and low, bit 8 is a read ready bit for notifying the MCU 11 of the read data read timing, and bit 7 is sequence data. Sets the halt bit that indicates the output stop of.
[0045]
Also, bit 6 is a clock bit indicating high and low of the serial clock, bit 5 is a direction bit indicating the data direction of the address / data line 50 (input / output of the bidirectional driver 32), and bit 4 is read. A read bit indicating the read strobe of the register 34 is set. Further, the addresses of the registers 31 and 33 are set in the bits 3 to 0, and the bits F to A are not used.
[0046]
As shown in FIG. 2, the enable bit output of the memory 42 is sent to the enable driver 36, the read ready bit output is sent to the MCU 11, the halt bit output is sent to the read control circuit 41 shown in FIG. The direction bit output is supplied to the driver 35, the read bit output is supplied to the read register 34, and the address output is supplied to the registers 31 and 33.
[0047]
As shown in FIG. 4, in the memory 42, the serial output sequence W1 at the time of writing is stored in, for example, a 16-bit width area at addresses 0 to 47, and the serial output sequence R1 at the time of reading is stored at addresses 48 to 96. To store. Here, the serial output sequence W2 at the time of writing of another serial interface is stored in a 16-bit width area below address 97, and the serial output sequence R2 at the time of reading is stored at subsequent addresses.
[0048]
The operation of this configuration will be described with reference to FIG. After the serial output pattern is stored in the memory 42, a serial output request command is issued from the MCU 11 to the serial sequencer 40, for example. This instruction is the clock selection signal and the start address shown in FIG.
[0049]
The read control circuit 41 sets the start address in the address counter, and reads out the memory 42 using the address counter. The address counter counts the base clock, increments the memory address, and sequentially outputs a 16-bit serial pattern from the memory 42. The read control circuit 41 receives the halt bit of the memory 42 and stops the counting of the address counter when detecting the halt by the halt bit. As a result, the output of the serial pattern is stopped.
[0050]
Furthermore, it demonstrates concretely. FIG. 5 is a time chart of serial output at the time of writing, and FIG. 6 is a bit map of the serial sequence pattern of the memory 42 set for serial output of FIG.
[0051]
FIG. 5 shows the relationship between the base clock, the serial clock output to the serial line 51, the enable signal output to the enable line 52, and 16-bit serial write data. For this purpose, the lower 12 bits of the 16-bit serial output pattern are displayed in 4-bit quaternary display and the corresponding memory address is displayed. FIG. 6 is a binary display of the serial output pattern of each memory address.
[0052]
Here, it is assumed that “00” is designated as the start address, and the memory address of the memory 42 in FIG. 6 is sequentially incremented according to the base clock. Thereby, the serial output pattern data of the memory 42 in FIG. 6 is sequentially read from the address 00 downward in the figure.
[0053]
Here, first, the serial enable signal is set to high (EN = 1, invalid) for two base clocks, and then the serial enable signal is set to low (EN = 0, valid). Next, at the memory address “03”, the direction DIR is set to high (data output), the serial clock CLK is set to high, the data address is set to “f”, and the bit of the address f in the register 31 is output from the bidirectional driver 50. .
[0054]
Next, at the memory address “04”, the serial clock CLK is set to low, the data address is set to “f”, and the bit of the address f in the register 31 is output from the bidirectional driver 50.
[0055]
That is, a serial clock is generated, and in parallel with this, parallel data is converted into serial data and transmitted. In this example, it corresponds to the specification of the servo driver 23 that determines data at the falling edge of the serial clock.
[0056]
Thereafter, the data address is changed by repeating high / low of the serial clock. As a result, transmission of a predetermined number (16 bits) of serial data (8-bit address + 8-bit data) in the register 31 is performed up to the memory address “34”. Then, the serial clock is stopped at the memory addresses “35” and “36” (CLK = 0), and then the serial enable signal is invalidated (EN = 1, high level) from the memory address “37”.
[0057]
Thereafter, after generating two serial clocks for the serial output end sequence, the memory address increment is stopped by the halt (HLT = 1) of the memory address “47”, and the serial output is ended.
[0058]
Next, the read operation will be described. FIG. 7 is a time chart of serial output at the time of reading, and FIG. 8 is a bit map of the serial sequence pattern of the memory 42 set for serial output of FIG.
[0059]
FIG. 7 shows the relationship between the base clock, the serial clock output to the serial line 51, the enable signal output to the enable line 52, the 8-bit serial read address, and the 8-bit read data. For this purpose, the lower 12 bits of the 16-bit serial output pattern are displayed in 4-bit quaternary display and the corresponding memory address is displayed. FIG. 8 is a binary display of the serial output pattern of each memory address.
[0060]
Here, it is assumed that “48” is designated as the start address, and the memory address of the memory 42 in FIG. 8 is sequentially incremented according to the base clock. As a result, the serial output pattern data of the memory 42 in FIG. 8 is sequentially read from the address 48 downward in the figure.
[0061]
Here, first, the serial enable signal is set to high (EN = 1, invalid) for two base clocks, and then the serial enable signal is set to low (EN = 0, valid). Next, at the memory address “03”, the direction DIR is set to high (data output), the serial clock CLK is set to high, the data address is set to “f”, and the bit of the address f in the register 31 is output from the bidirectional driver 50. .
[0062]
Next, at the memory address “04”, the serial clock CLK is set to low, the data address is set to “f”, and the bit of the address f in the register 31 is output from the bidirectional driver 50.
[0063]
That is, a serial clock is generated, and in synchronization with this, 8-bit parallel data in the register 31 is converted into serial data and transmitted. In this example, it corresponds to the specification of the servo driver 23 that determines data at the falling edge of the serial clock.
[0064]
Thereafter, the data address is changed by repeating high / low of the serial clock. As a result, the predetermined number (8-bit address) of the register 31 is transmitted up to the memory address “67”.
[0065]
Next, at the memory address “68”, the direction DIR is set to low (data input), and the bidirectional register 50 is switched to input. Next, at the memory address “69”, the direction DIR is kept low, the serial clock CLK is high, the data address is “7”, and the serial data from the bidirectional driver 50 is set to the address “7” of the register 33. Output to.
[0066]
Next, at the memory address “70”, the serial clock CLK is set to low, the data address is set to “7”, and the serial data is stored from the bidirectional driver 50 to the address “7” of the register 33.
[0067]
That is, a serial clock is generated, and 8-bit serial data is stored in the register 33 in synchronization therewith. In this example, it corresponds to the specification of the servo driver 23 that determines data at the falling edge of the serial clock.
[0068]
Thereafter, the data address is changed by repeating high / low of the serial clock. As a result, a predetermined number (8-bit address) is sent to the register 33 up to the memory address “84”. Then, at the memory address “85”, the serial clock is stopped, the read strobe is set high (RR = 1), and the data of the 16-bit register 33 is set in the read register 34. Thereafter, the serial enable signal is invalidated (EN = 1, high level) from the memory address “86”.
[0069]
Thereafter, after generating two serial clocks for the serial output end sequence, the memory address increment is stopped by halting the memory address “96” (HLT = 1), and the serial output is ended.
[0070]
In this way, the serial output pattern that controls the serial enable, serial clock, and serial data timing required for the serial interface is expanded to a writable memory, the memory is incremented, and the serial output pattern is sequentially output to the serial interface. Controls the timing of serial enable, serial clock, and serial data required for data.
[0071]
For this reason, the serial output pattern can be easily changed, and the correction and debugging of the serial output pattern can be realized by changing the memory pattern. As a result, the development process of an electronic device using various LSI chips connected to the serial interface can be reduced, and the revision cost can be reduced.
[0072]
Further, different patterns can be set for writing and reading, and reading / writing can be performed with a serial interface suitable for the LSI chip to be connected. Further, since the base clock can be selected, the operation clock for serial output can be changed by making the base clock variable. That is, the interface speed can be easily changed.
[0073]
In addition, the ratio between the address part and the data part of the serial read output can be made variable by changing the direction DIR of the memory 42 and the read strobe RR. Further, the length (number of bits) of the serial output can be changed by changing the length of the data portion.
[0074]
[Other embodiments]
FIG. 9 is a configuration diagram of another embodiment of the present invention. In this example, the memory 42 of the serial sequencer 40 stores one type of write / read serial output pattern. On the other hand, the memory 11 of the MCU 11 stores a plurality of types of write / read serial output patterns.
[0075]
A setting board 60 is provided on the printed board on which the circuit of FIG. 1 is mounted, and the type is set according to the specifications of the mounted servo driver 23 and the like. The MCU 11 reads this setting pin 60, automatically recognizes the connected serial interface specification, reads the corresponding write / read serial output pattern from the memory 13, and loads it into the memory 42 of the serial sequencer 40.
[0076]
Thereby, the interface circuit 17 can automatically have a serial output pattern generation circuit of the serial interface specification of the LSI chip to be connected.
[0077]
In the above-described embodiment, the medium of the medium storage device has been described as a magnetic disk. However, the present invention can also be applied to an optical disk, a magneto-optical disk, and other storage media. Further, although the electronic device has been described with the hard disk control unit, it can be applied to other electronic devices such as other control units. Furthermore, the interface is not limited to ATA, and can be applied to other interfaces.
[0078]
As mentioned above, although this invention was demonstrated by embodiment, in the range of the meaning of this invention, this invention can be variously deformed, These are not excluded from the scope of the present invention.
[0079]
(Supplementary Note 1) In an interface circuit that outputs serial clock, serial enable, and serial data in synchronization, a register that stores the data, a clock driver that outputs the serial clock to a clock line, and the serial enable as an enable line An enable driver for outputting, a data driver for outputting the serial data to a data line, and a serial for storing the serial clock, the high / low bits of the serial enable, and the address of the register in successive memory addresses according to a serial output sequence The memory address of the pattern memory and the serial pattern memory is sequentially incremented, and the clock driver is driven by the high / low bits of the serial clock of the memory The drives said enable driver serial enable high / low bit, interface circuit and having a memory reading circuit for driving the register address of the register.
[0080]
(Supplementary note 2) The interface according to supplementary note 1, wherein the memory stores a halt bit indicating the end of the serial output sequence, and the reading circuit stops reading of the memory according to the halt bit. circuit.
[0081]
(Supplementary Note 3) A write serial pattern that defines the serial output sequence at the time of data write and a read serial pattern that defines the serial output sequence at the time of data read are stored, and the read circuit receives the given start address Accordingly, the interface circuit according to appendix 1, wherein the write serial pattern and the read serial pattern are selected and read sequentially.
[0082]
(Supplementary note 4) The interface circuit according to supplementary note 3, wherein the read serial pattern of the memory includes an input / output direction bit of the data driver and a read strobe bit of the read data.
[0083]
(Supplementary note 5) The interface circuit according to supplementary note 1, further comprising a clock selection circuit for selecting a base clock for sequentially incrementing the memory address.
[0084]
(Supplementary note 6) The interface circuit according to supplementary note 4, wherein the data driver further includes a read register configured by an input / output driver and assembling serial data from the data driver into parallel data.
[0085]
(Supplementary Note 7) In an electronic device that transfers data from an interface circuit to another circuit through a serial interface, the interface circuit includes a register that stores the data, a clock driver that outputs a serial clock to a clock line, and a serial enable The enable driver that outputs to the enable line, the data driver that outputs serial data to the data line, and the serial clock, the serial enable high / low bits, and the register address are stored in successive memory addresses according to the serial output sequence. Serial pattern memory and the memory address of the serial pattern memory are sequentially incremented, and the clock driver is activated by the high / low bits of the serial clock of the memory. Dynamic and, the drives said enable driver serial enable high / low bit, the electronic apparatus characterized by having a memory reading circuit for driving the register address of the register.
[0086]
(Supplementary note 8) The electronic device according to supplementary note 7, wherein the memory stores a halt bit indicating the end of the serial output sequence, and the reading circuit stops reading of the memory according to the halt bit. apparatus.
[0087]
(Supplementary Note 9) A write serial pattern that defines the serial output sequence at the time of data write and a read serial pattern that defines the serial output sequence at the time of data read are stored, and the read circuit receives the given start address Accordingly, the electronic device according to appendix 7, wherein the write serial pattern and the read serial pattern are selected and read sequentially.
[0088]
(Supplementary note 10) The electronic device according to supplementary note 9, wherein the read serial pattern of the memory includes an input / output direction bit of the data driver and a read strobe bit of the read data.
[0089]
(Supplementary note 11) The electronic device according to Supplementary note 7, further comprising a clock selection circuit for selecting a base clock for sequentially incrementing the memory address.
[0090]
(Supplementary note 12) The electronic device according to supplementary note 10, wherein the data driver further includes a read register configured by an input / output driver and assembling serial data from the data driver into parallel data.
[0091]
(Supplementary Note 13) In a medium storage device that reads at least data from a medium, the control unit, a drive circuit that drives a mechanism unit of the medium storage device, and a parallel interface of the control unit are connected to the drive circuit. And an interface circuit for outputting serial enable and serial data in synchronization, the interface circuit enabling a register for storing the data, a clock driver for outputting the serial clock to a clock line, and enabling the serial enable. An enable driver for outputting to the line; a data driver for outputting the serial data to the data line; and a serial output sequence, the serial clock and the serial enable high / low Serial pattern memory for storing the address of the register and the register, the memory address of the serial pattern memory are sequentially incremented, the clock driver is driven by the high / low bits of the serial clock of the memory, and the serial enable high / low And a memory read circuit for driving the enable driver with a low bit and driving the register with an address of the register.
[0092]
(Supplementary note 14) The medium according to supplementary note 13, wherein the memory stores a halt bit indicating the end of the serial output sequence, and the reading circuit stops reading of the memory according to the halt bit. Storage device.
[0093]
(Supplementary Note 15) A write serial pattern that defines the serial output sequence at the time of data write and a read serial pattern that defines the serial output sequence at the time of data read are stored, and the read circuit receives the given start address Accordingly, the medium storage device according to appendix 13, wherein the write serial pattern and the read serial pattern are selected and read sequentially.
[0094]
(Supplementary note 16) The medium storage device according to supplementary note 15, wherein the read serial pattern of the memory includes an input / output direction bit of the data driver and a read strobe bit of the read data.
[0095]
(Supplementary note 17) The medium storage device according to supplementary note 13, further comprising a clock selection circuit for selecting a base clock for sequentially incrementing the memory address.
[0096]
(Supplementary note 18) The medium storage device according to supplementary note 16, wherein the data driver is configured by an input / output driver and further includes a read register for assembling serial data from the data driver into parallel data.
[0097]
【The invention's effect】
As described above, in the present invention, a serial output pattern for controlling the timing of serial enable, serial clock, and serial data necessary for the serial interface is developed in a writable memory, the memory is incremented, and the serial output pattern is sequentially output. It controls the timing of serial enable, serial clock, and serial data required for the serial interface.
[0098]
For this reason, the serial output pattern can be easily changed, and the correction and debugging of the serial output pattern can be realized by changing the memory pattern. As a result, the development process of an electronic device using various LSI chips connected to the serial interface can be reduced, and the revision cost can be reduced.
[0099]
In addition, the development of a medium storage device having a drive interface for connecting a plurality of LSIs through a serial interface can be facilitated, and various LSIs can be specified, contributing to further cost reduction.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a medium storage device according to an embodiment of the present invention.
FIG. 2 is a configuration diagram of the drive interface circuit of FIG. 1;
FIG. 3 is a configuration diagram of the serial sequencer of FIG. 2;
4 is an operation explanatory diagram of the serial sequencer of FIG. 3;
5 is a time chart diagram of a write sequence of the drive interface circuit of FIG. 2. FIG.
6 is an explanatory diagram of a memory serial output pattern for the write sequence of FIG. 5;
7 is a time chart diagram of a read sequence of the drive interface circuit of FIG. 2; FIG.
8 is an explanatory diagram of a serial output pattern of the memory for the read sequence of FIG. 7;
FIG. 9 is a configuration diagram of another embodiment of the present invention.
FIG. 10 is a configuration diagram of a conventional serial interface circuit.
FIG. 11 is a time chart diagram of a conventional serial interface.
[Explanation of symbols]
8 Host
9 ATA interface
10 Medium storage device (magnetic disk device)
11 MCU (processing unit)
12 HDC
13 memory
14 Data buffer
15 DSP
16 Read / write LSI
17 Drive interface circuit
18 head IC
19 Medium (Magnetic Disk)
20 Spindle motor
22 Actuator (VCM)
23 Servo driver
24 Servo demodulation circuit
25 head (magnetic head)
26 Bus
27A-27D serial line
30, 31, 33, 34 registers
32 bidirectional driver
35, 36 output driver
40 Serial sequencer
41 Read control circuit
42 memory
43 Clock selector
50-52 serial line

Claims (7)

シリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路において、
各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、
前記シリアルクロックをクロックラインに出力するクロックドライバと、
前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、
シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、
シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、
前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、
前記シリアルパターンメモリは、他の電子回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記他の電子回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、
前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、
前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる
ことを特徴とするインタフェース回路。
In the interface circuit that outputs serial clock, serial enable and serial data synchronously,
Each read register connected to the bus, is connected to the write register, and a pair of registers for storing the parallel data,
A clock driver for outputting the serial clock to a clock line;
An enable driver for outputting the serial enable to an enable line;
A data driver connected to a serial data line, outputting the serial data to the serial data line, and receiving the serial data from the serial data line;
A serial pattern memory for storing the serial clock, the high / low bits of the serial enable and the address of the register in successive memory addresses according to a serial output sequence;
The memory address of the serial pattern memory is sequentially incremented, the clock driver is driven with the high / low bits of the serial clock of the memory, the enable driver is driven with the high / low bits of the serial enable, and the address of the register A memory read circuit for driving the register;
The serial pattern memory includes a write serial pattern that defines the serial output sequence when data is written to another electronic circuit, and a read serial pattern that defines the serial output sequence when data is read from the other electronic circuit. Store
The memory read circuit reads the write serial pattern at the time of the data write, and outputs the address to one register to which parallel data is written from the bus of the pair of registers. Parallel data written from the bus is converted into serial data, and the data driver outputs the data in synchronization with the serial clock and the serial enable.
At the time of data read, the read serial pattern is read and the address is output to the other of the pair of registers, and the other register receives the data driver in synchronization with the serial clock and the serial enable. The serial data is assembled into parallel data of the bus in the other register.
前記メモリは、前記シリアル出力シーケンスの終了を示すホルトビットを格納し、前記読出回路は、前記ホルトビットに応じて、前記メモリの読出しを停止する
ことを特徴とする請求項1のインタフェース回路。
The interface circuit according to claim 1, wherein the memory stores a halt bit indicating the end of the serial output sequence, and the reading circuit stops reading of the memory in accordance with the halt bit.
前記メモリ読出回路は、与えられた開始アドレスに応じて、前記シリアルパターンメモリから、前記ライトシリアルパターンと前記リードシリアルパターンのいずれかを選択し、順次読み出す
ことを特徴とする請求項1のインタフェース回路。
2. The interface circuit according to claim 1, wherein the memory read circuit selects one of the write serial pattern and the read serial pattern from the serial pattern memory according to a given start address, and sequentially reads the selected one. .
一の回路にバスで接続されたインタフェース回路からシリアルインタフェースで他の回路にデータを転送する電子装置において、
前記インタフェース回路は、
各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、
前記シリアルクロックをクロックラインに出力するクロックドライバと、
前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、
シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、
シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、
前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、
前記シリアルパターンメモリは、前記他の回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記他の回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、
前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、
前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる
ことを特徴とする電子装置。
In an electronic device for transferring data from an interface circuit connected to one circuit to another circuit via a serial interface,
The interface circuit is
Each read register connected to the bus, is connected to the write register, and a pair of registers for storing the parallel data,
A clock driver for outputting the serial clock to a clock line,
And enable a driver for outputting the serial enable the enable line,
A data driver connected to a serial data line, outputting the serial data to the serial data line, and receiving the serial data from the serial data line;
A serial pattern memory for storing the serial clock, the high / low bits of the serial enable and the address of the register in successive memory addresses according to a serial output sequence;
The memory address of the serial pattern memory is sequentially incremented, the clock driver is driven with the high / low bits of the serial clock of the memory, the enable driver is driven with the high / low bits of the serial enable, and the address of the register A memory read circuit for driving the register;
The serial pattern memory includes a write serial pattern that defines the serial output sequence when data is written to the other circuit, and a read serial pattern that defines the serial output sequence when data is read from the other circuit. Store and
The memory read circuit reads the write serial pattern at the time of the data write, and outputs the address to one register to which parallel data is written from the bus of the pair of registers. Parallel data written from the bus is converted into serial data, and the data driver outputs the data in synchronization with the serial clock and the serial enable.
At the time of data read, the read serial pattern is read and the address is output to the other of the pair of registers, and the other register receives the data driver in synchronization with the serial clock and the serial enable. The electronic data is assembled into parallel data of the bus in the other register.
媒体からデータを少なくとも読み出す媒体記憶装置において、
制御部と、
前記媒体記憶装置の機構部を駆動するドライブ回路と、
前記制御部のパラレルインタフェースに接続され、前記ドライブ回路に、シリアルクロック、シリアルイネーブル及びシリアルデータを同期して出力するインタフェース回路とを有し、
前記インタフェース回路は、
各々バスに接続されたリードレジスタ、ライトレジスタに接続され、パラレルデータを格納する一対のレジスタと、
前記シリアルクロックをクロックラインに出力するクロックドライバと、
前記シリアルイネーブルをイネーブルラインに出力するイネーブルドライバと、
シリアルデータラインに接続され、前記シリアルデータを前記シリアルデータラインに出力し、前記シリアルデータラインからの前記シリアルデータを受信するデータドライバと、
シリアル出力シーケンスに従い、連続するメモリアドレスに、前記シリアルクロック及び前記シリアルイネーブルのハイ/ロービット及び前記レジスタのアドレスを格納するシリアルパターンメモリと、
前記シリアルパターンメモリのメモリアドレスを順次インクリメントし、前記メモリの前記シリアルクロックのハイ/ロービットで前記クロックドライバを駆動し、前記シリアルイネーブルのハイ/ロービットで前記イネーブルドライバを駆動し、前記レジスタのアドレスで前記レジスタを駆動するメモリ読出回路とを有し、
前記シリアルパターンメモリは、前記ドライブ回路へのデータライト時の前記シリアル出力シーケンスを定義したライトシリアルパターンと、前記ドライブ回路からのデータリード時の前記シリアル出力シーケンスを定義したリードシリアルパターンとを格納し、
前記メモリ読出回路は、前記データライト時は、前記ライトシリアルパターンを読み出し、前記アドレスを前記一対のレジスタの前記バスからパラレルデータをライトされた一方のレジスタに出力し、前記一方のレジスタが、前記バスからライトされたパラレルデータを、シリアルデータに変換し、前記データドライバから、前記シリアルクロック、前記シリアルイネーブルに同期して、出力させ、
前記データリード時は、前記リードシリアルパターンを読み出し、前記アドレスを、前記一対のレジスタの他方に出力し、前記他方のレジスタが、前記シリアルクロック、前記シリアルイネーブルに同期して、前記データドライバが受信した前記シリアルデータを、前記他方のレジスタに、前記バスのパラレルデータに組み立てる
ことを特徴とする媒体記憶装置。
In a medium storage device that reads at least data from a medium,
A control unit;
A drive circuit for driving the mechanism of the medium storage device;
An interface circuit connected to a parallel interface of the control unit, and outputting to the drive circuit a serial clock, serial enable and serial data in synchronization;
The interface circuit is
Each read register connected to the bus, is connected to the write register, and a pair of registers for storing the parallel data,
A clock driver for outputting the serial clock to a clock line;
An enable driver for outputting the serial enable to an enable line;
A data driver connected to a serial data line, outputting the serial data to the serial data line, and receiving the serial data from the serial data line;
A serial pattern memory for storing the serial clock, the high / low bits of the serial enable and the address of the register in successive memory addresses according to a serial output sequence;
The memory address of the serial pattern memory is sequentially incremented, the clock driver is driven with the high / low bits of the serial clock of the memory, the enable driver is driven with the high / low bits of the serial enable, and the address of the register A memory read circuit for driving the register;
The serial pattern memory stores a write serial pattern that defines the serial output sequence when data is written to the drive circuit, and a read serial pattern that defines the serial output sequence when data is read from the drive circuit. ,
The memory read circuit reads the write serial pattern at the time of the data write, and outputs the address to one register to which parallel data is written from the bus of the pair of registers. Parallel data written from the bus is converted into serial data, and the data driver outputs the data in synchronization with the serial clock and the serial enable.
At the time of data read, the read serial pattern is read and the address is output to the other of the pair of registers, and the other register receives the data driver in synchronization with the serial clock and the serial enable. The serial data is assembled into the parallel data of the bus in the other register.
前記データドライバは、入出力ドライバで構成され、
前記メモリの前記リードシリアルパターンは、前記データドライバの入出力方向ビットを含む
ことを特徴とする請求項1のインタフェース回路。
The data driver is composed of an input / output driver,
The interface circuit according to claim 1, wherein the read serial pattern of the memory includes an input / output direction bit of the data driver.
前記メモリのメモリアドレスを順次インクリメントするベースクロックを選択するクロック選択回路を有し、
前記クロック選択回路は、動作要求に応じて、前記メモリをインクリメントするベースクロックを選択する
ことを特徴とする請求項1のインタフェース回路。
A clock selection circuit for selecting a base clock for sequentially incrementing a memory address of the memory;
The interface circuit according to claim 1, wherein the clock selection circuit selects a base clock for incrementing the memory in response to an operation request.
JP2003175710A 2003-06-20 2003-06-20 Interface circuit, electronic device, and medium storage device Expired - Fee Related JP4495924B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003175710A JP4495924B2 (en) 2003-06-20 2003-06-20 Interface circuit, electronic device, and medium storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003175710A JP4495924B2 (en) 2003-06-20 2003-06-20 Interface circuit, electronic device, and medium storage device

Publications (2)

Publication Number Publication Date
JP2005011129A JP2005011129A (en) 2005-01-13
JP4495924B2 true JP4495924B2 (en) 2010-07-07

Family

ID=34098771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003175710A Expired - Fee Related JP4495924B2 (en) 2003-06-20 2003-06-20 Interface circuit, electronic device, and medium storage device

Country Status (1)

Country Link
JP (1) JP4495924B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57141733A (en) * 1980-12-15 1982-09-02 Burroughs Corp Programmable timing pulse generator
JPS58208829A (en) * 1982-05-31 1983-12-05 Fuji Xerox Co Ltd Timing generating circuit
JPS599765A (en) * 1982-07-08 1984-01-19 Toshiba Corp Timing control circuit of auxiliary storage device
JPH09319457A (en) * 1996-05-28 1997-12-12 Saitama Nippon Denki Kk Timing signal generation circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57141733A (en) * 1980-12-15 1982-09-02 Burroughs Corp Programmable timing pulse generator
JPS58208829A (en) * 1982-05-31 1983-12-05 Fuji Xerox Co Ltd Timing generating circuit
JPS599765A (en) * 1982-07-08 1984-01-19 Toshiba Corp Timing control circuit of auxiliary storage device
JPH09319457A (en) * 1996-05-28 1997-12-12 Saitama Nippon Denki Kk Timing signal generation circuit

Also Published As

Publication number Publication date
JP2005011129A (en) 2005-01-13

Similar Documents

Publication Publication Date Title
US6633933B1 (en) Controller for ATAPI mode operation and ATAPI driven universal serial bus mode operation and methods for making the same
CN102411480B (en) There is the mixing storage system of the solid-state memory being embedded with control module
JP5188134B2 (en) Memory access control device and memory access control method
JP3042790B2 (en) Magnetic disk drive and data write / read control method therefor
US7587550B2 (en) Functional test method and functional test apparatus for data storage devices
KR100212084B1 (en) Serial interface circuit
JP2006127300A (en) Method for communication between host and storage device, storage device, host, and system having storage device and host
JPH0514351B2 (en)
JP4010718B2 (en) Data transfer method
JP4495924B2 (en) Interface circuit, electronic device, and medium storage device
US20030217218A1 (en) Interface for devices having different data bus widths and data transfer method using the interface
US5410554A (en) Optical disk apparatus
KR100274742B1 (en) Initiating method for copying hard-disk drive and copying apparatus thereof
KR100208379B1 (en) The reed-back driving circuit of a serial interface
CN110164394B (en) Time sequence controller and time sequence control board
JPH07200192A (en) Optical disk device
US7236318B2 (en) Built in full speed nonreturn to zero test method and apparatus for a data storage device controller
JP2007011659A (en) Interface device, disk drive, and interface control method
JPH11167548A (en) Data transmission system
US20060224788A1 (en) Data processing system, data processing method, computer-readable storage medium, and disk drive
JP2001101787A (en) Disk drive device, disk drive controller and control method for disk device
JP6909079B2 (en) Recording device and recording method
JP2570986B2 (en) Data transfer control device and method
JPS6070549A (en) Control device of floppy disc
JP3926515B2 (en) Electronics

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060525

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20091022

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091104

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20091202

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100316

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100412

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees