JPH056310A - Electronic device - Google Patents

Electronic device

Info

Publication number
JPH056310A
JPH056310A JP3156447A JP15644791A JPH056310A JP H056310 A JPH056310 A JP H056310A JP 3156447 A JP3156447 A JP 3156447A JP 15644791 A JP15644791 A JP 15644791A JP H056310 A JPH056310 A JP H056310A
Authority
JP
Japan
Prior art keywords
operation program
ram
storing
cpu
storage means
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
JP3156447A
Other languages
Japanese (ja)
Inventor
Toshihiro Inoue
利裕 井上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3156447A priority Critical patent/JPH056310A/en
Publication of JPH056310A publication Critical patent/JPH056310A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To protect an operation program applied from the external and to prevent the program from being destructed. CONSTITUTION:The electronic device is provided with a RAM 42 for storing the operation program and a RAM 43 for storing other data. An output port 45 and a flip flop (FF) 46 both of which input a reset signal to clear terminals are connected so that the output of the output port 45 is supplied to the FF 46 as a clock. The input terminal of the FF 46 is fixed to an 'H' level. An AND gate 47 finds out AND between the output of the FF 46 and a write signal outputted from a CPU 41 and supplies its output to the RAM 42 as a write signal. The CPU 41 stores the operation program applied from a master device 1 in the RAM 42 at the ON of power, and at the time of completing the storage of the operation program, applies an 'H' level signal to the output port 45 to close the AND gate 47.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、主装置から与えられる
動作プログラムに基づいて動作する電子装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device which operates based on an operation program given by a main device.

【0002】[0002]

【従来の技術】構内交換機(PBX)と多機能電話機と
で構成されるシステムのうちの1つとして、多機能電話
機がPBXから与えられた動作プログラムに基づいて動
作するシステムがある。
2. Description of the Related Art As one of systems consisting of a private branch exchange (PBX) and a multifunction telephone, there is a system in which the multifunction telephone operates based on an operation program given from the PBX.

【0003】図3はこのようなシステムの要部構成例を
示すブロック図である。図中、1は例えばPBXなどの
主装置、2は多機能電話機などの従属装置である。従属
装置2はCPU21、通信制御回路22、RAM23、
ROM24およびアドレスデコーダ25を有して構成さ
れている。
FIG. 3 is a block diagram showing an example of the essential structure of such a system. In the figure, 1 is a main device such as a PBX, and 2 is a subordinate device such as a multifunction telephone. The slave device 2 includes a CPU 21, a communication control circuit 22, a RAM 23,
It has a ROM 24 and an address decoder 25.

【0004】主装置1には従属装置2の動作プログラム
が収容されており、通信線3を介して主装置1と従属装
置2とが接続されると、主装置1は通信線3を介して従
属装置2に動作プログラムを伝送する。従属装置2で
は、通信線3を介して伝送された動作プログラムを通信
制御回路22で受信し、この動作プログラムをCPU2
1がROM24に予め格納されている基本プログラムに
基づいてRAM23に格納する。そして動作プログラム
の全てをRAM23に格納し終わったら、CPU21は
RAM23に格納された動作プログラムに基づいての動
作を行う。
The operation program of the slave device 2 is accommodated in the main device 1, and when the main device 1 and the slave device 2 are connected via the communication line 3, the main device 1 is connected via the communication line 3. The operation program is transmitted to the slave device 2. In the slave device 2, the communication control circuit 22 receives the operation program transmitted via the communication line 3, and the operation program is transmitted to the CPU 2
1 is stored in the RAM 23 based on the basic program stored in the ROM 24 in advance. When all the operation programs are stored in the RAM 23, the CPU 21 operates according to the operation programs stored in the RAM 23.

【0005】ところで、RAM23にはCPU21が動
作する上で使用するためのレジスタ等としての領域が割
り当てられており、RAM23には種々のデータの書き
込みが行われる。このため、CPU21の誤動作やアド
レス信号へのノイズの混入などにより、指定アドレスが
動作プログラムの格納領域に化けてしまうと動作プログ
ラムが破壊されてしまう。
By the way, the RAM 23 is allocated a region as a register or the like for use when the CPU 21 operates, and various data is written in the RAM 23. Therefore, if the designated address is garbled in the storage area of the operation program due to malfunction of the CPU 21 or noise mixed in the address signal, the operation program will be destroyed.

【0006】[0006]

【発明が解決しようとする課題】以上のように従来は、
外部から与えられる動作プログラムと他のデータとを同
一のRAMに格納しているため、データの格納時に誤っ
て動作プログラムを破壊してしまい、動作不能となって
しまうおそれがあった。
As described above, the prior art is as follows.
Since the operation program given from the outside and the other data are stored in the same RAM, there is a possibility that the operation program may be erroneously destroyed when the data is stored, and the operation may be disabled.

【0007】本発明はこのような事情を考慮してなされ
たものであり、その目的とするところは、外部から与え
られる動作プログラムを保護し、破壊することを防止で
きる電子装置を提供することにある。
The present invention has been made in consideration of such circumstances, and an object thereof is to provide an electronic device capable of protecting an operation program given from the outside and preventing the operation program from being destroyed. is there.

【0008】[0008]

【課題を解決するための手段】本発明は、動作プログラ
ムを記憶するための第1の記憶手段と、データを記憶す
るための第2の記憶手段と、例えば主装置などの他装置
から与えられた動作プログラムを前記第1の記憶手段に
格納する動作プログラム格納制御手段と、前記他装置か
ら与えられた動作プログラムの全てが前記動作プログラ
ム格納制御手段により前記第1の記憶手段に格納された
ことを検出する取込み終了検出手段とを備え、取込み終
了検出手段により動作プログラムの全てが前記第1の記
憶手段に格納されたことが検出されたことに応じて、以
降における前記第1の記憶手段へのデータの書き込みを
禁止するようにした。
The present invention is provided by a first storage means for storing an operation program, a second storage means for storing data, and another device such as a main device. The operation program storage control means for storing the operation program in the first storage means, and all the operation programs given from the other device are stored in the first storage means by the operation program storage control means. And a capture end detecting means for detecting that all of the operating programs have been stored in the first storing means, and the subsequent storing means detects that all the operating programs have been stored in the first storing means. The writing of the above data is prohibited.

【0009】[0009]

【作用】このような手段を講じたことにより、他装置か
ら与えられた動作プログラムは動作プログラム格納制御
手段によって第1の記憶手段に格納されるとともに、取
込み終了検出手段により前記他装置から与えられた動作
プログラムの全てが前記動作プログラム格納制御手段に
より前記第1の記憶手段に格納されたことが検出された
ことに応じて、以降における前記第1の記憶手段へのデ
ータの書き込みが禁止される。従って、動作プログラム
の格納後には第1の記憶手段にはデータの書き込みは一
切行われない。
By taking such means, the operation program given from the other device is stored in the first storage means by the operation program storage control means and is given from the other device by the capture end detecting means. In response to the fact that all of the operating programs stored in the operating program storage control means have been detected, the subsequent writing of data to the first storing means is prohibited. .. Therefore, no data is written to the first storage means after the operation program is stored.

【0010】[0010]

【実施例】以下、図面を参照して本発明の一実施例に付
き説明する。図1は本実施例に係る電子装置を適用して
構成されたシステムの要部構成を示すブロック図であ
る。なお、図3と同一部分には同一符号を付し、詳細な
説明は省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a main configuration of a system configured by applying the electronic device according to the present embodiment. The same parts as those in FIG. 3 are designated by the same reference numerals, and detailed description thereof will be omitted.

【0011】図中、4は本実施例に係る電子装置を適用
してなる従属装置である。この従属装置4は、通信制御
回路22、ROM24、バス26、CPU41、RAM
42,43、アドレスデコーダ44、出力ポート45、
フリップフロップ46およびANDゲート(負論理)4
7を有して構成されている。
In the figure, reference numeral 4 is a slave device to which the electronic device according to the present embodiment is applied. The slave device 4 includes a communication control circuit 22, a ROM 24, a bus 26, a CPU 41, and a RAM.
42, 43, address decoder 44, output port 45,
Flip-flop 46 and AND gate (negative logic) 4
It is configured to have 7.

【0012】このうち、通信制御回路22、ROM2
4、CPU41、RAM42,43は、バス26を介し
て互いに接続されている。RAM42は、第1の記憶手
段に対応するものであり、動作プログラムを格納するた
めのものである。またRAM43は、第2の記憶手段に
対応するものであり、種々のデータを格納するためのも
のである。これらのRAM42,43およびROM24
は、CPU41から出力されたアドレス信号(上位数ビ
ット)をアドレスでコーダ44でデコードして得られた
データによって択一的に選択される。
Of these, the communication control circuit 22 and the ROM 2
4, the CPU 41, the RAMs 42, 43 are connected to each other via the bus 26. The RAM 42 corresponds to the first storage means and stores the operation program. The RAM 43 corresponds to the second storage means and stores various data. These RAM 42, 43 and ROM 24
Is alternatively selected by the data obtained by decoding the address signal (upper several bits) output from the CPU 41 with the address by the coder 44.

【0013】出力ポート45は、CPU41から出力さ
れる制御信号が入力端子に、またパワーオンで「L」レ
ベルとなるリセット信号がクリア端子にそれぞれ入力さ
れている。そして出力端子は、フリップフロップ46の
クロック端子に接続されている。フリップフロップ46
は、入力端子に+5Vが、またクリア端子にリセット信
号がそれぞれ入力されている。そして出力端子は、AN
Dゲート47の一方の入力端子に接続されている。AN
Dゲート47の他方の入力端子には、CPU41から出
力されるライト信号が入力されている。そしてANDゲ
ート47の出力端子はRAM42のライト信号入力端子
に接続されている。
In the output port 45, the control signal output from the CPU 41 is input to the input terminal, and the reset signal which becomes "L" level when the power is turned on is input to the clear terminal. The output terminal is connected to the clock terminal of the flip-flop 46. Flip-flop 46
Has + 5V input to its input terminal and a reset signal input to its clear terminal. And the output terminal is AN
It is connected to one input terminal of the D gate 47. AN
The write signal output from the CPU 41 is input to the other input terminal of the D gate 47. The output terminal of the AND gate 47 is connected to the write signal input terminal of the RAM 42.

【0014】次に以上のように構成された従属装置4の
動作を説明する。まず、従属装置4がパワーオンされる
と、リセット信号が「L」レベルとなり、CPU41、
出力ポート45およびフリップフロップ46がリセット
される。出力ポート45およびフリップフロップ46は
リセットされると、その出力はともに「L」レベルとな
っている。
Next, the operation of the slave device 4 configured as described above will be described. First, when the slave device 4 is powered on, the reset signal becomes the “L” level, and the CPU 41,
The output port 45 and the flip-flop 46 are reset. When the output port 45 and the flip-flop 46 are reset, their outputs are both at "L" level.

【0015】さて、CPU41はリセットがなさされた
のちには、ROM24に格納されている基本プログラム
に基づいて図2に示すような処理を行う。すなわち、ま
ずステップaにおいて、主装置1から出力されて通信線
3を介して伝送された動作プログラムを通信制御回路2
2に受信させる。続いてCPU41はステップbにおい
て、通信制御回路22が受信した動作プログラムを動作
プログラム格納用であるRAM42に格納する。すなわ
ち、ROM24に格納された基本プログラムおよびCP
U41により、動作プログラム格納制御手段が構成され
ている。
After the reset, the CPU 41 performs the processing shown in FIG. 2 based on the basic program stored in the ROM 24. That is, first, in step a, the operation program output from the main device 1 and transmitted through the communication line 3 is loaded into the communication control circuit 2
2 to receive. Then, in step b, the CPU 41 stores the operation program received by the communication control circuit 22 in the RAM 42 for storing the operation program. That is, the basic program and CP stored in the ROM 24
The U41 constitutes an operation program storage control means.

【0016】そしてCPU41はステップcにおいて、
主装置1から与えられる動作プログラムの全ての受信お
よび格納が完了したか否かの判断を行い、完了するまで
ステップaおよびステップbの処理を繰り返し行う。こ
の際、フリップフロップ46の出力は「L」レベルであ
るためにANDゲート47はON状態にあり、CPU4
1から出力されるライト信号はRAM42に供給可能で
あり、RAM42は書き込みが可能な状態にある。
Then, the CPU 41, in step c,
It is determined whether or not all reception and storage of the operation program given from the main device 1 have been completed, and the processes of step a and step b are repeated until completion. At this time, since the output of the flip-flop 46 is at the “L” level, the AND gate 47 is in the ON state, and the CPU 4
The write signal output from 1 can be supplied to the RAM 42, and the RAM 42 is in a writable state.

【0017】全ての動作プログラムの取り込みが完了す
ると、CPU41は処理をステップcからステップdに
移行する。CPU41はステップdでは、出力ポート4
5に対する制御信号を「H」レベルとする。そうする
と、出力ポート45の出力は「L」レベルから「H」レ
ベルに変わる。従ってANDゲート47はOFF状態と
なり、CPU41から出力されるライト信号は遮断され
てRAM42には供給されない。このためRAM42は
書き込み禁止状態となる。すなわち、出力ポート45、
フリップフロップ46およびANDゲート47が書込禁
止手段を、またROM24に格納された基本プログラム
およびCPU41が取込み終了検出手段をそれぞれ構成
している。
When the loading of all the operation programs is completed, the CPU 41 shifts the processing from step c to step d. In step d, the CPU 41 outputs the output port 4
The control signal for 5 is set to "H" level. Then, the output of the output port 45 changes from the "L" level to the "H" level. Therefore, the AND gate 47 is turned off, and the write signal output from the CPU 41 is cut off and not supplied to the RAM 42. Therefore, the RAM 42 is in a write-protected state. That is, the output port 45,
The flip-flop 46 and the AND gate 47 constitute a write-inhibiting means, and the basic program stored in the ROM 24 and the CPU 41 constitute an intake end detecting means.

【0018】こののち、CPU41は処理をステップe
に移行し、RAM42に格納した動作プログラムに基づ
いての動作を行う。CPU41は、この動作プログラム
に基づいての動作の際に取り扱うデータはRAM43に
格納する。
After this, the CPU 41 executes the processing in step e.
Then, the operation is performed based on the operation program stored in the RAM 42. The CPU 41 stores in the RAM 43 the data to be handled during the operation based on this operation program.

【0019】以上のように本実施例によれば、データの
RAM43への格納を行う際に、CPU41の誤動作ま
たはノイズの混入などによりアドレスがRAM42のア
ドレスに化けたとしても、RAM42にはライト信号が
供給されていないからRAM42へのデータの書込は行
われず、RAM42に格納されている動作プログラムは
保護される。なお、本発明は上記実施例に限定されるも
のではなく、本発明の要旨を逸脱しない範囲で種々の変
形実施が可能である。
As described above, according to this embodiment, when the data is stored in the RAM 43, even if the address is garbled to the address of the RAM 42 due to the malfunction of the CPU 41 or the mixing of noise, the write signal is sent to the RAM 42. Is not supplied, the data is not written in the RAM 42 and the operation program stored in the RAM 42 is protected. The present invention is not limited to the above embodiments, and various modifications can be made without departing from the gist of the present invention.

【0020】[0020]

【発明の効果】本発明によれば、動作プログラムを記憶
するための第1の記憶手段と、データを記憶するための
第2の記憶手段と、例えば主装置などの他装置から与え
られた動作プログラムを前記第1の記憶手段に格納する
動作プログラム格納制御手段と、前記他装置から与えら
れた動作プログラムの全てが前記動作プログラム格納制
御手段により前記第1の記憶手段に格納されたことを検
出する取込み終了検出手段とを備え、取込み終了検出手
段により動作プログラムの全てが前記第1の記憶手段に
格納されたことが検出されたことに応じて、以降におけ
る前記第1の記憶手段へのデータの書き込みを禁止する
ようにしたので、外部から与えられる動作プログラムを
保護し、破壊することを防止できる電子装置となる。
According to the present invention, the first storage means for storing the operation program, the second storage means for storing the data, and the operation given from another device such as the main device. An operation program storage control means for storing a program in the first storage means, and a detection that all the operation programs given from the other device are stored in the first storage means by the operation program storage control means Capturing end detecting means for storing data of all the operating programs stored in the first storing means, and subsequently storing data to the first storing means. Since the writing is prohibited, the electronic device can protect the operating program given from the outside and prevent the operating program from being destroyed.

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

【図1】 本発明の一実施例に係る電子装置を適用して
構成されたシステムの要部構成を示すブロック図。
FIG. 1 is a block diagram showing a main configuration of a system configured by applying an electronic device according to an embodiment of the invention.

【図2】 図1中のCPU41の処理手順を示すフロー
チャート。
FIG. 2 is a flowchart showing a processing procedure of a CPU 41 in FIG.

【図3】 従来技術を説明する図。FIG. 3 is a diagram illustrating a conventional technique.

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

1…主装置、3…通信線、4…従属装置、22…通信制
御回路、24…ROM、26…バス、41…CPU、4
2…RAM(動作プログラム格納用)、43…RAM
(データ格納用)、44…アドレスデコーダ、45…出
力ポート、46…フリップフロップ、47…ANDゲー
ト(負論理)。
DESCRIPTION OF SYMBOLS 1 ... Main device, 3 ... Communication line, 4 ... Slave device, 22 ... Communication control circuit, 24 ... ROM, 26 ... Bus, 41 ... CPU, 4
2 ... RAM (for storing operation programs), 43 ... RAM
(For storing data), 44 ... Address decoder, 45 ... Output port, 46 ... Flip-flop, 47 ... AND gate (negative logic).

Claims (1)

【特許請求の範囲】 【請求項1】 所定時点に他装置から与えられる動作プ
ログラムを受け取り、以降ではこの動作プログラムに基
づいて動作するとともに、動作中には種々のデータを記
憶保持することが必要な電子装置において、前記動作プ
ログラムを記憶するための第1の記憶手段と、前記デー
タを記憶するための第2の記憶手段と、前記他装置から
与えられた動作プログラムを前記第1の記憶手段に格納
する動作プログラム格納制御手段と、前記他装置から与
えられた動作プログラムの全てが前記動作プログラム格
納制御手段により前記第1の記憶手段に格納されたこと
を検出する取込み終了検出手段と、この取込み終了検出
手段により動作プログラムの全てが前記第1の記憶手段
に格納されたことが検出されたことに応じて、以降にお
ける前記第1の記憶手段へのデータの書き込みを禁止す
る書込禁止手段とを具備したことを特徴とする電子装
置。
Claim: What is claimed is: 1. It is necessary to receive an operation program given from another device at a predetermined time point, and thereafter operate based on this operation program, and store and hold various data during operation. In another electronic device, the first storage means for storing the operation program, the second storage means for storing the data, and the operation program given from the other device are the first storage means. An operation program storage control means for storing the operation program, an end-of-acquisition detection means for detecting that all the operation programs given from the other device are stored in the first storage means by the operation program storage control means, In response to the fact that all the operation programs are stored in the first storage means by the capture end detection means, Electronic apparatus characterized by comprising a write inhibiting means for inhibiting the kick writing data in the first storage means.
JP3156447A 1991-06-27 1991-06-27 Electronic device Pending JPH056310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3156447A JPH056310A (en) 1991-06-27 1991-06-27 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3156447A JPH056310A (en) 1991-06-27 1991-06-27 Electronic device

Publications (1)

Publication Number Publication Date
JPH056310A true JPH056310A (en) 1993-01-14

Family

ID=15627952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3156447A Pending JPH056310A (en) 1991-06-27 1991-06-27 Electronic device

Country Status (1)

Country Link
JP (1) JPH056310A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1618963A1 (en) 2004-07-19 2006-01-25 Anest Iwata Corporation Spray gun with adaptable air pressure indication means
JP2009061347A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine
JP2009061348A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine
JP2009061346A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1618963A1 (en) 2004-07-19 2006-01-25 Anest Iwata Corporation Spray gun with adaptable air pressure indication means
JP2009061347A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine
JP2009061348A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine
JP2009061346A (en) * 2008-12-26 2009-03-26 Sophia Co Ltd Game machine

Similar Documents

Publication Publication Date Title
US4580246A (en) Write protection circuit and method for a control register
JPS6382534A (en) Memory protection device
JPH056310A (en) Electronic device
JPH01173244A (en) Copy preventing rom circuit
JPH08241199A (en) Data-processing system
JPH096725A (en) Asynchronous data transfer receiver
JPS62184554A (en) Memory protection circuit
JPH07160592A (en) Semiconductor memory device
KR960702651A (en) Security memory card
JPH02238536A (en) Storage protecting circuit
JP2809752B2 (en) Memory access circuit
JPH08123780A (en) Protection circuit for contents of register in microprocessor
JPS58208999A (en) Memory device
JP2000207235A (en) Information processor
JPH0895865A (en) Miswriting preventing device
JPH09153007A (en) Bus interface device
JPS6131496B2 (en)
JPH01185736A (en) Microcomputer developing device
JPH04273358A (en) One-chip microcomputer containing dmac
JPH02302855A (en) Memory control system
JPH10340200A (en) Information processor
JPS62241041A (en) Information processor
JPH02234249A (en) Transfer data protection system
JPH11282699A (en) Data transmission protecting method and data transmitting device
JPS6210747A (en) Non-volatile ram checking method