JPH05189837A - Electronic equipment - Google Patents
Electronic equipmentInfo
- Publication number
- JPH05189837A JPH05189837A JP4024375A JP2437592A JPH05189837A JP H05189837 A JPH05189837 A JP H05189837A JP 4024375 A JP4024375 A JP 4024375A JP 2437592 A JP2437592 A JP 2437592A JP H05189837 A JPH05189837 A JP H05189837A
- Authority
- JP
- Japan
- Prior art keywords
- data
- block
- area
- power
- nvram
- 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
Links
Landscapes
- Management Or Editing Of Information On Record Carriers (AREA)
- Power Sources (AREA)
- Memory System (AREA)
Abstract
(57)【要約】
【目的】 不揮発性メモリのデータの変化による悪影響
を防止する。
【構成】 テープレコーダにおいて、システム制御回路
7により、電源オフ時にバッファRAM15から不揮発
性メモリ16にデータを書き込んで保存しておき、電源
オン時にデータを読み出しバッファRAM15に転送し
て使用する。不揮発性メモリ16は、表エリア16Aと
裏エリア16Bとを有し、同じデータが2重書きされる
ことで、データのエラー発生を減少化している。
【効果】 不揮発性メモリ16のデータが破壊されるこ
とを、データの2重書きにより低減し、データ破壊によ
る機器への悪影響を防止する。
(57) [Summary] [Purpose] To prevent the adverse effects of changes in the data in the nonvolatile memory. In the tape recorder, the system control circuit 7 writes and saves data from the buffer RAM 15 to the non-volatile memory 16 when the power is turned off, and transfers the data to the read buffer RAM 15 when the power is turned on for use. The non-volatile memory 16 has a front area 16A and a back area 16B, and double writing of the same data reduces the occurrence of data errors. [Effect] The destruction of the data in the nonvolatile memory 16 is reduced by the double writing of the data, and the adverse effect on the device due to the data destruction is prevented.
Description
【0001】[0001]
【産業上の利用分野】本発明は、電子機器装置に関し、
特に、例えば電源オフ時に不揮発性メモリに情報を保存
するような電子機器装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic equipment device,
In particular, the present invention relates to an electronic device that stores information in a non-volatile memory when power is turned off.
【0002】[0002]
【従来の技術】電子機器の状態(ステータス)情報等の
一部データを電源オフ時も保持させるために、いわゆる
不揮発性メモリ(NVRAM)が用いられることがあ
る。この不揮発性メモリは、電源バックアップが不要で
あるため、電池切れによるデータ消失の虞れがないとい
う利点を有している。しかしながら、読み書き可能な回
数が例えば一万〜十万回程度と制限があり、また書き込
み所要時間が通常のRAM(ランダムアクセスメモリ)
等に比べて比較的長く(速度が遅く)、書き込み電流も
比較的大きいため、上記保持しようとするデータが変化
する毎に書き込みを行うのでは、メモリ自体の寿命、応
答速度、消費電力等の点で不利であることから、電子機
器の電源オフ時に書き込むようにしている。2. Description of the Related Art A so-called non-volatile memory (NVRAM) is sometimes used to retain some data such as status information of electronic equipment even when the power is turned off. Since this non-volatile memory does not require power backup, it has an advantage that there is no risk of data loss due to battery exhaustion. However, the number of times data can be read and written is limited to, for example, about 10,000 to 100,000, and the time required for writing is a normal RAM (random access memory).
Is relatively long (slow in speed) and relatively large in write current. Therefore, if the data is written every time the data to be held changes, the life of the memory itself, response speed, power consumption, etc. Since it is disadvantageous in writing, the writing is performed when the electronic device is powered off.
【0003】例えば電子機器として小型回転ヘッド型デ
ィジタルテープレコーダ(DAT)を想定する場合、操
作性向上や小型化等の観点から、電子式のテープカウン
タや電子ボリューム等が用いられることが多く、電源オ
フ時にもこれらのテープカウンタ値や電子ボリューム値
を保持しておくことが必要とされる。これらのデータの
保持用に上記不揮発性メモリが用いられるわけである。
このようなDATにおいては、電源オフ操作に応じて、
所要のデータを不揮発性メモリに書き込んだ後に回路電
源等を実際にオフ制御するようにしている。For example, when a small rotary head type digital tape recorder (DAT) is assumed as an electronic device, an electronic tape counter, an electronic volume or the like is often used from the viewpoint of improving operability and downsizing, and a power source. It is necessary to hold these tape counter values and electronic volume values even when the power is off. The nonvolatile memory is used to hold these data.
In such a DAT, depending on the power off operation,
After writing the required data in the non-volatile memory, the circuit power supply is actually turned off.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、データ
書き込み動作中に電源を落とされたような場合、例えば
電源となる電池が抜かれたり電池の接触不良等の事故が
生じた場合等には、上記不揮発性メモリに最新データが
書き込まれないまま、あるいは書き込みの途中で、電源
が落ちてしまうことになる。特に、書き込みの途中で電
源が落ちた場合には、書き込まれたデータの一部がエラ
ーとなってしまう可能性もあり、次に電源オンしたとき
の動作に対して悪影響を及ぼす虞れがある。However, when the power is turned off during the data writing operation, for example, when the battery serving as the power source is removed or an accident such as a defective contact of the battery occurs, the above nonvolatile memory is used. Power is turned off while the latest data is not written to the static memory or during writing. In particular, if the power is turned off during writing, some of the written data may become an error, which may adversely affect the operation when the power is turned on next time. ..
【0005】ここで、不揮発性メモリにデータ書き込ん
でいる途中で電源が落ちる場合としては、停止(ストッ
プ)操作を行った直後に電池を取り出した場合等が考え
られる。これは、停止操作した時点から、マイコン等の
制御部が所定時間(例えば5秒程度)経過後に不揮発性
メモリに所要データを書き込んで電源をオフするような
一連の制御を行うが、上述したように不揮発性メモリへ
のデータ書き込み速度が遅いことから、全データの書き
込み動作中に電池を抜いてしまうことがあるからであ
る。特に、小型DAT等においては、小型化や低価格化
の要求から8ピン程度の小型メモリチップを用いること
が多く、データ転送がシリアルで行われるため、1ワー
ド当たり10〜20msec ものデータ書き込み時間を要
し、全データを書き込むのに例えば0.5秒から1秒程
度、あるいはさらにそれ以上の時間がかかることがあ
り、電池を抜き取るタイミングがこの全データの書き込
み動作に一致する確率が高くなる。Here, as a case where the power is turned off while writing data in the non-volatile memory, it is considered that the battery is taken out immediately after the stop operation is performed. This is a series of controls in which a control unit such as a microcomputer writes necessary data in a non-volatile memory and turns off the power after a predetermined time (for example, about 5 seconds) has elapsed since the stop operation was performed. Moreover, since the data writing speed to the non-volatile memory is slow, the battery may be removed during the writing operation of all data. In particular, in a small DAT or the like, a small memory chip of about 8 pins is often used in order to reduce the size and cost, and since data transfer is performed serially, a data writing time of 10 to 20 msec per word is required. In other words, it may take about 0.5 seconds to 1 second, or more, to write all the data, and the probability of removing the battery coincides with the operation of writing all the data.
【0006】この他、不揮発性メモリに書き込まれてい
るデータが、例えば静電パルスや外部ノイズ等により変
化したり破壊されたりする虞れもあり、このようなデー
タの変化や破壊が生じると、次に電源投入したときの故
障の原因となったりする。In addition, the data written in the non-volatile memory may be changed or destroyed by, for example, electrostatic pulse or external noise. When such change or destruction of data occurs, Next, it may cause a failure when the power is turned on.
【0007】本発明は、このような実情に鑑みてなされ
たものであり、不揮発性メモリに書き込まれるデータの
変化や破壊による悪影響を未然に防止し得るような電子
機器装置の提供を目的とする。The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an electronic apparatus capable of preventing adverse effects due to a change or destruction of data written in a nonvolatile memory. ..
【0008】[0008]
【課題を解決するための手段】本発明に係る電子機器装
置は、電源オフ時に所要データを書き込んで保持する不
揮発性メモリを有する電子機器装置において、上記所要
データを所定ワード数毎にブロック化し各ブロック毎に
パリティを付加し、上記所要データの全ブロックを上記
不揮発性メモリに多重書き(例えば2重書き)すること
により、上述の課題を解決する。An electronic equipment device according to the present invention is an electronic equipment device having a non-volatile memory for writing and holding required data when the power is turned off. The above problem is solved by adding a parity to each block and writing all the blocks of the required data in the nonvolatile memory in a multiplexed manner (for example, double writing).
【0009】また、本発明に係る電子機器装置は、上述
の構成を有する電子機器装置において、上記不揮発性メ
モリのデータ読み出し時に、上記多重書きされたデータ
を上記対応する同じブロック単位で比較することによ
り、上述の課題を解決する。Further, in the electronic equipment device according to the present invention, in the electronic equipment device having the above configuration, when the data is read from the nonvolatile memory, the multiple written data are compared in the same corresponding block unit. The above-mentioned problem is solved by.
【0010】ここで、上記不揮発性メモリに多重書きす
ることにより、対応する同じブロックの内のいずれかの
ブロックがエラーとなっても、エラーとならないブロッ
クによりデータ修正を行うことができ、また、いずれの
ブロックもエラー無しとなっているにも拘らずデータが
不一致のときには、いずれか1つのブロックのデータを
優先的に用いてデータ修正を行うことができる。Here, by multiple-writing in the above-mentioned non-volatile memory, even if any one of the corresponding corresponding blocks has an error, the data can be corrected by the block that does not cause the error, and When the data does not match even though there is no error in any of the blocks, the data of any one block can be preferentially used to correct the data.
【0011】例えば、全ブロックについて2重書きし、
片方のブロックがエラーとなってももう一方のブロック
によりデータ修正を行う。また、ブロック間の一致検出
を行い、優先ブロックのデータを他方のブロックにコピ
ーして修正を行う。そして、転送完了後、全データの読
み出し、再確認を行うようにしてもよい。For example, double writing for all blocks,
Even if one block has an error, the other block corrects the data. In addition, matching between blocks is detected, and the data of the priority block is copied to the other block for correction. Then, after the transfer is completed, all data may be read out and reconfirmed.
【0012】[0012]
【作用】不揮発性メモリにデータを多重書きしているた
め、データ書き込み中に電源が落とされたり、静電パル
ス、外部ノイズ等により、データ不良やデータ破壊が生
じても、正しいデータが残ることが多くなり、悪影響を
防止できる。Since data is written in multiplex into the non-volatile memory, correct data will remain even if the power is turned off during data writing, or data failure or data destruction occurs due to electrostatic pulse, external noise, etc. Can be increased, and adverse effects can be prevented.
【0013】[0013]
【実施例】以下、本発明の好ましい実施例について、図
面を参照しながら説明する。図1は、本発明に係る電子
機器装置の一実施例として、本件出願人が先に特願平0
3−50518号の明細書及び図面において提案してい
る小型回転ヘッド型のディジタルオーディオテープレコ
ーダ(DAT)に本発明を適用した概略的なブロック回
路構成を示している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of an electronic device according to the present invention, in which the applicant of the present invention first applied for a patent application 0
3 shows a schematic block circuit configuration in which the present invention is applied to a small rotary head type digital audio tape recorder (DAT) proposed in the specification and drawings of No. 3-50518.
【0014】この図1において、上記DATの動作モー
ドを切換制御するためのモード切換スイッチ群3と、ボ
リュームスイッチ群4と、電源スイッチ5とが、それぞ
れ入力制御回路6に接続されている。モード切換スイッ
チ群3は、例えば再生モードに制御する再生スイッチ3
A、録音モードに制御する録音スイッチ3B、早送りモ
ードに制御する早送りスイッチ3C及び巻戻しモードに
制御する巻戻しスイッチ3Dを有している。ボリューム
スイッチ群4は、例えば再生又は録音ボリュームを大き
くするプラスボリューム4A及び再生又は録音ボリュー
ムを小さくするマイナスボリューム4Bを有している。In FIG. 1, a mode changeover switch group 3, a volume switch group 4, and a power supply switch 5 for changing over and controlling the operation mode of the DAT are connected to an input control circuit 6, respectively. The mode changeover switch group 3 is, for example, the reproduction switch 3 for controlling the reproduction mode.
A, a recording switch 3B for controlling the recording mode, a fast-forward switch 3C for controlling the fast-forward mode, and a rewind switch 3D for controlling the rewind mode. The volume switch group 4 has, for example, a plus volume 4A for increasing the reproduction or recording volume and a minus volume 4B for decreasing the reproduction or recording volume.
【0015】入力制御回路6は、上記各操作スイッチが
操作された際に、これに応じた制御信号SCTを例えばい
わゆるマイクロコンピュータを用いて成るシステム制御
回路7に送出する。システム制御回路7は、当該制御信
号SCTに応じて例えばボリューム表示部11、信号処理
部12及びテープ駆動部13をそれぞれ制御する。When the operation switches are operated, the input control circuit 6 sends a control signal S CT in response to the operation switches to the system control circuit 7 which uses, for example, a so-called microcomputer. The system control circuit 7 controls, for example, the volume display unit 11, the signal processing unit 12, and the tape drive unit 13 according to the control signal S CT .
【0016】すなわち、モード切換スイッチ群3のいず
れかのスイッチ3A〜3Dがオン操作されると、これに
応じてシステム制御回路7が信号処理部制御信号SSP及
びテープ駆動部制御信号STPをそれぞれ信号処理部12
及びテープ駆動部13に送出することにより、操作され
たスイッチに応じて信号処理部12及びテープ駆動部1
3を制御し、所定のモードに切り換えるようになされて
いる。That is, when any one of the switches 3A to 3D of the mode changeover switch group 3 is turned on, the system control circuit 7 outputs the signal processing section control signal S SP and the tape drive section control signal S TP in response to this. Signal processing unit 12
And the tape drive unit 13 to output the signal processing unit 12 and the tape drive unit 1 according to the operated switch.
3 is controlled to switch to a predetermined mode.
【0017】また、ボリュームスイッチ群4のプラスボ
リュームスイッチ4A又はマイナスボリュームスイッチ
4Bがオン操作されると、これに応じてシステム制御回
路7がボリューム表示制御信号SVL及び信号処理部制御
信号SSPをそれぞれボリューム表示部11及び信号処理
部12に送出することにより、上記DATの再生又は録
音ボリューム値をユーザの操作に応じた値に制御すると
同時に、当該設定ボリューム値をボリューム表示部11
に表示するようになされている。When the positive volume switch 4A or the negative volume switch 4B of the volume switch group 4 is turned on, the system control circuit 7 outputs the volume display control signal S VL and the signal processing unit control signal S SP in response to this. By sending them to the volume display unit 11 and the signal processing unit 12, respectively, the playback or recording volume value of the DAT is controlled to a value according to the user's operation, and at the same time, the set volume value is set.
It is designed to be displayed.
【0018】ここでシステム制御回路7には、バッファ
RAM(ランダムアクセスメモリ)15がコントロール
バスBC、データバスBD及びアドレスバスBAによっ
て接続されており、例えばボリューム値又はテープカウ
ント値等の種々のデータが書き込まれ、当該データがD
ATの動作状態に応じて変化する毎にそれぞれ書き換え
られるようになされている。A buffer RAM (random access memory) 15 is connected to the system control circuit 7 by a control bus BC, a data bus BD, and an address bus BA. For example, various data such as a volume value or a tape count value. Is written and the relevant data is D
It is rewritten each time it changes according to the operating state of the AT.
【0019】また、システム制御回路7には、不揮発性
メモリ(NVRAM)16が接続されており、システム
制御回路7からのチップセレクト信号SCS及びシリアル
クロック信号SCKによって、上記バッファRAM15と
の間で、上記ボリューム値やテープカウント値等の種々
のデータ、特に電源オフ時に保持しておく必要のあるデ
ータが、データ信号SD として転送されるようになって
いる。具体的には、例えばDATの電源スイッチ5がオ
フ操作された際に、上記ボリューム値やテープカウント
値等の保持用データがバッファRAM15からNVRA
M16に転送されて書き込まれる。なお、いわゆるオー
トオフ機能付きのDATの場合には、電源スイッチ5を
オフ操作する以外に、あるいは電源スイッチ5を有して
いなくとも、モード切換スイッチ群3を操作して停止モ
ードとした後、一定時間(例えば数秒程度)入力操作が
されなかったときに自動的に電源をオフし、このオフ動
作の際に、バッファRAM15からNVRAM16への
データ転送が行われる。Further, a non-volatile memory (NVRAM) 16 is connected to the system control circuit 7, and is connected to the buffer RAM 15 by the chip select signal S CS and the serial clock signal S CK from the system control circuit 7. Then, various data such as the volume value and the tape count value, especially the data that needs to be held when the power is turned off are transferred as the data signal S D. Specifically, for example, when the power switch 5 of the DAT is turned off, the holding data such as the volume value and the tape count value is transferred from the buffer RAM 15 to the NVRA.
It is transferred to M16 and written. In the case of a DAT with a so-called auto-off function, other than turning off the power switch 5, or even if the power switch 5 is not provided, after operating the mode changeover switch group 3 to set the stop mode, The power is automatically turned off when no input operation is performed for a certain time (for example, several seconds), and at the time of this off operation, data transfer from the buffer RAM 15 to the NVRAM 16 is performed.
【0020】ここで、上記NVRAM16内のデータ構
造については、図2に示すように、所定ワード数毎(例
えば8ワード毎)にブロック化されており、各ブロック
毎にパリティワードが付加されている。また、各ブロッ
ク毎のデータがそれぞれ多重書き(例えば2重書き)さ
れるようになっている。Here, as shown in FIG. 2, the data structure in the NVRAM 16 is divided into blocks of a predetermined number of words (for example, every 8 words), and a parity word is added to each block. .. Further, the data of each block is written in multiples (for example, double writing).
【0021】具体的には、NVRAM16として、16
(ビット)×128(ワード)、すなわちいわゆる2K
(2048)ビットのメモリ容量のものを使用し、2K
ビットの内の1Kずつを表エリア16A、裏エリア16
B(あるいは第1ページ16A、第2ページ16B)と
し、各エリア16A、16Bの中をそれぞれ8ブロック
BLa〜BLh、BLaa〜BLhhに分けている。これら
のエリア16A、16Bのアドレスは固定で1対1に対
応している。Specifically, as the NVRAM 16, 16
(Bit) x 128 (word), that is, 2K
2K with a memory capacity of (2048) bits
1K of each bit is the front area 16A and the back area 16
B (or the first page 16A and the second page 16B), and the areas 16A and 16B are divided into eight blocks BLa to BLh and BLaa to BLhh, respectively. The addresses of these areas 16A and 16B are fixed and have a one-to-one correspondence.
【0022】このような8つのブロックに書き込まれる
各データの具体例としては、a.書換えデータ、b.製
造時定数第1データ、c.製造時定数第2データ、d.
サービス用データ、e.設計定数第1データ、f.設計
定数第2データ、g.設計定数第3データ、h.設計定
数第4データ、のようなものが挙げられる。上記a.書
換えデータは、例えば図2に示すように、テープカウン
ト値、再生ボリューム値、録音ボリューム値、調整デー
タ等が7ワードと、8ワード目にこのブロック内データ
のパリティ、例えば奇数(オッド)パリティから成り、
エリア16A内の第1のブロックBLa及びエリア18
B内の第1のブロックBLaaに2重書きされている。以
下同様に、各データb.〜h.は、エリア16A内の第
2〜第8のブロックBLb〜BLhと、エリア16B内
の第2〜第8のブロックBLbb〜BLhhとに、それぞれ
2重書きされており、各ブロック内の最後のアドレスに
はブロック内データのパリティを付加している。As a concrete example of each data written in such eight blocks, a. Rewriting data, b. Manufacturing time constant first data, c. Manufacturing time constant second data, d.
Service data, e. Design constant first data, f. Design constant second data, g. Design constant third data, h. Design constant 4th data, etc. are mentioned. Above a. For example, as shown in FIG. 2, the rewrite data includes a tape count value, a reproduction volume value, a recording volume value, adjustment data, and the like in 7 words, and the parity of the data in the block in the 8th word, for example, from odd parity. Consists of
First block BLa and area 18 in area 16A
It is double-written in the first block BLaa in B. Similarly, each data b. ~ H. Is double-written in the second to eighth blocks BLb to BLh in the area 16A and the second to eighth blocks BLbb to BLhh in the area 16B, respectively, and is the last address in each block. Is added with the parity of the data in the block.
【0023】このようなNVRAM16の内部構成(メ
モリマップ)に対して、バッファRAM15のメモリマ
ップは、例えば図3のようになっている。この図3にお
いて、例えばアドレス0〜63までの64ワードの記憶
エリアは8ワード(1ブロック)毎に8つのブロック記
憶領域15a〜15hに分けられている。これらの各ブ
ロック記憶領域15a〜15hには、原則として上記N
VRAM16のエリア16A内の各ブロックBLa〜B
Lhの各データがそれぞれ書き込まれるようになってい
る。また、バッファRAM15内の上記領域15a〜1
5h以外の部分の8ワード分のブロック記憶領域15NN
は、いわゆるテンポラリブロックバッファエリアとし
て、上記NVRAM16のエリア16B内の各ブロック
BLaa〜BLhhが順次1ブロック分ずつ書き込まれるよ
うになっている。ここで図3のブロック記憶領域15NN
のブロックBLNNとは、上記エリア16B内の8つのブ
ロックBLaa〜BLhhの内の任意の1ブロックを示して
いる。In contrast to the internal structure (memory map) of the NVRAM 16 as described above, the memory map of the buffer RAM 15 is as shown in FIG. 3, for example. In FIG. 3, for example, a storage area of 64 words at addresses 0 to 63 is divided into eight block storage areas 15a to 15h for every 8 words (one block). In each of these block storage areas 15a to 15h, the above N
Each block BLa to B in the area 16A of the VRAM 16
Each data of Lh is written respectively. In addition, the areas 15a to 1 in the buffer RAM 15
8 words block storage area 15 NN other than 5h
As a so-called temporary block buffer area, the blocks BLaa to BLhh in the area 16B of the NVRAM 16 are sequentially written one by one. Here, the block storage area 15 NN of FIG.
The block BL NN of 8 indicates any one of the eight blocks BLaa to BLhh in the area 16B.
【0024】次に、電源オフの際のNVRAM16への
データ書き込み動作について説明すると、図4のフロー
チャートに示すように、1ブロックずつ上記バッファR
AM15からNVRAM16にデータ転送して書き込ん
で行く。このときNVRAM16の2つのエリア16
A、16Bの内、先ず表(第1ページ)のエリア16A
から先に書き込みを行う。各ブロックのデータ転送後に
はNVRAM16から各ブロックのデータをそれぞれ読
み出し、データ照合(ベリファイ)して行く。このよう
なリードベリファイ処理も含む表(第1ページ)のエリ
ア16Aのデータ書き込み動作が8ブロック全てについ
て終了した後に、裏(第2ページ)のエリア16Bも同
様に各ブロックのデータの書き込み及びリードベリファ
イを順次行ってゆく。この裏(第2ページ)のエリア1
6Bの8ブロック全てのデータ書き込み動作が終了した
後、表裏(第1、第2ページ)のエリア16A、16B
内の全てのデータを読み出し、再確認して終了する。Next, the operation of writing data to the NVRAM 16 when the power is off will be described. As shown in the flowchart of FIG.
Data is transferred from the AM 15 to the NVRAM 16 and written. At this time, the two areas 16 of the NVRAM 16
Of A and 16B, first, area 16A of the table (first page)
Write first. After the data transfer of each block, the data of each block is read out from the NVRAM 16 and the data is verified (verified). After the data writing operation in the area 16A of the table (first page) including the read verify processing is completed for all eight blocks, the area 16B of the back (second page) similarly writes and reads the data of each block. The verification is carried out sequentially. Area 1 behind this (2nd page)
After the data write operation of all 8 blocks of 6B is completed, the front and back areas (first and second pages) areas 16A and 16B
Read all the data in, reconfirm and finish.
【0025】以上の動作を、図4のフローチャートを参
照しながら詳細に説明する。以下の説明においては、上
記NVRAM16の表(第1ページ)のエリア16A内
の8つのブロックBLa〜BLhに順次0〜7のブロッ
ク番号を付して、任意のブロック番号NBL(=0〜7)
のブロックをBLN とする。またNVRAM16の裏
(第2ページ)のエリア16B内の8つのブロックBL
aa〜BLhhに順次8〜15のブロック番号を付して、任
意のブロック番号NBL(=8〜15)のブロックをBL
NNとする。The above operation will be described in detail with reference to the flowchart of FIG. In the following description, block numbers 0 to 7 are sequentially assigned to the eight blocks BLa to BLh in the area 16A of the table (first page) of the NVRAM 16 so that any block number N BL (= 0 to 7). )
Let BL N be the block. Also, eight blocks BL in the area 16B on the back side (second page) of the NVRAM 16
Block numbers 8 to 15 are sequentially assigned to aa to BLhh, and a block with an arbitrary block number N BL (= 8 to 15) is BL.
NN .
【0026】図4の最初のステップS1において、上記
ブロックの番号NBLをカウントするためのブロックカウ
ンタを初期化、すなわちNBLに0をセットする。次のス
テップS2では、このブロックカウンタの値(ブロック
番号)NBLに基づいて、上記バッファRAM15の対応
するブロックの先頭アドレスを求める。また、次のステ
ップS3では、該ブロック番号NBLに基づいてNVRA
M16の表(第1ページ)のエリア16A内の対応する
ブロックBLN の先頭アドレスを求める。次のステップ
S4では、バッファRAM15内の上記ブロック番号N
BLで指定されたブロックのデータのパリティを計算す
る。そして次のステップS5で、バッファRAM15の
当該ブロックのデータをNVRAM16の表(第1ペー
ジ)のエリア16A内の対応するブロックBLN に転送
(ブロック転送)して書き込む。次のステップS6で
は、直前のステップS5でNVRAM16に書き込まれ
たデータを読み出して確認(データ照合、ベリファイ)
する。次のステップS7では、上記ブロックカウンタの
カウント値、すなわちブロック番号NBLをインクリメン
ト(NBLにNBL+1を代入)し、次のステップS8でこ
の値NBLが8に到達したか否かを判別する。NO(8未
満)のときには、上記ステップS3に戻り、インクリメ
ントされたブロック番号NBLのブロックについての上述
したようなデータ書き込み動作(リードベリファイも含
む)を行う。上記ステップS8でYES、すなわちNBL
=8と判別されたときには、次のステップS9に進む。In the first step S1 of FIG. 4, a block counter for counting the block number N BL is initialized, that is, N BL is set to 0. In the next step S2, the start address of the corresponding block in the buffer RAM 15 is obtained based on the value (block number) N BL of this block counter. In the next step S3, NVRA is calculated based on the block number N BL.
The start address of the corresponding block BL N in the area 16A of the table (first page) of M16 is obtained. In the next step S4, the block number N in the buffer RAM 15
Calculates the parity of the data in the block specified by BL . Then, in the next step S5, the data of the block of the buffer RAM 15 is transferred (block transferred) to the corresponding block BL N in the area 16A of the table (first page) of the NVRAM 16 and written. In the next step S6, the data written in the NVRAM 16 in the immediately preceding step S5 is read and confirmed (data collation and verification).
To do. In the next step S7, the count value of the block counter, namely (a N BL +1 substituting N BL) and the block number N BL increment, whether the value N BL reaches 8 at the next step S8 Determine. If NO (less than 8), the process returns to step S3, and the above-described data write operation (including read verify) is performed on the incremented block number N BL . YES in step S8, that is, N BL
When it is determined that = 8, the process proceeds to the next step S9.
【0027】ステップS9からステップS15までは、
NVRAM16の裏(第2ページ)のエリア16Bにつ
いての各ブロック毎のデータ書き込み(リードベリファ
イも含む)動作に相当し、上述したステップS2からス
テップS8までと同様な動作が行われる。すなわち、ス
テップS9、S10、S12、S13、S14、及びS
15は、上述した各ステップS2、S3、S5、S6、
S7、及びS8にそれぞれ相当するものである。ただ
し、ブロック番号NBLは8〜15となって、NVRAM
16の裏(第2ページ)のエリア16B内の8ブロック
BLaa〜BLhhの内の任意の1ブロックBLNNを指定す
ることになり、またバッファRAM15内では、NBL−
8の番号(0〜7)のブロックを指定することになる。
これによって、バッファRAM15内の上記アドレス0
〜63の8ブロック64ワードのデータが、NVRAM
16の表裏(第1、第2ページ)のエリア16A、16
Bに2重書きされることになる。なお、上記ステップS
4の各ブロック毎のパリティ計算処理に相当するステッ
プを、ステップS10とステップS11との間に挿入し
てもよいが、ステップS4で算出されたパリティデータ
がバッファRAM15内に記憶されていれば、これをそ
のまま用いればよいことから、裏エリア16Bへのデー
タ書き込み時にはこのパリティ計算処理を省略してい
る。ステップS15では、上記カウント値NBLが16に
達したか否かを判別し、NOのときはステップS9に戻
り、YESのときは次のステップS16に進んでいる。From step S9 to step S15,
The operation corresponds to the data write (including read verify) operation for each block in the area 16B on the back side (second page) of the NVRAM 16, and the same operations as those in steps S2 to S8 described above are performed. That is, steps S9, S10, S12, S13, S14, and S
15 is each of the above-mentioned steps S2, S3, S5, S6,
These correspond to S7 and S8, respectively. However, the block number N BL becomes 8 to 15, and NVRAM
Any one block BL NN among the 8 blocks BLaa to BLhh in the area 16B on the back side (second page) of 16 is designated, and in the buffer RAM 15, N BL −
The block of number 8 (0 to 7) will be designated.
As a result, the address 0 in the buffer RAM 15
Data of 8 blocks 64 words of ~ 63 is NVRAM
16 front and back areas (first and second pages) 16A, 16
It will be double-written on B. Note that the above step S
The step corresponding to the parity calculation processing for each block of 4 may be inserted between step S10 and step S11, but if the parity data calculated in step S4 is stored in the buffer RAM 15, Since this may be used as it is, this parity calculation process is omitted when writing data to the back area 16B. In step S15, it is determined whether or not the count value N BL has reached 16. If NO, the process returns to step S9, and if YES, the process proceeds to the next step S16.
【0028】ステップS16においては、NVRAM1
6の表裏(第1、第2ページ)のエリア16A、16B
に書き込まれた全てのブロック(16ブロック)のデー
タを読み出して、再度確認(ベリファイ)している。そ
して次のステップS17で、このベリファイがOKであ
ったか否かの判別がなされ、YESのときにはステップ
S18に進んでパワーダウン(電源を落とす)処理を行
い、NOのときにはステップS19に進んで、NVRA
M16の書き込みエラーを表示するエラー表示処理を行
う。In step S16, NVRAM1
Areas 16A and 16B on the front and back of page 6 (first and second pages)
The data of all the blocks (16 blocks) written in is read and verified again. Then, in the next step S17, it is determined whether or not this verification is OK. If YES, the process proceeds to step S18 to perform a power down (power down) process, and if NO, the process proceeds to step S19 to NVRA.
An error display process for displaying the writing error of M16 is performed.
【0029】以上が電源オフの際のNVRAM16への
データの2重書き動作の例である。これによって、例え
ばステップS9以降の処理の途中で電池が引き抜かれた
場合には、NVRAM16の表(第1ページ)のエリア
16A内に既に有効なデータが書き込まれているから、
これを用いればよい。またステップS2からステップS
8までの処理の途中で電池が引き抜かれた場合には、表
(第1ページ)のエリア16A内のブロック単位でパリ
ティが正しいデータを使用でき、該エリア16A内のデ
ータが破壊されたとしても、NVRAM16の裏(第2
ページ)のエリア16B内に、前回の有効なデータが書
き込まれているから、これを使用することで、事故等の
悪影響を防止することができる。The above is an example of the double writing operation of data to the NVRAM 16 when the power is off. As a result, for example, when the battery is pulled out during the process of step S9 and thereafter, valid data is already written in the area 16A of the table (first page) of the NVRAM 16,
This can be used. Also, from step S2 to step S
If the battery is pulled out in the middle of the process up to 8, the parity correct data can be used for each block in the area 16A of the table (first page), and even if the data in the area 16A is destroyed. , The back of NVRAM 16 (second
Since the valid data of the previous time is written in the area 16B of (page), by using this, it is possible to prevent an adverse effect such as an accident.
【0030】次に、DATの電源投入時のNVRAM1
6からバッファRAM15へのデータ転送動作につい
て、図5、図6のフローチャートを参照しながら説明す
る。電源起動すると、最優先初期化処理を行った後、N
VRAM16の読み出し処理を行う。これは、最初のブ
ロックから順に、表(第1ページ)エリア16Aの1ブ
ロック8ワードをバッファRAM15(の領域15a〜
15hの内の対応する領域)に読み込み、次に裏(第2
ページ)エリア16Bの対応ブロック8ワードをバッフ
ァRAM15の上記テンポラリエリア(領域15NN)に
読み込み、それぞれのパリティチェック(エラー検出、
訂正)を行い、これを8ブロック分それぞれ行った後、
イニシャライズ終了後のメイン処理に移行している。Next, the NVRAM 1 when the power of the DAT is turned on
The data transfer operation from 6 to the buffer RAM 15 will be described with reference to the flowcharts of FIGS. When the power is turned on, after performing top priority initialization processing, N
The reading process of the VRAM 16 is performed. This is because one block of 8 words in the table (first page) area 16A is (in the area 15a of the buffer RAM 15) in order from the first block.
Read in the corresponding area of 15h), then back (2nd
Page) 8 words of the corresponding block of the area 16B are read into the temporary area (area 15 NN ) of the buffer RAM 15 and the parity check (error detection, error detection,
(Correction) and after doing this for each 8 blocks,
After the initialization is completed, the process is moving to the main process.
【0031】すなわち、図5はNVRAM16の読み出
しの全体の概略動作を示しており、先ずステップS21
で、上述したようなブロック番号NBLをカウントするた
めのブロックカウンタを初期化(NBL←0)する。次の
ステップS22では、このブロック番号NBLに基づい
て、NVRAM16の表裏(第1、第2ページ)各エリ
ア16A、16B内の対応ブロックのデータをバッファ
RAM15に転送する。具体的には、NVRAM16の
表エリア16Aの8ブロックBLa〜BLhの内のブロ
ック番号がNBLのブロックBLN を、バッファRAM1
5のブロック記憶領域15a〜15hの内の対応する領
域に書き込むと共に、NVRAM16の裏エリア16B
の8ブロックBLaa〜BLhhについては、ブロック番号
がNBL+8のブロックBLNNを、バッファRAM15の
上記テンポラリエリア15NNに書き込む。次に、ステッ
プS23のエラー検出、訂正処理を行う。この処理につ
いては、図6を参照しながら後で説明する。次に、ステ
ップS24に進み、8ブロック分が終了したか否かの判
別を行い、NOのときは次のステップS25でNBLをイ
ンクリメント(NBL←NBL+1)して上記ステップS2
2に戻り、YESのときはステップS26に進んで、イ
ニシャライズ終了後メイン処理に移行する。That is, FIG. 5 shows a schematic operation of the whole reading of the NVRAM 16. First, at step S21.
Then, the block counter for counting the block number N BL as described above is initialized (N BL ← 0). In the next step S22, the data of the corresponding blocks in the front and back (first and second pages) areas 16A and 16B of the NVRAM 16 are transferred to the buffer RAM 15 based on the block number N BL . Specifically, the block BL N having a block number N BL among the eight blocks BLa to BLh in the table area 16A of the NVRAM 16 is set to the buffer RAM 1
5 in the corresponding area of the block storage areas 15a to 15h, and the back area 16B of the NVRAM 16
8 blocks BLaa to BLhh, the block BL NN having a block number of N BL +8 is written in the temporary area 15 NN of the buffer RAM 15. Next, the error detection and correction processing of step S23 is performed. This process will be described later with reference to FIG. Next, in step S24, it is determined whether or not 8 blocks have been completed. If NO, then in the next step S25, N BL is incremented (N BL ← N BL +1) and the above step S2 is performed.
Returning to step 2, if YES, the process proceeds to step S26, and after the initialization is completed, the process proceeds to the main process.
【0032】次に、図6は、上記ステップS23のエラ
ー検出、訂正処理の具体例を示すものである。この図6
において、後述するステップS41を介してステップS
31に進み、上記表エリア16Aの番号NBLのブロック
BLN 内のデータについてのパリティチェック(エラー
検出)を行い、エラー無し(OK)か否かを判別してい
る。YES(エラー無し)のときは次のステップS32
に進み、上記裏エリア16Bの番号NBL+8のブロック
BLNN内のデータについてのパリティチェックを行い、
エラー無し(OK)か否かを判別する。ステップS31
でNO(エラー有り)と判別されたときは、ステップS
35に進み、裏エリア16BのブロックBLNNのパリテ
ィチェックを行う。上記ステップS32でYESと判別
されたときは、表裏各エリア16A、16Bの両ブロッ
クBLN 、BLNN共にエラー無しであったことになり、
次のステップS33に進んで、これらのブロックB
LN 、BLNNの各データが互いに一致するか否かを判別
する。YES(一致)のときには、上記図5のステップ
S24に進む。Next, FIG. 6 shows a specific example of the error detection and correction processing in step S23. This Figure 6
In step S41, which will be described later,
In step 31, the parity check (error detection) is performed on the data in the block BL N of the number N BL of the table area 16A, and it is determined whether or not there is an error (OK). If YES (no error), the next step S32
Then, the parity check is performed for the data in the block BL NN with the number N BL +8 in the back area 16B,
It is determined whether there is no error (OK). Step S31
If it is determined to be NO (there is an error) in step S, step S
In step 35, the parity of the block BL NN in the back area 16B is checked. If YES is determined in the above step S32, it means that both blocks BL N and BL NN of the front and back areas 16A and 16B have no error.
Proceed to the next step S33, and execute these blocks B
It is determined whether or not the L N and BL NN data match each other. If YES (coincidence), the process proceeds to step S24 in FIG.
【0033】上記ステップS32でNO(ブロックBL
NNのみエラー有り)と判別されたとき、又は上記ステッ
プS33でNO(不一致)と判別されたときには、ステ
ップS36に進み、表エリア16Aの番号NBLのブロッ
クBLN 内のデータを裏エリア16BのブロックBLNN
に転送してコピーする。これは、バッファRAM15の
領域15a〜15hの内の該当するブロックBLN のデ
ータを、NVRAM16の裏エリア16Bの対応するブ
ロックに転送して書き込めばよい。次に、上記図5のス
テップS22に戻る。このときには、ブロック番号NBL
がインクリメントされないため、ステップS22ではN
VRAM16内の前回と同じ番号NBLに対応するブロッ
クBLN 、BLNNからデータがバッファRAM15に転
送されることになる。ただし、NVRAM16の裏エリ
ア16BのブロックBLNNのデータは、上記ステップS
36で書換えられて、表エリア16AのブロックBLN
のデータと同じものとなっているから、ステップS3
1、S32、S33でいずれもYESと判別され、図5
の次のステップS24に進むことができる。In step S32, NO (block BL
If it is determined that there is an error in only NN ) or if it is determined as NO (mismatch) in step S33, the process proceeds to step S36, and the data in the block BL N of the number N BL of the front area 16A is stored in the back area 16B. Block BL NN
Transfer to and copy. This can be done by transferring the data of the corresponding block BL N in the areas 15a to 15h of the buffer RAM 15 to the corresponding block of the back area 16B of the NVRAM 16 and writing it. Then, the process returns to step S22 of FIG. At this time, the block number N BL
Is not incremented, so in step S22 N
Data is transferred to the buffer RAM 15 from the blocks BL N and BL NN in the VRAM 16 corresponding to the same number N BL as the previous time. However, the data of the block BL NN in the back area 16B of the NVRAM 16 is the same as the above step S
The block BL N in the table area 16A is rewritten by 36.
Since it is the same as the data of step S3, step S3
5 is determined as YES in all of S1, S32, and S33.
Can proceed to the next step S24.
【0034】上記ステップS35でYESと判別された
ときは、ブロックBLN でエラーが有るが、ブロックB
LNNはエラー無しであるから、ステップS37に進み、
裏エリア16BのブロックBLNN内のデータを表エリア
16Aの番号NBLのブロックBLN に転送してコピーす
る。これは、バッファRAM15の上記テンポラリエリ
ア15NNに書き込まれているブロックBLNNのデータ
を、NVRAM16の表エリア16Aの対応するブロッ
クBLN に転送して書き込めばよい。次に、上記図5の
ステップS22に戻る。このときにもブロック番号NBL
がインクリメントされず、ステップS22ではNVRA
M16の同じブロックBLN 、BLNNからデータがバッ
ファRAM15に転送されることになるが、表エリア1
6AのブロックBLN のデータは、上記ステップS36
で書換えられて、裏エリア16BのブロックBLNNのデ
ータと同じものとなっており、ステップS31、S3
2、S33でいずれもYESと判別されて、図5の次の
ステップS24に進むことになるわけである。If YES in step S35, there is an error in block BL N , but block B N
Since there is no error in L NN , the process proceeds to step S37,
The data in the block BL NN of the back area 16B is transferred to the block BL N of the number N BL of the front area 16A and copied. This may be achieved by transferring the data of the block BL NN written in the temporary area 15 NN of the buffer RAM 15 to the corresponding block BL N of the table area 16A of the NVRAM 16 and writing it. Then, the process returns to step S22 of FIG. Also at this time, the block number N BL
Is not incremented, and NVRA is calculated in step S22.
Data will be transferred to the buffer RAM 15 from the same block BL N , BL NN of M16.
The data of the block BL N of 6A is obtained in the above step S36.
The data of the block BL NN in the back area 16B has been rewritten in step S31, S3.
If YES is determined in 2 and S33, the process proceeds to the next step S24 in FIG.
【0035】なお、上記ステップS36でNVRAM1
6のデータを修正した後に、上記図5のステップS24
に進むようにしたり、ステップS37でNVRAM16
のデータを修正すると同時にバッファRAM15の該当
ブロックBLN のデータも修正してステップS24に進
むようにして、同じブロック番号に対するステップS2
2のデータ転送動作を省略してもよい。In the step S36, the NVRAM1
After modifying the data of step S6, step S24 of FIG.
To the NVRAM16 in step S37.
Data of the corresponding block BL N of the buffer RAM 15 are corrected at the same time, the process proceeds to step S24, and step S2 for the same block number is performed.
The second data transfer operation may be omitted.
【0036】上記ステップS35でNOと判別されたと
きには、ブロックBLN 、BLNNの両方でエラーが有る
ことになり、訂正できないため、必要に応じてもう一度
リトライして、それでもだめなときには、ステップS3
8に進んで、エラー表示を行わせる。具体的には、ステ
ップS35でNOのときにステップS42に進み、回数
が2回目か否か(変数mが2か否か)を判別し、YES
のときステップS38に進んでいる。1回目のときに
は、ステップS42でNOと判別され、ステップS43
で変数mをインクリメントして、リトライのための処
理、例えばステップS31以降の処理に戻っている。こ
のステップS31よりも前に、上記変数mを初期化(m
←1)するステップS41を挿入し、このステップ41
よりも後方でステップS31の直前に戻るようにしてい
る。なお、このリトライを、上記NVRAM16からバ
ッファRAM15へのデータ転送も含めて行わせたい場
合には、上記図5のステップS22の直前に戻るように
し、それよりも前に変数mの初期化ステップを挿入する
ようにすればよい。また、初期化の値やステップS42
での判別値を変更することにより、リトライの回数を増
減でき、さらに、このようなリトライを行わない場合に
は、図6中の破線に示すステップS41、S42、S4
3を省略すればよい。If NO in step S35, it means that there is an error in both the blocks BL N and BL NN , and it cannot be corrected. Therefore, if necessary, retry again, and if that is not enough, step S3
Proceed to step 8 to display an error. Specifically, if NO in step S35, the process proceeds to step S42 to determine whether or not the number of times is the second time (whether or not the variable m is 2), and YES.
If so, the process proceeds to step S38. At the first time, it is determined as NO in Step S42, and Step S43
Then, the variable m is incremented, and the process is returned to the retry process, for example, the process after step S31. Prior to this step S31, the variable m is initialized (m
← 1) Insert step S41 to perform this step 41
It is arranged to be returned to the position immediately before step S31. If it is desired to perform this retry including the data transfer from the NVRAM 16 to the buffer RAM 15, the process is returned to immediately before step S22 in FIG. 5, and the initialization step of the variable m is performed before that. It should be inserted. The initialization value and step S42
The number of retries can be increased or decreased by changing the discriminant value in step S4, and if such a retry is not performed, steps S41, S42 and S4 shown by broken lines in FIG.
3 may be omitted.
【0037】以上の説明からも明らかなように、例えば
電源オフの際のバッファRAM15からNVRAM16
へのデータ書き込み動作中にユーザが電池を抜いた場合
や、コンピュータの暴走あるいは静電パルス、外部ノイ
ズ等により、NVRAM16内のデータの一部が変化し
たり破壊されたりした場合でも、データがブロック化さ
れて各ブロック毎にパリティチェックが行え、しかも各
ブロックが2重書きされているため、不良データあるい
は破壊データを避けて有効なデータを読み出すことがで
き、電源投入後の動作等に悪影響を及ぼす虞れが激減
し、機器故障率を低下させることができる。As is apparent from the above description, for example, the buffer RAM 15 to the NVRAM 16 when the power is off.
If the user removes the battery while writing data to the NVRAM, or if some of the data in the NVRAM 16 is changed or destroyed due to computer runaway, electrostatic pulse, external noise, etc., the data will be blocked. It is possible to perform parity check for each block and to write each block twice, so that valid data can be read out while avoiding defective data or destroyed data, which adversely affects the operation after power is turned on. The risk of exerting it is drastically reduced, and the equipment failure rate can be reduced.
【0038】なお、本発明は上記実施例のみに限定され
るものではなく、例えば、適用装置は小型回転ヘッド型
DATに限定されず、種々の電子機器装置に適用でき、
特に小型ディスク再生装置や小型テープレコーダ等のよ
うな電池駆動タイプの小型電子機器装置に適用して好ま
しいものである。The present invention is not limited to the above-mentioned embodiments, and for example, the applicable device is not limited to the small rotary head type DAT, but can be applied to various electronic equipment devices.
In particular, it is preferable when applied to a battery-driven type small electronic device such as a small disc reproducing device or a small tape recorder.
【0039】[0039]
【発明の効果】以上の説明からも明らかなように、本発
明に係る電子機器装置によれば、電源オフ時に所要デー
タを書き込んで保持する不揮発性メモリを有する電子機
器装置において、上記所要データを所定ワード数毎にブ
ロック化し各ブロック毎にパリティを付加し、上記所要
データの全ブロックを上記不揮発性メモリに多重書きし
ているため、データ書き込み中に電源が落とされたり、
静電パルス、外部ノイズ等により、データ不良やデータ
破壊が生じても、正しいデータが残ることが多くなり、
また各ブロック毎にパリティチェックを行って有効なデ
ータを読み出すようにして、不良データによる悪影響を
防止できる。As is apparent from the above description, according to the electronic equipment device of the present invention, in the electronic equipment device having the non-volatile memory for writing and holding the required data when the power is turned off, the required data can be stored. It is divided into blocks for each predetermined number of words, parity is added to each block, and all blocks of the required data are multiple-written in the nonvolatile memory, so the power is turned off during data writing,
Even if data failure or data destruction occurs due to electrostatic pulse, external noise, etc., correct data will often remain,
In addition, a parity check is performed for each block to read valid data, so that the bad influence of defective data can be prevented.
【0040】また、本発明に係る電子機器装置によれ
ば、上述の構成を有する電子機器装置において、上記不
揮発性メモリのデータ読み出し時に、上記多重書きされ
たデータを上記対応する同じブロック単位で比較してい
るため、いずれのブロックもエラー無しとなっているに
も拘らずデータが不一致のときには、いずれか1つのブ
ロックのデータを優先的に用いてデータ修正を行うこと
ができる。Further, according to the electronic equipment device of the present invention, in the electronic equipment device having the above-mentioned configuration, when the data is read from the nonvolatile memory, the multiple written data are compared in the same corresponding block unit. Therefore, when data does not match in spite of no error in any block, data in any one block can be preferentially used for data correction.
【図1】本発明に係る電子機器装置の一実施例となる小
型回転ヘッド型ディジタルオーディオテープレコーダ
(DAT)の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a small rotary head type digital audio tape recorder (DAT) as an embodiment of an electronic device apparatus according to the present invention.
【図2】上記実施例に用いられる不揮発性メモリ(NV
RAM)のメモリマップの具体例を示す図である。FIG. 2 is a nonvolatile memory (NV used in the above embodiment
It is a figure which shows the specific example of the memory map of RAM.
【図3】上記実施例に用いられるバッファRAMのメモ
リマップの具体例を示す図である。FIG. 3 is a diagram showing a specific example of a memory map of a buffer RAM used in the above embodiment.
【図4】上記実施例の電源オフの際の動作を説明するた
めのフローチャートである。FIG. 4 is a flowchart for explaining an operation when the power is off in the above embodiment.
【図5】上記実施例の電源投入時の動作を説明するため
のフローチャートである。FIG. 5 is a flow chart for explaining the operation of the above embodiment when the power is turned on.
【図6】上記実施例にパリティチェックによるエラー検
出、訂正処理を説明するためのフローチャートである。FIG. 6 is a flowchart for explaining error detection and correction processing by parity check in the above embodiment.
3・・・・・モード切換スイッチ群 4・・・・・ボリュームスイッチ群 6・・・・・入力制御回路 7・・・・・システム制御回路 15・・・・・バッファRAM 16・・・・・NVRAM(不揮発性メモリ) 16A・・・・・表(第1ページ)エリア 16B・・・・・裏(第2ページ)エリア 3 ... Mode changeover switch group 4 ... Volume switch group 6 ... Input control circuit 7 ... System control circuit 15 ... Buffer RAM 16 ...・ NVRAM (non-volatile memory) 16A: front (first page) area 16B: back (second page) area
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G11B 27/00 A 8224−5D // G11B 33/00 Z 7177−5D ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 5 Identification code Office reference number FI Technical display location G11B 27/00 A 8224-5D // G11B 33/00 Z 7177-5D
Claims (2)
持する不揮発性メモリを有する電子機器装置において、 上記所要データを所定ワード数毎にブロック化して各ブ
ロック毎にパリティを付加し、上記所要データの全ブロ
ックを上記不揮発性メモリに多重書きすることを特徴と
する電子機器装置。1. An electronic device having a non-volatile memory for writing and holding required data when the power is turned off, the required data is divided into blocks for each predetermined number of words, and a parity is added to each block to obtain the required data. An electronic device apparatus, wherein all blocks are written in multiplex into the nonvolatile memory.
に、上記多重書きされたデータを上記対応する同じブロ
ック単位で比較することを特徴とする請求項1記載の電
子機器装置。2. The electronic device apparatus according to claim 1, wherein when the data is read from the non-volatile memory, the multiple-written data are compared in the same corresponding block unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4024375A JPH05189837A (en) | 1992-01-16 | 1992-01-16 | Electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4024375A JPH05189837A (en) | 1992-01-16 | 1992-01-16 | Electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05189837A true JPH05189837A (en) | 1993-07-30 |
Family
ID=12136450
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4024375A Withdrawn JPH05189837A (en) | 1992-01-16 | 1992-01-16 | Electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05189837A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1066472C (en) * | 1994-12-21 | 2001-05-30 | 住友化学工业株式会社 | Polypropylene resin composition for oriented film and oriented film of composition |
| EP0919967A3 (en) * | 1997-09-29 | 2002-06-26 | Sharp Kabushiki Kaisha | Semiconductor memory device and sales processor having the same |
| WO2002095750A1 (en) * | 2001-05-21 | 2002-11-28 | Sony Corporation | Disc drive and disc drive method |
| KR100350681B1 (en) * | 1996-03-30 | 2002-12-11 | 삼성전자 주식회사 | Data Record Error Prevention Method |
| JP2003259475A (en) * | 2002-02-27 | 2003-09-12 | Kenwood Corp | Radio headset |
| JP2021149622A (en) * | 2020-03-19 | 2021-09-27 | キオクシア株式会社 | Memory system |
| JP2022135468A (en) * | 2021-03-05 | 2022-09-15 | オムロン株式会社 | Data processing apparatus, data processing method, and program |
-
1992
- 1992-01-16 JP JP4024375A patent/JPH05189837A/en not_active Withdrawn
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1066472C (en) * | 1994-12-21 | 2001-05-30 | 住友化学工业株式会社 | Polypropylene resin composition for oriented film and oriented film of composition |
| KR100350681B1 (en) * | 1996-03-30 | 2002-12-11 | 삼성전자 주식회사 | Data Record Error Prevention Method |
| EP0919967A3 (en) * | 1997-09-29 | 2002-06-26 | Sharp Kabushiki Kaisha | Semiconductor memory device and sales processor having the same |
| WO2002095750A1 (en) * | 2001-05-21 | 2002-11-28 | Sony Corporation | Disc drive and disc drive method |
| JP2003259475A (en) * | 2002-02-27 | 2003-09-12 | Kenwood Corp | Radio headset |
| JP2021149622A (en) * | 2020-03-19 | 2021-09-27 | キオクシア株式会社 | Memory system |
| JP2022135468A (en) * | 2021-03-05 | 2022-09-15 | オムロン株式会社 | Data processing apparatus, data processing method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5159671A (en) | Data transfer unit for small computer system with simultaneous transfer to two memories and error detection and rewrite to substitute address | |
| US20100017557A1 (en) | Memory controller, nonvolatile memory device,access device, and nonvolatile memory system | |
| JPS605023B2 (en) | memory system | |
| EP0890955B1 (en) | Storage apparatus, data write-in method, and data read-out method | |
| US7190537B2 (en) | Self-raid system using hard disk drive having backup head and method of writing data to and reading data from hard disk drive having backup head | |
| EP0548681A2 (en) | Recording and reproducing apparatus provided with a batch erasable nonvolatile semiconductor memory device for batch erasing of specific data group(s) | |
| JPH05189837A (en) | Electronic equipment | |
| KR20030065355A (en) | Storage, data processing method and data processing program | |
| JP2001290791A (en) | Microcomputer with built-in nonvolatile semiconductor memory and its control method | |
| JP3012737B2 (en) | Method of writing data to E2ROM | |
| JP3769395B2 (en) | External storage device using non-volatile memory | |
| JPH0773098A (en) | Data writing method | |
| JPH06301601A (en) | Information recorder and information transfer equipment | |
| JPH07200181A (en) | Information transfer device and information recording device | |
| JP3921751B2 (en) | Recording apparatus, recording method, and recording / reproducing apparatus | |
| JP2001318829A (en) | Device and method for controlling rewriting of flash memory | |
| JP3335210B2 (en) | Counter | |
| JP3347910B2 (en) | Disk drive device | |
| JP3259421B2 (en) | Information recording device | |
| JPH04268256A (en) | Electronic apparatus | |
| JPH0258653B2 (en) | ||
| JP2000222291A (en) | Method for accessing flash memory and flash memory storing data to be accessed by the same | |
| JP2861846B2 (en) | Magnetic disk control system | |
| JPH11282432A (en) | Liquid crystal display device and computer system using the same | |
| JP3178913B2 (en) | Semiconductor file 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: 19990408 |