JPS63233452A - Data protecting device - Google Patents

Data protecting device

Info

Publication number
JPS63233452A
JPS63233452A JP62067629A JP6762987A JPS63233452A JP S63233452 A JPS63233452 A JP S63233452A JP 62067629 A JP62067629 A JP 62067629A JP 6762987 A JP6762987 A JP 6762987A JP S63233452 A JPS63233452 A JP S63233452A
Authority
JP
Japan
Prior art keywords
data
system data
address
runaway
memory
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
JP62067629A
Other languages
Japanese (ja)
Inventor
Masayoshi Masuda
益田 昌佳
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP62067629A priority Critical patent/JPS63233452A/en
Publication of JPS63233452A publication Critical patent/JPS63233452A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE:To effectively suppress the runaway of a device and to prevent data in a RAM area from being damaged by writing a command jumping to a specified address in an unused area. CONSTITUTION:The command jumping to the specified address (e.g. zero address) is stored in the unused area of a memory 12. Even if runaway is generated, data in the memory area can be prevented from being damaged thereafter. Since the system data may be damaged during the runaway, a system data checking program 21 is executed when the address is returned to zero address by a zero address restoring program 23 at the time of runaway restoration and all data are initialized to correct values.

Description

【発明の詳細な説明】 童l上■肌里公団 本発明は、中央演算処理装置(以下、CPUという)や
メモリを有するマイクロコンピュータに具備されるデー
タ保護装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data protection device included in a microcomputer having a central processing unit (hereinafter referred to as a CPU) and a memory.

l米皇狡徂 例えば、マイクロコンピュータを備えた現今の電子ボタ
ン電話装置は、単に局線との接続を行なうだけでなく、
付加的な種々の機能ができるような構造とされている。
For example, today's electronic key telephone devices equipped with microcomputers not only connect to central office lines;
The structure is such that it can perform various additional functions.

そして、これらの機能を働かせるには、ユーザー等が所
定のシステムデータを設定することによって所望の機能
を選択し、使用するように構成されている。この場合、
前記システムデータの設定を、ディップスイッチ等によ
ってハード的に行なう構造であると、数十以上の機能を
有する複雑なシステムデータの設定は、機能の数と同数
のディップスイッチを必要とするため、ディップスイッ
チの数が多くなりスペース的に不可能である。
In order to make these functions work, the user or the like selects and uses the desired functions by setting predetermined system data. in this case,
If the system data is set using hardware such as dip switches, setting complex system data with dozens or more functions requires the same number of dip switches as the number of functions. The number of switches would be large, making it impossible due to space considerations.

そこで、複雑な機能を備えている従来5電子ボタン電話
装置は、特にマイクロコンピュータ内に機能を動作させ
るためのシステムデータを記憶させ、該システムデータ
の設定により所望の機能を発揮させるよう構成されてい
る。
Therefore, the conventional 5 electronic button telephone devices equipped with complicated functions are constructed so that system data for operating the functions is stored in a microcomputer, and the desired functions are performed by setting the system data. There is.

発明が解決しようとする問題点 ところで、このような電子ボタン電話装置では、CPU
やメモリを有するマイクロコンピュータが、外部ノイズ
や操作ミス等の原因で暴走しても記tαされたシステム
データを保護する装置が何ら組み込まれていなかった。
Problems to be Solved by the Invention Incidentally, in such an electronic button telephone device, the CPU
There was no built-in device to protect the recorded system data even if the microcomputer, which has a computer and memory, goes out of control due to external noise, operational error, or the like.

このため、マイクロコンピュータが暴走すると、記憶さ
れているシステムデータが破壊されてしまい、その後復
帰した場合に正常に作mしなくなるとともに、復旧のた
めに多大な時間や費用を要するという問題点があった。
Therefore, if the microcomputer goes out of control, the stored system data will be destroyed, and when the microcomputer returns to normal operation, it will no longer be able to operate normally, and recovery will take a lot of time and money. Ta.

そこで、本発明は、上記の問題点に鑑み、メモリに記憶
されたデータの保護を図ることができるデータ保護装置
を提供すること゛を目的とする。
SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a data protection device that can protect data stored in a memory.

山題点を 決するための手段 上記目的を達成するため、本発明のデータ保護装置は、
未使用エリアに、ある特定の番地にジャンプするコマン
ドが書き込まれているとともに、同じシステムデータが
RAMエリアの3箇所以上に書き込まれているメモリと
、マイクロコンピュータの暴走復帰時及び起動時に、前
記3箇所以上に古き込まれた各システムデータを読み取
って比較し、多数決により正しいデータを見つけ出す真
正データ判定手段と、該判定手段にて見つけ出された正
しいデータによってRAMエリアを初期化するイニシャ
ライズ手段と、を備えていることを特徴とする。
Means for Resolving the Problems In order to achieve the above object, the data protection device of the present invention:
If a command to jump to a specific address is written in an unused area and the same system data is written in three or more locations in the RAM area, the above 3. authentic data determining means for reading and comparing each piece of system data that is older than the previous section and finding the correct data by majority vote; and initializing means for initializing a RAM area with the correct data found by the determining means; It is characterized by having the following.

作−−−一部 マイクロコンピュータが暴走した場合には、とんでもな
い番地に飛ぶ場合が多いが、上記のように、メモリの未
使用エリアに特定番地にジャンプするコマンドが記憶さ
れていると、暴走を始めたとしても必ず特定の番地に復
帰するので、暴走を有効に食い止めることができる。
--- When some microcomputers go out of control, they often jump to an unexpected address, but if a command to jump to a specific address is stored in an unused area of memory, as shown above, the runaway can occur. Even if the program starts, it will always return to a specific address, so runaway behavior can be effectively prevented.

また、暴走中にはRAMエリアのデータを破壊する恐れ
があるが、その場合、全てのデータが破壊される訳では
なく、多くは一部のデータの破壊にとどまる。したがっ
て、本発明のようにシステムデータを複数箇所に書き込
んでおき、その全てを読み取って多数決をとれば、破壊
されていないデータを見つけ出すことができ、このデー
タで初期化を行えば、データ保護の万全を期すことがで
きる。
Furthermore, there is a risk that data in the RAM area may be destroyed during a runaway, but in that case, not all data will be destroyed, and in most cases only a portion of the data will be destroyed. Therefore, if you write system data in multiple locations as in the present invention, read all of them, and take a majority vote, you can find undamaged data, and if you initialize with this data, you can protect your data. You can be sure of everything.

大−ノLJL 第1図は、本発明の一実施例としてのデータ保護装置を
具備した電子ボタン電話装置の回路ブロック図であり、
この電子ボタン電話装置は、局線3回線001〜CO3
、内線電話機8台STI〜ST8のシステム構成からな
っている。図中、1は、簡易電話交換装置としての主装
置を示し、2は、前記局線COI〜CO3とのインター
フェース部、3は、局線制御ダイヤルセンダ一部、4は
後述するCPUやメモリを有するシステム制御部、5は
、クロスポイント制御、・データ送受部、6は、発振源
6aを備えたトーン音発振部、7は、クロスポイント部
である。
大-ノLJL FIG. 1 is a circuit block diagram of an electronic button telephone device equipped with a data protection device as an embodiment of the present invention.
This electronic button telephone device has three central office lines 001 to CO3.
The system consists of eight extension telephones STI to ST8. In the figure, 1 indicates a main device as a simple telephone exchange, 2 is an interface section with the above-mentioned office lines COI to CO3, 3 is a part of the office line control dial sender, and 4 is a CPU and memory which will be described later. 5 is a cross-point control unit; 6 is a tone sound oscillation unit including an oscillation source 6a; and 7 is a cross-point unit.

上記構成のうち、本発明の一実施例としてのデータ保護
装置を具備したシステム制御部4を除く各構成部は、既
に公知であり詳細な説明は省略する。
Of the above configuration, each component except for the system control unit 4 equipped with a data protection device as an embodiment of the present invention is already known and detailed explanation will be omitted.

システム制御部4は、メインCPUI 1及びメモリ1
2としてのROM13とRAM14よりなるマイクロコ
ンピュータで構成されており、局線C01〜CO3と各
内線電話機STI〜ST8との交換制御や電話機相互の
交換制御を始めとして、例えば市外発信規制等の種々の
システム機能の実行も行なう。
The system control unit 4 includes a main CPU 1 and a memory 1.
It is composed of a microcomputer consisting of ROM 13 and RAM 14 as 2, and performs various functions such as controlling exchanges between central office lines C01 to CO3 and extension telephones STI to ST8, and mutual exchange control between telephones, for example, regulating outgoing calls. It also performs system functions.

第2図は、前記メモリ12のメモリマツプを示しており
、このうちROMエリアには、アドレス0000から順
に、システムデータチェックプログラム21と通常の処
理プログラム22が記憶されており、残りの未使用エリ
アに0番地復帰プログラム23が記憶され°ている。一
方、RAMエリアには、同じシステムデータA、B、C
が、例えば3箇所26,27.28に書き込まれている
FIG. 2 shows a memory map of the memory 12, in which a system data check program 21 and a normal processing program 22 are stored in the ROM area in order starting from address 0000, and the remaining unused area is A zero address return program 23 is stored. On the other hand, the RAM area contains the same system data A, B, and C.
are written in, for example, three locations 26, 27, and 28.

そして、RAMエリアのうち残りの未使用エリアに前記
ROM13の未使用エリアに記憶されたものと同様なO
番地復帰プログラム23が記憶されている。
Then, in the remaining unused area of the RAM area, the same memory as that stored in the unused area of the ROM 13 is stored.
An address return program 23 is stored.

この電子ボタン電話装置は、公知のものと同様に使用さ
れるが、システム制?111部4の起動時及び暴走して
復帰した時に前記ROM13に記憶されているシステム
データチェックプログラム21が実行される。すなわち
、起動時はメモリに記憶されたシステムデータがハック
アップされているが、プログラムの実行にあたってシス
テムデータが正確に保持されていたかどうかを判断する
ために、システムデータチェックプログラム21が実行
される。また、暴走復帰時においては、暴走中にシステ
ムデータが破壊されている場合があるため、0番地復帰
プログラム23により0番地にリターンされた時点で、
システムデータチェックプログラム21が実行される。
This electronic button telephone device is used in the same way as known ones, but is it system-based? The system data check program 21 stored in the ROM 13 is executed when the 111 section 4 starts up or returns from a runaway state. That is, although the system data stored in the memory is hacked up at the time of startup, the system data check program 21 is executed in order to determine whether the system data has been accurately held when the program is executed. Furthermore, when returning from a runaway, the system data may have been destroyed during the runaway, so when the return to address 0 program 23 returns to address 0,
The system data check program 21 is executed.

システムデータチェックプログラム2Iを第3図に示し
たフローチャートに基づいて、その動作を説明する。先
ず、タスクT1で最初のデータを読み込む。最初のデー
タはシステムデータAであるが、このシステムデータA
は他の2箇所27゜2.8にも記憶させているので、タ
スクT2でそれらのシステムデータAを読み取る。しか
る後、読み取ったシステムデータAが全て同一かどうか
タスクT3で比較する。比較の結果、異なったシステム
データAがあれば、タスクT4に歩進してシステムデー
タAの多数決を取り、一番多いシステムデータAを、読
み取ったすべての箇所に置換して書き込み、初期化を行
なう。そして、タスクT5に歩進して、全てのシステム
データをチェックしたか否かを判断し、全てチェック済
であると、このプログラムは終了するとともに、電子ボ
タン電話装置としての機能が通常の動作で自動的に開始
される。チェックするシステムデータが残っていると、
タスクT5からタスクT6に進み、次のシステムデータ
Bを読みとり、タスクT2からタスクT5までを実行す
る。以上の動作を全てのシステムデータについて繰り返
す。なお、タスクT3で、読み取ったシステムデータが
全て同一の場合は、データを置換する必要がないので、
タスクT4を回避してタスクT5に歩進する。
The operation of the system data check program 2I will be explained based on the flowchart shown in FIG. First, task T1 reads the first data. The first data is system data A, but this system data A
are also stored in two other locations, 27°2.8, so those system data A are read in task T2. Thereafter, a comparison is made in task T3 to see if all the read system data A are the same. As a result of the comparison, if there is different system data A, step to task T4, take a majority vote on system data A, replace and write the system data A that has the largest amount in all the read locations, and initialize. Let's do it. Then, the program advances to task T5 and determines whether all system data has been checked. If all system data has been checked, this program ends and the function as an electronic button telephone device resumes normal operation. Started automatically. If there is system data left to check,
The process advances from task T5 to task T6, reads the next system data B, and executes tasks T2 to T5. The above operation is repeated for all system data. Note that if all the system data read in task T3 is the same, there is no need to replace the data.
Avoids task T4 and advances to task T5.

上記のように、この実施例では、マイクロコンピュータ
が従来では未使用であるエリアに暴走することがあって
も、この未使用エリアには特定の番地、この実施例の場
合O番地、にジャンプするコマンドを記憶させているの
で、それ以降のメモリエリアの破壊が防止できる。暴走
する場合は、未使用エリアに飛ぶ場合が多いので特に有
効である。また、システムデータの記憶箇所に暴走した
時であっても、わずかのシステムデータが破壊されるだ
けであるから、他の多数のシステムデータは正常な状態
で残っており、前述したシステムデータチェックプログ
ラム21によって正しいデータが見つけ出され、全ての
データが正しい値にイニシャライズされる。
As described above, in this embodiment, even if the microcomputer runs out of control into an area that is conventionally unused, it jumps to a specific address in this unused area, which is address O in this embodiment. Since the command is memorized, subsequent destruction of the memory area can be prevented. This is especially effective when running out of control, as it often flies to unused areas. In addition, even if a system data storage location is corrupted, only a small amount of system data will be destroyed, and a large amount of other system data will remain in a normal state. 21, the correct data is found and all data are initialized to correct values.

なお、同一″のシステムデータを記憶させる箇所数とし
ては、多数決で判断するため、最低限3箇所に記憶させ
ておけばよいが、システムの構成状態によって決定すれ
ば足りる。
Note that the number of locations in which the same system data is stored may be stored in at least three locations since the decision is made by majority vote, but it is sufficient to determine the number of locations depending on the configuration state of the system.

また、RAM14に記憶させたO番地復帰プログラム2
3は、全てのシステムデータの最後尾に設けたけれども
、1箇所目26と2箇所目27、及び2箇所目27と3
箇所目28のシステムデータの間に設ける等は容易にな
しうる。
In addition, the O address return program 2 stored in the RAM 14
3 was provided at the end of all system data, but the first location 26 and the second location 27, and the second location 27 and 3
It can be easily provided between the system data at point 28.

さらに、システムデータチェックプログラム21では、
多数決により見つけ出したシステムデータによって、読
み取った全てのメモリエリアを初期化したけれども、異
なった少ない方のデータが記憶されていた部分のみのR
AMエリアを初期化するように構成してもよい。
Furthermore, in the system data check program 21,
Although all the read memory areas were initialized using the system data found by majority vote, R of only the part where different and smaller data was stored was initialized.
It may be configured to initialize the AM area.

見所■防ス 以上のように、本発明のデータ保護装置は、メモリの未
使用エリアの全てに、ある特定の番地にジャンプするコ
マンドが書き込まれているとともに、記憶されるデータ
は、3箇所以上に同じデータが書き込まれているので、
暴走時にも、最小限のデータの破壊ですみ、他のデータ
は保護される。
Highlights ■ Prevention As mentioned above, in the data protection device of the present invention, a command to jump to a specific address is written in all unused areas of the memory, and the data to be stored is stored in three or more locations. Since the same data is written to
Even in the event of a runaway, the data will be destroyed to a minimum, and other data will be protected.

また、前記3箇所以上に書き込まれたデータを読み取っ
て比較し、多数決をとって正しいデータを見つけ出すと
ともに、この正しいデータでシステムの初期化を行なう
ので、暴走によって記憶されているデータの一部が破壊
されても全て正しいデータに置き換えられ、従って、マ
イクロコンビ二一夕の機能は正常に動作する。
In addition, the data written in the three or more locations is read and compared, and a majority vote is taken to find the correct data, and the system is initialized with this correct data. Even if it is destroyed, all data is replaced with correct data, so the functions of the microcombiner continue to operate normally.

さらに、このデータ保8隻装置を組み込んだマイクロコ
ンピュータにおいては、外部から特別な操作を要しない
ので、暴走してもデータは自動的に復帰されると同時に
、システムも元の状態のままが維持される。
Furthermore, the microcomputer that incorporates this data protection device does not require any special operations from the outside, so even if the data goes out of control, the data will be automatically restored and the system will remain in its original state. be done.

したがって、暴走したために生ずる時間的、費用的な無
駄が解消される。
Therefore, waste of time and money caused by runaway operation is eliminated.

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

第1図は本発明の一実施例としてのデータ保護装置を具
備した電子ボタン電話装置の回路ブロック図、第2図は
メモリに記憶されたメモリマツプ図、第3図は比較置換
手段のフローチャート図である。 1・・・主装置、      4・・・システム制御部
、11・・・メインCPU、   12・・・メモリ、
工3・・・ROM、      14・・・RAM。 21・・・システムデータチェックプログラム、23・
・・O番地復帰プログラム、 26.27.28・・・システムデータ。 特許出願人 : 三洋電機株式会社 代理人 : 弁理士 中 島 司 朗 第2図 第3図
FIG. 1 is a circuit block diagram of an electronic button telephone device equipped with a data protection device as an embodiment of the present invention, FIG. 2 is a memory map stored in a memory, and FIG. 3 is a flowchart of the comparison and replacement means. be. DESCRIPTION OF SYMBOLS 1... Main device, 4... System control part, 11... Main CPU, 12... Memory,
Engineering 3...ROM, 14...RAM. 21... System data check program, 23.
...O address return program, 26.27.28...System data. Patent applicant: Sanyo Electric Co., Ltd. Agent: Patent attorney Tsukasa Nakajima Figure 2, Figure 3

Claims (1)

【特許請求の範囲】[Claims] (1)未使用エリアに、ある特定の番地にジャンプする
コマンドが書き込まれているとともに、同じシステムデ
ータがRAMエリアの3箇所以上に書き込まれているメ
モリと、 マイクロコンピュータの暴走復帰時及び起動時に、前記
3箇所以上に書き込まれた各システムデータを読み取っ
て比較し、多数決により正しいデータを見つけ出す真正
データ判定手段と、 該判定手段にて見つけ出された正しいデータによってR
AMエリアを初期化するイニシャライズ手段と、 を備えていることを特徴とするデータ保護装置
(1) Memory in which a command to jump to a specific address is written in an unused area and the same system data is written in three or more locations in the RAM area, and when the microcomputer recovers from a runaway or starts up. , authentic data determination means that reads and compares each system data written in the three or more locations and finds the correct data by majority vote; and R based on the correct data found by the determination means.
A data protection device comprising: initialization means for initializing an AM area;
JP62067629A 1987-03-20 1987-03-20 Data protecting device Pending JPS63233452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62067629A JPS63233452A (en) 1987-03-20 1987-03-20 Data protecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62067629A JPS63233452A (en) 1987-03-20 1987-03-20 Data protecting device

Publications (1)

Publication Number Publication Date
JPS63233452A true JPS63233452A (en) 1988-09-29

Family

ID=13350465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62067629A Pending JPS63233452A (en) 1987-03-20 1987-03-20 Data protecting device

Country Status (1)

Country Link
JP (1) JPS63233452A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002132528A (en) * 2000-10-26 2002-05-10 Nec Corp Microcomputer and initializing method of free memory area/stack release area
JP2002188578A (en) * 2000-12-19 2002-07-05 Hitachi Chem Co Ltd Air pump controlled by microcomputer and septic tank

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6037041A (en) * 1983-08-10 1985-02-26 Koito Mfg Co Ltd Data processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6037041A (en) * 1983-08-10 1985-02-26 Koito Mfg Co Ltd Data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002132528A (en) * 2000-10-26 2002-05-10 Nec Corp Microcomputer and initializing method of free memory area/stack release area
JP2002188578A (en) * 2000-12-19 2002-07-05 Hitachi Chem Co Ltd Air pump controlled by microcomputer and septic tank

Similar Documents

Publication Publication Date Title
US4371754A (en) Automatic fault recovery system for a multiple processor telecommunications switching control
KR100248757B1 (en) Method of damaged rom bios recovery function
US7007195B2 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
US20050114411A1 (en) Safely restoring previously un-backed up data during system restore of a failing system
US5901311A (en) Access key protection for computer system data
WO2021027271A1 (en) Bad block information protection method and apparatus, computer device and storage medium
JPS63233452A (en) Data protecting device
US20020026567A1 (en) Processor capable of enabling/disabling memory access
JPS599937B2 (en) information processing equipment
KR100697086B1 (en) Mobile communication terminal enable to backup and its operating method
CN111104256A (en) Data reading method, device, equipment and storage medium
JP2000235483A (en) Information processor
JP3226566B2 (en) Electronic exchange system
US6581156B1 (en) Method for recording a data state in a data processing system
KR100525537B1 (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JP2990609B2 (en) Computer system
JPH10133958A (en) Communication device control circuit
JP3039479B2 (en) Extended BIOS protection system
KR100620732B1 (en) Mobile communication terminal and Booting Method for the terminal
JP3166167B2 (en) Microcomputer
JP2908214B2 (en) Line controller
JPH07141120A (en) Processing method for fault in information storage medium
JPH03229331A (en) Information processor
JP3049732B2 (en) Setting method of main memory capacity in computer system
JP2838974B2 (en) Screen blocking system in case of business program failure