JP2004259095A - Drive unit adopting ata/atapi standard and connecting method for it - Google Patents

Drive unit adopting ata/atapi standard and connecting method for it Download PDF

Info

Publication number
JP2004259095A
JP2004259095A JP2003050481A JP2003050481A JP2004259095A JP 2004259095 A JP2004259095 A JP 2004259095A JP 2003050481 A JP2003050481 A JP 2003050481A JP 2003050481 A JP2003050481 A JP 2003050481A JP 2004259095 A JP2004259095 A JP 2004259095A
Authority
JP
Japan
Prior art keywords
response
shadow
ata
standard
slave
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
JP2003050481A
Other languages
Japanese (ja)
Inventor
Shogo Aota
正吾 青田
Akira Kikuchi
亮 菊池
Eijiro Tazawa
英二郎 田澤
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.)
Hitachi LG Data Storage Inc
Original Assignee
Hitachi LG Data Storage Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi LG Data Storage Inc filed Critical Hitachi LG Data Storage Inc
Priority to JP2003050481A priority Critical patent/JP2004259095A/en
Publication of JP2004259095A publication Critical patent/JP2004259095A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a drive unit adopting ATA/ATAPI standard, avoiding lengthening of starting caused when a host and a master do not conform in shadow response standard. <P>SOLUTION: When a relevant drive unit 5 is connected as a master to the host 1 and a drive unit as a slave is not connected, according to the shadow response standard of ATA/ATAPI standard, the relevant drive unit performs shadow response with the host 1 to confirm the absence of the slave, stores nonconformity information that the shadow response is nonconformity when the shadow response to the host 1 is repeated above a designated number of times in a data file 17 of a memory 16, and changes the value of a slave register to be set for shadow response when nonconformity information is stored in the data file 17 in starting to another value. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、パーソナルコンピュータにおいて、そのホストにハードディスク装置やCD装置或いはDVD装置等のドライブ装置を標準規格であるATA/ATAPIによるインタフェースを用いて接続する技術に関する。
【0002】
【従来の技術】
パーソナルコンピュータ(以下「パソコン」という)は、CPU(中央処理装置)やBIOS(Basic Input/Output System)等からなる上位装置即ちホストと周辺装置とからなる。周辺装置の内のハードディスク装置やCD(Compact Disc)装置或いはDVD(Digital Versatile Disc)装置等のドライブ装置は、通常、標準規格であるATA/ATAPIに基づくインタフェースによってホストに接続される(例えば非特許文献1参照)。ATA(AT Attachment)規格はハードディスク装置を対象にし、ATAPI(ATA Packet Interface)規格は、CD装置やDVD装置を対象にしている。
【0003】
ATA/ATAPIインタフェースには、プライマリとセカンダリがあり、プライマリとセカンダリのそれぞれに図4に示すように、マスタ2とスレーブ3が用意され、バス線4を介してマスタ2のドライブ装置とスレーブ3のドライブ装置がホスト1へ接続される。
【0004】
ATA/ATAPIインタフェースに接続されたドライブ装置は、パソコンの起動時にホストによってそれらの接続が確認される。この接続の確認は、BIOSの動作の段階で行なわれる。そして通常は、プライマリのマスタ→同スレーブ→セカンダリのマスタ→同スレーブの順で接続の確認が行われる。各ドライブ装置はそれぞれ、ホストからのATA/ATAPIコマンドに対して応答を返し、ホストはこの応答により接続を確認する。
【0005】
図5に示すように、ドライブ装置5は、ディスクの駆動装置、信号の記録再生のためのヘッドやピックアップ及びその駆動装置等からなる本体6に加えて、これら装置の制御や信号の入出力及びインタフェース等を行なうコントローラ7を有している。コントローラ7は、マイクロコンピュータ(MC)8やDSP(ディジタル信号処理回路)9等を搭載した回路基板によって構成される。ドライブ装置5は、バス線4を介してホスト1に接続される。
【0006】
上記の応答は、DSP9が有するマスタ用レジスタ(RG)10及びスレーブ用レジスタ(RG)11を用いて行なわれる。レジスタ10,11は、それぞれATA/ATAPI規格で定められたタスクファイルとなるもので、図6に示すように、8ビット構成のSTATUSレジスタ12及びERRORレジスタ13とその他の幾つかのレジスタからなる。STATUSレジスタ12及びERRORレジスタ13にはATA/ATAPI規格で定められた値が設定されており、マスタ2は、ATA/ATAPIコマンドがあったときにレジスタ12,13をホスト1に返す。具体的には、マスタ2のDSP9は、ホスト1がレジスタ12,13の値を読める状態にする。ホスト1は、その値を読み取り、読み取った値と自分が持っているドライブ装置の規格値とを照合し、一致していれば、ATA/ATAPIコマンドがドライブ装置にて処理されたと判断し、コマンドの応答の内容から接続があると認識する。
【0007】
いま、図7に示すように、マスタ2は接続されているがスレーブの接続がない場合、スレーブに対するATA/ATAPIコマンド14があったときにマスタ2はスレーブに代わってスレーブ用レジスタ11のSTATUSレジスタ12、ERRORレジスタ13をホスト1に返し、応答15とする。ホスト1はその値を読み取り、読み取った値と自分が持っている規格値とを照合し、一致していれば、ATA/ATAPIコマンドがドライブ装置にて処理されたと判断し、コマンドの応答の内容から接続がないと認識する。スレーブ用レジスタ11の値は、マスタ用とは異なっており、ATA/ATAPI規格の中で Single Device Configuration規格(以下「シャドウ応答規格」という)として定められている。従って、スレーブ用レジスタ11の値は、シャドウ応答規格の応答値として定義することができる。
【0008】
さて、ATA/ATAPI規格は、規格改訂の多くの変遷があり、ATA−1から始まって、ATA/ATAPI−6に至っている。シャドウ応答規格は、図8に示すように、first method、second method又は表記は無いがfirst methodと内容が同じもののいずれかであるが、いずれであるかは規格によってまちまちであり、定まっていない。
【0009】
ところで、ホスト1とマスタ2とが必ずしも最新のシャドウ応答規格を採用しているとは限らず、また、ホスト1とマスタ2とが同じシャドウ応答規格を採用しているとは限らない。規格が一致しない場合は、ATA/ATAPIコマンドがドライブ装置にて処理されたかどうか判断がつかず、ホスト1は繰り返し接続確認の処理を行ない、相当の時間が経ってから接続がないと仮定して確認を終了する。そのために起動時間が長くなる。
【0010】
【非特許文献1】
ANSI(米国規格協会)発行 Information Technology AT Attachment with Packet Interface 5 (ATA/ATAPI−5), T13 1321D Revision 3
【0011】
【発明が解決しようとする課題】
ホスト1とマスタ2とでシャドウ応答規格が一致しない場合に起こる起動の長時間化は、起動の度に起こり、パソコンの利便性を著しく損ねることとなる。
【0012】
本発明の目的は、ホストとマスタでシャドウ応答規格が一致しない場合に起こる起動の長時間化を回避可能なATA/ATAPI規格採用のドライブ装置を提供することにある。
【0013】
【課題を解決するための手段】
上記目的を達成するための本発明のドライブ装置は、ATA/ATAPI規格に基づいて上位装置に接続され、更に、自ドライブ装置がマスタとして接続されているがスレーブとなるドライブ装置が接続されていない場合に、ATA/ATAPI規格が有するシャドウ応答規格に基づいて、スレーブが不在であることを確認するためのシャドウ応答を上位装置との間で行なうドライブ装置であって、上位装置との間でのシャドウ応答が所定の回数を超えて繰り返された場合にシャドウ応答が不一致であるとしてその不一致情報を記憶するメモリと、起動時に該メモリに不一致情報が記憶されている場合にシャドウ応答のために設定する応答値を別の値に変更する信号処理回路とを備えていることを特徴とする。
【0014】
ドライブ装置がパソコンに装填されてから初めて起動が行なわれる場合に、シャドウ応答が不一致であれば不一致情報がメモリに記憶され、次回の起動では変更した応答値で、即ち二種類の内の一致する方の値が採用されてシャドウ応答が行なわれるので、次回からはシャドウ応答の不一致が解消され、早い起動を得ることができる。
【0015】
【発明の実施の形態】
以下、本発明に係るATA/ATAPI規格採用のドライブ装置を図面に示した発明の実施の形態を参照して更に詳細に説明する。
【0016】
図1において、5は、本発明のドライブ装置、6は、ディスクの駆動装置、信号の記録再生のためのヘッドやピックアップ及びその駆動装置等(図示を省略する)からなる、ドライブ装置5の本体、7は、本体6の各装置の制御や信号の入出力及びインタフェース等を行なうコントローラ、8は、コントローラ7の全体を制御するマイクロコンピュータ(MC)、9は、マイクロコンピュータ8の制御の基にホスト1への応答を行なうDSP(ディジタル信号処理回路)、10,11は、DSP9が有するそれぞれマスタ用のレジスタ(RG)、スレーブ用のレジスタ、16は、DSP9が応答を行なう際に用いるメモリ、17,18は、メモリ16に構成される、それぞれデータファイル(DF)及びプログラムファイル(PF)を示す。メモリ16には、書き換え可能な不揮発性メモリ、例えばEEPROM(Electrical Erasable Read Only Memory)やフラッシュROM等が用いられる。
【0017】
レジスタ10,11は、それぞれATA/ATAPI規格で定められたタスクファイルとなるもので、図6に示すように、8ビット構成のSTATUSレジスタ12及びERRORレジスタ13とその他の幾つかのレジスタからなる。STATUSレジスタ12及びERRORレジスタ13にはATA/ATAPI規格で定められた値が応答値として設定されており、スレーブ用レジスタ11には、ドライブ装置5が採用するATA/ATAPI規格のバージョンに従って、図8に示す内容的に二種類のいずれかが設定される。
【0018】
データファイル17には、後で述べるシャドウ応答の情報と図8に示す内容的に二種類の双方のSTATUSレジスタ12及びERRORレジスタ13の値が格納される。また、プログラムファイル17には、DSP9が実行する本発明による応答の手順がシャドウ応答処理プログラムとして格納される。
【0019】
続いて、マスタとなったドライブ装置5のDSP9がプログラムファイル17に格納されているシャドウ応答処理プログラムに従って行なうシャドウ応答の処理を説明する。処理は、シャドウ応答不一致の検知処理と初期化処理とによって構成される。
【0020】
シャドウ応答不一致の検知処理のフローチャートを図2に示す。シャドウ応答の不一致の検知処理が開始されると、ステップS1で、ホスト1からのATA/ATAPIコマンドから、スレーブが選択されたか否かを判断する。ATA/ATAPI規格上、ホスト1からのATA/ATAPIコマンドがスレーブ対象であるか否かを知ることができる。スレーブが選択されていればステップS2に、選択されていなければステップS6に進む。ステップS2で、スレーブが選択されていればスレーブ用レジスタ11のSTATUSレジスタ12をホスト1に返しているので、ホスト1がその値を読み出したか否かを確認する。ホスト1により読み出しが行なわれていればステップS3に、読み出しが行なわれていなければステップS6に進む。ステップS3で、DSP9が有するカウンタに1を加える。続いて、ステップS4で、カウンタが一定値を超えていればステップS5に、一定値を超えていなければステップS1に戻る。処理はカウンタが一定値を超えるまで繰り返される。
【0021】
この一定値は、シャドウ応答の不一致を確実に確認することができ、かつ不一致によるホスト1のSTATUSレジスタ12の読み出し繰返し回数よりも少ない値であり、例えば100程度である。なお、不一致のときのホスト1による読み出しの繰返しは、通常数千回に達する。ステップS5で、シャドウ応答が不一致であることをシャドウ応答の情報としてデータファイル17に記録する。このとき、不一致となったスレーブ用レジスタ11の値が first method 又は second method のどちらであったかもシャドウ応答の情報として記録しておく。続いて、ステップS6では、カウンタを初期化し、不一致検知処理を終了する。
【0022】
次に、初期化処理のフローチャートを図3に示す。電源投入直後の起動の開始時には、スレーブ用レジスタ11は空白であり(他のすべてのレジスタも同様である)、初期化処理によりここに値が設定される。
【0023】
まず、ステップS11で、ドライブ装置5自身がマスタとして接続されており、スレーブにはドライブ装置が無いことを確かめる。この確認は、ATA規格に基づいて行なわれる。確認されればステップS12に進み、確認されなければ処理を終了する。ステップS12で、データファイル17にシャドウ応答の情報が記録されているかを調べる。記録があればステップS13に進み、記録が無ければステップS14に進む。
【0024】
ステップS13で、データファイル17にはシャドウ応答が不一致となったスレーブ用レジスタ11の値がどちらであったかがシャドウ応答の情報として記録されているので、その情報を基に別の方のレジスタ値をデータファイル17から読み出してスレーブ用レジスタ11に設定する。即ち、シャドウ応答を設定する。ステップS14では、コントローラ7がデフォルトとして予め決めてある方の値をデータファイル17から読み出してスレーブ用レジスタ11に設定し、シャドウ応答を設定する。ステップS13,S14によりシャドウ応答が設定されたので初期化処理を終了する。
【0025】
説明の便宜上、シャドウ応答不一致の検知処理を先に、初期化処理を後に説明したが、実際の動作は、初期化処理が先に行なわれる。そして、過去に一度不一致があれば、次からはシャドウ応答の一致する値がスレーブ用レジスタ11に設定されることになる。この不一致の検知が図2に示した検知処理によって行なわれる。
【0026】
従って、本実施形態により、シャドウ応答の不一致によるホスト1によるレジスタ11の読み出しの繰返しは、最初の一回の起動に留まり、以降からは繰返しが回避される。
【0027】
【発明の効果】
本発明によれば、シャドウ応答の一致する値がスレーブ用レジスタに自動的に設定されるので、ホストとマスタでシャドウ応答規格が一致しない場合に起こる起動の長時間化を回避可能なドライブ装置を実現することができる。
【図面の簡単な説明】
【図1】本発明に係るATA/ATAPI規格採用のドライブ装置の発明の実施の形態を説明するための構成図。
【図2】本発明のドライブ装置が実行するシャドウ応答不一致の検知処理を説明するためのフローチャート。
【図3】本発明のドライブ装置が実行する初期化処理を説明するためのフローチャート。
【図4】ATA/ATAPI規格に基づく装置構成を説明するための構成図。
【図5】従来のドライブ装置を説明するための構成図。
【図6】マスタ用及びスレーブ用レジスタの構成を説明するための図。
【図7】スレーブが接続されない場合の装置構成を説明するための構成図。
【図8】ATA/ATAPI規格によるスレーブ用レジスタの値を説明するための図。
【符号の説明】
1…ホスト、2…マスタ、3…スレーブ、4…バス線、5…ドライブ装置、6…ドライブ装置本体、7…コントローラ、8…マイクロコンピュータ、9…ディジタル信号処理回路(DSP)、10…マスタ用レジスタ、11…スレーブ用レジスタ、12…STATUSレジスタ、13…ERRORレジスタ、16…メモリ、17…データファイル、18…プログラムファイル。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technology for connecting a drive device such as a hard disk device, a CD device or a DVD device to a host of a personal computer using an interface based on ATA / ATAPI which is a standard.
[0002]
[Prior art]
A personal computer (hereinafter, referred to as a "personal computer") includes a host device and a peripheral device, such as a CPU (central processing unit) and a BIOS (Basic Input / Output System). A drive device such as a hard disk device, a CD (Compact Disc) device or a DVD (Digital Versatile Disc) device among the peripheral devices is usually connected to the host by an interface based on ATA / ATAPI which is a standard (for example, non-patented). Reference 1). The ATA (AT Attachment) standard targets hard disk devices, and the ATAPI (ATA Packet Interface) standard targets CD devices and DVD devices.
[0003]
The ATA / ATAPI interface includes a primary and a secondary. As shown in FIG. 4, a master 2 and a slave 3 are prepared for each of the primary and secondary, and a drive device of the master 2 and a slave 3 are connected via a bus line 4. The drive device is connected to the host 1.
[0004]
The connection of the drive devices connected to the ATA / ATAPI interface is confirmed by the host when the personal computer is started. Confirmation of this connection is performed during the operation of the BIOS. Usually, the connection is confirmed in the order of primary master → slave → secondary master → slave. Each drive device returns a response to the ATA / ATAPI command from the host, and the host confirms the connection based on the response.
[0005]
As shown in FIG. 5, the drive device 5 includes a disk drive device, a head 6 for recording and reproducing signals and a main body 6 including a drive device thereof, etc., as well as control of these devices and input / output of signals. It has a controller 7 that performs an interface and the like. The controller 7 is configured by a circuit board on which a microcomputer (MC) 8, a DSP (digital signal processing circuit) 9, and the like are mounted. The drive device 5 is connected to the host 1 via the bus line 4.
[0006]
The above response is performed using the master register (RG) 10 and the slave register (RG) 11 of the DSP 9. Each of the registers 10 and 11 is a task file defined by the ATA / ATAPI standard. As shown in FIG. 6, the registers 10 and 11 are composed of an 8-bit STATUS register 12, an ERROR register 13, and some other registers. Values defined by the ATA / ATAPI standard are set in the STATUS register 12 and the ERROR register 13, and the master 2 returns the registers 12 and 13 to the host 1 when an ATA / ATAPI command is issued. Specifically, the DSP 9 of the master 2 sets the host 1 in a state where the values of the registers 12 and 13 can be read. The host 1 reads the value, compares the read value with the standard value of the drive device that the host 1 has, and if the values match, determines that the ATA / ATAPI command has been processed by the drive device, and It recognizes that there is a connection from the contents of the response.
[0007]
Now, as shown in FIG. 7, when the master 2 is connected but the slave is not connected, when the ATA / ATAPI command 14 for the slave is issued, the master 2 replaces the slave and the STATUS register of the slave register 11. 12, the ERROR register 13 is returned to the host 1, and the response 15 is set. The host 1 reads the value, compares the read value with its own standard value, and if the values match, determines that the ATA / ATAPI command has been processed by the drive device, and the content of the command response. Recognizes that there is no connection. The value of the slave register 11 is different from that of the master register, and is defined in the ATA / ATAPI standard as the Single Device Configuration standard (hereinafter referred to as “shadow response standard”). Therefore, the value of the slave register 11 can be defined as a response value of the shadow response standard.
[0008]
Now, the ATA / ATAPI standard has undergone many changes in the standard revision, starting with ATA-1 and reaching ATA / ATAPI-6. As shown in FIG. 8, the shadow response standard does not have a first method, a second method, or a notation, but has the same content as the first method. However, which one is different depending on the standard and is not determined.
[0009]
By the way, the host 1 and the master 2 do not always adopt the latest shadow response standard, and the host 1 and the master 2 do not always adopt the same shadow response standard. If the standards do not match, it cannot be determined whether or not the ATA / ATAPI command has been processed by the drive device, and the host 1 repeatedly performs a connection confirmation process, assuming that there is no connection after a considerable time. Finish checking. Therefore, the start-up time becomes longer.
[0010]
[Non-patent document 1]
ANSI (American National Standards Institute) Information Technology AT Attachment with Packet Interface 5 (ATA / ATAPI-5), T13 1321D Revision 3
[0011]
[Problems to be solved by the invention]
The prolonged startup that occurs when the shadow response standards do not match between the host 1 and the master 2 occurs every time the host 1 starts, and significantly degrades the convenience of the personal computer.
[0012]
An object of the present invention is to provide a drive device adopting the ATA / ATAPI standard, which can avoid a long startup time when the shadow response standard does not match between the host and the master.
[0013]
[Means for Solving the Problems]
A drive device of the present invention for achieving the above object is connected to a higher-level device based on the ATA / ATAPI standard, and further has its own drive device connected as a master, but not a slave drive device. In this case, based on the shadow response standard of the ATA / ATAPI standard, the drive device performs a shadow response for confirming that the slave is absent with the higher-level device. A memory for storing mismatch information when the shadow response is repeated more than a predetermined number of times as a shadow response is determined to be mismatched, and a setting for the shadow response when the mismatch information is stored in the memory at startup. And a signal processing circuit for changing the response value to be changed to another value.
[0014]
When the drive is started for the first time after being loaded into the personal computer, if the shadow responses do not match, mismatch information is stored in the memory, and the next time the drive is started, the changed response value is used, that is, the two types match. Since the shadow response is performed by adopting this value, the inconsistency of the shadow response is resolved from the next time, and a quick start can be obtained.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a drive device adopting the ATA / ATAPI standard according to the present invention will be described in more detail with reference to embodiments of the present invention shown in the drawings.
[0016]
In FIG. 1, reference numeral 5 denotes a drive device of the present invention, and reference numeral 6 denotes a main body of the drive device 5 including a disk drive device, a head and pickup for recording and reproducing signals, and a drive device thereof (not shown). , 7 are controllers for controlling each device of the main body 6 and inputting / outputting and interfacing signals, 8 are microcomputers (MC) for controlling the entire controller 7, and 9 are based on the control of the microcomputer 8. DSPs (digital signal processing circuits) 10 and 11 for responding to the host 1 are master registers (RG) and slave registers of the DSP 9, respectively. 16 is a memory used when the DSP 9 responds. Reference numerals 17 and 18 denote a data file (DF) and a program file (PF), respectively, configured in the memory 16. As the memory 16, a rewritable nonvolatile memory, for example, an EEPROM (Electrical Erasable Read Only Memory) or a flash ROM is used.
[0017]
Each of the registers 10 and 11 is a task file defined by the ATA / ATAPI standard. As shown in FIG. 6, the registers 10 and 11 are composed of an 8-bit STATUS register 12, an ERROR register 13, and some other registers. In the STATUS register 12 and the ERROR register 13, a value defined by the ATA / ATAPI standard is set as a response value, and in the slave register 11, according to the version of the ATA / ATAPI standard adopted by the drive device 5, FIG. One of two types is set as the content shown in FIG.
[0018]
The data file 17 stores information of a shadow response to be described later and the values of the STATUS register 12 and the ERROR register 13 of the two types of contents shown in FIG. In the program file 17, a response procedure according to the present invention executed by the DSP 9 is stored as a shadow response processing program.
[0019]
Next, a description will be given of shadow response processing performed by the DSP 9 of the master drive device 5 in accordance with the shadow response processing program stored in the program file 17. The process includes a shadow response mismatch detection process and an initialization process.
[0020]
FIG. 2 shows a flowchart of the shadow response mismatch detection process. When the shadow response mismatch detection process is started, it is determined in step S1 whether or not a slave has been selected from an ATA / ATAPI command from the host 1. According to the ATA / ATAPI standard, it is possible to know whether or not an ATA / ATAPI command from the host 1 is a slave target. If a slave has been selected, the process proceeds to step S2, and if not, the process proceeds to step S6. In step S2, if the slave has been selected, the STATUS register 12 of the slave register 11 has been returned to the host 1. Therefore, it is confirmed whether the host 1 has read the value. If the reading has been performed by the host 1, the process proceeds to step S3. If the reading has not been performed, the process proceeds to step S6. In step S3, 1 is added to the counter of the DSP 9. Subsequently, in step S4, if the counter exceeds a certain value, the process returns to step S5, and if not, the process returns to step S1. The process is repeated until the counter exceeds a certain value.
[0021]
This constant value is a value that can surely confirm the mismatch of the shadow response and is smaller than the number of repetitions of reading the STATUS register 12 of the host 1 due to the mismatch, for example, about 100. Note that the number of repetitions of reading by the host 1 when there is a mismatch usually reaches several thousand times. In step S5, the fact that the shadow responses do not match is recorded in the data file 17 as shadow response information. At this time, whether the value of the mismatched slave register 11 is the first method or the second method is also recorded as information of the shadow response. Subsequently, in step S6, the counter is initialized, and the mismatch detection processing ends.
[0022]
Next, a flowchart of the initialization process is shown in FIG. At the start of startup immediately after power-on, the slave register 11 is blank (the same applies to all other registers), and a value is set here by initialization processing.
[0023]
First, in step S11, it is confirmed that the drive device 5 itself is connected as a master, and there is no drive device in the slave. This confirmation is performed based on the ATA standard. If confirmed, the process proceeds to step S12, and if not confirmed, the process ends. In step S12, it is checked whether or not shadow response information is recorded in the data file 17. If there is a record, the process proceeds to step S13; otherwise, the process proceeds to step S14.
[0024]
In step S13, since the data file 17 records the value of the slave register 11 in which the shadow response did not match as information of the shadow response, another register value is stored based on the information. The data is read from the data file 17 and set in the slave register 11. That is, a shadow response is set. In step S14, the controller 7 reads the value determined in advance as a default from the data file 17, sets the value in the slave register 11, and sets the shadow response. Since the shadow response has been set in steps S13 and S14, the initialization processing ends.
[0025]
For convenience of explanation, the processing for detecting the mismatch of the shadow response has been described first, and the initialization processing has been described later. However, in the actual operation, the initialization processing is performed first. If there is a mismatch once in the past, the matching value of the shadow response is set in the slave register 11 from the next time. This mismatch is detected by the detection process shown in FIG.
[0026]
Therefore, according to the present embodiment, the repetition of the reading of the register 11 by the host 1 due to the mismatch of the shadow response is limited to the first activation, and the repetition is prevented thereafter.
[0027]
【The invention's effect】
According to the present invention, a value that matches the shadow response is automatically set in the register for the slave. Therefore, a drive device that can avoid a long startup time when the shadow response standard does not match between the host and the master can be avoided. Can be realized.
[Brief description of the drawings]
FIG. 1 is a configuration diagram for explaining an embodiment of a drive device adopting an ATA / ATAPI standard according to the present invention;
FIG. 2 is a flowchart for explaining shadow response mismatch detection processing executed by the drive device of the present invention.
FIG. 3 is a flowchart illustrating an initialization process executed by the drive device of the present invention.
FIG. 4 is a configuration diagram for explaining a device configuration based on the ATA / ATAPI standard.
FIG. 5 is a configuration diagram for explaining a conventional drive device.
FIG. 6 is a diagram illustrating a configuration of a master register and a slave register.
FIG. 7 is a configuration diagram for explaining a device configuration when a slave is not connected.
FIG. 8 is a view for explaining values of slave registers according to the ATA / ATAPI standard.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Host, 2 ... Master, 3 ... Slave, 4 ... Bus line, 5 ... Drive device, 6 ... Drive device body, 7 ... Controller, 8 ... Microcomputer, 9 ... Digital signal processing circuit (DSP), 10 ... Master Registers, 11: slave registers, 12: STATUS register, 13: ERROR register, 16: memory, 17: data file, 18: program file.

Claims (4)

ATA/ATAPI規格に基づいて上位装置に接続され、更に、自ドライブ装置がマスタとして接続されているがスレーブとなるドライブ装置が接続されていない場合に、上記ATA/ATAPI規格が有する Single Device Configuration 規格(以下「シャドウ応答規格」という)に基づいて、スレーブが不在であることを確認するためのシャドウ応答を該上位装置との間で行なうドライブ装置であって、
該上位装置との間でのシャドウ応答が所定の回数を超えて繰り返された場合にシャドウ応答が不一致であるとしてその不一致情報を記憶するメモリと、起動時に該メモリに不一致情報が記憶されている場合にシャドウ応答のために設定する応答値を別の値に変更する信号処理回路とを備えていることを特徴とするドライブ装置。
When the drive is connected to a higher-level device based on the ATA / ATAPI standard and the own drive device is connected as a master but the slave drive device is not connected, the Single Device Configuration standard of the ATA / ATAPI standard is used. (Hereinafter referred to as "shadow response standard"), a drive device for performing a shadow response with the higher-level device for confirming that the slave is absent,
When the shadow response with the higher-level device is repeated more than a predetermined number of times, it is determined that the shadow response is mismatched, and the mismatch information is stored in the memory, and the mismatch information is stored in the memory at startup. And a signal processing circuit for changing a response value set for a shadow response to another value.
上記上位装置との間のシャドウ応答の回数を計数するカウンタと、上記応答値が設定されるレジスタとを有していることを特徴とする請求項1に記載のドライブ装置。2. The drive device according to claim 1, further comprising a counter for counting the number of shadow responses with the host device, and a register in which the response value is set. ドライブ装置がATA/ATAPI規格に基づいて上位装置にマスタとして接続されているが、スレーブとなるドライブ装置が接続されていない場合に上記ATA/ATAPI規格が有するシャドウ応答規格に基づいて、スレーブが不在であることを確認するために該上位装置との間で行なうシャドウ応答の方法であって、
該上位装置との間でのシャドウ応答が所定の回数を超えて繰り返された場合にシャドウ応答が不一致であるとしてその不一致情報をメモリに記憶し、起動時に該メモリに不一致情報が記憶されている場合にシャドウ応答のために設定する応答値を別の値に変更することを特徴とするドライブ装置のシャドウ応答方法。
If the drive device is connected as a master to the host device based on the ATA / ATAPI standard, but the drive device to be the slave is not connected, the slave is absent based on the shadow response standard of the ATA / ATAPI standard. A shadow response method performed between the host device and the host device to confirm that
If the shadow response with the higher-level device is repeated more than a predetermined number of times, it is determined that the shadow response does not match, and the mismatch information is stored in the memory, and the mismatch information is stored in the memory at startup. And changing a response value set for the shadow response to another value in the case.
上記不一致情報をメモリに記憶してから、上記上位装置との間のシャドウ応答の回数を計数するカウンタを初期化することを特徴とする請求項3に記載のドライブ装置のシャドウ応答方法。4. The shadow response method according to claim 3, wherein a counter for counting the number of times of the shadow response with the higher-level device is initialized after storing the mismatch information in a memory.
JP2003050481A 2003-02-27 2003-02-27 Drive unit adopting ata/atapi standard and connecting method for it Pending JP2004259095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003050481A JP2004259095A (en) 2003-02-27 2003-02-27 Drive unit adopting ata/atapi standard and connecting method for it

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003050481A JP2004259095A (en) 2003-02-27 2003-02-27 Drive unit adopting ata/atapi standard and connecting method for it

Publications (1)

Publication Number Publication Date
JP2004259095A true JP2004259095A (en) 2004-09-16

Family

ID=33115875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003050481A Pending JP2004259095A (en) 2003-02-27 2003-02-27 Drive unit adopting ata/atapi standard and connecting method for it

Country Status (1)

Country Link
JP (1) JP2004259095A (en)

Similar Documents

Publication Publication Date Title
US7293166B2 (en) Method of indicating a format of accessing an operating system contained on a USB memory device
US7430662B2 (en) Techniques for initializing a device on an expansion card
US20060075395A1 (en) Flash card system
US20080059852A1 (en) Memory card and its initial setting method
US5948076A (en) Method and system for changing peripheral component interconnect configuration registers
US20190155517A1 (en) Methods and apparatus for memory controller discovery of vendor-specific non-volatile memory devices
US20120060023A1 (en) Methods for booting an operating system using non-volatile memory
US5819108A (en) Programming of software into programmable memory within a peripheral device
US20040123088A1 (en) Method and apparatus for detecting an interruption in memory initialization
TW201716999A (en) Method for startup inspection and computer system using the same
US8732843B2 (en) Software validity period changing apparatus, method, and installation package
WO2016151964A1 (en) Information processing device
JP2004259095A (en) Drive unit adopting ata/atapi standard and connecting method for it
US7076643B2 (en) Method and apparatus for providing revision identification numbers
US7689729B2 (en) Method for implementing resets in two computers
US20030195716A1 (en) Interface device for product testing
JP2004078402A (en) Data transfer control device, electronic device, program, and method of manufacturing electronic device
JP2002312297A (en) Pci host bus bridge system initializing method
TWI417888B (en) An embedded chip system, a method for burning a wafer, and a computer program product
JP2015072675A (en) Electronic apparatus, control method, and program
US20240005002A1 (en) Information processing apparatus and control method for information processing apparatus
KR100331734B1 (en) Disk driving apparatus which can update control information and the method thereof
US20230069169A1 (en) Information processing apparatus and control method of the same
US8051329B1 (en) Method and system for initializing a computing system
JP5435647B2 (en) Computer system, memory initialization method, and program