JP2001282402A - Recording medium controller - Google Patents

Recording medium controller

Info

Publication number
JP2001282402A
JP2001282402A JP2000100496A JP2000100496A JP2001282402A JP 2001282402 A JP2001282402 A JP 2001282402A JP 2000100496 A JP2000100496 A JP 2000100496A JP 2000100496 A JP2000100496 A JP 2000100496A JP 2001282402 A JP2001282402 A JP 2001282402A
Authority
JP
Japan
Prior art keywords
recording medium
medium control
power supply
data
sector
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
JP2000100496A
Other languages
Japanese (ja)
Inventor
Yukinari Oketa
幸成 桶田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000100496A priority Critical patent/JP2001282402A/en
Publication of JP2001282402A publication Critical patent/JP2001282402A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a recording medium controller capable of preventing a damage of a recording medium in the case of plug and play or generation of an abnormality. SOLUTION: A reading operation or a writing operation of data to the recording medium 1a is controlled by a recording medium control circuit 2 and the abnormality of a primary power source 4 is detected by a primary power source monitoring circuit 3. The recording medium 1a is controlled to continue an operation until an operation for one sector is completed and not to be transited to a new operation after a series of operations are completed when the abnormality is detected especially in the recording medium control circuit 2. Thus, the damage of the recording medium such as damage of a sector is prevented since interruption of an operation in timing when the damage of the recording medium 1a is the most incidental is evaded.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、通信機器等に適
用される記録媒体制御装置に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a recording medium control device applied to communication equipment and the like.

【0002】[0002]

【従来の技術】図18は、特許2885136号「監視
制御システム」に記載された活線挿抜時のバックアップ
方式を示す概略図である。この方式では、CPU(Cent
ral Processing Unit:中央処理装置)基盤101の挿抜
時に連動するプロテクトスイッチ103によって、バッ
クアップメモリ114に挿抜時のデータを書き込み、バ
ックアップメモリ114へのローカルパス113を閉塞
させている。
2. Description of the Related Art FIG. 18 is a schematic diagram showing a backup system at the time of hot swapping described in Japanese Patent No. 2885136 "Monitoring and Control System". In this method, the CPU (Cent
ral Processing Unit (central processing unit) The data at the time of insertion / extraction is written to the backup memory 114 by the protect switch 103 which is linked when the substrate 101 is inserted / extracted, and the local path 113 to the backup memory 114 is closed.

【0003】[0003]

【発明が解決しようとする課題】このようなデータバッ
クアップ用のメモリとして、例えばフラッシュメモリカ
ードを用いた場合、1セクタが最小データ単位となる。
1セクタは512バイトから成り、512バイト単位で
エラー検出や訂正の処理を実施している。
When a flash memory card is used as such a data backup memory, one sector is the minimum data unit.
One sector is composed of 512 bytes and performs error detection and correction processing in units of 512 bytes.

【0004】512バイトの書き込みが途中で終了した
場合は、そのセクタ内でデータの不整合が発生し、セク
タ自身が無効と判断される。もし、基板の挿抜時に、従
来の技術の通りにデータ書き込みを終了させれば、セク
タの書き込み途中で動作が終了する可能性がある。
If the writing of 512 bytes is completed halfway, data inconsistency occurs in that sector, and the sector itself is determined to be invalid. If data writing is terminated as in the prior art at the time of insertion / removal of the board, the operation may be terminated in the middle of writing the sector.

【0005】上記のとおりセクタの途中で書き込みが終
わり、次にそのセクタを読み出そうとしても、セクタ単
位の書き込みが終了していないため、該当セクタが無効
と判断され、そのセクタを再び使用する事ができない。
このように、基板の挿抜毎にセクタが破壊され、フラッ
シュメモリカードの容量がその度に減少するという問題
があった。
[0005] As described above, even if the writing is completed in the middle of a sector and the next attempt is made to read the sector, since the writing in sector units has not been completed, the sector is determined to be invalid and the sector is used again. I can't do things.
Thus, there is a problem that the sector is destroyed each time the board is inserted and removed, and the capacity of the flash memory card is reduced each time.

【0006】フラッシュメモリカードでは、データの読
み出し時も、書き込み時と同様にセクタ単位で処理する
ため、1セクタの読み出しが途中で終了した場合、セク
タが破壊される可能性がある。これは、読み出し時にフ
ラッシュメモリカードの内部処理としてセクタ置き換え
等のデータ書き換えが行なわれるためである。
In a flash memory card, data is read out in units of sectors in the same way as when data is written, so if one sector is read out halfway, the sector may be destroyed. This is because at the time of reading, data rewriting such as sector replacement is performed as internal processing of the flash memory card.

【0007】上記の例は基板の挿抜時に関するものであ
るが、電源異常またはCPU異常の発生時等にも同様に
セクタ破壊の問題があった。
The above example relates to the insertion and removal of the board. However, there is also a problem of sector destruction when a power supply abnormality or a CPU abnormality occurs.

【0008】この発明の目的は、異常発生時の記録媒体
の破壊を防止できる記録媒体制御装置を提供することで
ある。
It is an object of the present invention to provide a recording medium control device which can prevent the recording medium from being destroyed when an abnormality occurs.

【0009】[0009]

【課題を解決するための手段】この発明は、異常検出回
路が異常を検出した場合に、記録媒体制御回路は、記録
媒体に対し最小データ単位分の動作が終了するまで動作
を継続させ、その一連の動作が終了した後には新たな動
作に移行しない制御を行う事を特徴とする記録媒体制御
装置である。
According to the present invention, when an abnormality detection circuit detects an abnormality, the recording medium control circuit causes the recording medium to continue operating until the operation for the minimum data unit is completed. The recording medium control device is characterized in that after a series of operations is completed, control is performed so as not to shift to a new operation.

【0010】またこの発明の異常検出回路は、外部から
供給される電力を監視する電源監視回路によって構成さ
れる。
The abnormality detection circuit according to the present invention is constituted by a power supply monitoring circuit for monitoring electric power supplied from the outside.

【0011】またこの発明の異常検出回路は、2次電源
から供給される電力を監視する2次電源監視回路によっ
て構成される。
The abnormality detection circuit according to the present invention comprises a secondary power supply monitoring circuit for monitoring power supplied from the secondary power supply.

【0012】またこの発明の異常検出回路は、リセット
スイッチを監視するリセット監視回路によって構成され
る。
Further, the abnormality detecting circuit of the present invention comprises a reset monitoring circuit for monitoring a reset switch.

【0013】またこの発明の異常検出回路は、CPUを
監視するCPU監視回路によって構成される。
Further, the abnormality detecting circuit according to the present invention comprises a CPU monitoring circuit for monitoring the CPU.

【0014】またこの発明の異常検出回路は、振動を監
視する振動監視回路によって構成される。
Further, the abnormality detecting circuit according to the present invention comprises a vibration monitoring circuit for monitoring vibration.

【0015】またこの発明の記録媒体制御回路は、デー
タ送受信用メモリを用いて記録媒体に対し最小データ単
位分の読み出し又は書き込みを一括して行う。
Further, the recording medium control circuit of the present invention collectively performs reading or writing of the minimum data unit on the recording medium using the data transmission / reception memory.

【0016】またこの発明の最小データ単位は、記録媒
体の1セクタまたは複数セクタから成る1ファイルによ
って構成される。
The minimum data unit according to the present invention is constituted by one file of one sector or a plurality of sectors of the recording medium.

【0017】またこの発明は、現用系では記録媒体に書
き込んだデータを送信し、予備系では記録媒体に書き込
むためのデータを受信する通信回路をさらに備えてい
る。
Further, the present invention further includes a communication circuit for transmitting data written to the recording medium in the active system and receiving data to be written in the recording medium in the standby system.

【0018】[0018]

【発明の実施の形態】(第1実施形態)図1は、第1実
施形態として活線挿抜回路基板の電気的構成を示すブロ
ック図である。活線挿抜回路基板は、基板20上に記録
媒体制御回路2、1次電源監視回路3、CPU5、送受
信用メモリ10、2次電源14、2次電源監視回路15
を実装したものであって、加入者系伝送装置などの通信
装置本体に対して、活線状態のままで挿抜可能なプリン
ト回路基板である。ただし、通信装置に限るものでな
く、記録媒体を使用するコンピュータ機器等にも応用で
きる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) FIG. 1 is a block diagram showing an electric configuration of a hot-swap circuit board as a first embodiment. The hot-swap circuit board includes a recording medium control circuit 2, a primary power supply monitoring circuit 3, a CPU 5, a transmission / reception memory 10, a secondary power supply 14, and a secondary power supply monitoring circuit 15 on a substrate 20.
Which is a printed circuit board which can be inserted into and removed from a communication device main body such as a subscriber transmission device in a live state. However, the present invention is not limited to a communication device, and can be applied to a computer device using a recording medium.

【0019】記録装置1は、たとえばフラッシュメモリ
カードのように基板20に対し着脱可能な記憶装置であ
り、ドライブ(読み書き装置)とメディア(記録媒体)
とが一体となったものである。データのバックアップ用
に使用される。なお、本実施形態では、フラッシュメモ
リカードを例に説明するが、記録装置1はこれに限るも
のではなく、ハードディスクドライブのようにメディア
と一体でも良いし、CD−R(Compact Disk-Recordabl
e)ドライブのようにメディアと別体でも良い。また、
記録方式についても、磁気記録方式でもよいし、光記録
方式または光磁気記録方式でも良い。
The recording device 1 is a storage device, such as a flash memory card, which is detachable from the substrate 20, and includes a drive (read / write device) and a medium (recording medium).
And are integrated. Used for data backup. In this embodiment, a flash memory card will be described as an example. However, the recording device 1 is not limited to this, and may be integrated with a medium such as a hard disk drive, or may be a CD-R (Compact Disk-Recordable).
e) It may be separate from the media like a drive. Also,
The recording method may be a magnetic recording method, an optical recording method or a magneto-optical recording method.

【0020】記録媒体制御回路2は、記録媒体1aに対
するデータの読み出し動作または書き込み動作を制御す
る。CPU5は、所定のプログラムに従って記録媒体制
御回路2を制御する。1次電源監視回路3は、1次電源
4の電圧を常時検出することでこれを監視しており、電
圧の変動に基づいて異常を検出する。2次電源監視回路
15は、1次電源4の電圧を常時検出することでこれを
監視しており、電圧の変動に基づいて異常を検出する。
1次電源4は、本体に設けられた電源であり、基板が本
体に挿入された状態で基板内に、たとえば48ボルトの
高い電圧を供給する。2次電源14は、1次電源4から
の高い電圧を降下させて、たとえば3ボルト及び5ボル
トの低い電圧を基板内の各回路に供給する。送受信用メ
モリ10は、記録媒体1aの1セクタ分のデータを格納
するための記憶装置であり、RAM(Random Access Me
mory)等で構成される。
The recording medium control circuit 2 controls a data read operation or a data write operation on the recording medium 1a. The CPU 5 controls the recording medium control circuit 2 according to a predetermined program. The primary power supply monitoring circuit 3 monitors the voltage of the primary power supply 4 by constantly detecting the voltage, and detects an abnormality based on the fluctuation of the voltage. The secondary power supply monitoring circuit 15 monitors the voltage of the primary power supply 4 by constantly detecting the voltage, and detects an abnormality based on the fluctuation of the voltage.
The primary power supply 4 is a power supply provided in the main body, and supplies a high voltage of, for example, 48 volts into the substrate in a state where the substrate is inserted into the main body. The secondary power supply 14 drops the high voltage from the primary power supply 4 and supplies a low voltage of, for example, 3 volts and 5 volts to each circuit in the board. The transmission / reception memory 10 is a storage device for storing data for one sector of the recording medium 1a, and is a random access memory (RAM).
mory).

【0021】図2は、記録媒体1aへの1セクタの書き
込み動作を示すタイミングチャートである。信号WE
(Write Enable)*は、記録媒体1aに書き込みを指令
する信号であり、記録媒体制御回路2から記録装置1に
書き込みデータと共に送信される。信号BUSY*は、
記録媒体1aへのアクセスが許可または禁止されている
ことを示す信号であり、記録装置1から記録媒体制御回
路2に送信される。信号BUSY*がLレベルのとき、
記録装置1自身は動作中であって、その間は書き込み等
のアクセスが禁止される。信号INT(INTerrupt)*
は、信号BUSY*が終了した時にCPU5にそのこと
を通知するための信号であり、記録媒体制御回路2から
CPU5に送信され、CPU5の割込信号として使用さ
れる。信号INT*のLレベルは、信号BUSY*が終
了したことを示す。
FIG. 2 is a timing chart showing an operation of writing one sector to the recording medium 1a. Signal WE
(Write Enable) * is a signal for instructing the recording medium 1a to write, and is transmitted from the recording medium control circuit 2 to the recording device 1 together with the write data. The signal BUSY * is
This signal indicates that access to the recording medium 1a is permitted or prohibited, and is transmitted from the recording device 1 to the recording medium control circuit 2. When the signal BUSY * is at the L level,
The recording device 1 itself is in operation, during which access such as writing is prohibited. Signal INT (INTerrupt) *
Is a signal for notifying the CPU 5 when the signal BUSY * is completed. The signal is transmitted from the recording medium control circuit 2 to the CPU 5 and used as an interrupt signal of the CPU 5. The L level of the signal INT * indicates that the signal BUSY * has ended.

【0022】図3は、記録媒体1aへの1セクタの書き
込み手順を示すフローチャートである。ステップa1に
おいて書き込み動作を開始すると、次のステップa2に
おいて1セクタ(=512バイト)のデータを記録媒体
1aに書き込む指令を送信する。書き込み指令の送信が
終了すると、次のステップa3において、記録装置1の
書き込み動作に移り、信号BUSY*のLレベル期間を
発生させる。信号BUSY*のLレベル期間が終了する
と、次のステップa4において、信号INT*のLレベ
ル期間を発生させる。次のステップa5において、CP
U5はINT*のLレベルを解除し、ステップa6にお
いて書き込み動作を終了する。
FIG. 3 is a flowchart showing a procedure for writing one sector on the recording medium 1a. When a write operation is started in step a1, an instruction to write data of one sector (= 512 bytes) to the recording medium 1a is transmitted in the next step a2. When the transmission of the write command is completed, in the next step a3, the operation shifts to the write operation of the recording device 1, and an L level period of the signal BUSY * is generated. When the L-level period of the signal BUSY * ends, in the next step a4, an L-level period of the signal INT * is generated. In the next step a5, the CP
U5 releases the L level of INT *, and ends the write operation in step a6.

【0023】図4は、記録媒体1aへの1セクタの書き
込み中に1次電源異常を検出したときの動作を示すフロ
ーチャートである。まずステップb1において、1次電
源監視回路3が1次電源異常を検出すると、次のステッ
プb2に進む。1次電源異常は、1次電源4が故障した
場合の他、基板20が本体から抜去された場合に、電力
供給が停止して検出される。ステップb2では、記録媒
体のセクタ単位分の書き込み動作が終了するまで書き込
み動作を監視しており、書き込み動作が終了すると、次
のステップb3に進む。ステップb3では、CPU5か
ら新たな書き込み命令が発せられた場合でも、記録媒体
制御回路2は新規書き込みサイクルへの移行を拒否す
る。
FIG. 4 is a flowchart showing an operation when a primary power supply abnormality is detected during writing of one sector to the recording medium 1a. First, in step b1, when the primary power supply monitoring circuit 3 detects a primary power supply abnormality, the process proceeds to the next step b2. The primary power supply abnormality is detected not only when the primary power supply 4 fails but also when the board 20 is removed from the main body, and the power supply is stopped. At step b2, the writing operation is monitored until the writing operation for the sector unit of the recording medium is completed. When the writing operation is completed, the process proceeds to the next step b3. In step b3, even when a new write command is issued from the CPU 5, the recording medium control circuit 2 refuses to shift to a new write cycle.

【0024】書き込み拒否の方法としては、図1のCP
Uバス上でのCPU5からの命令に対して、記録媒体制
御装置2からリトライ信号を返し続ける等がある。これ
により、CPU5から見れば、1次電源異常発生・否に
かかわらず同一動作が可能である。
As a method of rejecting writing, the CP shown in FIG.
In response to an instruction from the CPU 5 on the U bus, the recording medium control device 2 keeps returning a retry signal. As a result, the same operation is possible from the viewpoint of the CPU 5 irrespective of whether or not a primary power supply abnormality has occurred.

【0025】ステップb4では、1次電源の異常が継続
的に検出されているか否かを判断し、異常が検出されな
くなるまで、ステップb3とステップb4の処理を繰り
返す。異常が検出されなくなった場合、ステップb5に
て通常のシーケンスに戻す。ここで、新規書き込みサイ
クルへの移行が可能となる。
At step b4, it is determined whether or not the abnormality of the primary power supply is continuously detected, and the processing of steps b3 and b4 is repeated until the abnormality is no longer detected. If no abnormality is detected, the process returns to the normal sequence in step b5. Here, it is possible to shift to a new write cycle.

【0026】このように、1次電源4を監視して記録媒
体1aへの書き込み制御を行うことにより、動作中の1
セクタ分の書き込みを完了させた後、その動作を停止さ
せるため、記録媒体1aのセクタ破壊を防止できる。
As described above, by monitoring the primary power supply 4 and controlling the writing to the recording medium 1a, the primary power supply 4 during operation is controlled.
After the writing for the sector is completed, the operation is stopped, so that sector destruction of the recording medium 1a can be prevented.

【0027】図5は、1セクタ送受信用メモリを用いた
書き込み動作を示すフローチャートである。ステップc
1において書き込み動作が開始されると、送受信用メモ
リ10に書き込み用のデータを書き込む。次のステップ
c2において、送受信用メモリ10への1セクタ分デー
タの書き込みが終了したか否かを判断する。1セクタ分
のデータが書き込まれたら、次のステップc3におい
て、送受信用メモリ10のデータを一括して記録媒体1
aに書き込む。
FIG. 5 is a flowchart showing a write operation using the one-sector transmission / reception memory. Step c
When a write operation is started in 1, write data is written in the transmission / reception memory 10. In the next step c2, it is determined whether or not the writing of data for one sector into the transmission / reception memory 10 has been completed. After the data for one sector has been written, in the next step c3, the data in the transmission / reception memory 10 is collectively stored in the recording medium 1.
Write to a.

【0028】このように、1セクタ送受信用メモリ10
を別途持つ事によって、記録媒体1aに対しての1セク
タ分のデータの書き込みを高速に行うことができる。ま
た、CPU5に割込が入った時でも、記録媒体1aに対
する書き込み速度に影響を与えることがない。さらに、
1セクタ送受信用メモリ10をデータ読み出し時に用い
てもよく、読み出しを高速化できる。このような図5の
動作を複数回繰り返すことによって、全データを記録媒
体1aに書き込むことができる。
As described above, the one-sector transmission / reception memory 10
, It is possible to write data for one sector to the recording medium 1a at high speed. Further, even when the CPU 5 is interrupted, the writing speed to the recording medium 1a is not affected. further,
The one-sector transmission / reception memory 10 may be used at the time of reading data, and reading can be speeded up. By repeating the operation of FIG. 5 a plurality of times, all data can be written to the recording medium 1a.

【0029】図1〜図5では、動作単位を最小データ単
位の1セクタとしたが、記録媒体1aの管理用のデータ
単位は必ずしも1セクタではなく、1ファイルが複数セ
クタで構成される場合のように、動作単位を複数セクタ
分のデータとするのが好ましい場合がある。この場合、
1ファイル単位で読み出さないと意味の無いデータとな
りデータを処理するソフトウェアが誤動作する可能性が
ある。このような場合には、動作単位を1ファイルとす
るのが適当である。以下、動作単位を1ファイルとした
場合の動作例について説明する。
In FIG. 1 to FIG. 5, the operation unit is one minimum data unit, but the data unit for managing the recording medium 1a is not necessarily one sector. As described above, in some cases, it is preferable that the operation unit is data for a plurality of sectors. in this case,
Unless the data is read out in units of one file, the data becomes meaningless and the software for processing the data may malfunction. In such a case, it is appropriate that the operation unit is one file. Hereinafter, an operation example when the operation unit is one file will be described.

【0030】図6は、記録媒体への1ファイル単位の書
き込み途中で1次電源異常を検出したときの動作を示す
フローチャートである。図6のフローチャートは、図4
のフローチャートの動作単位を1ファイル毎に変更した
ものである。すなわち、ステップd1において、1次電
源監視回路3が1次電源異常を検出すると、次のステッ
プd2に進む。ステップd2では、記録媒体の1ファイ
ル分の書き込み動作が終了するまで書き込み動作を監視
しており、書き込み動作が終了すると、次のステップd
3に進む。ステップd3では、CPU5から新たな書き
込み命令が発せられた場合でも、記録媒体制御回路2は
新規書き込みサイクルへの移行を拒否する。ステップd
4では、1次電源の異常が継続的に検出されているか否
かを判断し、異常が検出されなくなるまで、ステップd
3とステップd4の処理を繰り返す。異常が検出されな
くなった場合、ステップd5にて通常のシーケンスに戻
す。ここで、新規書き込みサイクルが実行可能となる。
FIG. 6 is a flowchart showing an operation when a primary power supply abnormality is detected during writing of one file unit to a recording medium. The flowchart of FIG.
The operation unit of the flowchart of FIG. 7 is changed for each file. That is, when the primary power supply monitoring circuit 3 detects a primary power supply abnormality in step d1, the process proceeds to the next step d2. In step d2, the writing operation is monitored until the writing operation for one file on the recording medium is completed, and when the writing operation is completed, the next step d
Proceed to 3. In step d3, even when a new write command is issued from the CPU 5, the recording medium control circuit 2 refuses to shift to a new write cycle. Step d
In step 4, it is determined whether or not the abnormality of the primary power supply is continuously detected.
3 and step d4 are repeated. If no abnormality is detected, the process returns to the normal sequence in step d5. Here, a new write cycle can be executed.

【0031】このように、1次電源4を監視して記録媒
体1aへの書き込み制御を行うことにより、少なくとも
動作中の1ファイルに関する書き込み動作を完了させる
ため、記録媒体1aのセクタ破壊を防止できる。また、
データ読み出しについても同様に1ファイル毎に動作制
御することによって、記録媒体1aのセクタ破壊を防止
できる。
As described above, by monitoring the primary power supply 4 and controlling the writing to the recording medium 1a, at least the writing operation for one file in operation is completed, so that sector destruction of the recording medium 1a can be prevented. . Also,
Similarly, by controlling the operation of reading data for each file, sector destruction of the recording medium 1a can be prevented.

【0032】図7は、記録媒体1aへの1セクタの読み
出し動作を示すタイミングチャートである。信号OE
(Output Enable)*は、記録媒体1aから1セクタ分
のデータ読み出しを指令する信号であり、記録媒体制御
回路2から記録装置1に送信される。読み出しデータ
は、信号OE*の発生期間とほぼ同時期に記録装置1か
ら記録媒体制御回路2に送信される。信号BUSY*・
信号INT*は、図2と同様の信号である。
FIG. 7 is a timing chart showing an operation of reading one sector from the recording medium 1a. Signal OE
(Output Enable) * is a signal for instructing data reading for one sector from the recording medium 1a, and is transmitted from the recording medium control circuit 2 to the recording apparatus 1. The read data is transmitted from the recording apparatus 1 to the recording medium control circuit 2 substantially at the same time as the generation period of the signal OE *. Signal BUSY *
The signal INT * is the same signal as in FIG.

【0033】図8は、記録媒体1aへの1セクタの読み
出し中に1次電源異常を検出したときの動作を示すフロ
ーチャートである。各ステップの動作は、図4のフロー
チャートの書き込み動作を読み出し動作に置き換えたも
のである。すなわち、ステップe1において、1次電源
監視回路3が1次電源異常を検出すると、次のステップ
e2に進む。ステップe2では、セクタ単位分の動作が
終了するまで読み出し動作を監視しており、動作が終了
すると、次のステップe3に進む。ステップe3では、
CPU5から新たな読み出し命令が発せられた場合で
も、記録媒体制御回路2が新規読み出しサイクルへの移
行を拒否する。次のステップe4では、1次電源の異常
が継続的に検出されているか否かを判断し、異常が検出
されなくなるまで、ステップe3とステップe4の処理
を繰り返す。異常が検出されなくなった場合、ステップ
e5にて通常のシーケンスに戻す。読み出し動作時で
も、1次電源異常を検出した場合は、新たな読み出しサ
イクルに入らない。
FIG. 8 is a flowchart showing an operation when a primary power supply abnormality is detected during reading of one sector from the recording medium 1a. The operation of each step is obtained by replacing the write operation in the flowchart of FIG. 4 with a read operation. That is, when the primary power supply monitoring circuit 3 detects a primary power supply abnormality in step e1, the process proceeds to the next step e2. In step e2, the read operation is monitored until the operation for the sector unit is completed. When the operation is completed, the process proceeds to the next step e3. In step e3,
Even when a new read command is issued from the CPU 5, the recording medium control circuit 2 refuses to shift to a new read cycle. In the next step e4, it is determined whether or not the abnormality of the primary power supply is continuously detected, and the processing of steps e3 and e4 is repeated until the abnormality is no longer detected. If no abnormality is detected, the process returns to the normal sequence in step e5. Even in the read operation, if a primary power supply abnormality is detected, a new read cycle does not start.

【0034】このように、1次電源4を監視して記録媒
体1aへの読み出し制御を行うことにより、動作中の1
セクタに関する読み出し動作を完了させた後その動作を
停止させるため、記録媒体1aのセクタ破壊を防止でき
る。
As described above, by monitoring the primary power supply 4 and performing read control on the recording medium 1a, the primary power supply 4 during operation is controlled.
Since the read operation on the sector is stopped after the operation is completed, the sector destruction of the recording medium 1a can be prevented.

【0035】図9は、記録装置1へのコマンド発行動作
を示すタイミングチャートである。信号WE*・BUS
Y*・INT*は、図2と同様の信号である。コマンド
は、読み出し指令および書き込み指令以外の指令、たと
えば記録媒体1aのアクセス領域を指定するためのもの
である。信号BUSY*のLレベルが終了すると、信号
INT*が発生した後、コマンドが発行可能になる。
FIG. 9 is a timing chart showing a command issuing operation to the recording apparatus 1. Signal WE * ・ BUS
Y * INT * is the same signal as in FIG. The command is a command other than the read command and the write command, for example, for specifying an access area of the recording medium 1a. When the L level of the signal BUSY * ends, a command can be issued after the signal INT * is generated.

【0036】図10は、記録装置1へのコマンド発行中
に1次電源異常を検出したときの動作を示すフローチャ
ートである。ステップf1において、1次電源監視回路
3が1次電源異常を検出すると、次のステップf2に進
む。ステップf2では、信号BUSY*を監視してお
り、信号BUSY*のLレベルが終了すると、次のステ
ップf3に進む。ステップf3では、新たなコマンドの
発行を禁止し、次のステップf4において、1次電源の
異常が継続的に検出されているか否かを判断する。異常
が検出されなくなるまで、ステップf3とステップf4
の処理を繰り返し、異常が検出されなくなった場合、ス
テップf5にて通常のシーケンスに戻す。このように、
コマンド発行時に1次電源異常を検出した場合は、新た
なコマンド発行を行わない。
FIG. 10 is a flowchart showing an operation when a primary power supply abnormality is detected while a command is issued to the recording apparatus 1. When the primary power supply monitoring circuit 3 detects a primary power supply abnormality in step f1, the process proceeds to the next step f2. In step f2, the signal BUSY * is monitored, and when the L level of the signal BUSY * ends, the process proceeds to the next step f3. In step f3, the issuance of a new command is prohibited, and in the next step f4, it is determined whether the abnormality of the primary power supply is continuously detected. Steps f3 and f4 until no abnormality is detected.
Is repeated, and when no abnormality is detected, the process returns to the normal sequence in step f5. in this way,
If a primary power supply abnormality is detected at the time of issuing a command, no new command is issued.

【0037】このように、1次電源4が正常動作するま
で新コマンド発行を中断するため、1次電源4の回復時
に速やかに動作を再開できる。
As described above, the issuance of the new command is suspended until the primary power supply 4 operates normally, so that the operation can be promptly resumed when the primary power supply 4 recovers.

【0038】また、ここまでは1次電源異常時の動作に
ついて説明したが、図1の2次電源14の異常時の動作
についても同様である。すなわち、2次電源監視回路1
5によって2次電源14を監視し、図4、図8の手順で
記録媒体1aへの書き込み・読み出し制御を行うことに
より、記録媒体1aのセクタ破壊を防止する事ができ
る。また、2次電源14を監視し、図10の手順でコマ
ンド発行を制御することにより、2次電源14の回復時
に速やかに動作を再開できる。
Although the operation at the time of abnormality in the primary power supply has been described above, the same applies to the operation at the time of abnormality of the secondary power supply 14 in FIG. That is, the secondary power supply monitoring circuit 1
5, the secondary power supply 14 is monitored, and writing / reading control to / from the recording medium 1a is performed according to the procedures shown in FIGS. 4 and 8, thereby preventing sector destruction of the recording medium 1a. Further, by monitoring the secondary power supply 14 and controlling the command issuance according to the procedure shown in FIG. 10, the operation can be promptly resumed when the secondary power supply 14 recovers.

【0039】(第2実施形態)図11は、この発明の第
2実施形態として活線挿抜回路基板の電気的構成を示す
ブロック図である。記録装置1、記録媒体制御回路2、
CPU5、1セクタ送受信用メモリ10は、図1と同様
のものである。リセットスイッチ7は、ユーザによって
操作可能なハードウエアスイッチでもよいし、内部処理
によって切り替えられるソフトウエアスイッチでもよ
い。リセット監視回路6は、リセットスイッチを監視し
ており、装置のリセットを検出する。ROM(Read Onl
y Memory)13には、CPU5が使用するプログラムが
格納されており、このプログラムはRAM(Random Acc
ess Memory)12にロードされる。ロードされたプログ
ラムに従って、CPU5は記録媒体制御回路2を制御す
る。また、RAM12にはCPU5の中間演算結果等も
一時的に格納される。
(Second Embodiment) FIG. 11 is a block diagram showing an electrical configuration of a hot-swap circuit board as a second embodiment of the present invention. Recording device 1, recording medium control circuit 2,
The CPU 5 and the one-sector transmission / reception memory 10 are the same as those in FIG. The reset switch 7 may be a hardware switch that can be operated by a user or a software switch that can be switched by internal processing. The reset monitoring circuit 6 monitors the reset switch and detects a reset of the device. ROM (Read Onl
y Memory) 13 stores a program used by the CPU 5, and the program is stored in a RAM (Random Acc.).
ess Memory) 12. The CPU 5 controls the recording medium control circuit 2 according to the loaded program. The RAM 12 also temporarily stores intermediate calculation results of the CPU 5 and the like.

【0040】図12は、記録媒体1aへの1セクタの書
き込み途中で装置リセットを検出したときの動作を示す
フローチャートである。ステップg1において、リセッ
ト監視回路6が装置リセットを検出した場合、次のステ
ップg2において、記録媒体1aへの1セクタの書き込
みが終了しているか否かを判断する。1セクタの書き込
み動作が完了するまで、ステップg2で記録媒体1aへ
の書き込み動作を監視し、1セクタの書き込みが完了し
た場合、次のステップg3へ進む。ステップg3では、
新たな書き込みサイクルを発生しない、すなわち次のセ
クタへの書き込みを禁止する。最後に、ステップg4に
おいて、装置リセットを実行、すなわちRAM12の記
憶内容を消去してROM13のプログラムをロードし直
す。
FIG. 12 is a flowchart showing the operation when the device reset is detected during the writing of one sector to the recording medium 1a. If the reset monitoring circuit 6 detects a device reset in step g1, it is determined in step g2 whether or not writing of one sector to the recording medium 1a has been completed. Until the writing operation of one sector is completed, the writing operation to the recording medium 1a is monitored in step g2, and when the writing of one sector is completed, the process proceeds to the next step g3. In step g3,
No new write cycle is generated, that is, writing to the next sector is prohibited. Finally, in step g4, the apparatus is reset, that is, the stored contents of the RAM 12 are erased and the program of the ROM 13 is reloaded.

【0041】このように、リセット監視回路6が装置リ
セットを検出した場合、書き込み中の1セクタ分のデー
タを書き込むまでその動作を継続させ、その後新たな書
き込み動作に移行しない制御を行う。これにより、装置
リセットに起因する記録媒体1aのセクタ破壊を防止で
きる。また、装置リセットを監視して、記録媒体1aの
読み出し動作制御を行うことによっても、記録媒体1a
のセクタ破壊を防止できる。
As described above, when the reset monitoring circuit 6 detects a device reset, the operation is continued until data for one sector being written is written, and thereafter control is performed so as not to shift to a new write operation. Thus, it is possible to prevent the sector of the recording medium 1a from being destroyed due to the device reset. Further, by monitoring the device reset and controlling the read operation of the recording medium 1a, the recording medium 1a
Sector destruction can be prevented.

【0042】(第3実施形態)図13は、この発明の第
3実施形態として活線挿抜回路基板の電気的構成を示す
ブロック図である。記録装置1、記録媒体制御回路2、
CPU5、1セクタ送受信用メモリ10は、図1と同様
のものである。CPU5は、自身の動作が正常であるこ
とを示す情報をCPU監視回路8に対して定期的に報告
している。CPU監視回路8は、このCPU5からの報
告信号を検出することによってCPU5の動作を監視す
る。報告信号を正常に検出できない場合、CPU5が何
らかの異常を起こしたものと判断する。
(Third Embodiment) FIG. 13 is a block diagram showing an electrical configuration of a hot-swap circuit board according to a third embodiment of the present invention. Recording device 1, recording medium control circuit 2,
The CPU 5 and the one-sector transmission / reception memory 10 are the same as those in FIG. The CPU 5 periodically reports information indicating that its own operation is normal to the CPU monitoring circuit 8. The CPU monitoring circuit 8 monitors the operation of the CPU 5 by detecting the report signal from the CPU 5. When the report signal cannot be detected normally, the CPU 5 determines that some abnormality has occurred.

【0043】図14は、記録媒体1aへの1セクタの書
き込み途中でCPU異常を検出したときの動作を示すフ
ローチャートである。ステップh1において、CPU監
視回路8がCPU5の異常を検出すると、次のステップ
h2において、セクタ単位のデータ書き込みが終了した
か否かを判断する。終了していない場合、ステップh3
にて記録媒体制御回路2は書き込み中セクタの残領域に
任意データを書き込む。書き込み中セクタへの動作が終
了すると、ステップh4において、次のセクタへの書き
込み動作を禁止し、新たな書き込みサイクルを発生しな
い。最後にステップh5において、装置動作を全て停止
する。
FIG. 14 is a flowchart showing an operation when a CPU error is detected during the writing of one sector to the recording medium 1a. When the CPU monitoring circuit 8 detects an abnormality in the CPU 5 in step h1, it determines in step h2 whether data writing in sector units has been completed. If not, step h3
The recording medium control circuit 2 writes arbitrary data in the remaining area of the sector being written. When the operation to the sector being written is completed, the writing operation to the next sector is prohibited in step h4, and no new write cycle is generated. Finally, in step h5, all the device operations are stopped.

【0044】このように、CPU監視回路8がCPU5
の異常を検出した場合、書き込み中セクタへの書き込み
が完了するまでデータ書き込みを続行した後、新たな書
き込み動作に移行しない制御を行うことによって、記録
媒体1aのセクタ破壊を防止できる。また、CPU5の
異常を検出した場合に、CPU5から届くべき書き込み
データの代わりに適当なデータを記録媒体1aに書き込
むことにより、CPU5からの書き込みデータが途絶え
た場合でも、記録媒体1aのセクタ破壊を防止できる。
さらに、同様な手順によって記録媒体1aのデータ読み
出し制御を行うことで、読み出し中にCPU異常を検出
した場合も、記録媒体1aの破壊を防止できる。
As described above, the CPU monitoring circuit 8
Is detected, data writing is continued until writing to the sector being written is completed, and then control is performed so as not to shift to a new writing operation, thereby preventing sector destruction of the recording medium 1a. Further, when an abnormality of the CPU 5 is detected, appropriate data is written to the recording medium 1a instead of the write data to be received from the CPU 5, so that even when the write data from the CPU 5 is interrupted, the sector destruction of the recording medium 1a is prevented. Can be prevented.
Further, by performing data read control of the recording medium 1a in a similar procedure, even when a CPU abnormality is detected during reading, the recording medium 1a can be prevented from being destroyed.

【0045】(第4実施形態)図15は、この発明の第
4実施形態として活線挿抜回路基板の電気的構成を示す
ブロック図である。記録装置1、記録媒体制御回路2、
CPU5は、図1と同様のものである。振動監視回路9
は、基板の振動を検出する回路であり、加速度センサな
どによって構成される。図15に図示していないが、図
1の1セクタ送受信用メモリ10と同じものを用いて、
記録媒体1aのデータ読み出し・書き込みを行ってもよ
い。
(Fourth Embodiment) FIG. 15 is a block diagram showing an electrical configuration of a hot-swap circuit board as a fourth embodiment of the present invention. Recording device 1, recording medium control circuit 2,
The CPU 5 is the same as in FIG. Vibration monitoring circuit 9
Is a circuit for detecting the vibration of the substrate, and is constituted by an acceleration sensor or the like. Although not shown in FIG. 15, using the same one-sector transmission / reception memory 10 of FIG.
Data reading / writing of the recording medium 1a may be performed.

【0046】図16は、記録媒体1aへの1セクタの書
き込み途中で基板振動を検出したときの動作を示すフロ
ーチャートである。ステップi1において、基板振動を
検出すると、ステップi2に進む。基板振動は、地震発
生時などの他、本体からの基板抜去時に検出される。ス
テップi2では、セクタ単位での書き込みが終了してい
るか否かを判断する。書き込み中セクタへの書き込みが
完了するまで動作を継続し、完了すれば次のステップi
3に進む。ステップi3では、新たな書き込みサイクル
を発生しない、すなわち次のセクタへの書き込み動作を
禁止する。次にステップi4において、振動の検出が継
続中であるか否かを判断する。振動が継続中である間は
書き込みを禁止し、振動が検出されなくなったときに、
最後のステップi5にて、通常のシーケンスに戻す。す
なわち、新規の書き込みサイクルへの移行を許可する。
FIG. 16 is a flowchart showing the operation when the substrate vibration is detected during the writing of one sector to the recording medium 1a. When the substrate vibration is detected in step i1, the process proceeds to step i2. The board vibration is detected when the board is removed from the main body in addition to when an earthquake occurs. In step i2, it is determined whether or not writing in sector units has been completed. The operation is continued until the writing to the writing sector is completed.
Proceed to 3. In step i3, no new write cycle is generated, that is, a write operation to the next sector is prohibited. Next, in step i4, it is determined whether or not the detection of vibration is continuing. Writing is prohibited while vibration is ongoing, and when vibration is no longer detected,
In the last step i5, the sequence is returned to the normal sequence. That is, a transition to a new write cycle is permitted.

【0047】このように、振動を検出した場合、書き込
み中セクタへの書き込みが完了するまでデータ書き込み
を続行した後、新たな書き込み動作に移行しない制御を
行うことによって、記録媒体1aのセクタ破壊を防止で
きる。また、同様な手順によって記録媒体1aのデータ
読み出し制御を行うことで、読み出し中に振動を検出し
た場合も、記録媒体1aの破壊を防止できる。さらに、
コマンド発行中に振動を検出した場合、振動検出がなく
なるまで新たなコマンド発行を禁止する制御を行うこと
によって、振動が収まった後に速やかに動作を再開でき
る。
As described above, when the vibration is detected, the data writing is continued until the writing to the sector being written is completed, and then the control not to shift to a new writing operation is performed. Can be prevented. In addition, by performing data read control of the recording medium 1a in a similar procedure, even when vibration is detected during reading, the recording medium 1a can be prevented from being destroyed. further,
When a vibration is detected during the command issuance, by performing control to prohibit the issuance of a new command until the vibration is no longer detected, the operation can be promptly resumed after the vibration has ceased.

【0048】(第5実施形態)図17は、この発明の第
5実施形態として活線挿抜回路基板の2重系を示すブロ
ック図である。記録装置1、記録媒体制御回路2、CP
U5は、図1と同様のものである。現用系および予備系
の通信回路11は、互いにデータ通信を行う回路であ
る。現用予備認識回路16は、1次電源監視回路2から
異常検出信号を受けたときに、自系が現用系または予備
系であることを認識する。図15に図示していないが、
図1の1セクタ送受信用メモリ10と同じものを用い
て、記録媒体1aのデータ読み出し・書き込みを行って
もよい。
(Fifth Embodiment) FIG. 17 is a block diagram showing a double system of a hot-swap circuit board as a fifth embodiment of the present invention. Recording device 1, recording medium control circuit 2, CP
U5 is the same as in FIG. The active and standby communication circuits 11 are circuits that perform data communication with each other. When receiving the abnormality detection signal from the primary power supply monitoring circuit 2, the working spare recognition circuit 16 recognizes that the own system is the working system or the spare system. Although not shown in FIG.
Data may be read / written from / to the recording medium 1a using the same memory as the one-sector transmission / reception memory 10 of FIG.

【0049】次に上記2重系において、データ書き込み
動作中に1次電源4の異常を検出した場合の動作を説明
する。
Next, the operation of the dual system when an abnormality of the primary power supply 4 is detected during the data write operation will be described.

【0050】現用系の記録媒体1aにデータを書き込む
動作を行っているときに、現用系の1次電源監視回路3
が1次電源4の異常を検出した場合、第1実施形態と同
様の書き込み制御を行う。これと同時に、1次電源監視
回路3は、異常検出信号を予備系の現用予備認識回路1
6に送信する。これを受けた現用予備認識回路16は、
自系が現用系であるか予備系であるかを判別する。現用
系と認識した場合、異常検出信号を無視し、予備系と認
識した場合、異常検出信号を記録媒体制御回路2に送信
する。ここでは予備系であるため、異常検出信号は、記
録媒体制御回路2に送信される。
During the operation of writing data to the active recording medium 1a, the primary power supply monitoring circuit 3 of the active system is used.
Detects the abnormality of the primary power supply 4, performs the same write control as in the first embodiment. At the same time, the primary power supply monitoring circuit 3 outputs the abnormality detection signal to the standby active recognition circuit 1 of the standby system.
Send to 6. Upon receiving this, the working preliminary recognition circuit 16
It is determined whether the own system is an active system or a standby system. If the current system is recognized, the abnormality detection signal is ignored, and if the current system is recognized, the abnormality detection signal is transmitted to the recording medium control circuit 2. Here, since it is a standby system, the abnormality detection signal is transmitted to the recording medium control circuit 2.

【0051】予備系の記録媒体制御回路2は、現用系の
CPU5、通信バス、通信回路11、系間バス、予備系
の通信回路11、通信バス、CPU5をこの順に送信さ
れてきた書き込みデータを受信する。この書き込みデー
タは、本来なら現用系の記録媒体1aに書き込むべきデ
ータであるが、代わって予備系の記録媒体1aに書き込
まれる。
The standby recording medium control circuit 2 transmits the write data transmitted in this order to the active CPU 5, communication bus, communication circuit 11, intersystem bus, standby communication circuit 11, communication bus, and CPU 5. Receive. This write data is data that should be originally written on the active recording medium 1a, but is instead written on the standby recording medium 1a.

【0052】このように、現用系の通信回路は、現用系
で記録媒体に書き込んだデータを送信し、これを予備系
の通信回路が受信し予備系の記録媒体にも同様に書き込
むため、現用系と予備系とを相互に切替えた場合でも、
切替前からの書き込み動作をスムーズに引き継ぐことが
できる。
As described above, the active communication circuit transmits the data written in the recording medium in the active system, and the standby communication circuit receives the data and similarly writes the data in the standby recording medium. Even when switching between the system and the standby system,
The writing operation before the switching can be smoothly taken over.

【0053】[0053]

【発明の効果】以上のようにこの発明は、データの読み
出し又は書き込み動作中に異常を検出した場合、少なく
とも読み出し又は書き込み中の最小データ単位分につい
ては動作を継続させ、かつ、最小データ単位分の動作が
終了した後は次の最小データ単位分の動作に移行しない
ように制御するため、記録媒体の破壊が最も起こり易い
タイミングでの動作中断を回避でき、セクタ破壊などの
記録媒体の破壊を防止できる。
As described above, according to the present invention, when an abnormality is detected during a data read or write operation, the operation is continued at least for the minimum data unit during the read or write operation, and After the operation is completed, control is performed so as not to shift to the operation of the next minimum data unit, so that operation interruption at the timing when destruction of the recording medium is most likely to occur can be avoided, and destruction of the recording medium such as sector destruction can be prevented. Can be prevented.

【0054】またこの発明は、電源の異常を検出したと
きに上記のような動作制御を行うため、電力不足に起因
する不適切な動作中断を防止でき、記録媒体の破壊を防
止できる。
According to the present invention, since the above-described operation control is performed when a power supply abnormality is detected, inappropriate interruption of operation due to insufficient power can be prevented, and destruction of the recording medium can be prevented.

【0055】またこの発明は、2次電源の異常を検出し
て上記のような動作制御を行うため、たとえ1次電源に
異常がない場合でも、2次電源の異常に起因する記録媒
体の破壊を防止できる。
Further, according to the present invention, since the above-described operation control is performed by detecting the abnormality of the secondary power supply, even if there is no abnormality in the primary power supply, destruction of the recording medium due to the abnormality of the secondary power supply. Can be prevented.

【0056】またこの発明は、リセットスイッチのオン
オフ動作等を監視して上記のような動作制御を行うた
め、リセットに起因する記録媒体の破壊を防止できる。
Further, according to the present invention, since the above-described operation control is performed by monitoring the on / off operation of the reset switch, the destruction of the recording medium due to the reset can be prevented.

【0057】またこの発明は、CPUを監視して上記の
ような動作制御を行うため、CPUの故障、たとえば熱
暴走等に起因する記録媒体の破壊を防止できる。
According to the present invention, since the above-described operation control is performed by monitoring the CPU, it is possible to prevent the recording medium from being destroyed due to a failure of the CPU, for example, a thermal runaway.

【0058】またこの発明は、振動を監視して上記のよ
うな動作制御を行うため、振動に起因する記録媒体の破
壊を防止できる。たとえば、地震によって基板が振動し
た場合、基板に割れ等が発生し、基板上の回路が破損し
て記録媒体に対する動作を中断させることがあるが、振
動を監視することで適切なタイミングで動作を中断でき
るため、記録媒体の破壊を防止できる。
Further, according to the present invention, since the above-described operation control is performed by monitoring the vibration, it is possible to prevent the recording medium from being destroyed due to the vibration. For example, if the substrate vibrates due to an earthquake, cracks may occur in the substrate, and the circuit on the substrate may be damaged, interrupting the operation on the recording medium. The interruption can prevent the recording medium from being destroyed.

【0059】またこの発明は、記録媒体への最小データ
単位分のデータ容量を持つデータ送受信用メモリを用い
て、記録媒体に対し読み出し又は書き込みを一括して行
うので、不適切なタイミングでの動作中断が起こり難く
なり、記録媒体の破壊をさらに確実に防止できる。
According to the present invention, reading or writing to the recording medium is performed collectively by using a data transmission / reception memory having a data capacity of a minimum data unit for the recording medium. Interruption is less likely to occur, and the destruction of the recording medium can be more reliably prevented.

【0060】またこの発明は、最小データ単位を1セク
タとすることで、記録媒体の破壊を確実に防止できる。
あるいは、最小データ単位を1ファイルとすることで、
有効データを除く無駄なデータの読み出し動作または書
き込み動作を回避できる。
According to the present invention, the destruction of the recording medium can be reliably prevented by setting the minimum data unit to one sector.
Alternatively, by setting the minimum data unit to one file,
It is possible to avoid useless data read operation or write operation except valid data.

【0061】またこの発明は、現用系の通信回路は、現
用系で記録媒体に書き込んだデータを予備系にも送信
し、これを予備系の通信回路が受信して予備系の記録媒
体にも同様に書き込むため、現用系と予備系とを相互に
切替えた場合でも、切替前からの書き込み動作をスムー
ズに引き継ぐことができる。
According to the present invention, the working communication circuit also transmits the data written to the recording medium in the working system to the spare system, and the data is received by the spare communication circuit and is also transmitted to the spare recording medium. Similarly, even when the active system and the standby system are mutually switched, the write operation from before the switching can be smoothly taken over.

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

【図1】 この発明の第1実施形態の電気的構成を示す
ブロック図
FIG. 1 is a block diagram showing an electrical configuration of a first embodiment of the present invention.

【図2】 第1実施形態の書き込み時のタイミングチャ
ート
FIG. 2 is a timing chart at the time of writing according to the first embodiment;

【図3】 第1実施形態の1セクタの書き込み手順を示
したフローチャート
FIG. 3 is a flowchart showing a one-sector write procedure according to the first embodiment;

【図4】 第1実施形態の1セクタの書き込み途中で1
次電源異常を検出したときの動作を示すフローチャート
FIG. 4 is a diagram showing a state where 1 is written during writing of one sector in the first embodiment.
Flowchart showing operation when secondary power supply abnormality is detected

【図5】 1セクタ送受信用メモリを用いた書き込み動
作を示すフローチャート
FIG. 5 is a flowchart showing a write operation using a one-sector transmission / reception memory;

【図6】 第1実施形態のファイル単位の書き込み途中
で1次電源異常を検出したときの動作を示すフローチャ
ート
FIG. 6 is a flowchart illustrating an operation when a primary power supply abnormality is detected during writing in file units according to the first embodiment;

【図7】 第1実施形態の読み出し時のタイミングチャ
ート
FIG. 7 is a timing chart at the time of reading according to the first embodiment;

【図8】 第1実施形態の1セクタの読み出し時に1次
電源異常を検出したときの動作を示すフローチャート
FIG. 8 is a flowchart illustrating an operation when a primary power supply abnormality is detected during reading of one sector according to the first embodiment;

【図9】 第1実施形態のコマンド発行時のタイミング
チャート
FIG. 9 is a timing chart at the time of issuing a command according to the first embodiment;

【図10】 第1実施形態のコマンド発行時に1次電源
異常を検出したときの動作を示すフローチャート
FIG. 10 is a flowchart illustrating an operation when a primary power supply abnormality is detected at the time of issuing a command according to the first embodiment;

【図11】 この発明の第2実施形態の電気的構成を示
すブロック図
FIG. 11 is a block diagram showing an electrical configuration of a second embodiment of the present invention.

【図12】 第2実施形態の1セクタの書き込み途中で
装置リセットを検出したときの動作を示すフローチャー
FIG. 12 is a flowchart illustrating an operation when a device reset is detected during the writing of one sector according to the second embodiment;

【図13】 この発明の第3実施形態の電気的構成を示
すブロック図
FIG. 13 is a block diagram showing an electrical configuration of a third embodiment of the present invention.

【図14】 第3実施形態の1セクタの書き込み途中で
CPU異常を検出を検出したときの動作を示すフローチ
ャート
FIG. 14 is a flowchart illustrating an operation when a CPU abnormality is detected during the writing of one sector according to the third embodiment;

【図15】 この発明の第4実施形態の電気的構成を示
すブロック図
FIG. 15 is a block diagram showing an electrical configuration of a fourth embodiment of the present invention.

【図16】 第4実施形態の1セクタの書き込み途中で
装置振動を検出を検出したときの動作を示すフローチャ
ート
FIG. 16 is a flowchart showing the operation of the fourth embodiment when device vibration is detected during the writing of one sector.

【図17】 この発明の第5実施形態の電気的構成を示
すブロック図
FIG. 17 is a block diagram showing an electrical configuration according to a fifth embodiment of the present invention.

【図18】 従来の活線挿抜時のバックアップ方式を示
す概略図
FIG. 18 is a schematic diagram showing a conventional backup method at the time of hot-swap.

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

1 記録装置 1a 記録媒体 2 記録媒体制御回路 3 1次電源監視回路 4 1次電源 5 CPU 6 リセット監視回路 7 リセットスイッチ 8 CPU監視回路 9 振動監視回路 10 1セクタ送受信用メモリ 11 通信回路 12 RAM 13 ROM 14 2次電源 15 2次電源監視回路 20 基板 DESCRIPTION OF SYMBOLS 1 Recording device 1a Recording medium 2 Recording medium control circuit 3 Primary power supply monitoring circuit 4 Primary power supply 5 CPU 6 Reset monitoring circuit 7 Reset switch 8 CPU monitoring circuit 9 Vibration monitoring circuit 10 1 Sector transmission / reception memory 11 Communication circuit 12 RAM 13 ROM 14 Secondary power supply 15 Secondary power supply monitoring circuit 20 Substrate

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体へのデータの読み出し動作また
は書き込み動作を制御する記録媒体制御回路、および異
常を電気的に検出する異常検出回路を備えた記録媒体制
御装置であって、 前記異常検出回路が異常を検出した場合に、記録媒体制
御回路は、記録媒体に対し最小データ単位分の動作が終
了するまで動作を継続させ、その一連の動作が終了した
後には新たな動作に移行しない制御を行う事を特徴とす
る記録媒体制御装置。
1. A recording medium control device comprising: a recording medium control circuit for controlling a data read operation or a write operation on a recording medium; and a failure detection circuit for electrically detecting a failure. If an error is detected, the recording medium control circuit continues the operation until the operation for the minimum data unit on the recording medium is completed, and after the series of operations is completed, a control that does not shift to a new operation is performed. A recording medium control device characterized by performing:
【請求項2】 前記異常検出回路は、外部から供給され
る電力を監視する電源監視回路によって構成される事を
特徴とする請求項1記載の記録媒体制御装置。
2. The recording medium control device according to claim 1, wherein the abnormality detection circuit includes a power supply monitoring circuit that monitors power supplied from the outside.
【請求項3】 外部から供給される電力を降下させる2
次電源をさらに備え、 前記異常検出回路は、2次電源から供給される電力を監
視する2次電源監視回路によって構成される事を特徴と
する請求項1記載の記録媒体制御装置。
3. An apparatus for lowering power supplied from the outside.
2. The recording medium control device according to claim 1, further comprising a secondary power supply, wherein the abnormality detection circuit is configured by a secondary power supply monitoring circuit that monitors power supplied from the secondary power supply.
【請求項4】 前記記録媒体の読み出し動作または書き
込み動作に関するプログラムを格納しておくROM、そ
のプログラムに従って記録媒体制御回路を制御するCP
U、ROMに格納されたプログラムをロードかつCPU
の演算結果を格納するためのRAM、およびRAMの格
納データを消去してROMのプログラムを再ロードする
ためのリセットスイッチをさらに備え、 前記異常検出回路は、リセットスイッチを監視するリセ
ット監視回路によって構成される事を特徴とする請求項
1記載の記録媒体制御装置。
4. A ROM for storing a program relating to a read operation or a write operation of the recording medium, and a CP for controlling a recording medium control circuit according to the program.
U, load program stored in ROM and CPU
And a reset switch for erasing data stored in the RAM and reloading a program in the ROM, wherein the abnormality detection circuit includes a reset monitoring circuit that monitors the reset switch. 2. The recording medium control device according to claim 1, wherein
【請求項5】 所定のプログラムに従って記録媒体制御
回路を制御するためのCPUをさらに備え、 前記異常検出回路は、CPUを監視するCPU監視回路
によって構成される事を特徴とする請求項1記載の記録
媒体制御装置。
5. The apparatus according to claim 1, further comprising a CPU for controlling a recording medium control circuit according to a predetermined program, wherein the abnormality detection circuit is configured by a CPU monitoring circuit for monitoring the CPU. Recording medium control device.
【請求項6】 前記異常検出回路は、振動を監視する振
動監視回路によって構成される事を特徴とする請求項1
記載の記録媒体制御装置。
6. The apparatus according to claim 1, wherein the abnormality detection circuit includes a vibration monitoring circuit that monitors vibration.
The recording medium control device according to any one of the preceding claims.
【請求項7】 前記記録媒体への最小データ単位分のデ
ータを格納するためのデータ送受信用メモリをさらに備
え、 前記記録媒体制御回路は、データ送受信用メモリを用い
て記録媒体に対し最小データ単位分の読み出し又は書き
込みを一括して行う事を特徴とする請求項1〜6のいず
れかに記載の記録媒体制御装置。
7. A data transmission / reception memory for storing data of a minimum data unit in the recording medium, wherein the recording medium control circuit uses the data transmission / reception memory to store the minimum data unit in the recording medium. The recording medium control device according to any one of claims 1 to 6, wherein reading or writing is performed collectively.
【請求項8】 前記最小データ単位は、記録媒体の1セ
クタまたは複数セクタから成る1ファイルによって構成
されることを特徴とする請求項1または請求項7記載の
記録媒体制御装置。
8. The recording medium control device according to claim 1, wherein the minimum data unit is constituted by one file of one sector or a plurality of sectors of the recording medium.
【請求項9】 現用系および予備系から成る二重系のう
ちのいずれかを構成する記録媒体制御装置であって、 現用系では記録媒体に書き込んだデータを送信し、予備
系では記録媒体に書き込むためのデータを受信する通信
回路をさらに備えた事を特徴とする請求項1〜8のいず
れかに記載の記録媒体制御装置。
9. A recording medium control device constituting one of a dual system comprising an active system and a standby system, wherein the active system transmits data written to the recording medium, and the standby system transmits data to the recording medium. 9. The recording medium control device according to claim 1, further comprising a communication circuit for receiving data to be written.
JP2000100496A 2000-04-03 2000-04-03 Recording medium controller Pending JP2001282402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000100496A JP2001282402A (en) 2000-04-03 2000-04-03 Recording medium controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000100496A JP2001282402A (en) 2000-04-03 2000-04-03 Recording medium controller

Publications (1)

Publication Number Publication Date
JP2001282402A true JP2001282402A (en) 2001-10-12

Family

ID=18614689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000100496A Pending JP2001282402A (en) 2000-04-03 2000-04-03 Recording medium controller

Country Status (1)

Country Link
JP (1) JP2001282402A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008269635A (en) * 2008-06-02 2008-11-06 Renesas Technology Corp Semiconductor processor
JP2009193371A (en) * 2008-02-14 2009-08-27 Rohm Co Ltd Data control unit
JP2012009017A (en) * 2010-06-25 2012-01-12 Kofukin Seimitsu Kogyo (Shenzhen) Yugenkoshi Control device and electronic apparatus equipped with the same
JP2014063209A (en) * 2012-09-19 2014-04-10 Tdk Corp Flash memory system and power supply control method
JP2014157455A (en) * 2013-02-15 2014-08-28 Mitsubishi Nichiyu Forklift Co Ltd Data writing control device and data writing control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193371A (en) * 2008-02-14 2009-08-27 Rohm Co Ltd Data control unit
JP2008269635A (en) * 2008-06-02 2008-11-06 Renesas Technology Corp Semiconductor processor
JP2012009017A (en) * 2010-06-25 2012-01-12 Kofukin Seimitsu Kogyo (Shenzhen) Yugenkoshi Control device and electronic apparatus equipped with the same
JP2014063209A (en) * 2012-09-19 2014-04-10 Tdk Corp Flash memory system and power supply control method
JP2014157455A (en) * 2013-02-15 2014-08-28 Mitsubishi Nichiyu Forklift Co Ltd Data writing control device and data writing control method

Similar Documents

Publication Publication Date Title
US7724643B2 (en) Recovery of duplex data system after power failure
US5590306A (en) Memory card management system for writing data with usage and recording codes made significant
JP2003317387A (en) Information recording apparatus and method for recording information onto recording medium
JP2001282402A (en) Recording medium controller
JPH08249218A (en) File controller and data write method
US20030007783A1 (en) Recording/reproducingdisk control device and disc apparatus comprising the same
WO2010011217A1 (en) Data storage method, apparatus and system for interrupted write recovery
JP2008059007A (en) Semiconductor storage device
WO2002035338A1 (en) Data recorder
JP3550256B2 (en) Information processing equipment
JP4098400B2 (en) Semiconductor disk device
JP5661313B2 (en) Storage device
JP2000137584A (en) Controller for external storage device, method for substituting defective block and storage medium storing defective block substitution control program
JPH10133926A (en) Mirror disk restoring method and restoring system
WO2005121960A1 (en) Operating a storage component
JPH11306674A (en) Disk storage device and disk write control method applied to the device
JP2003187563A (en) Optical disk device
JPH0651918A (en) Semiconductor disk device
JPH052518A (en) File system for secondary storage device
JP2004199743A (en) Recording/reproducing device and recording/reproducing control method
JPS63131249A (en) Auxiliary storage system
JPH10240633A (en) Memory system and memory card
EP0729099A1 (en) Mirror storage controller
JP2960455B2 (en) External storage control method
JP2002108721A (en) Disk array device