JPH0576714B2 - - Google Patents

Info

Publication number
JPH0576714B2
JPH0576714B2 JP19644185A JP19644185A JPH0576714B2 JP H0576714 B2 JPH0576714 B2 JP H0576714B2 JP 19644185 A JP19644185 A JP 19644185A JP 19644185 A JP19644185 A JP 19644185A JP H0576714 B2 JPH0576714 B2 JP H0576714B2
Authority
JP
Japan
Prior art keywords
timer
state
limit value
signal
value
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 - Lifetime
Application number
JP19644185A
Other languages
Japanese (ja)
Other versions
JPS6257163A (en
Inventor
Yasuharu Nishio
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 Tec Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP19644185A priority Critical patent/JPS6257163A/en
Publication of JPS6257163A publication Critical patent/JPS6257163A/en
Publication of JPH0576714B2 publication Critical patent/JPH0576714B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Rotational Drive Of Disk (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は磁気デイスクのレデイ信号発生装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a ready signal generation device for a magnetic disk.

[従来の技術] 磁気デイスクのレデイ(Ready)信号は磁気デ
イスクを制御するホストコンピユータがデイスク
から情報を読取つたり、デイスクに情報を書込ん
だりするときに磁気デイスクがレデイ状態になつ
ているかを判別するのに使用される。すなわち磁
気デイスクのレデイ状態とはデイスクが確実に挿
入され正常に回転している状態を示している。
[Prior Art] The ready signal of a magnetic disk is used to check whether the magnetic disk is in a ready state when a host computer that controls the magnetic disk reads information from or writes information to the disk. used to determine. In other words, the ready state of the magnetic disk indicates a state in which the disk is securely inserted and is rotating normally.

従来、このようなレデイ信号を発生する装置と
してはデイスクのインデツクスホールを検出して
得られるインデツクス(Index)信号を利用した
ものが知られている。すなわち、インデツクス信
号はデイスクが1回転する毎に発生するもので例
えば第4図に示すように200msに一回の割合いで
略5ms程度のパルス幅で発生するようになつてい
る。
Conventionally, as a device for generating such a ready signal, one that utilizes an index signal obtained by detecting an index hole on a disk is known. That is, the index signal is generated every time the disk rotates once, and as shown in FIG. 4, for example, it is generated once every 200 ms with a pulse width of about 5 ms.

例えば第5図に示すものは2個のD形フリツプ
フロツプ1,2を使用し、ホストからDrive
Select(ドライブセレクト)信号が入力され、こ
の状態でIndex信号を2回カウントすることによ
つてReady信号を発生させている。
For example, the one shown in FIG. 5 uses two D-type flip-flops 1 and 2, and a drive from the host.
A Select (drive select) signal is input, and a Ready signal is generated by counting the Index signal twice in this state.

また第6図に示すものは2個のD形フリツプフ
ロツプ1,2と1個のリトリガタイプのワンシヨ
ツトマルチバイブレータ3を使用し、Index信号
の周期が略一定になつた状態でIndex信号を2回
カウントすることによつてReady信号を発生させ
ている。
The one shown in Fig. 6 uses two D-type flip-flops 1 and 2 and one retrigger type one-shot multivibrator 3, and the index signal is changed into two when the period of the index signal is approximately constant. A Ready signal is generated by counting the number of times.

[発明が解決しようとする問題点] しかし第5図のものはデイスクが正常回転状態
になつていなくてもIndex信号を2回カウントす
るとReady信号を発生するためモータのスタート
時においてデイスク回転が不正常な状態で情報の
書込みや読出しが行われてしまう虞れがあつた。
[Problems to be Solved by the Invention] However, in the case of the one shown in Fig. 5, the Ready signal is generated when the Index signal is counted twice even if the disk is not in a normal rotation state, so the disk does not rotate when the motor starts. There was a risk that information would be written or read in a normal state.

また第6図のものはデイスク回転が正常になつ
た後にIndex信号を2回カウントしてReady信号
を発生しているためモータのスタート時において
情報の書込みや読出しの開始までに時間がかかる
問題があつた。
In addition, in the case of the one in Figure 6, the Index signal is counted twice and the Ready signal is generated after the disk rotation becomes normal, so there is a problem that it takes time to start writing and reading information when starting the motor. It was hot.

この発明はこのような問題を解決するために為
されたもので、デイスクが確実に正常回転状態に
なつてからReady信号を発生させることができ、
しかもReady信号の発生を迅速にできる磁気デイ
スクのレデイ信号発生装置を提供することを目的
とする。
This invention was made to solve this problem, and it is possible to generate a Ready signal after the disk is reliably in a normal rotation state.
Moreover, it is an object of the present invention to provide a ready signal generation device for a magnetic disk that can quickly generate a ready signal.

[問題点を解決するための手段] この発明は、スピンドルモータの回転周期を検
知する検知手段と、この検知手段による回転周期
検知出力に応動して2つの状態を交互に反転する
状態反転手段と、この状態反転手段が一方の状態
のとき検知手段からの回転周期検知出力に応動し
てタイマ割込みを許可してタイマカウンタのカウ
ント動作を開始させ、状態反転手段がもう一方の
状態のとき検知手段からの回転周期検知出力に応
動してタイマカウンタのカウント値を読出すタイ
マ制御手段と、このタイマ制御手段にて読み出さ
れたタイマ値を予め設定された上限値及び下限値
と比較し、タイマ値が上限値と下限値との間の値
のときレデイ信号を出力する手段とからなるもの
である。
[Means for Solving the Problems] The present invention includes a detection means for detecting the rotation period of a spindle motor, and a state reversal means for alternately reversing two states in response to the rotation period detection output from the detection means. , when the state reversing means is in one state, the timer interrupt is enabled in response to the rotation period detection output from the detecting means to start the counting operation of the timer counter, and when the state reversing means is in the other state, the detecting means A timer control means reads out the count value of the timer counter in response to the rotation period detection output from the timer, and the timer value read by the timer control means is compared with preset upper and lower limit values, and the timer and means for outputting a ready signal when the value is between an upper limit value and a lower limit value.

[作用] このような構成の本発明においては、スピンド
ルモータが回転すると、その回転周期が検知さ
れ、その回転周期検知出力に応動して状態反転手
段の状態が交互に反転される。そして状態反転手
段が一方の状態にあるときの回転周期検知出力に
応動してタイマ割込みが許可されタイマカウンタ
がカウント動作を開始する。また状態反転手段が
もう一方の状態にあるときの検知手段からの回転
周期検知出力に応動してタイマカウンタのカウン
ト値が読出される。そしてこの読み出されたタイ
マ値が上限値と下限値との間の値のときにレデイ
信号が出力される。
[Operation] In the present invention having such a configuration, when the spindle motor rotates, its rotation period is detected, and the state of the state reversing means is alternately reversed in response to the rotation period detection output. Then, in response to the rotation period detection output when the state reversing means is in one state, a timer interrupt is enabled and the timer counter starts counting. Further, the count value of the timer counter is read out in response to the rotation period detection output from the detection means when the state reversing means is in the other state. Then, when the read timer value is between the upper limit value and the lower limit value, a ready signal is output.

[実施例] 以下、この発明の実施例を図面を参照して説明
する。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図において11a,11b,11cはホー
ル素子、12a,12b,12cはそれぞれ前記
ホール素子11a,11b,11cのホールアン
プである。13a,13b,13cスピンドルモ
ータのコイル、14a,14b,14cはそれぞ
れ前記コイル14a,14b,14cを制御する
出力アンプである。前記各ホール素子11a,1
1b,11cの出力はそれぞれホールアンプ12
a,12b,12cを介してマトリクス回路15
に入力されそのマトリクス回路15で必要なタイ
ミングが取られ、増幅制御部16により出力アン
プ14a,14b,14cが選択的にスイツチン
グされる。
In FIG. 1, 11a, 11b, and 11c are Hall elements, and 12a, 12b, and 12c are Hall amplifiers for the Hall elements 11a, 11b, and 11c, respectively. The coils 13a, 13b, 13c of the spindle motor, 14a, 14b, 14c are output amplifiers that control the coils 14a, 14b, 14c, respectively. Each of the Hall elements 11a, 1
The outputs of 1b and 11c are each hall amplifier 12
Matrix circuit 15 via a, 12b, 12c
The output amplifiers 14a, 14b, and 14c are selectively switched by the amplification control section 16.

17はスピンドルモータの回転周期を検知する
検知手段としての周波数発生器で、前記スピンド
ルモータの回転数を検出する。この周波数発生器
17からの出力はFGアンプ18を介してゼロク
ロス検出器19に供給されている。このゼロクロ
ス検出器19は入力される信号を波形整形して比
較部20に供給するとともにマイクロプロセツサ
21にTACH信号として供給している。一方、
発振器22を設け、その発振器22からの信号を
分周器23を介して前記比較部20に基準信号と
して供給している。
A frequency generator 17 serves as a detection means for detecting the rotation period of the spindle motor, and detects the rotation speed of the spindle motor. The output from this frequency generator 17 is supplied to a zero cross detector 19 via an FG amplifier 18. The zero-cross detector 19 shapes the waveform of the input signal and supplies it to the comparator 20 as well as to the microprocessor 21 as a TACH signal. on the other hand,
An oscillator 22 is provided, and a signal from the oscillator 22 is supplied to the comparator 20 as a reference signal via a frequency divider 23.

前記比較部20はゼロクロス検出器19からの
モータの回転数に対応した周波数と前記分周器2
3からの基準周波数とを比較し、その比較出力を
積分器24、制御アンプ25及びアンドゲート2
6を介して前記増幅制御部16に供給している。
前記アンドゲート26は前記マイクロプロセツサ
21からのstart/stop信号によつつてそのゲー
トが開閉制御される。前記増幅制御部16は比較
出力の入力によつて前記各出力アンプ14a,1
4b,14cのスイツチングタイミングを制御す
る。
The comparator 20 compares the frequency corresponding to the motor rotation speed from the zero cross detector 19 with the frequency divider 2.
3, and the comparison output is sent to the integrator 24, control amplifier 25 and AND gate 2.
6 to the amplification control section 16.
The opening and closing of the AND gate 26 is controlled by a start/stop signal from the microprocessor 21. The amplification control section 16 controls each output amplifier 14a, 1 by inputting the comparison output.
Controls the switching timing of 4b and 14c.

前記マイクロプロセツサ21はTACH信号を
入力され、第2図に示すようにその信号に立上が
りで第3図に示す外部割込み処理を行う。この外
部割込みは先ずプログラムカウンタ、スタツクポ
インタ、汎用レジスタ及びアキユームレータを順
次セーブする。この状態で次に状態反転手段であ
るTACHフラグがセツトされているか否かをチ
エツクする。そして、TACHフラグがセツトさ
れていなければ一回目のTACH信号入力である
と判断してそのフラグをセツトし、さらに比較カ
ウンタ及びタイマカウンタをゼロにセツトする。
この状態でタイマ割込みを許可し、タイマカウン
タを始動させる。そして汎用レジスタ及びアキユ
ームレータ、スタツクポインタ、プログラムカウ
ンタを順次リストアさせ、メインルーチンへリタ
ーンする。
The microprocessor 21 receives the TACH signal and, as shown in FIG. 2, performs external interrupt processing as shown in FIG. 3 at the rising edge of the signal. This external interrupt first saves the program counter, stack pointer, general purpose registers, and accumulator in sequence. In this state, it is next checked whether the TACH flag, which is state inversion means, is set. If the TACH flag is not set, it is determined that this is the first TACH signal input, and the flag is set, and the comparison counter and timer counter are set to zero.
In this state, timer interrupts are enabled and the timer counter is started. Then, the general-purpose register, accumulator, stack pointer, and program counter are sequentially restored, and the process returns to the main routine.

またTACH信号の入力時にTACHフラグがセ
ツトされていると二回目のTACH信号の入力で
あると判断しタイマカウンタのカウント値を読出
す。(タイマ制御手段)次にその読み出したカウ
ント値を予め設定された下限値及び上限値と比較
し、カウント値が下限値以上で上限値以下のとき
Ready信号を出力する。またカウント値が下限値
以下でであつたり、上限値以上であつたりしたと
きにはReady信号の出力を停止制御する。そして
最後にTACHフラグをリセツトして一回目と同
様に汎用レジスタ及びアキユームレータ、スタツ
クポインタ、プログラムカウンタを順次リストア
させ、メインルーチンへリターンする。
If the TACH flag is set when the TACH signal is input, it is determined that the TACH signal is input for the second time, and the count value of the timer counter is read. (Timer control means) Next, compare the read count value with the preset lower limit value and upper limit value, and when the count value is greater than or equal to the lower limit value and less than the upper limit value,
Outputs Ready signal. Further, when the count value is below the lower limit value or above the upper limit value, the output of the Ready signal is controlled to be stopped. Finally, the TACH flag is reset, the general-purpose register, accumulator, stack pointer, and program counter are sequentially restored in the same manner as the first time, and the process returns to the main routine.

このような構成の本発明実施例においてはスピ
ンドルモータが回転するとその回転周期に対応し
たTACH信号が発生し、その信号の立上がりに
よつてマイクロプロセツサ21で外部割込みがか
かる。そしてこの外部割込みによりタイマカウン
タがカウント動作を開始する。そして二回目の外
部割込みがかかるとタイマカウンタのカウント値
が読み出されそのカウント値が予め設定された上
限値と下限値との間になつているかがチエツクさ
れる。そしてカウント値が上限値と下限値との間
になつているとき始めてReady信号が発生する。
In the embodiment of the present invention having such a configuration, when the spindle motor rotates, a TACH signal corresponding to the rotation period is generated, and an external interrupt is generated in the microprocessor 21 when this signal rises. This external interrupt causes the timer counter to start counting. When the second external interrupt occurs, the count value of the timer counter is read and it is checked whether the count value is between a preset upper limit value and a lower limit value. The Ready signal is generated only when the count value is between the upper limit value and the lower limit value.

従つてスピンドルモータにデイスクをセツトし
て回転を開始させた場合にスピンドルモータの回
転が正常回転になつてタイマカウンタのカウント
値が上限値と下限値との間に入つたとき始めて
Ready信号が発生するので、回転が正常回転に達
しない内にReady信号が発生する不都合は生じな
い。また、スピンドルモータが正常回転になると
割込みによつて直ちにReady信号が発生するので
迅速な情報の書込みや読出しができる。
Therefore, when a disk is set in the spindle motor and rotation is started, the rotation of the spindle motor becomes normal and the count value of the timer counter falls between the upper limit value and the lower limit value.
Since the Ready signal is generated, there is no problem in that the Ready signal is generated before the rotation reaches normal rotation. Further, when the spindle motor starts rotating normally, a ready signal is immediately generated by an interrupt, so that information can be written or read quickly.

また、モータ制御用のTACH信号を利用して
外部割込みをかけ後は内部のタイマを利用してい
るのでIndex信号をカウントする場合のようにフ
リツプフロツプやワンシヨツトマルチバイブレー
タなどの特別な回路は必要としない。
Also, since the internal timer is used after an external interrupt is generated using the TACH signal for motor control, special circuits such as flip-flops and one-shot multivibrators are not required as in the case of counting the Index signal. do not.

[発明の効果] 以上詳述したようにこの発明によれば、デイス
クが確実に正常回転状態になつてからReady信号
を発生させることができ、しかもReady信号の発
生を迅速にできる磁気デイスクのレデイ信号発生
装置を提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, a ready signal for a magnetic disk can be generated which can generate a ready signal after the disk is reliably in a normal rotation state, and which can generate the ready signal quickly. A signal generator can be provided.

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

第1図はこの発明の実施例を示すブロツク図、
第2図はTACH信号及び内部タイマのカウント
動作期間を示す波形図、第3図はマイクロプロセ
ツサの外部割込み処理を示す流れ図、第4図はイ
ンデツクス(Index)信号を示す波形図、第5図
及び第6図は従来例を示す回路図である。 13a,13b,13c…モータのコイル、1
7…周波数検出器、19…ゼロクロス検出器、2
1…マイクロプロセツサ。
FIG. 1 is a block diagram showing an embodiment of this invention.
Figure 2 is a waveform diagram showing the TACH signal and the counting operation period of the internal timer, Figure 3 is a flowchart showing the microprocessor's external interrupt processing, Figure 4 is a waveform diagram showing the index signal, and Figure 5. and FIG. 6 are circuit diagrams showing a conventional example. 13a, 13b, 13c...Motor coil, 1
7...Frequency detector, 19...Zero cross detector, 2
1...Microprocessor.

Claims (1)

【特許請求の範囲】[Claims] 1 スピンドルモータの回転周期を検知する検知
手段と、この検知手段による回転周期検知出力に
応動して2つの状態を交互に反転する状態反転手
段と、この状態反転手段が一方の状態のとき前記
検知手段からの回転周期検知出力に応動してタイ
マ割込みを許可してタイマカウンタのカウント動
作を開始させ、前記状態反転手段がもう一方の状
態のとき前記検知手段からの回転周期検知出力に
応動して前記タイマカウンタのカウント値を読出
すタイマ制御手段と、このタイマ制御手段にて読
み出されたタイマ値を予め設定された上限値及び
下限値と比較し、タイマ値が上限値と下限値との
間の値のときレデイ信号を出力する手段とを具備
してなることを特徴とする磁気デイスクのレデイ
信号発生装置。
1: a detection means for detecting the rotation period of the spindle motor; a state reversal means for alternately reversing two states in response to the rotation period detection output from the detection means; In response to the rotation period detection output from the detection means, a timer interrupt is enabled and a timer counter starts counting, and when the state reversing means is in the other state, in response to the rotation period detection output from the detection means. A timer control means for reading out the count value of the timer counter, and a timer value read by the timer control means is compared with a preset upper limit value and a lower limit value, and the timer value is determined to be between the upper limit value and the lower limit value. 1. A ready signal generating device for a magnetic disk, comprising means for outputting a ready signal when the value is between.
JP19644185A 1985-09-05 1985-09-05 Magnetic disk ready signal generator Granted JPS6257163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19644185A JPS6257163A (en) 1985-09-05 1985-09-05 Magnetic disk ready signal generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19644185A JPS6257163A (en) 1985-09-05 1985-09-05 Magnetic disk ready signal generator

Publications (2)

Publication Number Publication Date
JPS6257163A JPS6257163A (en) 1987-03-12
JPH0576714B2 true JPH0576714B2 (en) 1993-10-25

Family

ID=16357874

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19644185A Granted JPS6257163A (en) 1985-09-05 1985-09-05 Magnetic disk ready signal generator

Country Status (1)

Country Link
JP (1) JPS6257163A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4968485A (en) * 1987-09-25 1990-11-06 Shimadzu Corporation Arrangements for preparative route leading to water analysis

Also Published As

Publication number Publication date
JPS6257163A (en) 1987-03-12

Similar Documents

Publication Publication Date Title
JPS5927013B2 (en) Speed control method of magnetic tape feed motor
US5010283A (en) Motor control circuit
JPH0576714B2 (en)
JPH0519228B2 (en)
JPS62123991A (en) Pulse motor drive control device
JPS6323758B2 (en)
JP3491372B2 (en) Failure detection method of input capture circuit
JPS5947364B2 (en) Preamble detection device
JPH0356984A (en) Revolution speed change detecting device
JP3068317B2 (en) Microcomputer
JP2940533B2 (en) Pause mode control device in recording / reproducing device
JP3251007B2 (en) Disk drive device
JPS61144746A (en) Magnetic recording and reproducing device
JPS58161174A (en) Information processor
JPH0382387A (en) Constant-speed control system for dc servo motor
JPS6015181Y2 (en) Rotating body rotation direction discrimination circuit
JP3140073B2 (en) Motor speed detection circuit
JPH0226068Y2 (en)
JPH03139191A (en) Speed controller for induction motor
JPS63205852A (en) Detection circuit for spindle rotation abnormality
JPH02119893A (en) Industrial sewing machine control device
JPH0934751A (en) Watchdog timer circuit for microcomputer
JPS61224890A (en) Speed controller
JPS5920182B2 (en) Tape speed display circuit
JPH02155484A (en) Microprocessor having capture mechanism