JPH0773111A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0773111A
JPH0773111A JP5168408A JP16840893A JPH0773111A JP H0773111 A JPH0773111 A JP H0773111A JP 5168408 A JP5168408 A JP 5168408A JP 16840893 A JP16840893 A JP 16840893A JP H0773111 A JPH0773111 A JP H0773111A
Authority
JP
Japan
Prior art keywords
area
data
storage medium
memory
storage
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
JP5168408A
Other languages
Japanese (ja)
Inventor
Masaya Goto
真哉 後藤
Hiroyuki Watabe
裕之 渡部
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP5168408A priority Critical patent/JPH0773111A/en
Publication of JPH0773111A publication Critical patent/JPH0773111A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

(57)【要約】 【目的】 記憶媒体に格納された所定データの破壊を防
止する事ができる。 【構成】 CPU100がSRAM103中の先頭およ
び最終の特定領域をデータ格納領域から除外する未使用
領域111,118を確保する構成を特徴とする。
(57) [Summary] [Purpose] It is possible to prevent the destruction of predetermined data stored in a storage medium. [Configuration] A feature is that the CPU 100 secures unused areas 111 and 118 that exclude the first and last specific areas in the SRAM 103 from the data storage area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文書処理装置に係り、
特に電池によるメモリバックアップ機能付のSRAMま
たはRAMカードを備える文書処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing device,
In particular, the present invention relates to a document processing device including an SRAM or RAM card with a memory backup function using a battery.

【0002】[0002]

【従来の技術】従来の文書処理装置においては、電池に
よるメモリバックアップ機能付のSRAMまたはRAM
カードを有する場合、電源の投入,電源の切断,電源事
情による電源の瞬断によって、さらにRAMカードの場
合は、その装着,着脱によって、特にメモリ領域の先頭
部および最終部が破壊されやすいことが解っている。
2. Description of the Related Art In a conventional document processing apparatus, an SRAM or a RAM with a memory backup function by a battery is used.
When the card is provided, the beginning and the end of the memory area are particularly likely to be damaged due to power-on, power-off, and momentary power-off due to power supply conditions. I understand.

【0003】また、メモリ破壊はある任意の位置から前
半分,後半分と破壊されることも経験的に解っている。
It is also empirically known that memory destruction is destroyed from an arbitrary position to the front half and the rear half.

【0004】これらの不慮のデータ破壊に対して、従来
の文書処理装置は、SRAMまたはRAMカードの先頭
領域のみを未使用としたり、これらメモリの正当性を確
かめるIDをメモリ先頭領域のみに配置したりしてい
た。
In response to these accidental data destruction, the conventional document processing apparatus leaves only the head area of the SRAM or RAM card unused or allocates an ID for confirming the validity of these memories only in the memory head area. It was.

【0005】さらに、SRAMまたはRAMカード内の
読み書き領域の逐次チェックを行う場合も既に格納され
ているデータを電池によるメモリバックアップ不可能な
DRAMに一時保存しながら実行していた。
Further, when the read / write area in the SRAM or RAM card is sequentially checked, the already stored data is temporarily stored in the DRAM which cannot be backed up by the battery.

【0006】[0006]

【発明が解決しようとする課題】このように、従来のS
RAMまたはRAMカードは取り扱いによってデータ破
壊が生じて、ユーザデータ,システムデータ等の貴重な
データが消失してしまうとともに、該データ破壊による
記憶内容の変動状態によっては、プログラムが正常に動
作せず、誤動作してしまう等の問題点があった。
As described above, the conventional S
The RAM or RAM card causes data destruction due to handling, and valuable data such as user data and system data is lost, and the program does not operate normally depending on a change state of stored contents due to the data destruction. There was a problem such as malfunction.

【0007】また、SRAMまたはRAMカード等への
データ読み書き時におけるメモリチェックのために、既
にあるデータをDRAM等の揮発性メモリに格納してい
る時に電源の瞬断が発生した場合、チェック中の当該デ
ータが破壊されてしまうという問題点が合った。
Further, in order to perform a memory check at the time of reading / writing data from / to an SRAM or a RAM card, etc., if a power interruption occurs while storing existing data in a volatile memory such as a DRAM, it is being checked. The problem that the data was destroyed was met.

【0008】本発明は、上記の問題点を解消するために
なされたもので、記憶媒体の先頭領域および最終領域の
使用を制限することにより、記憶媒体に格納された所定
データの破壊を防止するとともに、記憶媒体に格納され
た所定データの破壊状態を判定しながら記憶媒体中の正
常に使用可能な領域を認識できる文書処理装置を提供す
ることを目的とする。
The present invention has been made to solve the above problems, and prevents the destruction of predetermined data stored in a storage medium by limiting the use of the start area and the end area of the storage medium. Another object of the present invention is to provide a document processing apparatus capable of recognizing a normally usable area in a storage medium while determining the state of destruction of predetermined data stored in the storage medium.

【0009】[0009]

【課題を解決するための手段】本発明の第1の文書処理
装置は、記憶媒体中の先頭および最終の特定領域をデー
タ格納領域から除外する未使用領域を確保する確保手段
を設けたものである。
The first document processing apparatus of the present invention comprises a securing means for securing an unused area for excluding the first and last specific areas in the storage medium from the data storage area. is there.

【0010】本発明の第2の文書処理装置は、記憶媒体
中の先頭および最終の特定領域をデータ格納領域から除
外する未使用領域を確保する確保手段と、記憶媒体中の
先頭および最終の特定領域との境界領域にデータ書込み
状態を判定するための所定の識別情報をぞれぞれ書き込
む識別情報書込み手段と、各境界領域に書き込まれた各
識別情報を照合して記憶媒体のデータ記憶状態を判定す
る判定手段と、この判定手段の判定結果に基づいて記憶
媒体の使用領域のデータ書込み/読出し診断処理又は初
期化処理を実行して正常使用可能な記憶領域を設定する
設定手段とを設けたものである。
The second document processing apparatus of the present invention comprises a securing means for securing an unused area for excluding the first and last specified areas in the storage medium from the data storage area, and the first and last specified areas in the storage medium. A data storage state of the storage medium by collating each identification information written in each boundary area with identification information writing means for writing predetermined identification information for judging a data writing state in a boundary area with the area And a setting means for setting a normally usable storage area by executing data write / read diagnostic processing or initialization processing of the used area of the storage medium based on the determination result of this judgment means. It is a thing.

【0011】本発明の第3の文書処理装置は、設定手段
は、記憶媒体の使用領域のデータ書込み/読出し診断処
理実行直前に、使用領域に書き込まれているデータを前
記境界領域に退避するように構成したものである。
In the third document processing apparatus of the present invention, the setting means saves the data written in the use area to the boundary area immediately before executing the data writing / reading diagnostic processing of the use area of the storage medium. It is configured in.

【0012】本発明の第4の文書処理装置は、記憶媒体
の未使用領域を関数演算のワーク領域として使用するよ
うに構成したものである。
A fourth document processing apparatus of the present invention is configured to use an unused area of a storage medium as a work area for function calculation.

【0013】本発明の第5の文書処理装置は、記憶媒体
を着脱可能な外部メモリ媒体で構成したものである。
The fifth document processing apparatus of the present invention comprises a storage medium as an external memory medium which can be attached and detached.

【0014】[0014]

【作用】第1の本発明においては、確保手段が記憶媒体
中の先頭および最終の特定領域をデータ格納領域から除
外する未使用領域を確保するので、記憶媒体の先頭およ
び最終の特定領域にデータ不良領域が発生しても、所定
データが破壊されることを防止することが可能となる。
In the first aspect of the present invention, since the securing means secures an unused area for excluding the leading and final specific areas in the storage medium from the data storage area, the data is stored in the leading and final specific areas of the storage medium. Even if a defective area occurs, it is possible to prevent the predetermined data from being destroyed.

【0015】第2の本発明においては、各境界領域に書
き込まれた各識別情報を照合して記憶媒体のデータ記憶
状態を判定する判定手段の判定結果に基づいて設定手段
が記憶媒体の使用領域のデータ書込み/読出し診断処理
又は初期化処理を実行して正常使用可能な記憶領域を設
定するので、各境界領域に書き込まれた識別情報を照合
して使用領域の不良を認知して正常使用可能な領域を確
保することが可能となる。
In the second aspect of the present invention, the setting means determines the data storage state of the storage medium by collating the identification information written in each boundary area with the setting means based on the determination result. By executing the data write / read diagnostic process or the initialization process to set the storage area that can be used normally, the identification information written in each boundary area is collated to recognize the defect in the used area and can be used normally. It is possible to secure a large area.

【0016】第3の本発明においては、設定手段は、記
憶媒体の使用領域のデータ書込み/読出し診断処理実行
直前に、使用領域に書き込まれているデータを境界領域
に退避するので、データ書込み/読出し診断処理実行中
の電源瞬断が発生しても正常動作を保証する所定のデー
タを再設定することが可能となる。
In the third aspect of the present invention, since the setting means saves the data written in the use area to the boundary area immediately before executing the data write / read diagnosis processing of the use area of the storage medium, the data write / read operation is performed. Even if a power failure occurs during execution of the read diagnosis process, it is possible to reset predetermined data that guarantees normal operation.

【0017】第4の本発明においては、記憶媒体の未使
用領域を関数演算のワーク領域として使用するので、未
使用領域を可能な限り有効に使用することが可能とな
る。
In the fourth aspect of the present invention, since the unused area of the storage medium is used as the work area for the function operation, the unused area can be used as effectively as possible.

【0018】第5の本発明においては、記憶媒体を着脱
可能な外部メモリ媒体で構成したもので、着脱操作に伴
って記憶媒体中の先頭および最終の特定領域領域が破壊
されても、外部メモリ媒体を利用した正常なデータ書込
み/データ読出しが可能となる。
In the fifth aspect of the present invention, the storage medium is composed of a removable external memory medium, and even if the first and last specific area regions in the storage medium are destroyed by the attachment / detachment operation, the external memory It is possible to write / read data normally using the medium.

【0019】[0019]

【実施例】【Example】

〔第1実施例〕図1は本発明の第1実施例を示す文書処
理装置の外観を示す斜視図であり、例えばポータブルな
ワードプロセッサ装置に対応し、(a)は本体使用時の
状態を示し、(b)は本体格納時の状態を示す。
[First Embodiment] FIG. 1 is a perspective view showing the outer appearance of a document processing apparatus according to the first embodiment of the present invention, which corresponds to, for example, a portable word processor, and (a) shows a state when the main body is used. , (B) show the state when the main body is stored.

【0020】図において、1はキーボードであり、文
字,数字等キャラクタ入力用のキーやコントローラ等の
キー群2が配列され、非使用(本体格納時)にはヒンジ
3を中心に回動させることにより、(b)に示すように
折り畳めるように構成されている。4は装置内部のプリ
ンタ部にシート状記録媒体を給送するための給紙トレー
であり、同じく非使用時には(b)に示すようにプリン
タ部の全面側を覆うように収納される。5は手動にて記
録媒体のセットや排出を行うためのノブ、6は入力した
文章等を文字の書体,大きさ,アンダーライン付,ボー
ルドフェース文字等の文字修飾情報に従って印刷物と同
時に表示可能なビットマトリックスタイプの表示器、7
は本体搬送の際に使用される把手、8は入力した文章を
印刷するプリンタ部で、例えばバブルジェット型の印字
ヘッドを走査して印字を行う。
In FIG. 1, reference numeral 1 denotes a keyboard, on which keys for inputting characters such as letters and numbers and a key group 2 such as a controller are arranged, and a hinge 3 is rotated around a hinge 3 when not in use (when the main body is stored). Thus, it can be folded as shown in (b). Reference numeral 4 denotes a paper feed tray for feeding a sheet-shaped recording medium to the printer unit inside the apparatus, and is similarly housed so as to cover the entire surface of the printer unit when not in use as shown in (b). 5 is a knob for manually setting or ejecting a recording medium, and 6 is an input sentence or the like that can be displayed at the same time as a printed matter in accordance with character modification information such as a typeface of characters, size, underline, bold face characters, etc. Bit matrix type indicator, 7
Is a handle used when the main body is conveyed, and 8 is a printer unit for printing an input sentence, for example, by scanning a bubble jet type print head for printing.

【0021】図2は、図1に示した文書処理装置の第1
の制御構成を説明するブロック図である。
FIG. 2 shows a first example of the document processing apparatus shown in FIG.
3 is a block diagram illustrating the control configuration of FIG.

【0022】図において、100は文書処理を実行する
マイクロコンピュータ形態のCPU、101はROM
で、CPU100が実行する図4〜図6に示すような文
書処理を実行する処理プログラムその他の固定データを
格納している。102は文書処理に関わるCPU100
のワーク領域およびテキストデータ格納等として機能す
るDRAMである。なお、DRAM102は電池による
メモリバックアップは行われていない。103は文書フ
ァイル等のユーザデータやシステムデータを格納する電
池によりメモリバックアップされるSRAMである。1
04はバスラインで、CPU100と各デバイス、すな
わち、上記101〜103およびキーボード1,表示器
6,プリンタ部8とのアドレス信号,データ信号,制御
信号等を転送する。
In the figure, 100 is a CPU in the form of a microcomputer for executing document processing, and 101 is a ROM.
In addition, a processing program for executing the document processing as shown in FIGS. 4 to 6 executed by the CPU 100 and other fixed data are stored. 102 is a CPU 100 related to document processing
It is a DRAM that functions as a work area and a text data storage. The DRAM 102 is not backed up by a battery. Reference numeral 103 denotes an SRAM that is backed up by a memory that stores user data such as document files and system data. 1
A bus line 04 transfers address signals, data signals, control signals and the like between the CPU 100 and each device, that is, 101 to 103 and the keyboard 1, the display 6, and the printer unit 8.

【0023】図3は、図2に示したSRAM103のメ
モリマップを示す図である。
FIG. 3 is a diagram showing a memory map of the SRAM 103 shown in FIG.

【0024】図において、111はメモリ先頭領域の未
使用領域、112はメモリ先頭領域の未使用領域111
に続くID情報を格納するID領域、113〜115は
メモリの読み書きによるチェックを行うためのデータ格
納領域で、113はメモリチェック中に電源が落された
ことを示すフラグを格納するデータ格納領域、114は
前記データ格納領域113にて示されるチェック中のデ
ータのアドレスを格納するデータ格納領域、115は前
記データ格納領域113,114にて示されるチェック
中のメモリ内の既に格納されていたでたを格納するデー
タ格納領域である。116はデータ格納領域で、システ
ムデータおよびユーザデータが格納される。117はメ
モリ領域の未使用領域118に続くID情報を格納する
ID領域である。
In the figure, 111 is an unused area of the memory head area, and 112 is an unused area of the memory head area 111.
, An ID area for storing ID information, 113 to 115 are data storage areas for checking by reading and writing from the memory, 113 is a data storage area for storing a flag indicating that power is turned off during the memory check, Reference numeral 114 denotes a data storage area for storing the address of the data under check indicated by the data storage area 113, and 115 has already been stored in the memory under check indicated by the data storage areas 113, 114. Is a data storage area for storing. A data storage area 116 stores system data and user data. An ID area 117 stores ID information following the unused area 118 of the memory area.

【0025】この様に第1の発明によれば、確保手段
(CPU100)が記憶媒体(SRAM103)中の先
頭および最終の特定領域をデータ格納領域から除外する
未使用領域(領域111,118)を確保するので、記
憶媒体の先頭および最終の特定領域にデータ不良領域が
発生しても、所定データが破壊されることを防止するこ
とが可能となる。
As described above, according to the first aspect of the invention, the securing means (CPU 100) removes unused areas (areas 111 and 118) for excluding the first and last specified areas in the storage medium (SRAM 103) from the data storage area. Since the data is ensured, it is possible to prevent the predetermined data from being destroyed even if the defective data areas occur in the first and last specific areas of the storage medium.

【0026】以下、図4〜図6に示すフローチャートを
参照しながら本発明に係る文書処理装置におけるメモリ
アクセス動作について説明する。なお、図4〜図6に示
す各手順は図2に示したROM101またはDRAM1
02等のRAMに記憶されている。
The memory access operation in the document processing apparatus according to the present invention will be described below with reference to the flow charts shown in FIGS. The procedures shown in FIGS. 4 to 6 are the same as those of the ROM 101 or the DRAM 1 shown in FIG.
02 etc. are stored in the RAM.

【0027】図4は本発明に係る文書処理装置における
第1の電源ON処理手順の一例を示すフローチャートで
ある。なお、(1)〜(7)は各ステップを示す。
FIG. 4 is a flow chart showing an example of the first power-on processing procedure in the document processing apparatus according to the present invention. Note that (1) to (7) indicate each step.

【0028】電源が投入されると、SRAM103のI
D領域112に正常な値が格納されているかどうかを判
断し(1)、NOならば、すなわち、SRAM103が
まだ初期化されていない場合は、後述する初期化ルーチ
ンを開始するためステップ(6)に進み、YESならば
ID領域117に正常な値が格納されているかどうかを
判断し(2)、NOならば、すなわち、初期化済みであ
っても何等かの要因でデータが破壊されていると考えら
れ、データが信頼できない状態であるので、後述する初
期化ルーチンを開始するためステップ(6)に進み、Y
ESならば、すなわち、正常な値が格納されていると判
断された場合は、SRAM103が初期化済みであると
判断し、チェックフラグ113を参照し、直前に電源が
落とされた時に、SRAM103のメモリチェック中で
あったかどうかを、チェックフラグ113の値が「0」
かどうかから判断し(3)、NOならばメモリチェック
中であったと判断されるので、アドレス114の指すア
ドレスに、退避中のデータ115を格納してデータの回
復を行う(4)。その後、SRAM103のメモリチェ
ック処理ルーチンを実行し(5)、メモリチェックが正
常終了したかどうかを判断し(7)、NOならば異常終
了し、YESならばSRAM103のイニシャル処理を
正常終了する。
When the power is turned on, the SRAM 103 I
It is determined whether or not a normal value is stored in the D area 112 (1). If NO, that is, if the SRAM 103 has not been initialized, a step (6) for starting an initialization routine described later. If YES, it is judged whether or not a normal value is stored in the ID area 117 (2). If NO, that is, the data is destroyed due to some factor even if it has been initialized. Since it is considered that the data is unreliable, the process proceeds to step (6) to start the initialization routine described later, and Y
If it is ES, that is, if it is determined that a normal value is stored, it is determined that the SRAM 103 has been initialized, the check flag 113 is referred to, and when the power is turned off immediately before, the SRAM 103 The value of the check flag 113 is "0" indicating whether the memory is being checked.
If it is NO, it is determined that the memory check is in progress. Therefore, the saved data 115 is stored in the address indicated by the address 114 to recover the data (4). After that, the memory check processing routine of the SRAM 103 is executed (5), and it is determined whether or not the memory check is normally completed (7). If NO, the processing ends abnormally, and if YES, the initial processing of the SRAM 103 ends normally.

【0029】この様に第2の発明においては、各境界領
域(領域112,117)に書き込まれた各識別情報
(ID)を照合して記憶媒体(SRAM3)のデータ記
憶状態を判定する判定手段(CPU100)の判定結果
に基づいて設定手段(本実施例ではCPU100によ
る)が記憶媒体の使用領域のデータ書込み/読出し診断
処理又は初期化処理を実行して正常使用可能な記憶領域
を設定するので、各境界領域に書き込まれた識別情報を
照合して使用領域の不良を認知して正常使用可能な領域
を確保することが可能となる。
As described above, according to the second aspect of the present invention, the determination means for determining the data storage state of the storage medium (SRAM3) by collating the identification information (ID) written in each boundary area (area 112, 117). Since the setting means (by the CPU 100 in this embodiment) executes the data writing / reading diagnostic process or the initialization process of the used area of the storage medium based on the determination result of the (CPU 100), the normally usable storage area is set. The identification information written in each boundary area is collated to recognize a defect in the used area, and a normally usable area can be secured.

【0030】この様に第3の発明においては、設定手段
(CPU100)は、記憶媒体(SRAM103)の使
用領域のデータ書込み/読出し診断処理実行直前に、使
用領域データ領域116に書き込まれているデータを境
界領域(領域112〜115)に退避するので、データ
書込み/読出し診断処理実行中の電源瞬断が発生しても
正常動作を保証する所定のデータを再設定することが可
能となる。
As described above, in the third invention, the setting means (CPU 100) causes the data written in the use area data area 116 immediately before the data writing / reading diagnostic processing of the use area of the storage medium (SRAM 103) is executed. Is saved in the boundary area (areas 112 to 115), it is possible to reset the predetermined data that guarantees the normal operation even if the power is interrupted during the data writing / reading diagnostic processing.

【0031】図5は、図4に示した初期化処理ルーチン
の詳細手順の一例を示すフローチャートである。なお、
(1)〜(13)は各ステップを示す。
FIG. 5 is a flow chart showing an example of a detailed procedure of the initialization processing routine shown in FIG. In addition,
(1)-(13) show each step.

【0032】まず、SRAM103の先頭アドレス、例
えば「0000H」をアドレス変数iにセットする
(1)。次いで、チェック用のデータ変数aに「00
H」を代入し(2)、アドレスiにデータaを格納する
(3)。次いで、アドレスiからデータbを読み込み
(4)、データaとデータbが同一の値であるかどうか
を判断をすることにより、アドレスiに正しくデータの
書込みが実行できたかどうかの判定を行う(5)。この
判定でa=bでなければSRAM103が異常であると
判断し異常終了するが、a=bであれば、データaが
「FFH」であるかどうかを判断し(6)、「FFH」
でない場合は、データaに「55H」を加算することに
よりチェックデータを更新した上で(7)、ステップ
(3)に戻る。このようにステップ(2)〜(7)の一
連の操作により、SRAM103上のアドレスiについ
て「00H」,「55H」「,「AAH」,「FFH」
の4種のデータの書込みチェックを行うことが可能とな
る。
First, the start address of the SRAM 103, for example, "0000H" is set in the address variable i (1). Next, "00" is added to the check data variable a.
"H" is substituted (2), and the data a is stored at the address i (3). Next, the data b is read from the address i (4), and it is judged whether or not the data a and the data b have the same value to judge whether or not the data can be correctly written to the address i ( 5). If a = b is not determined in this determination, the SRAM 103 is determined to be abnormal and the processing ends abnormally. If a = b, it is determined whether the data a is "FFH" (6), and "FFH" is determined.
If not, the check data is updated by adding "55H" to the data a (7), and the process returns to step (3). In this way, by the series of operations of steps (2) to (7), “00H”, “55H” “,“ AAH ”,“ FFH ”for the address i on the SRAM 103 is obtained.
It is possible to check the writing of four types of data.

【0033】次いで、チェック用データaの値が「FF
H」である場合には、あるアドレスiに関してのチェッ
クが終了したものと判断されるされるので、アドレス変
数iの値をインクリメントして(8)、次のアドレスの
チェックへと備える。次いで、アドレス変数iがSRA
M103の最終アドレスを越えたかどうかの判断を行う
ことにより、SRAM103の全領域に対してチェック
が終了したかどうかのチェックを行い(9)、まだであ
ればステップ(2)に戻り、次のアドレスiに対してメ
モリチェックを継続する。
Then, the value of the check data a is "FF.
If it is "H", it is determined that the check for a certain address i is completed, so the value of the address variable i is incremented (8) to prepare for the check of the next address. Next, the address variable i is SRA
By checking whether or not the final address of M103 is exceeded, it is checked whether or not the check has been completed for all areas of SRAM 103 (9), and if not yet, return to step (2) to move to the next address. Continue memory check for i.

【0034】一方、ステップ(9)においてアドレス変
数iがSRAM103の最終アドレスを越えていると判
断された場合には、メモリチェックを終了し、SRAM
103の先頭未使用領域111および最終未使用領域1
18とにデータ「00」を格納し(10)、先頭未使用
領域111に続くID領域112にID情報を格納し
(11)、最終未使用領域118の直前のID領域11
7にID情報を格納し(12)、メモリチェックフラグ
領域113にデータ「00」を格納し(13)、SRA
M103の初期化を正常終了する。
On the other hand, if it is determined in step (9) that the address variable i exceeds the final address of the SRAM 103, the memory check is terminated and the SRAM
First unused area 111 and last unused area 1 of 103
18 stores the data "00" (10), stores the ID information in the ID area 112 following the head unused area 111 (11), and stores the ID area 11 immediately before the last unused area 118.
7 stores the ID information (12), and stores the data “00” in the memory check flag area 113 (13).
The initialization of M103 is completed normally.

【0035】図6は、図4に示したメモリチェック処理
ルーチンの詳細手順の一例を示すフローチャートであ
る。なお、(1)〜(11)は各ステップを示す。
FIG. 6 is a flow chart showing an example of a detailed procedure of the memory check processing routine shown in FIG. Note that (1) to (11) indicate each step.

【0036】まず、メモリチェックフラグ113を「F
FH」にすることにより(1)、メモリチェック中であ
ることを示す。次いで、アドレス変数iにSRAM10
3の先頭アドレス、例えば「0000H」を代入する
(2)。次いで、データ変数aにチェック用データ「0
0H」をセットし(3)、アドレスiにデータaを格納
し(4)、アドレスiからデータbを読み込み(5)、
書込みデータaと読込みデータbが一致するかどうかの
判定により、アドレスiの読み書きチェックを行う
(6)。ここで、a≠bの場合は異常終了するが、a=
bの場合は、チェック用データaが「FFH」であるか
どうかを判定し(7)、「FFH」でなければデータa
に「55H」を加算することによりアドレスiに関する
チェック用データを更新した上で(8)、ステップ
(4)に戻り、アドレスiに関するメモリチェックを継
続する。
First, the memory check flag 113 is set to "F
By setting it to "FH" (1), it indicates that the memory check is in progress. Next, the SRAM 10 is set to the address variable i.
The start address of 3, for example, "0000H" is substituted (2). Next, the check data “0” is assigned to the data variable a.
0H ”is set (3), the data a is stored in the address i (4), the data b is read from the address i (5),
A read / write check of the address i is performed by judging whether the write data a and the read data b match (6). If a ≠ b, the process ends abnormally, but a =
In the case of b, it is judged whether the check data a is "FFH" (7), and if it is not "FFH", the data a
The check data for address i is updated by adding "55H" to (8), and then the process returns to step (4) to continue the memory check for address i.

【0037】一方、ステップ(7)の判定でチェック用
データaが「FFH」である、すなわち、アドレス変数
iをインクリメントして次のアドレスのメモリチェック
に備える(9)。次いで、アドレス変数iがSRAM1
03の最終アドレスを越えたかどうかを判断を行い(1
0)、越えていなければステップ(3)に戻り、メモリ
チェックを続行する。
On the other hand, the check data a is "FFH" in the judgment of the step (7), that is, the address variable i is incremented to prepare for the memory check of the next address (9). Next, the address variable i is SRAM1.
It is judged whether it has exceeded the final address of 03 (1
0), if not exceeded, the process returns to step (3) to continue the memory check.

【0038】一方、ステップ(10)の判断でアドレス
変数iがSRAM103の最終アドレスを越えていると
判断されている場合には、メモリチェックフラグ113
をゼロクリアすることにより(11)、SRAM103
の全領域に関するメモリチェックを正常終了する。以上
示したように、ステップ(3)〜(7)の一連の処理に
てSRAM103のあるアドレスiに関してのメモリチ
ェックを実現し、ステップ(2)〜(10)までの一連
の処理によりSRAM103の全領域に関するメモリチ
ェックを実現する。なお、上記図5及ぶ図6に示したフ
ローチャート中、メモリチェックの最中はチェックアド
レスiをSRAM103中のアドレス退避領域114に
退避し、チェックアドレスiにチェック開始直前に格納
されていたデータをSRAM103中のデータ退避領域
115に退避しておくことを付け加えておく。
On the other hand, if it is determined in step (10) that the address variable i exceeds the final address of the SRAM 103, the memory check flag 113.
By clearing 0 to (11), the SRAM 103
Completes the memory check for all areas of. As shown above, the memory check for a certain address i of the SRAM 103 is realized by the series of processes of steps (3) to (7), and the whole process of the SRAM 103 is performed by the series of processes of steps (2) to (10). Realize memory check for area. In the flowcharts shown in FIGS. 5 and 6, during the memory check, the check address i is saved in the address save area 114 in the SRAM 103, and the data stored in the check address i immediately before the check is started in the SRAM 103. It is added that the data is saved in the internal data save area 115.

【0039】なお、メモリ領域をいくつかに分割して、
それぞれに対して初期化またはメモリチェックを行うこ
とにより、メモリ破壊からの復帰のための初期化エリア
を限定することができ、被害を少なくすることができる
ように構成してもよい。 〔第2実施例〕図7は、図1に示した文書処理装置の第
2の制御構成を説明するブロック図であり、図2と同一
のものには同一の符号を付してある。
The memory area is divided into several parts,
By performing initialization or memory check for each, the initialization area for recovery from memory destruction can be limited, and damage may be reduced. [Second Embodiment] FIG. 7 is a block diagram for explaining the second control configuration of the document processing apparatus shown in FIG. 1. The same parts as those in FIG. 2 are designated by the same reference numerals.

【0040】図において、9はRAMカードで、図3に
示したSRAM103と同様のメモリマップを備えて、
図4〜図6に示したフローチャートに従ってメモリアク
セスを行うものとする。
In the figure, 9 is a RAM card, which has the same memory map as the SRAM 103 shown in FIG.
Memory access is performed according to the flowcharts shown in FIGS.

【0041】この様に第5の発明によれば、記憶媒体を
着脱可能な外部メモリ媒体(RAMカード9)で構成し
たもので、着脱操作に伴って記憶媒体中の先頭および最
終の特定領域領域が破壊されても、外部メモリ媒体を利
用した正常なデータ書込み/データ読出しが可能とな
る。 〔第3実施例〕図8は、図1に示した文書処理装置の第
3の制御構成を説明するブロック図であり、図2と同一
のものには同一の符号を付してある。
As described above, according to the fifth aspect of the invention, the storage medium is composed of the removable external memory medium (RAM card 9), and the first and last specific area regions in the storage medium are accompanied by the attachment / detachment operation. Even if the data is destroyed, normal data writing / data reading using the external memory medium becomes possible. [Third Embodiment] FIG. 8 is a block diagram for explaining the third control configuration of the document processing apparatus shown in FIG. 1. The same parts as those in FIG. 2 are designated by the same reference numerals.

【0042】図において、103Aは文書ファイル等の
ユーザデータやシステムデータを格納する電池によるメ
モリバックアップされるSRAMであり、ユーザの作成
した文書を格納するテキストメモリ1031,ユーザが
単語登録するためのユーザ辞書1032,ユーザの作成
する各文章の配置を決定するために記憶しておくフォー
マットメモリ1033の各領域に分割されている。10
5は単語のミススペリングのチェックおよび正しい単語
を提供するSVCユニットであり、ユーザが任意に登録
する単語を格納するユーザ辞書1032に対するアクセ
スも行う。
In the figure, 103A is a battery-backed SRAM for storing user data such as document files and system data, which is a memory backed up by a text memory 1031 for storing documents created by the user and a user for registering words by the user. The dictionary 1032 is divided into areas of the format memory 1033 which are stored to determine the arrangement of each sentence created by the user. 10
Reference numeral 5 is an SVC unit that provides a check for word miss spelling and a correct word, and also accesses a user dictionary 1032 that stores words that the user arbitrarily registers.

【0043】図9は、図8に示したSRAM103Aの
メモリマップを示す図である。
FIG. 9 is a diagram showing a memory map of the SRAM 103A shown in FIG.

【0044】図9において、111はメモリ先頭領域の
未使用領域、121はメモリ先頭領域の未使用領域11
1に続くテキストメモリ領域1031の先頭であり、テ
キストメモリのID情報を格納する領域、122〜12
4はテキストメモリの読み書きによるチェックを行うた
めのデータ格納領域で、データ格納領域122はテキス
トメモリ領域のメモリチェック中に電源が落とされたこ
とを示すフラグを格納する。データ格納領域123はデ
ータ格納領域122にて示されるチェック中のデータの
アドレスを格納する。データ格納領域124はデータ格
納領域122,123にて示されるチェック中のメモリ
内の既に格納されていたデータを格納する。125はユ
ーザが作成した文書の生データを格納するためのテキス
トデータエリア、126は前記テキストメモリ1031
の最終位置に配置されテキストメモリのID情報を格納
する領域である。127〜132はユーザ辞書情報領域
1032に対応し、127はユーザ辞書のID構造を格
納する領域、128〜130はユーザ辞書の読み書きに
よるチェックを行うためのデータ格納領域、128はユ
ーザ辞書領域のメモリチェック中に電源が落とされたこ
とを示すフラグを格納する領域、129は前記データ格
納領域128に格納されるチェックフラグ中のデータの
アドレスを格納する領域、130は前記領域128,1
29にて示されるチェック中のメモリ内の既に格納され
ていたデータを格納する領域、131はユーザが登録す
る単語を格納するエリア、132はユーザ辞書情報領域
1032の最終位置に配置され、ユーザ辞書のID情報
を格納する領域、133〜138はフォーマットメモリ
領域1033のフォーマットデータ領域に対応し、13
3はフォーマットメモリ領域のID情報を格納する領
域、134〜136はフォーマットメモリ領域の読み書
きによるチェックを行うためのデータ格納領域、134
はフォーマットメモリ領域のメモリチェック中に電源が
落されたことを示すフラグを格納する領域、135はデ
ータ格納領域134にて示されるチェック中のデータの
アドレスを格納する領域、136は前記データ格納領域
134,135にて示されるチェック中のメモリ内の既
に格納されていたデータを格納する領域、137はフォ
ーマット情報を格納するエリア、138はフォーマット
情報メモリ領域1033の最終位置に配置されフォーマ
ットメモリのID情報を格納する領域、118はSRA
M103AまたはRAMカード9の最終位置にある未使
用領域である。以下、図10に示すフローチャートを参
照しながら本発明に係る文書処理装置における第2のメ
モリチェック処理動作について説明する。
In FIG. 9, 111 is an unused area in the memory head area, and 121 is an unused area 11 in the memory head area.
122 to 12 which is the beginning of the text memory area 1031 following 1 and stores the ID information of the text memory
Reference numeral 4 denotes a data storage area for checking by reading / writing the text memory, and the data storage area 122 stores a flag indicating that the power is turned off during the memory check of the text memory area. The data storage area 123 stores the address of the data being checked shown in the data storage area 122. The data storage area 124 stores the data that has already been stored in the memory being checked, which is indicated by the data storage areas 122 and 123. Reference numeral 125 is a text data area for storing raw data of a document created by the user, and 126 is the text memory 1031.
Is an area which is arranged at the final position of and stores the ID information of the text memory. 127 to 132 correspond to the user dictionary information area 1032, 127 is an area for storing the ID structure of the user dictionary, 128 to 130 are data storage areas for checking by reading and writing the user dictionary, and 128 is a memory of the user dictionary area. An area for storing a flag indicating that the power is turned off during checking, 129 is an area for storing an address of data in the check flag stored in the data storage area 128, and 130 is the area 128, 1
An area for storing the data already stored in the memory being checked, which is indicated by 29, 131 is an area for storing a word registered by the user, 132 is arranged at the final position of the user dictionary information area 1032, and the user dictionary Areas 133 to 138 corresponding to the format data area of the format memory area 1033.
Reference numeral 3 is an area for storing ID information of the format memory area, 134 to 136 are data storage areas for checking by reading and writing of the format memory area, 134
Is an area for storing a flag indicating that the power is turned off during the memory check of the format memory area, 135 is an area for storing the address of the data under check shown in the data storage area 134, and 136 is the data storage area An area for storing the data already stored in the memory under check indicated by 134 and 135, an area 137 for storing the format information, and 138 an ID of the format memory arranged at the final position of the format information memory area 1033. Area for storing information, 118 is SRA
It is an unused area at the final position of the M103A or the RAM card 9. The second memory check processing operation in the document processing apparatus according to the present invention will be described below with reference to the flowchart shown in FIG.

【0045】図10は本発明に係る文書処理装置におけ
る第2の電源ON処理手順の一例を示すフローチャート
である。なお、(1)〜(18)は各ステップを示す。
なお、図10に示す各手順は図8に示したROM101
またはDRAM102等のRAMに記憶されている。
FIG. 10 is a flowchart showing an example of the second power-on processing procedure in the document processing apparatus according to the present invention. Note that (1) to (18) indicate each step.
Note that each procedure shown in FIG. 10 corresponds to the ROM 101 shown in FIG.
Alternatively, it is stored in a RAM such as the DRAM 102.

【0046】電源が投入されると、テキスト領域103
1のID領域121,126に正常な値が格納されてい
るかどうかを判定し(1)、正常であれば、SRAM1
03AまたはRAMカード9が初期化済みであると判断
して、ステップ(2)以降に進むが、ステップ(1)に
おいてIDが異常であると判断された場合には、テキス
トメモリ領域1031がまだ初期化されていないか、あ
るいは初期化済みであっても何等かの要因にて破壊され
ていると考えられ、データが信頼できない状態にあるの
で、ステップ(5)へ進み、テキストメモリ領域103
1を初期化し、ステップ(6)以降に進む。
When the power is turned on, the text area 103
It is determined whether a normal value is stored in the ID areas 121 and 126 of 1 (1).
03A or the RAM card 9 is determined to have been initialized, the process proceeds to step (2) and subsequent steps. However, if the ID is determined to be abnormal in step (1), the text memory area 1031 is not yet initialized. It is considered that the data has not been initialized or has been destroyed by some factor even if it has been initialized, and the data is in an unreliable state. Therefore, the process proceeds to step (5), and the text memory area 103
1 is initialized, and the process proceeds to step (6) and thereafter.

【0047】一方、IDが正常であると判定された場合
には、ステップ(2)においてテキストメモリのチェッ
クフラグ122を参照し、直前に電源が落とされた時
に、テキストメモリ領域1031のメモリチェック中で
あったかどうかの判断を行う。
On the other hand, if it is determined that the ID is normal, the check flag 122 of the text memory is referred to in step (2), and when the power is turned off immediately before, the memory check of the text memory area 1031 is being performed. It is determined whether it was.

【0048】ここで、チェックフラグを記憶する領域1
22の値が「0」でなければメモリチェック中であった
と判断されるので、ステップ(3)に進み、領域123
に格納されるアドレスに退避中のデータをデータ領域1
24に格納しデータの回復を行う。
Area 1 for storing the check flag
If the value of 22 is not "0", it is determined that the memory check is in progress, so the process proceeds to step (3) and the area 123
Data being saved to the address stored in
Stored in 24 and recovering data.

【0049】その後、ステップ(4)に進み、テキスト
メモリ領域1031のメモリチェックを行い、ステップ
(6)にてメモリチェックが正常終了したかどうかを判
断し、異常終了の場合にはテキストメモリ領域1031
のイニシャル動作を終了するが、正常終了の場合にはス
テップ(7)へ進み、ユーザ辞書情報領域1032のイ
ニシャル操作を開始する。次いで、ステップ(7)にお
いてユーザ辞書情報領域1032のID領域121,1
26に正常な値が格納されているかどうかを判断を行
い、正常であればステップ(7)に進み、ユーザ辞書情
報領域1032が初期化済みであると判断しステップ
(8)へ進むが、ステップ(7)においてIDが異常で
あると判断された場合は、ユーザ辞書情報領域1032
がまだ初期化されていないか、あるいは初期化済みであ
っても何等かの要因にて破壊されていると考えられ、デ
ータが信頼できない状態にあるので、ステップ(11)
へ進み、ユーザ辞書情報領域1032を初期化する。I
Dが正常である場合には、ステップ(8)においてユー
ザ辞書情報領域1032のデータ領域128のチェック
フラグを参照し、直前に電源が落とされた時にユーザ辞
書情報領域1032のメモリチェック中であったかどう
かの判断を行う。ここで、データ領域128のチェック
フラグの値が「0」でなければメモリチェック中であっ
たと判断されるので、ステップ(9)に進み、データ領
域129のアドレスに、退避中のデータをデータ領域1
30に格納し、データの回復を行う。その後、ステップ
(10)に進み、ユーザ辞書情報領域1032のメモリ
チェックを行い、ステップ(12)にてメモリチェック
が正常終了したかどうかを判断し、異常終了の場合に
は、ユーザ辞書情報領域1032のイニシャル動作を終
了するが、正常終了の場合にはステップ(13)へ進
み、フォーマット情報メモリ領域1033のイニシャル
操作を開始する。次いで、ステップ(13)において、
フォーマット情報メモリ領域1033のID領域13
3,138に正常な値が格納されているかどうかの判断
を行い、正常であればステップ(14)へ進み、フォー
マット情報メモリ領域1033が初期化済みであると判
断しステップ(14)へ進むが、ステップ(13)にお
いてIDが異常であると判断された場合は、フォーマッ
ト情報メモリ領域1033が初期化されていないか、あ
るいは初期化済みであっても何等かの要因にて破壊され
ていると考えられ、データが信頼できない状態にあるの
で、ステップ(17)に進み、フォーマット情報メモリ
領域1033を初期化する。IDが正常である場合に
は、ステップ(14)においてフォーマットメモリ領域
1033のチェックフラグ134を参照し、直前に電源
が落とされた時にフォーマット情報メモリ領域1033
のメモリチェック中であったかどうかの判断を行う。
Then, in step (4), the memory check of the text memory area 1031 is performed, and in step (6), it is determined whether the memory check is completed normally. If the memory check is abnormally ended, the text memory area 1031 is executed.
Although the initial operation of (3) is ended, if the operation is normally ended, the process proceeds to step (7) to start the initial operation of the user dictionary information area 1032. Next, in step (7), the ID areas 121, 1 of the user dictionary information area 1032
It is determined whether or not a normal value is stored in 26, and if normal, the process proceeds to step (7), it is determined that the user dictionary information area 1032 has been initialized, and the process proceeds to step (8). If the ID is determined to be abnormal in (7), the user dictionary information area 1032
Is not initialized yet, or even if it has been initialized, it is considered to have been destroyed by some reason, and the data is in an unreliable state, so step (11)
Then, the process proceeds to and the user dictionary information area 1032 is initialized. I
If D is normal, in step (8), the check flag of the data area 128 of the user dictionary information area 1032 is referred to, and whether or not the memory check of the user dictionary information area 1032 was being performed immediately before the power was turned off. Make a decision. Here, if the value of the check flag of the data area 128 is not "0", it is determined that the memory check is being performed, so the process proceeds to step (9), and the data being saved is stored in the address of the data area 129. 1
Store in 30 and recover data. After that, the process proceeds to step (10), the memory of the user dictionary information area 1032 is checked, and it is determined in step (12) whether the memory check is completed normally. Although the initial operation of (3) is ended, if the operation is normally ended, the process proceeds to step (13) to start the initial operation of the format information memory area 1033. Then, in step (13),
ID area 13 of the format information memory area 1033
It is determined whether or not a normal value is stored in 3, 138, and if normal, the process proceeds to step (14), and it is determined that the format information memory area 1033 has been initialized, and the process proceeds to step (14). If the ID is determined to be abnormal in step (13), the format information memory area 1033 has not been initialized, or even if it has been initialized, it has been destroyed due to some factor. Since the data is considered unreliable, the process proceeds to step (17) to initialize the format information memory area 1033. If the ID is normal, the check flag 134 of the format memory area 1033 is referred to in step (14), and the format information memory area 1033 was immediately before the power was turned off.
It is determined whether or not the memory check of is being performed.

【0050】ここで、データ領域134のチェックフラ
グの値が「0」でなければメモリチェック中であったと
判断されるので、ステップ(15)に進み、データ領域
135のアドレスに、退避中のデータをデータ領域13
5に格納しデータの回復を行う。その後、ステップ(1
6)に進み、フォーマット情報メモリ領域1033のメ
モリチェックを行い、ステップ(18)にてメモリチェ
ックが正常終了したかどうかを判断し、SRAM103
のイニシャル操作を終了する。なお、ステップ(5),
(11),(17)においてコールされる各メモリ領域
の初期化処理ルーチンは、上述した図5に示した初期化
ルーチンに対応するので説明は省略する。また、ステッ
プ(4),(10),(18)においてコールされる各
メモリ領域の読み書きチェックを行う処理ルーチンは、
上述した図6に示したメモリチェック処理ルーチンに対
応するので説明は省略する。
Here, if the value of the check flag of the data area 134 is not "0", it is determined that the memory check is being performed, so the process proceeds to step (15), and the data being saved is stored in the address of the data area 135. Data area 13
Stored in No. 5 and recover data. Then step (1
Proceeding to 6), the memory of the format information memory area 1033 is checked, and it is judged in step (18) whether the memory check is completed normally.
The initial operation of is finished. In addition, step (5),
Since the initialization processing routine of each memory area called in (11) and (17) corresponds to the initialization routine shown in FIG. 5 described above, description thereof will be omitted. Further, the processing routine for checking the reading and writing of each memory area called in steps (4), (10) and (18) is
Since it corresponds to the memory check processing routine shown in FIG. 6 described above, description thereof will be omitted.

【0051】このように第1実施例に示したSRAM1
03のメモリマップとは異なるメモリマップとすること
により、すなわちメモリ領域をいくつかに分割して、そ
れぞれに対して初期化,メモリチェックを行うことによ
り、メモリの破壊からの復帰のための初期化エリアを限
定することができ、メモリ破壊による被害を少なく食い
止めることができる。 〔第4実施例〕なお、第1〜第3実施例に示した構成に
おいて、未使用領域111,118がSRAMであれば
電源投入後に、未使用領域111,118がRAMカー
ドであれば装着後に、一時的な関数演算として、例えば
装着しているRAMのサイズを演算する際の作業用領域
として使用することにより、未使用領域についても有効
利用することが可能となる。
Thus, the SRAM 1 shown in the first embodiment
The memory map different from that of No. 03, that is, by dividing the memory area into several areas and performing initialization and memory check for each, initialization for recovery from memory destruction The area can be limited, and the damage due to memory destruction can be minimized. [Fourth Embodiment] In the configurations shown in the first to third embodiments, if unused areas 111 and 118 are SRAMs, power is turned on, and if unused areas 111 and 118 are RAM cards, after mounting. As a temporary function calculation, for example, by using it as a work area when calculating the size of the mounted RAM, it is possible to effectively use the unused area.

【0052】この様に第4の発明によれば、記憶媒体の
未使用領域を関数演算のワーク領域として使用するの
で、未使用領域を可能な限り有効に使用することが可能
となる。
As described above, according to the fourth aspect, since the unused area of the storage medium is used as the work area for the function calculation, the unused area can be used as effectively as possible.

【0053】[0053]

【発明の効果】以上説明したように、本発明に係る第1
の発明によれば、確保手段が記憶媒体中の先頭および最
終の特定領域をデータ格納領域から除外する未使用領域
を確保するので、記憶媒体の先頭および最終の特定領域
にデータ不良領域が発生しても、所定データが破壊され
ることを防止することができる。
As described above, the first aspect of the present invention
According to the invention, since the securing means secures an unused area that excludes the first and last specific areas in the storage medium from the data storage area, a defective data area occurs in the first and last specific areas of the storage medium. However, it is possible to prevent the predetermined data from being destroyed.

【0054】第2の発明によれば、各境界領域に書き込
まれた各識別情報を照合して記憶媒体のデータ記憶状態
を判定する判定手段の判定結果に基づいて設定手段が記
憶媒体の使用領域のデータ書込み/読出し診断処理又は
初期化処理を実行して正常使用可能な記憶領域を設定す
るので、各境界領域に書き込まれた識別情報を照合して
使用領域の不良を認知して正常使用可能な領域を確保す
ることができる。
According to the second aspect of the present invention, the setting means sets the use area of the storage medium on the basis of the determination result of the determination means for determining the data storage state of the storage medium by collating each identification information written in each boundary area. By executing the data write / read diagnostic process or the initialization process to set the storage area that can be used normally, the identification information written in each boundary area is collated to recognize the defect in the used area and can be used normally. It is possible to secure a large area.

【0055】第3の発明によれば、設定手段は、記憶媒
体の使用領域のデータ書込み/読出し診断処理実行直前
に、使用領域に書き込まれているデータを境界領域に退
避するので、データ書込み/読出し診断処理実行中の電
源瞬断が発生しても正常動作を保証する所定のデータを
再設定することができる。
According to the third aspect of the invention, the setting means saves the data written in the used area to the boundary area immediately before executing the data writing / reading diagnostic processing of the used area of the storage medium. It is possible to reset predetermined data that guarantees normal operation even if a power failure occurs during the read diagnosis process.

【0056】第4の発明によれば、記憶媒体の未使用領
域を関数演算のワーク領域として使用するので、未使用
領域を可能な限り有効に使用することができる。
According to the fourth aspect, since the unused area of the storage medium is used as the work area for the function operation, the unused area can be used as effectively as possible.

【0057】第5の発明によれば、記憶媒体を着脱可能
な外部メモリ媒体で構成したので、着脱操作に伴って記
憶媒体中の先頭および最終の特定領域領域が破壊されて
も、外部メモリ媒体を利用した正常なデータ書込み/デ
ータ読出しができる。
According to the fifth invention, since the storage medium is composed of the removable external memory medium, even if the first and last specific area regions in the storage medium are destroyed by the detaching operation, the external memory medium is destroyed. You can write / read data normally by using.

【0058】従って、電池によるバックアップ機能付き
の記憶媒体に特有の不良領域が発生しても、使用領域に
記憶された所定のデータに従った正常なデータ処理を保
証することができる。また、使用領域のデータが破壊し
ても、その破壊発生を認知して所定のデータを再設定で
きるため、使用領域に記憶された所定のデータに従った
正常なデータ処理を再現することができる等の効果を奏
する。
Therefore, even if a defective area peculiar to the storage medium with the backup function by the battery occurs, it is possible to guarantee the normal data processing according to the predetermined data stored in the used area. Further, even if the data in the use area is destroyed, the occurrence of the destruction can be recognized and the predetermined data can be reset, so that normal data processing according to the predetermined data stored in the use area can be reproduced. And so on.

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

【図1】本発明の第1実施例を示す文書処理装置の外観
を示す斜視図である。
FIG. 1 is a perspective view showing an external appearance of a document processing apparatus showing a first embodiment of the present invention.

【図2】図1に示した文書処理装置の第1の制御構成を
説明するブロック図である。
2 is a block diagram illustrating a first control configuration of the document processing apparatus shown in FIG.

【図3】図2に示したSRAMのメモリマップを示す図
である。
FIG. 3 is a diagram showing a memory map of the SRAM shown in FIG.

【図4】本発明に係る文書処理装置における第1の電源
ON処理手順の一例を示すフローチャートである。
FIG. 4 is a flowchart showing an example of a first power-on processing procedure in the document processing apparatus according to the present invention.

【図5】図4に示した初期化処理ルーチンの詳細手順の
一例を示すフローチャートである。
5 is a flowchart showing an example of a detailed procedure of an initialization processing routine shown in FIG.

【図6】図4に示したメモリチェック処理ルーチンの詳
細手順の一例を示すフローチャートである。
6 is a flowchart showing an example of detailed procedures of a memory check processing routine shown in FIG.

【図7】図1に示した文書処理装置の第2の制御構成を
説明するブロック図である。
FIG. 7 is a block diagram illustrating a second control configuration of the document processing apparatus shown in FIG.

【図8】図1に示した文書処理装置の第3の制御構成を
説明するブロック図である。
FIG. 8 is a block diagram illustrating a third control configuration of the document processing apparatus shown in FIG.

【図9】図8に示したSRAMのメモリマップを示す図
である。
9 is a diagram showing a memory map of the SRAM shown in FIG.

【図10】本発明に係る文書処理装置における第2の電
源ON処理手順の一例を示すフローチャートである。
FIG. 10 is a flowchart showing an example of a second power-on processing procedure in the document processing apparatus according to the present invention.

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

1 キーボード 6 表示器 100 CPU 101 ROM 102 DRAM 103 SRAM 111 未使用領域 118 未使用領域 1 Keyboard 6 Display 100 CPU 101 ROM 102 DRAM 103 SRAM 111 Unused Area 118 Unused Area

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06K 19/073 Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location G06K 19/073

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 所定の記憶媒体に書き込まれる所定のデ
ータを電池により保持する記憶手段を備える文書処理装
置において、前記記憶媒体中の先頭および最終の特定領
域をデータ格納領域から除外する未使用領域を確保する
確保手段を具備したことを特徴とする文書処理装置。
1. A document processing apparatus comprising storage means for holding predetermined data written in a predetermined storage medium by a battery, and an unused area for excluding the first and last specific areas in the storage medium from the data storage area. A document processing apparatus comprising a securing means for securing the.
【請求項2】 所定の記憶媒体に書き込まれる所定のデ
ータを電池により保持する記憶手段を備える文書処理装
置において、前記記憶媒体中の先頭および最終の特定領
域をデータ格納領域から除外する未使用領域を確保する
確保手段と、前記記憶媒体中の先頭および最終の特定領
域との境界領域にデータ書込み状態を判定するための所
定の識別情報をぞれぞれ書き込む識別情報書込み手段
と、各境界領域に書き込まれた各識別情報を照合して記
憶媒体のデータ記憶状態を判定する判定手段と、この判
定手段の判定結果に基づいて前記記憶媒体の使用領域の
データ書込み/読出し診断処理又は初期化処理を実行し
て正常使用可能な記憶領域を設定する設定手段とを具備
したことを特徴とする文書処理装置。
2. A document processing apparatus comprising a storage means for holding predetermined data written in a predetermined storage medium by a battery, and an unused area for excluding the first and last specific areas in the storage medium from the data storage area. Securing means for securing the data, identification information writing means for respectively writing predetermined identification information for determining the data writing state in the boundary area between the first and last specific areas in the storage medium, and each boundary area Determination means for determining the data storage state of the storage medium by collating each piece of identification information written in the storage medium, and data writing / reading diagnostic processing or initialization processing of the used area of the storage medium based on the determination result of the determination means. And a setting unit that sets a storage area that can be normally used by executing the document processing apparatus.
【請求項3】 設定手段は、記憶媒体の使用領域のデー
タ書込み/読出し診断処理実行直前に、前記使用領域に
書き込まれているデータを前記境界領域に退避すること
を特徴とする請求項2記載の文書処理装置。
3. The setting means saves the data written in the use area to the boundary area immediately before executing the data write / read diagnosis processing of the use area of the storage medium. Document processor.
【請求項4】 記憶媒体の未使用領域を関数演算のワー
ク領域として使用することを特徴とする請求項1又は2
記載の文書処理装置。
4. The unused area of the storage medium is used as a work area for function calculation.
Document processing device described.
【請求項5】 記憶媒体を着脱可能な外部メモリ媒体で
構成したことを特徴とする請求項1〜4のいずれかに記
載の文書処理装置。
5. The document processing apparatus according to claim 1, wherein the storage medium is composed of a removable external memory medium.
JP5168408A 1993-06-16 1993-06-16 Document processor Pending JPH0773111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5168408A JPH0773111A (en) 1993-06-16 1993-06-16 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5168408A JPH0773111A (en) 1993-06-16 1993-06-16 Document processor

Publications (1)

Publication Number Publication Date
JPH0773111A true JPH0773111A (en) 1995-03-17

Family

ID=15867573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5168408A Pending JPH0773111A (en) 1993-06-16 1993-06-16 Document processor

Country Status (1)

Country Link
JP (1) JPH0773111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423714B2 (en) 1997-08-07 2013-04-16 Mobilemedia Ideas Llc Storage and reproduction apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423714B2 (en) 1997-08-07 2013-04-16 Mobilemedia Ideas Llc Storage and reproduction apparatus
US9223539B2 (en) 1997-08-07 2015-12-29 Mobilemedia Ideas Llc Storage and reproduction apparatus

Similar Documents

Publication Publication Date Title
US4660999A (en) Dot-matrix printer with font cartridge unit
EP1936537B1 (en) On-line state resumption in a printer
JP2745669B2 (en) Printer
JPH09152859A (en) Printer
JPH0773111A (en) Document processor
JP2005059336A (en) Image forming apparatus
JP2004341783A (en) Data storage method and data storage device
US20060182417A1 (en) Image processor and file data management therein
JP4131147B2 (en) Determination method of flash memory in printer, program for causing computer to execute this method, recording medium recording this program, and printer including flash memory
JP3400844B2 (en) Image forming device
JP2763528B2 (en) Document processing device
US5404434A (en) Document processor having identification display control means
JPH01202467A (en) Paper jamming recovery system in printer device
JPH03282654A (en) Backup control device for electronic equipment
JPH0765591A (en) Information processing device
JPS6319277A (en) Printer
JPH0486909A (en) Information processor
JP2842110B2 (en) Printer device character pattern storage method
JP3226226B2 (en) Character processing method and apparatus
JPH0580694B2 (en)
JPH06191114A (en) Printer
JPH05270080A (en) Printer
JPH05131715A (en) Image forming device
JPS61105665A (en) Document processing method
JP2000137764A (en) Printer