JPH05101514A - External storage device provided with wait state - Google Patents

External storage device provided with wait state

Info

Publication number
JPH05101514A
JPH05101514A JP25562991A JP25562991A JPH05101514A JP H05101514 A JPH05101514 A JP H05101514A JP 25562991 A JP25562991 A JP 25562991A JP 25562991 A JP25562991 A JP 25562991A JP H05101514 A JPH05101514 A JP H05101514A
Authority
JP
Japan
Prior art keywords
data
write
memory
read
control unit
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.)
Withdrawn
Application number
JP25562991A
Other languages
Japanese (ja)
Inventor
Morio Tokugawa
守男 徳川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP25562991A priority Critical patent/JPH05101514A/en
Publication of JPH05101514A publication Critical patent/JPH05101514A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the power consumption and to increase the response speed by executing instructions by delivery between a write data memory and a cache memory in the case of the wait state to reduce the frequency in start of a spindle motor. CONSTITUTION:When access is performed just after the spindle motor is stopped to enter into the wait state, write data is stored in a write data memory 8. The data volume of data written in this write data memory 8 is monitored by a data volume monitor circuit 13; and when this data volume exceeds a prescribed value, a driving part 24 and a write control part 10 are started to write data of the write data memory 8 in a storage medium 18. A cache memory 7 is provided where data selected by a prescribed logic is stored at the time of coming of a read instruction from a higher-order device in the case of the wait state, and thereby, required data of the read instruction is read out from the memory 7, and the frequency in start of the driving part 24 is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は低消費電力を目的とした
待機状態を有する外部記憶装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external storage device having a standby state for low power consumption.

【0002】[0002]

【従来の技術】現在、ポータブルコンピュータやノート
ブックコンピュータに代表されるように、パーソナルコ
ンピュータは急速に小型化がすすんでいる。そして、こ
れらコンピュータの市場ニーズは大容量の記憶装置を具
備していることが、重要な要件となってきている。この
ニーズに対応するには、比較的低価格で小型の外部記憶
装置が最適と考えられる。
2. Description of the Related Art At present, personal computers such as portable computers and notebook computers are rapidly becoming smaller. Further, it is becoming an important requirement for the market needs of these computers to have a large-capacity storage device. To meet this need, a relatively low price and small external storage device is considered to be optimal.

【0003】このため、これらコンピュータ用として小
型磁気ディスク装置が急速に普及しつつあり、その使用
条件はオフィス以外での電池による電源供給が考えら
れ、内蔵される磁気ディスク装置も低消費電力が必須と
なってくる。このために周辺機器の一つである磁気ディ
スク装置は消費電力の低減を図るため、通常の動作状態
において一定時間ドライブへのアクセスがないと、待機
状態に入ることにより消費電力を低下させる外部記憶装
置がある。
For this reason, small magnetic disk devices for these computers are rapidly becoming widespread, and it is conceivable that the condition for using them is to supply power from batteries outside the office, and the built-in magnetic disk device must also have low power consumption. Will be. For this reason, the magnetic disk drive, which is one of the peripheral devices, attempts to reduce power consumption, so if there is no access to the drive for a certain period of time under normal operating conditions, it will enter standby mode to reduce power consumption. There is a device.

【0004】図7は外部記憶装置の例として説明する従
来の磁気ディスク装置の構成図である。図において、1
は磁気ディスク装置19に読出/書込みの指令を出すホス
トコンピュータ(以下ホストと略する)、18は磁気デ
ィスク記憶媒体、読出書込みヘッド、スピンドルモー
タ、アクチュエータ等の機構部を一体にしたディスクエ
ンクロージャ(以下DEと略する)、3はホストと指令
や情報の授受を行うインタフェース回路、4は磁気ディ
スク装置19の制御を行うマイクロプロセッサ(以下MP
Uと略する)、5は磁気ディスク装置19の待機状態を設
定して、各回路に供給する電力を制御するバワーモード
設定MPU、11はDE18に書かれたデータを読み出す
リード回路、12はDE18に書込みを行うライト回路、
9はDE18にリード回路の制御を行う読出制御部、10
はライト回路を制御する書込み制御部、14は磁気ディ
スク装置19を制御部/読出書込み制御及び回路部/駆動
部に分割して電力供給を待機状態に応じて切り換える電
力供給切換回路、16は磁気ディスクのヘッドを移動す
るアクチュエータを制御するアクチュエータ制御回路、
17は磁気ディスクを回転させるスピンドルモータを駆
動するスピンドルモータ駆動回路、19は磁気ディスク
記憶媒体に記憶させる磁気ディスク装置である。アクチ
ュエータ制御回路16とスピンドルモータ駆動回路17は駆
動部を構成し、リード回路11とライト回路12と読出制御
部9 と書込み制御部10は読出書込み制御及び回路部に対
応する。
FIG. 7 is a block diagram of a conventional magnetic disk device described as an example of an external storage device. In the figure, 1
Is a host computer (hereinafter abbreviated as "host") that issues a read / write command to the magnetic disk device 19, and 18 is a disk enclosure (hereinafter referred to as a magnetic disk storage medium, read / write head, spindle motor, actuator, etc. DE is abbreviated. 3 is an interface circuit for exchanging commands and information with a host. 4 is a microprocessor (hereinafter MP) for controlling the magnetic disk device 19.
(Abbreviated as U), 5 is a power mode setting MPU that sets the standby state of the magnetic disk device 19 and controls the power supplied to each circuit, 11 is a read circuit for reading the data written in DE 18, and 12 is DE 18. Write circuit for writing,
Reference numeral 9 is a read control unit for controlling the read circuit in the DE 18.
Is a write control unit for controlling the write circuit, 14 is a power supply switching circuit for dividing the magnetic disk device 19 into control unit / read / write control and circuit unit / driving unit and switching power supply according to a standby state, and 16 is a magnetic An actuator control circuit for controlling an actuator that moves the head of the disk,
Reference numeral 17 is a spindle motor drive circuit that drives a spindle motor that rotates a magnetic disk, and 19 is a magnetic disk device that stores the magnetic disk storage medium. The actuator control circuit 16 and the spindle motor drive circuit 17 constitute a drive unit, and the read circuit 11, the write circuit 12, the read control unit 9, and the write control unit 10 correspond to the read / write control and circuit unit.

【0005】このような磁気ディスク装置においては、
一定時間磁気ディスク装置19へのアクセスがないと待機
状態に入り、駆動部と読出書込み制御及び回路部に対し
ては電力供給切換回路14により電源の供給がされなくな
り、さらに、一定時間アクセスがないと待機状態からホ
スト1 と磁気ディスク装置19のインタフェースも物理的
に接続しているだけで、ソフト的には遮断されるスリー
プモードに入るという、使い方の例が考えられている。
In such a magnetic disk device,
If there is no access to the magnetic disk device 19 for a certain period of time, a standby state is entered, and power is not supplied to the drive unit, the read / write control and circuit unit by the power supply switching circuit 14, and there is no access for a certain period of time. An example of usage is considered in which, from the standby state, the interface between the host 1 and the magnetic disk device 19 is only physically connected and the sleep mode is shut off in terms of software.

【0006】この場合、一定時間磁気ディスク装置19へ
のアクセスがなく、スピンドルモータが回転停止の待機
状態のモードに入ったすぐ後で磁気ディスク装置19のア
クセスが来た場合、磁気ディスク装置19は一番電力を消
費するスピンドルモータの起動を行う必要が生じ、ま
た、ホスト1 は磁気ディスク装置19へ命令を出してから
実行するまで、スピンドルモータが正常回転になるのを
待たないといけない等の欠点があり、ホスト1 の処理能
力の低下の原因ともなる。
In this case, if there is no access to the magnetic disk device 19 for a certain period of time and the access of the magnetic disk device 19 comes immediately after the spindle motor enters the standby mode of rotation stop, the magnetic disk device 19 will be It is necessary to start the spindle motor that consumes the most power, and the host 1 must wait for the spindle motor to rotate normally before issuing the command to the magnetic disk device 19 and executing it. It has drawbacks and causes a decrease in the processing capacity of host 1.

【0007】[0007]

【発明が解決しようとする課題】従来の待機状態を有す
る外部記憶装置においては駆動部が待機状態のモードに
入ったすぐ後でアクセスが来た場合、一番電力を消費す
るスピンドルモータの起動を行う必要が生じ、また回転
が停止しているため読出書込みの命令を実行するまで、
スピンドルモータが正常回転になるのを待たないといけ
ないという問題があった。本発明はこのような点にかん
がみて、待機状態の駆動部を起動させる頻度を低下し
て、且つ待機状態時の応答速度を向上させる手段を提供
することを目的とする。
In the conventional external storage device having the standby state, when the drive is accessed immediately after the drive unit enters the standby mode, the spindle motor which consumes the most power is started. It is necessary to do so, and because the rotation is stopped, until the read / write command is executed,
There was a problem that we had to wait for the spindle motor to rotate normally. In view of such a point, the present invention has an object to provide means for reducing the frequency of activating the drive section in the standby state and improving the response speed in the standby state.

【0008】[0008]

【課題を解決するための手段】上記の課題は下記の如く
に構成された待機状態を有する外部記憶装置によって解
決される。図1は、本発明の原理図である。 (1) 上位装置からの指令をうけて装置を制御する制御部
25と、記憶を行う記憶媒体18と、該記憶媒体18にデータ
を書き込む書込み制御部10と、該記憶媒体18からデータ
の読出を行う読出制御部9 と、該媒体を駆動する駆動部
24と、を有し、該駆動部24を停止または低速回転させる
待機状態となって次の命令を待つ機能を備えた外部記憶
装置26において、該駆動部24を待機状態にした後の上位
装置から受信したライトデータを書き込むライト・デー
タメモリ8 と、該ライト・データメモリ8 に書き込まれ
るデータ量を監視して所定量を越えると検出信号を制御
部25に送出するメモリデータ量監視回路13とを設けるこ
とにより、所定のデータ量が該ライト・データメモリ8
に蓄積されると、該駆動部24と、該書込み制御部10とを
起動して該ライト・データメモリ8 のデータを前記記憶
媒体18に書き込むよう構成する。 (2) 上位装置からの指令をうけて装置を制御する制御部
25と、記憶を行う記憶媒体18と、該記憶媒体18にデータ
を書き込む書込み制御部10と、該記憶媒体18からデータ
の読出を行う読出制御部9 と、該媒体を駆動する駆動部
24と、を有し、該駆動部24を停止または低速回転させる
待機状態となって次の命令を待つ機能を備えた外部記憶
装置26において、所定の論理により選択された、データ
を記憶するキャッシュメモリ7 を備えることにより、該
駆動部24を待機状態にした後の上位装置からの読出命令
による必要データが該キャッシュメモリ7 内に存在する
ときは該キャッシュメモリ7 から読み出し前記駆動部24
の起動頻度を減少させるように構成する。
The above-mentioned problems can be solved by an external storage device having a standby state configured as described below. FIG. 1 is a principle diagram of the present invention. (1) Control unit that controls the device in response to commands from the host device
25, a storage medium 18 for storing, a write control unit 10 for writing data to the storage medium 18, a read control unit 9 for reading data from the storage medium 18, and a drive unit for driving the medium.
In the external storage device 26 having a function of waiting for the next command in a standby state in which the drive unit 24 is stopped or rotated at a low speed, a host device after the drive unit 24 is placed in the standby state. A write data memory 8 for writing the write data received from the memory, and a memory data amount monitoring circuit 13 for monitoring the amount of data written in the write data memory 8 and sending a detection signal to the control unit 25 when the amount exceeds a predetermined amount. By providing the write data memory 8 with a predetermined amount of data,
When it is stored in the storage medium 18, the drive unit 24 and the write control unit 10 are activated to write the data in the write data memory 8 into the storage medium 18. (2) Control unit that controls the device in response to commands from the host device
25, a storage medium 18 for storing, a write control unit 10 for writing data to the storage medium 18, a read control unit 9 for reading data from the storage medium 18, and a drive unit for driving the medium.
A cache for storing data selected by a predetermined logic in an external storage device 26 having a function of waiting for the next command in a standby state for stopping or rotating the drive unit 24 at a low speed. By providing the memory 7, when the necessary data according to the read instruction from the higher-level device after putting the driving unit 24 in the standby state exists in the cache memory 7, the data is read from the cache memory 7 and the driving unit 24.
Configure to reduce the startup frequency of the.

【0009】[0009]

【作用】[Action]

(1) 外部記憶装置26が駆動部24を停止または低速回転さ
せる待機状態となって上位装置からの書込みデータが所
定のデータ量だけライト・データメモリ8 に蓄積される
と、データ量を監視するメモリデータ量監視回路13が検
出信号を制御部25に送出し、該制御部25が該駆動部24
と、該書込み制御部10とを起動して該ライト・データメ
モリ8 のデータを記憶媒体18に書き込む。 (2) 駆動部24を停止または低速回転させる待機状態とな
っている外部記憶装置26に上位装置からの読出命令がき
たとき、所定の論理により選択された、データを記憶す
るキャッシュメモリ7 を備えることにより、上位装置か
らの読出命令による必要データが該キャッシュメモリ7
内に存在するときは該キャッシュメモリ7から読み出し
前記駆動部24の起動頻度を減少させる。
(1) When the external storage device 26 enters a standby state in which the drive unit 24 is stopped or rotates at a low speed, and the write data from the host device is accumulated in the write data memory 8 by a predetermined data amount, the data amount is monitored. The memory data amount monitoring circuit 13 sends a detection signal to the control unit 25, and the control unit 25 causes the drive unit 24 to operate.
Then, the write controller 10 is activated to write the data in the write data memory 8 to the storage medium 18. (2) A cache memory 7 for storing data, which is selected by a predetermined logic when a read command from a higher-level device is received in the external storage device 26 that is in a standby state where the drive unit 24 is stopped or rotates at low speed, is provided. As a result, the necessary data according to the read instruction from the host device is stored in the cache memory 7
If it exists in the cache memory 7, it is read from the cache memory 7 and the activation frequency of the driving unit 24 is reduced.

【0010】[0010]

【実施例】本発明の原理は磁気ディスク装置にライトデ
ータを記憶するメモリと、磁気ディスク装置からの先読
みデータを記憶しておくキャッシュメモリを装備してお
く。磁気ディスク装置の電源がパワーオンされると、ス
ピンドルモータが回転し、一定の時間リード命令がくる
のを待ちリード処理を行い、キャッシュメモリに次にく
る可能性が高いデータを書き込んで、スピンドルモータ
を停止させるとともにキャッシュメモリ及び、ライト用
メモリを除く全ての電源をパワーオフするモードに入
る。この時、一定時間にリード命令が来ない場合、前回
パワーオフした最後のデータを参照して磁気ディスク装
置は自身に具備したキャッシュメモリに、次にアクセス
がくる可能性が高いデータを書き込んでスピンドルモー
タを停止させるとともに制御回路、キャッシュメモリ及
び、ライト用メモリを除く全ての電源をパワーオフする
待機状態に入る。
BEST MODE FOR CARRYING OUT THE INVENTION The principle of the present invention is to equip a magnetic disk device with a memory for storing write data and a cache memory for storing pre-read data from the magnetic disk device. When the power of the magnetic disk device is turned on, the spindle motor rotates, waits for a read command to arrive for a certain period of time, performs read processing, writes data that is likely to come next in the cache memory, and And the mode for turning off all the power supplies except the cache memory and the write memory is entered. At this time, if a read command does not arrive within a certain period of time, the magnetic disk drive refers to the last data that was powered off last time, writes the data that is most likely to be accessed next, to the cache memory of its own, and writes the data to the spindle. While the motor is stopped, all the power supplies except the control circuit, the cache memory and the write memory are powered off, and a standby state is entered.

【0011】最初の待機状態を含め、ライト/リード回
路のパワーオン/パワーオフのタイミングはスピンドル
モータのオン/オフと同一にすることによって制御が容
易になる。待機状態にある磁気ディスク装置にライト命
令がきた時は、磁気ディスク装置に備えたメモリに書き
込むべきアドレスと書込みデータを記憶する。この時、
常時メモリの書き込み量を監視しておきメモリ内にある
一定量のデータが蓄積されるとスピンドルモータを起動
し、同時にライト回路をパワーオンしてメモリ内のデー
タが磁気ディスク装置の所定のアドレスに書き込む。ま
た、リード命令がきた時は、予め磁気ディスク装置の一
定量のデータを記憶したキャッシュメモリにアクセスし
て、目的のデータを読み出し、もし目的のデータがなけ
ればスピンドルモータを起動し、リード回路をパワーオ
ンして磁気ディスク装置から読み出す。
Control is facilitated by making the power-on / power-off timing of the write / read circuit the same as the on / off of the spindle motor, including the initial standby state. When a write command is sent to the magnetic disk device in the standby state, the address and write data to be written are stored in the memory provided in the magnetic disk device. At this time,
The amount of data written in the memory is constantly monitored, and when a certain amount of data in the memory is accumulated, the spindle motor is started, and at the same time, the write circuit is powered on and the data in the memory is transferred to the specified address of the magnetic disk device. Write. When a read command is received, the cache memory that stores a certain amount of data in the magnetic disk device is accessed in advance to read the target data. If there is no target data, the spindle motor is started and the read circuit is set. Power on and read from magnetic disk unit.

【0012】以上により、スピンドルモータの回転や回
路に消費する電力を軽減し、かつスピンドルモータの起
動回数を減少させて消費電力の削減を図るとともに、ラ
イト/リード命令に対してメモリでの応答を行うため性
能低下の問題が解決される。
As described above, the power consumed by the rotation of the spindle motor and the circuit is reduced, and the power consumption is reduced by reducing the number of times the spindle motor is started, and the response in the memory to the write / read command is reduced. Therefore, the problem of performance degradation is solved.

【0013】本発明を実施した時の磁気ディスク装置の
例を説明する。図2は、本発明の実施例の磁気ディスク
装置の構成図である。図において、7は所定の論理によ
り選択された、データを記憶するキャッシュメモリ、8
は該駆動部(24)を待機状態にした後の上位装置から受信
したライトデータを書き込むライト・データメモリ、1
3は該ライト・データメモリ(8) に書き込まれるデータ
量を監視して所定量を越えると検出信号を該制御部(25)
に送出するメモリデータ量監視回路、15は該ライト・
データメモリ(8) をリセットするメモリリセット回路、
21はパワーモード設定MPU5 内にあって最後の命令
から所定時間(以下例として5分とする。)経過したと
き信号をMPU4 に送出する第一のタイマー、22はパ
ワーモード設定MPU5 内にあって最後のライト命令か
ら所定時間(以下例として5分とする。)経過したとき
信号をMPU4 に送出する第二のタイマー、23はパワ
ーモード設定MPU5 内にあって最後のリード命令から
所定時間(以下例として5分とする。)経過したとき信
号をMPU4 に送出する第三のタイマー、6は第一のタ
イマー21、第二のタイマー22、第三のタイマー23を選択
してリセットするタイマーリセット回路である。その
他、図7と同一符号の物は同一物である。
An example of a magnetic disk device when the present invention is implemented will be described. FIG. 2 is a configuration diagram of a magnetic disk device according to an embodiment of the present invention. In the figure, 7 is a cache memory for storing data selected by a predetermined logic, and 8
Is a write data memory for writing the write data received from the host device after putting the drive unit (24) in the standby state, 1
3 monitors the amount of data written in the write data memory (8), and when a predetermined amount is exceeded, a detection signal is sent to the controller (25).
A memory data amount monitoring circuit for sending to the
A memory reset circuit that resets the data memory (8),
21 is in the power mode setting MPU5 and 22 is in the power mode setting MPU5 when a predetermined time (5 minutes as an example below) has elapsed from the last command and sends a signal to the MPU4. A second timer 23 sends a signal to the MPU4 when a predetermined time (5 minutes as an example below) has elapsed from the last write command, and 23 is a predetermined time (hereinafter, referred to as a predetermined time from the last read command in the power mode setting MPU5). As an example, 5 minutes.) A third timer that sends a signal to the MPU 4 when the time has elapsed, 6 is a timer reset circuit that selects and resets the first timer 21, the second timer 22, and the third timer 23. Is. In addition, the same reference numerals as those in FIG. 7 are the same.

【0014】また、図3〜6は本発明の実施例のフロー
チャートであり、以下図とフローチャートに従って動作
の説明を行う。まず、パワーオンされた時、ステップ41
で磁気ディスク装置19のMPU4 はパワーモード設定M
PU5 に制御を移し、パワーモード設定MPU5 はスピ
ンドルモータ駆動回路を始めとして全ての必要電源を各
部に供給して、磁気ディスク装置19を通常の使用可能状
態にする。ステップ42で制御はまたMPU4 に戻り、M
PU4 の指示によって、パワー0ード設定MPU5 の中
に設けた三つのタイマーの内第一のタイマー21の起動を
行う。ステップ43でホスト1 から、インタフェース回路
3 を介してMPU4 に、ライト/リードいずれの命令も
来なかった場合はステップ44に進み、来た場合はステッ
プ48に進む。
3 to 6 are flowcharts of the embodiment of the present invention, and the operation will be described below with reference to the drawings and the flowchart. First, when powered on, step 41
The MPU4 of the magnetic disk unit 19 is set to power mode M
The control is transferred to PU5, and the power mode setting MPU5 supplies all the necessary power supplies including the spindle motor drive circuit to the respective parts to bring the magnetic disk device 19 into the normal usable state. In step 42, control returns to MPU4 and M
According to the instruction of PU4, the first timer 21 of the three timers provided in the power 0 setting MPU5 is activated. From host 1 in step 43, interface circuit
If no write / read command has come to MPU4 via 3, the process proceeds to step 44, and if it does, the process proceeds to step 48.

【0015】ステップ44である一定時間(この例では5
分とする)経過したかを判定し、経過した時はステップ
45に進み、経過していない時はステップ43に戻りホスト
1 からの命令を待つ。
Step 44 is a fixed time (5 in this example)
Minutes) to determine if it has passed, and if it has, step
Go to 45, return to step 43 if not, host
Wait for command from 1.

【0016】ステップ45でMPU4 が記憶しているパワ
ーオンの前の最後のリードアドレスを参照してキャッシ
ュメモリ7 にデータを記憶させ、ステップ46でデータの
記憶が完了したかを判定し、完了しないときは再度ステ
ップ45に戻る。完了すればステップ47に進み、MPU4
はタイマーリセット回路6 によって第一のタイマー21を
リセットしてステップ64に進み、インタフェース回路3
とMPU4とキャッシュメモリ7 とライト・データメモ
リ8 等のメモリ及び制御部だけに電源を供給し、他の電
源供給をストップする待機状態に入る。
In step 45, the last read address before power-on stored in the MPU 4 is referred to, the data is stored in the cache memory 7, and it is determined in step 46 whether the data storage is completed, and it is not completed. Then, the process returns to step 45 again. When completed, proceed to step 47, MPU4
Resets the first timer 21 by the timer reset circuit 6 and proceeds to step 64, where the interface circuit 3
Power is supplied only to the memory and control unit such as the MPU 4, the cache memory 7, the write data memory 8 and the like, and the other power supply is stopped to enter the standby state.

【0017】また、ステップ43で一定時間の5分以内に
命令がきた時はステップ48でライト命令かリード命令か
を判定し、ライト命令ならステップ49に、リード命令な
らステップ57に進む。ライト命令がきた場合はステップ
49でMPU4 は、パワーモード設定MPU5 内の第二の
タイマー22を動作させると同時に第一のタイマー21をリ
セットする。
When an instruction arrives within 5 minutes of a fixed time in step 43, it is determined in step 48 whether it is a write instruction or a read instruction. If it is a write instruction, the procedure proceeds to step 49, and if it is a read instruction, the procedure proceeds to step 57. Step when write command comes
At 49, the MPU 4 activates the second timer 22 in the power mode setting MPU 5 and at the same time resets the first timer 21.

【0018】次にステップ50で書込み制御部10とライト
回路12を介してDE18に書込みを行う。ステップ51で完
了かを判定し完了であれば、ステップ52へ、未完了であ
ればステップ50に戻る。ステップ52で次の命令があれば
ステップ43に戻り、次の命令がないときはステップ53に
進む。
Next, in step 50, writing to the DE 18 is performed via the write control unit 10 and the write circuit 12. In step 51, it is determined whether or not the process is completed, and if completed, the process returns to step 52, and if not completed, the process returns to step 50. If there is a next command in step 52, the process returns to step 43, and if there is no next command, the process proceeds to step 53.

【0019】ステップ53で最後のライト命令がきてから
5分経過したかを判定し、経過した場合は、ステップ54
に進み、経過しない時はステップ52に戻る。ステップ54
で、MPU4 はライトされたアドレスを参照して次にリ
ードされそうなアドレスのデータを、キャッシュメモリ
7 に記憶させる。
In step 53, it is judged whether 5 minutes have passed since the last write command came, and if it has passed, step 54
If not, go back to step 52. Step 54
Then, the MPU4 refers to the written address and stores the data of the address that is likely to be read next in the cache memory.
Store in 7.

【0020】ステップ55で書込みが完了すればステップ
に進み、未完であればステップ54に戻る。ステップ56で
MPU4 は第二のタイマー22をタイマーリセット回路6
によりリセットして、ステップ64に進み待機状態に入
る。
If the writing is completed in step 55, the process proceeds to step. If the writing is not completed, the process returns to step 54. In step 56, the MPU 4 sets the second timer 22 to the timer reset circuit 6
Is reset by, and the process proceeds to step 64 to enter the standby state.

【0021】ステップ48でリード命令がきた場合ステッ
プ57に進みMPU4 は、パワーモード設定MPU5 内の
第三のタイマー23を動作させる。ステップ58でMPU4
は、読出制御部9 とリード回路11を介してDE18から必
要なデータを読み出しホスト1 へデータの転送を行う。
When the read command is received in step 48, the process proceeds to step 57, where the MPU 4 operates the third timer 23 in the power mode setting MPU 5. MPU4 in step 58
Reads necessary data from the DE 18 through the read control unit 9 and the read circuit 11 and transfers the data to the host 1.

【0022】ステップ59でリードが完了していればステ
ップ60へ、未完であればステップ58に戻る。ステップ60
で、リードされたアドレスを参照して次にリードされそ
うなアドレスのデータをキャッシュメモリ7に記憶させ
る。
If the reading is completed in step 59, the process returns to step 60, and if it is not completed, the process returns to step 58. Step 60
Then, the read address is referred to and the data of the address which is likely to be read next is stored in the cache memory 7.

【0023】ステップ61でキャッシュメモリ7 に書込み
が完了していればステップ62へ、未完であればステップ
60に戻る。ステップ62で最後のリード命令から5 分が経
過したかを判定し、経過していればステップ63で第三の
タイマーをリセットし、ステップ64に進み待機状態には
いる。キャッシュメモリ7 へのデータ記憶は、リード命
令によるアドレスを参照したデータを優先する。
If the writing to the cache memory 7 is completed in step 61, the process proceeds to step 62.
Return to 60. In step 62, it is determined whether 5 minutes have passed since the last read command, and if it has passed, the third timer is reset in step 63, and the process proceeds to step 64 and is in a standby state. In the data storage in the cache memory 7, the data referred to the address by the read instruction is prioritized.

【0024】次に待機状態に入った後でのライト/リー
ド命令がきた場合の動作を説明する。ステップ64以降が
待機状態の動作を示し、図5、6(フローチャート(そ
の3、4))に相当する。
Next, the operation when a write / read command comes after entering the standby state will be described. Step 64 and subsequent steps show the operation in the standby state, and correspond to FIGS. 5 and 6 (flow charts (Nos. 3 and 4)).

【0025】ステップ64でパワーモード設定MPU5 に
より電力供給切換回路14が起動されて、インタフェース
回路3 とMPU4 とキャッシュメモリ7 とライト・デー
タメモリ8 等のメモリ及び制御部だけに電源を供給し、
他の電源供給をストップする待機状態に入る。ステップ
65でライト/リード命令であればステップ66へ、その他
の命令の場合はステップ85に進む。ステップ66でライト
とリードの判定を行いライト命令であればステップ67
へ、リード命令であればステップ74に進む。
In step 64, the power mode switching MPU5 activates the power supply switching circuit 14 to supply power only to the memory such as the interface circuit 3, MPU4, cache memory 7, write / data memory 8 and control section.
It goes into a standby state to stop the supply of other power. Step
If it is a write / read command in 65, the process proceeds to step 66, and if it is another command, the process proceeds to step 85. In step 66, whether write or read is determined, and if it is a write command, step 67
If it is a read command, the process proceeds to step 74.

【0026】ステップ67でMPU4 はDE18を駆動させ
ることなくライト・データメモリ8に書込みデータを記
録する。この時ライト・データメモリ8 に記録されたデ
ータ量を常時監視しているメモリ・データ量監視回路13
があり、ステップ68で一定量が記録された時該メモリ・
データ量監視回路13はMPU4 に報告しステップ69に進
み、一定量に達しないときはステップ65に戻り次の命令
を待つ。
In step 67, the MPU 4 records the write data in the write data memory 8 without driving the DE 18. At this time, the memory / data amount monitoring circuit 13 that constantly monitors the amount of data recorded in the write data memory 8
When a certain amount is recorded in step 68, the memory
The data amount monitoring circuit 13 reports to the MPU 4 and proceeds to step 69. When the amount does not reach the fixed amount, the process returns to step 65 and waits for the next instruction.

【0027】ステップ69で、MPU4 はパワーモード設
定MPU5 にアクセスしてパワーオンモードに入り、ス
ピンドルモータ駆動回路17に電源を供給し、ステップ70
でライト回路に電源を供給してライト・データメモリ8
のデータを書込み制御部10、ライト回路12を介してDE
18に記録する。
In step 69, the MPU 4 accesses the power mode setting MPU 5 to enter the power-on mode and supplies power to the spindle motor drive circuit 17,
Power the write circuit with the write data memory 8
Data of the DE through the write control unit 10 and the write circuit 12
Record at 18.

【0028】ステップ72でDE18にライトが終了したこ
とを判定して、ステップ73でライト・データメモリ8 を
メモリリセット回路15でリセットしてステップ64へ進み
待機状態に戻る。次にステップ66でリード命令がきた時
はステップ74に進み、MPU4 はキャッシュメモリ7 に
アクセスする。
At step 72, it is judged that the writing to the DE 18 is completed, and at step 73, the write / data memory 8 is reset by the memory reset circuit 15 and the process proceeds to step 64 to return to the standby state. Next, when a read command is received in step 66, the process proceeds to step 74 and the MPU 4 accesses the cache memory 7.

【0029】ステップ75で所望のデータがキャッシュメ
モリ7 にあればステップ76に進みそのデータをホスト1
へ転送する。もしキャッシュメモリのデータが所望のデ
ータにヒットしなかった場合は、ステップ77に進みMP
U4 はパワーモード設定MPU5 にアクセスしてパワー
オンモードにし、スピンドルモータ駆動回路17に電源を
供給しステップ78でリード回路に電源を供給して、ステ
ップ79で読出制御部9、リード回路11を介してDE18か
ら所望のデータを読み出しホストへ転送する。
If the desired data is stored in the cache memory 7 in step 75, the process proceeds to step 76 and the data is stored in the host 1
Transfer to. If the cache memory data does not hit the desired data, proceed to step 77 and MP
U4 accesses the power mode setting MPU5 to enter the power-on mode, supplies power to the spindle motor drive circuit 17, supplies power to the read circuit in step 78, and supplies read power to the read circuit 9 and read circuit 11 in step 79. Then, the desired data is read from the DE 18 and transferred to the host.

【0030】次にステップ80でパワーモード設定MPU
5 内の第三のタイマー23を動作させる。ステップ81で最
後のリード命令がきてから5分経過したことを判定して
ステップ82に進み、ステップ82で第三のタイマー23をリ
セットする。ステップ83で最も最近にアクセスされたア
ドレスを参照して次にリードされる確率が高いアドレス
のデータをキャッシュメモリ7 に記録する。ステップ84
でキャッシュメモリ7に書込みが完了したことを判定し
てステップ64に戻り待機状態に入る。
Next, at step 80, the power mode setting MPU
Activate the third timer 23 in 5. In step 81, it is determined that 5 minutes have passed since the last read command came, the process proceeds to step 82, and the third timer 23 is reset in step 82. In step 83, the most recently accessed address is referred to and the data of the address with the highest probability of being read next is recorded in the cache memory 7. Step 84
Then, it is judged that the writing to the cache memory 7 is completed, and the process returns to step 64 to enter the standby state.

【0031】作業が終了しパワーオフする場合には終了
命令がホスト1 から指示されるので、まずステップ65で
ホスト1 からの命令がライト/リード命令でなければス
テップ85に進む。ステップ85で終了命令かを判定してそ
うでなければステップ65に戻り次の命令を待つ。終了命
令であれば、ステップ86に進み、MPU4 はライト・デ
ータメモリ8 内にデータがあるか判断し、無い場合はス
テップ92に進み、そのまま全ての電源を切断して終了す
る。データがある場合はステップ87に進み、スピンドル
モータ駆動回路17に電源を供給しDE18を駆動し、ステ
ップ88でライト回路12に電源を供給し、ステップ89でラ
イト・データメモリ8 のデータをDE18に書き込む。ス
テップ90で書込みを終了したかを判定し未完であればス
テップ89に戻り再度書込みを行い、書込みを終了してい
ればステップ91に進む。ステップ91でライト・データメ
モリ8 のデータをメモリリセット回路15でリセットす
る。ステップ92で全ての電源を切断して終了する。
When the work is completed and the power is turned off, the end command is instructed from the host 1. Therefore, at step 65, if the command from the host 1 is not the write / read command, the process proceeds to step 85. In step 85, it is judged whether or not it is an end instruction, and if not so, the flow returns to step 65 to wait for the next instruction. If it is an end command, the process proceeds to step 86, where the MPU 4 determines whether or not there is data in the write data memory 8, and if there is no data, the process proceeds to step 92, where all the power supplies are cut off and the process ends. If there is data, the process proceeds to step 87, power is supplied to the spindle motor drive circuit 17 to drive the DE 18, power is supplied to the write circuit 12 at step 88, and the data in the write data memory 8 is supplied to the DE 18 at step 89. Write. In step 90, it is judged whether or not the writing is completed. If the writing is not completed, the processing returns to step 89 to perform the writing again, and if the writing is completed, the processing proceeds to step 91. In step 91, the data in the write data memory 8 is reset by the memory reset circuit 15. In step 92, all power supplies are turned off and the process ends.

【0032】本実施例は磁気ディスク装置の場合である
が、他の媒体、例えば光ディスクの場合も同様の制御を
行うことができ、性能向上に役立つ。
Although the present embodiment is for a magnetic disk device, the same control can be performed for other media such as an optical disk, which is useful for improving performance.

【0033】[0033]

【発明の効果】以上の説明から明らかなように本発明に
よれば一定時間に外部記憶装置にアクセスがない場合ス
ピンドルモータを停止させて、次の命令を待つ状態に入
った時にちょうど次の命令を受け取った場合、従来の外
部記憶装置では命令を実行するためスピンドルモータを
起動させなければならない。しかし、本発明によるとス
ピンドルモータが停止する待機状態に入ってからは、ラ
イト・データメモリ及びキャッシュメモリとの受渡しで
命令を実行するため、特に消費電力が大きいスピンドル
モータの起動回数を減少させることができ、消費電力の
低減になるとともにメモリを用いて命令を実行するため
駆動部分がレディー状態になるのを待たずに命令を処理
出来、従来の装置と比較して性能が向上するという著し
い工業的効果がある。
As is apparent from the above description, according to the present invention, when there is no access to the external storage device for a certain period of time, the spindle motor is stopped and the next command is issued at the time of waiting for the next command. In the conventional external storage device, the spindle motor must be activated to execute the command. However, according to the present invention, after entering the standby state in which the spindle motor stops, the instruction is executed by passing the write / data memory and the cache memory. In addition to reducing power consumption and executing instructions using memory, it is possible to process instructions without waiting for the driving part to be in a ready state, and performance is improved compared to conventional devices. Have a positive effect.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】 本発明の実施例の磁気ディスク装置の構成図FIG. 2 is a configuration diagram of a magnetic disk device according to an embodiment of the present invention.

【図3】 本発明の実施例のフローチャート(その1)FIG. 3 is a flowchart (part 1) of an embodiment of the present invention.

【図4】 本発明の実施例のフローチャート(その2)FIG. 4 is a flowchart (part 2) of the embodiment of the present invention.

【図5】 本発明の実施例のフローチャート(その3)FIG. 5 is a flowchart (part 3) of the embodiment of the present invention.

【図6】 本発明の実施例のフローチャート(その4)FIG. 6 is a flowchart (part 4) of the embodiment of the present invention.

【図7】 従来の磁気ディスク装置の構成図FIG. 7 is a configuration diagram of a conventional magnetic disk device.

【符号の説明】[Explanation of symbols]

1 上位装置 3 インタフェース回路 4 MPU 5 パワーモード設定MPU 6 タイマーリセ
ット回路 7 キャッシュメモリ 8 ライト・デー
タメモリ 9 読出制御部 10 書込み制御部 11 リード回路 12 ライト回路 13 メモリデータ量監視回路 14 電力供給切
換回路 15 メモリリセット回路 16 アクチュエ
ータ制御回路 17 スピンドルモータ駆動回路 18 記憶媒体、
又はDE 19 磁気ディスク装置 21 第一のタイマー 22 第二のタイ
マー 23 第三のタイマー 24 駆動部 25 制御部 26 外部記憶装
置 41〜92 動作ステップ
1 host device 3 interface circuit 4 MPU 5 power mode setting MPU 6 timer reset circuit 7 cache memory 8 write data memory 9 read control unit 10 write control unit 11 read circuit 12 write circuit 13 memory data amount monitoring circuit 14 power supply switching circuit 15 memory reset circuit 16 actuator control circuit 17 spindle motor drive circuit 18 storage medium
Or DE 19 magnetic disk device 21 first timer 22 second timer 23 third timer 24 drive unit 25 control unit 26 external storage device 41 to 92 operation step

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 上位装置からの指令をうけて装置を制御
する制御部(25)と、記憶を行う記憶媒体(18)と、該記憶
媒体(18)にデータを書き込む書込み制御部(10)と、該記
憶媒体(18)からデータの読出を行う読出制御部(9) と、
該媒体を駆動する駆動部(24)と、を有し、該駆動部(24)
を停止または低速回転させる待機状態となって次の命令
を待つ機能を備えた外部記憶装置(26)において、 該駆動部(24)を待機状態にした後の上位装置から受信し
たライトデータを書き込むライト・データメモリ(8)
と、該ライト・データメモリ(8) に書き込まれるデータ
量を監視して所定量を越えると検出信号を該制御部(25)
に送出するメモリデータ量監視回路(13)とを設けること
により、 所定のデータ量が該ライト・データメモリ(8) に蓄積さ
れると、該駆動部(24)と、該書込み制御部(10)とを起動
して該ライト・データメモリ(8) のデータを前記記憶媒
体(18)に書き込むようにしたことを特徴とする外部記憶
装置。
1. A control unit (25) for controlling the device in response to a command from a host device, a storage medium (18) for storing, and a write control unit (10) for writing data to the storage medium (18). And a read control unit (9) for reading data from the storage medium (18),
A drive unit (24) for driving the medium, and the drive unit (24)
In the external storage device (26) having a function of waiting for the next command in a standby state of stopping or rotating at low speed, write data received from the host device after putting the drive unit (24) in the standby state Write data memory (8)
And the amount of data written in the write data memory (8) is monitored, and if a predetermined amount is exceeded, a detection signal is sent to the control unit (25).
When a predetermined data amount is accumulated in the write data memory (8) by providing a memory data amount monitoring circuit (13) for sending to the drive unit (24) and the write control unit (10). ) And writing the data of the write data memory (8) into the storage medium (18).
【請求項2】 上位装置からの指令をうけて装置を制御
する制御部(25)と、記憶を行う記憶媒体(18)と、該記憶
媒体(18)にデータを書き込む書込み制御部(10)と、該記
憶媒体(18)からデータの読出を行う読出制御部(9) と、
該媒体を駆動する駆動部(24)と、を有し、該駆動部(24)
を停止または低速回転させる待機状態となって次の命令
を待つ機能を備えた外部記憶装置(26)において、 所定の論理により選択された、データを記憶するキャッ
シュメモリ(7)を備えることにより、 該駆動部(24)を待機状態にした後の上位装置からの読出
命令による必要データが該キャッシュメモリ(7) 内に存
在するときは該キャッシュメモリ(7) から読み出し前記
駆動部(24)の起動頻度を減少させることを特徴とした外
部記憶装置。
2. A control unit (25) for controlling the device in response to a command from a host device, a storage medium (18) for storing, and a write control unit (10) for writing data to the storage medium (18). And a read control unit (9) for reading data from the storage medium (18),
A drive unit (24) for driving the medium, and the drive unit (24)
In the external storage device (26) having a function of waiting for the next command in a standby state for stopping or rotating at low speed, by providing a cache memory (7) for storing data selected by a predetermined logic, When the necessary data according to the read command from the host device after putting the drive unit (24) in the standby state exists in the cache memory (7), the data is read from the cache memory (7) and the drive unit (24) is read. An external storage device characterized by reducing the activation frequency.
JP25562991A 1991-10-03 1991-10-03 External storage device provided with wait state Withdrawn JPH05101514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25562991A JPH05101514A (en) 1991-10-03 1991-10-03 External storage device provided with wait state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25562991A JPH05101514A (en) 1991-10-03 1991-10-03 External storage device provided with wait state

Publications (1)

Publication Number Publication Date
JPH05101514A true JPH05101514A (en) 1993-04-23

Family

ID=17281408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25562991A Withdrawn JPH05101514A (en) 1991-10-03 1991-10-03 External storage device provided with wait state

Country Status (1)

Country Link
JP (1) JPH05101514A (en)

Similar Documents

Publication Publication Date Title
US5345347A (en) Disk drive with reduced power modes
EP0763237B1 (en) Power saving method and apparatus for computer disk drives
JP4325817B2 (en) Disk array device
KR0184626B1 (en) Expansion device with suspend/resume function
US5898880A (en) Power saving apparatus for hard disk drive and method of controlling the same
US5481733A (en) Method for managing the power distributed to a disk drive in a laptop computer
US5964878A (en) Method for controlling operation of optical disk drive in power saving mode
US5819100A (en) Operating system independent method and system for preserving hard disk drive life span in power managed computers
KR20060052225A (en) Hdd having both dram and flash memory
US6097679A (en) Method for controlling disk-type storage device
US8009378B2 (en) Storage device and information processing apparatus
JP4751241B2 (en) Disk array device
JPH04205963A (en) Disk device
JPH05101514A (en) External storage device provided with wait state
JPH0492254A (en) Hard disk memory device
JP2001283503A (en) Control method for head unloading of magnetic storage device and magnetic storage device
JPH0562329A (en) Data processor
JPH06309776A (en) Magnetic disk device and data read-out and write-in method
JP2000100054A (en) Secondary storage device
JPH06149483A (en) Computer system
JPH11338640A (en) Computer system and data transfer control method
JPH06267175A (en) Storage device and method for controlling the same
JP2672873B2 (en) Information processing device
JPH04221458A (en) Magnetic disk controller
JPS62243182A (en) Control method and its apparatus for disk device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990107