JPH02123443A - Data protecting device for electric apparatus - Google Patents
Data protecting device for electric apparatusInfo
- Publication number
- JPH02123443A JPH02123443A JP63276003A JP27600388A JPH02123443A JP H02123443 A JPH02123443 A JP H02123443A JP 63276003 A JP63276003 A JP 63276003A JP 27600388 A JP27600388 A JP 27600388A JP H02123443 A JPH02123443 A JP H02123443A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- writing
- address
- stored
- 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
Links
- 238000003860 storage Methods 0.000 claims abstract description 101
- 238000001514 detection method Methods 0.000 claims abstract description 8
- 230000004044 response Effects 0.000 claims description 3
- 238000000034 method Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 8
- 238000012790 confirmation Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 241000282887 Suidae Species 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、機器の使用状況等機器内で発生する各種のデ
ータを記憶するE E P ROM等のメモリを有する
電気機器において、メモリに記憶したデ・−夕を保護す
る電気機器におけるデータ保護装置に関するものである
。Detailed Description of the Invention [Industrial Field of Application] The present invention relates to electrical equipment having a memory such as an EEPROM that stores various data generated within the equipment such as usage status of the equipment. The present invention relates to a data protection device for electrical equipment that protects stored data.
〔従来の技術及び発明が解決しようとする課題]例えば
CA T V Oi末器において、IPPV(1mpu
lse pay per view)機能を使用して有
料番組をその場で購入する視聴方法がある。この視聴方
法の場合、有料量組をチブ、−二ソグさせようとすると
き、CΔT V端末器は−H有料告知チヤンネルに飛び
、くごで視聴者がオーソライズキー(AtJ゛I″HK
EY)を押すことにより、目的の有料番組が視聴できる
ようになる。このように目的の有料番組がチー、−ニン
グされると、その有料番組のインハントy′=夕に含ま
れている有料番組データが抽出されてこの使用状況がE
E F ROM等のメモリに書込まれる。このメモリ
に書込まれたデータは、有料番組を送出しているセンタ
ーにより、例えば月に一度の割合ご定期的に収集されろ
。センクーはこの収集したデル夕に基づきどの:t−’
−3’が有料番組をどれだけ視聴17だかどうかを判断
し、請求書を発行する際に利用する。[Prior art and problems to be solved by the invention] For example, in CA T V Oi terminal equipment, IPPV (1 mpu
There is a viewing method in which paid programs are purchased on the spot using the pay per view function. In the case of this viewing method, when trying to watch a paid TV set, the CΔTV terminal jumps to the -H paid announcement channel, and the viewer presses the authorization key (AtJ゛I''HK).
By pressing EY), the desired paid program can be viewed. When the target pay program is tuned in this way, the pay program data included in the pay program's inhunt y' = evening is extracted and the usage status is
It is written to a memory such as E F ROM. The data written in this memory is collected periodically, for example once a month, by a center that transmits pay programs. Based on this collected information, Senku: t-'
-3' determines how much paid programs are viewed17 and is used when issuing a bill.
上述のようにCATV端末器が有するメモリに記憶され
るデータは、金銭に係わるものであるので、絶対に書き
変わってjJならないものである。As mentioned above, the data stored in the memory of the CATV terminal is related to money and therefore cannot be rewritten.
ところで、CATV端末器においてメモリとして使用さ
れるI己E F ROMは、第゛7図(1,′示すよう
なタイミングでデータの書込みが行われ、チンプイネブ
ルCEが17レベルのとき、図示のようにl101〜1
104に入力されているアト1/スAO〜A5とデータ
Do〜・D15がりt1ツクC1,、Kにより■の期間
に内部のバッファに取り込まれ、続く■及び■の約20
0 m5ec期間で、発振入力O8Cに鋸歯状波信号が
人力されることによって前データの消去(ERASE)
と新し7いデータの書込み(WRITE)とが行われる
よ・うになっている。By the way, data is written to the IEF ROM used as a memory in a CATV terminal at the timing shown in FIG. l101~1
At 1/s AO~A5 and data Do~・D15 inputted to 104 are taken into the internal buffer during the period ■ by t1 and C1, and K, and about 20 minutes of the following ■ and ■
During the 0 m5ec period, the previous data is erased (ERASE) by manually applying a sawtooth wave signal to the oscillation input O8C.
and new data is written (WRITE).
しかし、雷等によりEEPROMの電源が瞬間的に断状
態になることがあり、これが上記消去及び書込みの期間
中の約200 m5ecの期間に生じると、■のF、
RΔSE期間においては消去されないデータが、■のW
RITE期間においては書込まれないデータがそれぞれ
残る恐れがある。つまり、消去及び書込み期間中に電源
断が生じると、中途Y端な正しくないデータがEEPR
OMに書込まれてし7まうiJ能性がある。However, the power to the EEPROM may be momentarily cut off due to lightning, etc., and if this occurs during a period of about 200 m5ec during the above erasing and writing period, F of ■
The data that is not erased during the RΔSE period is
During the RITE period, there is a possibility that some data that will not be written will remain. In other words, if a power failure occurs during the erasing or writing period, incorrect data may be lost in the EEPR.
There is a possibility that the iJ may be written to the OM.
よ、って本発明は、機器内で発生するデータをメモリに
書込み動作中に電源断が生じても、メモリに書込まれる
データが中途半端な正し7くないものとなることがない
ようにして、データの保護を図れるようにした電気機器
におけるデータ保護装置を提供することを課題と()で
いる。Therefore, the present invention prevents the data written to the memory from becoming half-baked or incorrect even if the power is cut off while data generated in the device is being written to the memory. The object of the present invention is to provide a data protection device for electrical equipment that can protect data.
ヒ記課題を解決するため本発明により成された電気機器
におけるデータ保護装置は、第1図の基本構成図に示す
よ・)に、電気機器内で発生する複数のデル夕を記憶す
るメイン記憶エリア20aと、該メイン記憶エリア20
aに書込もうとする書込みデータを一時的に記憶する第
1のバッファ記憶エリア20bと、前記書込データを書
込む前記メイン記憶エリア2Oa上のアドレス及びフラ
グを記憶する第2のバッファ記憶エリア20cとを有す
る記憶手段20と、該記憶手段20にデータを書込むデ
ータ書込手段151と、電源断の復帰を検出する電源復
帰検出手段24とを備える。In order to solve the problem described above, the data protection device for electrical equipment according to the present invention has a main memory for storing a plurality of data that occurs in the electrical equipment, as shown in the basic configuration diagram of Fig. 1. area 20a and the main storage area 20
A first buffer storage area 20b that temporarily stores write data to be written to a, and a second buffer storage area that stores an address and a flag on the main storage area 2Oa to which the write data is written. 20c, data writing means 151 for writing data into the storage means 20, and power return detection means 24 for detecting recovery from power cut.
そして、前記データ書込手段151は、前記記憶手段2
0に記憶ずべきデータが電気機器内に発生したとき、前
記第1及び第2のバッファ記憶エリア20b及び20c
にメイン記憶エリア20aに記憶すべきデータと記憶す
べきデータを記憶するメイン記憶エリア20aのアドレ
ス及び第1のフラグとをそれぞれ書込む第1の書込手段
151dと、該第1の書込手段151aによる書込みが
終了した後前記メイン記憶エリア20aに記憶すべきデ
ータを書込む第2の書込手段151bと、該第2の書込
手段151bによる書込みが終了した後前記第2のバッ
ファ記憶エリア20cに前記第1の書込手段15】aに
より書込んだフラグと異なる第2のフラグを書込む第3
の書込手段151cと、前記電源復帰検出手段24によ
る電源復帰の検出に応じて、前記第2のバッファ記憶エ
リア20cに記憶されているフラグが第1のフラグであ
るとき、前記第1のバッファ記憶エリア20bに記憶さ
れているデータを前記第2のバッファ記憶エリア20c
に記憶されている前記メイン記憶エリア20aのアドレ
スに書込む第4の書込手段151dとを有することを特
徴とする。The data writing means 151 writes the data to the storage means 2.
When data that should be stored in 0 occurs in the electrical equipment, the first and second buffer storage areas 20b and 20c
a first writing means 151d for writing data to be stored in the main storage area 20a, an address of the main storage area 20a for storing the data, and a first flag, respectively; a second writing means 151b for writing data to be stored in the main storage area 20a after writing by the second writing means 151a is completed; and a second buffer storage area after writing by the second writing means 151b is completed. A third writing means 20c writes a second flag different from the flag written by the first writing means 15a.
When the flag stored in the second buffer storage area 20c is the first flag, the first buffer is The data stored in the storage area 20b is transferred to the second buffer storage area 20c.
The fourth writing means 151d writes to the address of the main storage area 20a stored in the main storage area 20a.
上記構成において、記憶手段20が電気機器内で発生す
る複数のデータを記憶するメイン記憶エリア20aの他
に、該メイン記憶エリア20aに書込もうとする書込み
データを一時的に記憶する第1のバッファ記憶エリア2
0bと、前記書込データを書込む前記メイン記憶エリア
2Oa上のアドレス及びフラグを記憶する第2のバッフ
ァ記憶エリア20cとを有する記憶手段20とを有し、
データ書込手段151がこの第1及び第2のバッファ記
憶エリア20b及び20cに記憶しているデータ、アド
レス及びフラグを利用し、電源断によりデータがメイン
記憶エリア20aの所定のアドレスに正常に書込みが行
われていないときには、電源が復帰した時点でデータ書
込手段151の第4の書込手段151dが、メイン記憶
エリア20aの所定のアドレスのエリアに書込むように
なっている。In the above configuration, in addition to the main storage area 20a in which the storage means 20 stores a plurality of data generated within the electrical equipment, the storage means 20 has a first storage area 20a in which write data to be written to the main storage area 20a is temporarily stored. Buffer storage area 2
0b, and a second buffer storage area 20c that stores an address and a flag on the main storage area 2Oa in which the write data is written,
The data writing means 151 uses the data, addresses, and flags stored in the first and second buffer storage areas 20b and 20c, and data is normally written to a predetermined address in the main storage area 20a when the power is turned off. When the data is not being performed, the fourth writing means 151d of the data writing means 151 writes to an area of a predetermined address in the main storage area 20a when the power is restored.
よって電源断によって正しくないデータが記憶手段20
に記憶されることが防止され、結果的にデータの保護が
図られる。Therefore, incorrect data may be stored in the storage means 20 due to power interruption.
As a result, the data is protected.
以下、本発明の実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.
第2図は本発明による電気機器におけるデータ保護装置
を適用したCATV端末器の一般構成を示すブロック図
でり、同図において、CATV端末器は図示しないセン
ターと同軸ケーブル等の伝送路を介して接続されており
、該伝送路を通じて映像信号等からなるRF倍信号セン
ターから伝送されてくる。該伝送路はセンターとCAT
V端末器との相互間で各種のデータの授受を行って相互
通信を行うためにも利用される。FIG. 2 is a block diagram showing the general configuration of a CATV terminal to which the data protection device for electrical equipment according to the present invention is applied. In the figure, the CATV terminal is connected to a center (not shown) via a transmission path such as a coaxial cable. The signals are connected to each other, and the RF signal consisting of video signals and the like is transmitted from the RF multiplication signal center through the transmission path. The transmission line is between the center and CAT
It is also used for mutual communication by exchanging various data with the V terminal.
センターから伝送されてくるRF倍信号、分波器11に
より分波されてコンバータ12とデータ受信部13とに
入力される。コンバータ12はCPUからなるコントロ
ーラ15からの選局信号に基づいて特定のチャンネルを
選択すると共に、選択したチャンネルの信号を周波数変
換する。周波数変換された特定チャンネルの信号は、デ
スクランブラ16に入力され、ここでスクランブルされ
ている信号の場合にはコントローラ15の制御の下でデ
スクランブルされ、そうでない場合にはスルーされる。The RF multiplied signal transmitted from the center is demultiplexed by a demultiplexer 11 and input to a converter 12 and a data receiving section 13 . The converter 12 selects a specific channel based on a channel selection signal from a controller 15 including a CPU, and converts the frequency of the signal of the selected channel. The frequency-converted signal of a specific channel is input to a descrambler 16, where if the signal is scrambled, it is descrambled under the control of the controller 15, otherwise it is passed through.
デスクランブラ16を通った信号は出力端子からTV受
像機17に入力される。上記データ受信部13は上記R
F信号中の特定チャンネルにより伝送されてくる各種の
データを抽出してコントローラ15に入力する。The signal passed through the descrambler 16 is input to the TV receiver 17 from the output terminal. The data receiving section 13 is connected to the R
Various data transmitted through a specific channel in the F signal are extracted and input to the controller 15.
上記コントローラ15には、選局等の操作を行うための
キーボード18が接続されていて、該キーボード18に
おける選局キー操作に応じて上記選局信号を発生する。A keyboard 18 for performing operations such as channel selection is connected to the controller 15, and generates the channel selection signal in response to the operation of a channel selection key on the keyboard 18.
上記キーボード18は、上記選局キーの他に、電源オン
・オフキー、視聴に先立ち有料番組であることを確認す
るための確認キー、ボリューム調整キー、プログラマブ
ルタイマ設定キー等の多くのキーを有し、これらのキー
の操作により発生される信号はコントローラ15に入力
される。In addition to the channel selection key, the keyboard 18 has many keys such as a power on/off key, a confirmation key to confirm that it is a paid program before viewing, a volume adjustment key, and a programmable timer setting key. , signals generated by operating these keys are input to the controller 15.
コントローラ15にはまた、表示部19が接続されてい
て、該表示部19にはコントローラ15の制御の下で各
種の状態表示やメツセージ表示等が行われる。A display section 19 is also connected to the controller 15, and various status displays, messages, etc. are displayed on the display section 19 under the control of the controller 15.
コントローラ15には更に、CATV端末器による有料
番組の視聴状況を示すデータを記憶するためのEEPR
OMからなるメモリ20が接続されていて、該メモリ2
0に記憶されるデータは、有料番組の視聴の可否の制御
を行っているコントローラ15から供給される。該コン
トローラ15の制御の下でメモリ20への新しいデータ
の書込みを行うに当たっては、それ以前のデータが消去
される。The controller 15 further includes an EEPR for storing data indicating the viewing status of pay programs by the CATV terminal.
A memory 20 consisting of OM is connected, and the memory 2
The data stored in 0 is supplied from the controller 15 that controls whether or not paid programs can be viewed. When new data is written to the memory 20 under the control of the controller 15, the previous data is erased.
なお、21はコントローラ15の制御の下でオン・オフ
されるリレーであり、該リレー21はそのオンによりA
C100V電源をTV受像機17に供給する。また、2
2はセンターの求めに応じてメモリ20に記憶している
有料番組の過去の視聴状況を示すデータ等を結合器23
を介してセンターに送出するデータ送信部である。更に
、24は電気機器の電源が断した後復帰したことを検出
する電源復帰検出部であり、該検出信号をコントローラ
15に入力する。Note that 21 is a relay that is turned on and off under the control of the controller 15, and when the relay 21 is turned on, A
C100V power is supplied to the TV receiver 17. Also, 2
2 is a combiner 23 which transmits data indicating the past viewing status of pay programs stored in the memory 20 in response to a request from the center.
This is a data transmitter that sends data to the center via. Further, reference numeral 24 denotes a power return detection unit that detects that the power of the electrical equipment is restored after being turned off, and inputs the detection signal to the controller 15.
」−記メ干す20は、第3図に示すようなマツプ構成と
なっており、各々が16ビソトからなるOO〜7Fのア
ドレスを有する。アドレスOO〜7I〕のエリアは保存
データを記憶するメイン記憶エリア20 a、アドレス
7Eのエリアはデータ書込み用バッファ1として使用さ
れる第1のバッファ記憶エリア20 b、そしてアドレ
ス7Fのエリアは朱書込みフラグ(1ピッl−)とアド
レス(15ビ
ット
用される第2のバッファ記憶エリア20cをそれぞれ構
成している。The memory card 20 has a map configuration as shown in FIG. 3, and each has addresses OO to 7F consisting of 16 bits. The area at addresses OO to 7I is the main storage area 20a for storing saved data, the area at address 7E is the first buffer storage area 20b used as data writing buffer 1, and the area at address 7F is for red writing. They constitute a second buffer storage area 20c for flags (1 bit) and addresses (15 bits).
以」−の構成において、:1ンI・ローラ15を構成し
ているCPUが予め定めたプ12グフノ、に従って行う
仕事を示す第4回乃至第〔j図のフローチャート図を参
照してCATV端末器の動作を以ド説明する。In the following configuration, the CPU constituting the I-roller 15 performs the work according to the predetermined steps. The operation of the device will be explained below.
、:lントローラ15は第4し1のソロー千ヤーー1・
図において、その最初のスう〜ンブs1で、現在チュニ
ングしているチャンネルが有料番組であるが否かを、そ
の音声信号にAM変調されて伝送されているデータに基
づき判定する。該ステップs1の判定がYES、ずなわ
ら音声信号に有料番組ブタが重畳されて伝送されている
場合にはステップS2に進み、ここでステップS1にお
いて判定した有料番組データと同じデータがメモリ2o
のメイン記憶エリア20aに記憶されているが否かを判
定する。,:l controller 15 is the 4th and 1st Thoreau thousand year 1.
In the figure, in the first broadcast s1, it is determined whether the channel currently being tuned is a pay program or not based on the data transmitted by AM modulating the audio signal. If the determination in step s1 is YES, and the pay program data is being transmitted superimposed on the audio signal, the process proceeds to step S2, where the same data as the pay program data determined in step S1 is stored in the memory 2o.
It is determined whether or not the file is stored in the main storage area 20a.
このステップS2の判定がNO、すなわち有料番組デー
タがまだメモリ20のメイン記憶エリア20aに記憶さ
れていない場合にはステップS3に進み、ここで有料告
知チャンネルのチューニングを行うための選局信号を発
生し、これをコンバタ12に対して出力してからステッ
プS4に進む。If the determination in step S2 is NO, that is, the pay program data has not yet been stored in the main storage area 20a of the memory 20, the process proceeds to step S3, where a tuning signal for tuning the pay announcement channel is generated. After outputting this to the converter 12, the process proceeds to step S4.
」−記ステップS3において出力した選局信号によりコ
ンバータ12において有料告知チャンネルがチューニン
グされると、TV受像機17には有料告知画像が映し出
される。」1記ステップS4においては、この有料告知
画像を見たユーザがキーボード18の任意のキーを操作
するのを待つ。ユーザがキーボード′18の任意のキー
を操作するとステップS5に進み、ここで操作されたキ
ーが有料番組を視聴することを確認する確認キーである
か否かを判定する。このステップS5の判定がNO、す
なわち操作されたキーが確認キーであるときにはステッ
プS6に進み、ここで有料番組データをメモリ20に書
込む書込み処理を行い、該ステップS6の処理の終了後
は」二記ステンプS]に戻る。When the paid announcement channel is tuned in the converter 12 by the tuning signal outputted in step S3, a paid announcement image is displayed on the TV receiver 17. 1, step S4 waits for the user who has viewed the paid notification image to operate any key on the keyboard 18. When the user operates any key on the keyboard '18, the process proceeds to step S5, where it is determined whether the operated key is a confirmation key for confirming that a pay program will be viewed. If the determination in step S5 is NO, that is, the operated key is the confirmation key, the process advances to step S6, where a write process is performed to write the pay program data into the memory 20, and after the process in step S6 is completed. Return to Step S].
上記ステップS6において、メモリ20に有料番組デー
タが書込まれると、上記ステップS2の判定がYESに
なってステップS7に進み、ここで目的とするチャンネ
ル、すなわち有料番組を乗せているチャンネルのチュー
ニングを行うためコンバータ12に選局信号を出力する
。In the above step S6, when the pay program data is written to the memory 20, the judgment in the above step S2 becomes YES and the process proceeds to step S7, where the tuning of the target channel, that is, the channel on which the pay program is carried is performed. In order to do this, a channel selection signal is output to the converter 12.
なお、」1記ステップS1の判定がNO、すなわち音声
信号に乗っているデータが有料番組データでないときに
はステップ32〜S6を飛ばしてステップS7に進み、
ここで目的のチャンネルのチューニングを行うための選
局信号をコンバータ12に出力する。また、−]二二叉
テップS5の判定がNO、すなわち確認キー以外のキー
が操作されたときには、そのキーに対応した処理を行う
ための図示しない他のステップに進む。Incidentally, if the determination in step S1 of "1" is NO, that is, the data on the audio signal is not pay program data, steps 32 to S6 are skipped and the process proceeds to step S7.
Here, a tuning signal for tuning the target channel is output to the converter 12. If the determination in step S5 is NO, that is, if a key other than the confirmation key is operated, the process proceeds to another step (not shown) for performing processing corresponding to that key.
次に、第4図のフローチャー1−回申のステップS6に
おけるメモリ20への有料番組データの書込み処理を、
第5図のフローチャー1・図を参照して以下説明する。Next, the process of writing pay program data to the memory 20 in step S6 of flowchart 1-return in FIG.
This will be explained below with reference to flowchart 1 in FIG.
ステップS6においてメモリ20に書込む必要のあるデ
ータは、コントローラ15を構成しているCPU中のR
AMI(16ビツト)内にあり、このデータをステップ
11において第3図について上述したメモリ20のアド
レス7Eの第1のバッファ記憶エリア20bに送る(第
7図の■の期間)。続くステップS12においてメモリ
2oのアドレス7Eの第1のバッファ記憶エリア20b
の内容を消去する(第7図の■の期間)。その後ステッ
プS13に進み、ここでアドレス7Eの第1のバッファ
記憶エリア20bに必要データを書込ム(第7図の■の
期間)。以上のステップs11〜313により、メモリ
2oにおいてバッファ1として割り当てられたアドレス
7Eの第1のバッファ記憶エリア20bに必要データが
書込まれる。The data that needs to be written to the memory 20 in step S6 is written in the R
AMI (16 bits), and this data is sent in step 11 to the first buffer storage area 20b at address 7E of the memory 20 described above with reference to FIG. 3 (period 2 in FIG. 7). In the following step S12, the first buffer storage area 20b at address 7E of the memory 2o
(period marked ■ in Figure 7). Thereafter, the process proceeds to step S13, where necessary data is written into the first buffer storage area 20b at address 7E (period 2 in FIG. 7). Through steps s11 to 313 described above, necessary data is written to the first buffer storage area 20b at address 7E assigned as buffer 1 in memory 2o.
その後更にステップS14に進み、ここでメモリ20の
アドレス7Fの第2のバッファ記憶エリア20cに未書
込フラグを付加したアドレスデータを送る(■)。そし
て続くステップS15において、メモリ20のアドレス
7Fの第2のバッファ記憶エリア20cの内容を消去し
く■)、その後のステップ316においてアドレス7F
の第2のバッファ記憶エリア20cに上記アドレスデー
タを書込む(■)。以上のステップ314〜s16によ
り、メモリ20においてバッファ2として割り当てられ
たアドレス7Fの第2のバッファ記憶エリア20cにア
ドレスデータが書込まれる。Thereafter, the process further advances to step S14, where address data with an unwritten flag added is sent to the second buffer storage area 20c at address 7F of the memory 20 (■). Then, in the subsequent step S15, the contents of the second buffer storage area 20c at the address 7F of the memory 20 are erased.
The address data is written into the second buffer storage area 20c (■). Through steps 314 to s16 above, address data is written to the second buffer storage area 20c at address 7F, which is allocated as buffer 2 in memory 20.
次ニステッ7”S17に進み、ここでメモリ2゜のメイ
ン記憶エリア2Oa中のアドレスOoのエリアにバッフ
ァ1である第1のバッファ記憶エリア20bに書込んだ
データと同じ必要データすなわち上記RAM1の内容を
送る(■)。続くステップ31Bにおいてメモリ20の
メイン記憶エリア2Oa中のアドレス00のエリアの内
容を消去しく■)、更に続くステップS19においてメ
イン記憶エリア2Oa中のアドレスOOのエリアに必要
データを書込む(■)。以上のステップ817〜S19
により、目的とするメイン記憶エリア2Oa中のアドレ
ス00のエリアにCPUのRAMl中の必要データが書
込まれる。Proceeding to the next step 7'' S17, here, the same necessary data as the data written to the first buffer storage area 20b, which is the buffer 1, is stored in the area of the address Oo in the main storage area 2Oa of the memory 2°, that is, the contents of the RAM 1. In the following step 31B, the contents of the area at address 00 in the main storage area 2Oa of the memory 20 are erased (■), and in the following step S19, the necessary data is stored in the area at address OO in the main storage area 2Oa. Write (■). Above steps 817 to S19
As a result, the necessary data in the CPU's RAM 1 is written to the area at address 00 in the target main storage area 2Oa.
更に、次のステップS20でメモリ20のメイン記憶エ
リア20aのアドレス01のエリアに必要データを送り
(■)、その次のステップS21でメイン記憶エリア2
0a中のアドレス01のエリアの内容を消去しく■)、
更にその後のステップS22でメイン記憶エリア20a
中のアドレスO1のエリアにステップS20において送
られたデータを書込む(■)。以上のステップ320〜
322の実行により、バッファ2としての第2のバッフ
ァ記憶エリア20cに書込んだRAM2の内容がメイン
記憶エリア2Oa中のアドレス01のエリアに書込まれ
る。Furthermore, in the next step S20, necessary data is sent to the area at address 01 of the main storage area 20a of the memory 20 (■), and in the next step S21, the necessary data is sent to the area at address 01 of the main storage area 20a of the memory 20.
Delete the contents of the area at address 01 in 0a■),
Furthermore, in the subsequent step S22, the main storage area 20a
The data sent in step S20 is written into the area of address O1 inside (■). Above steps 320~
By executing step 322, the contents of the RAM 2 written to the second buffer storage area 20c as the buffer 2 are written to the area of address 01 in the main storage area 2Oa.
更にその後ステップS23に進み、ここでメモリ20中
のアドレス7Fすなわちバッファ2としての第2のバッ
ファ記憶エリア20cに必要データを送り(■)、次の
ステップS24でメモリ20のアドレス7Fのバッファ
2としての第2のバッファ記憶エリア20cの内容を消
去しく■)、そしてステップS25でアドレス7Fの第
2のハフ
ソファ記憶エリア20cに必要データを書込む(■)。After that, the process proceeds to step S23, where the necessary data is sent to the address 7F in the memory 20, that is, the second buffer storage area 20c as the buffer 2 (■), and in the next step S24, it is sent as the buffer 2 at the address 7F in the memory 20. The contents of the second buffer storage area 20c are erased (■), and necessary data is written to the second buffer storage area 20c at address 7F in step S25 (■).
以上のステップ323〜S25の実行により、バッファ
2としての第2のバッファ記憶エリア20cの未書込フ
ラグがリセットされて、全ての書込み処理動作が終了す
る。By executing steps 323 to S25 above, the unwritten flag of the second buffer storage area 20c as the buffer 2 is reset, and all write processing operations are completed.
コントローラ15のCPUは、電源の瞬断が生じた後電
源が再び立ち上がったときには、第6図のフローチャー
ト図に示す仕事を実行する。CPUはその最初のステッ
プS31においてメモリ20のバッファ2としての第2
のバッファ記憶エリア20cの内容すなわちアドレスデ
ータと未書込フラグを読出す。その後ステップS32に
進み、ここで未書込フラグがセット状態すなわち「1」
となっているか否かを判定する。このステップS32の
判定がNOすなわち未書込フラグがリセットされている
ときには、第5図について上述したフローチャート図中
のステップ323〜25が実行され必要データがメモリ
20のメイン記憶エリア2Oa中の所定のアドレスに正
常に書込まれていると判断して他の仕事に移る。一方、
ステップこ332の判定がYESのときには、未書込フ
ラグがり七ソトされておらず必要データがメモリ20の
メイン記憶エリア2Oa中の所定エリアに正常に書込ま
れていないと判断し、ステップS33に進む。The CPU of the controller 15 executes the work shown in the flowchart of FIG. 6 when the power is turned on again after a momentary power interruption occurs. In its first step S31, the CPU selects the second buffer 2 of the memory 20.
The contents of the buffer storage area 20c, that is, the address data and unwritten flag are read out. After that, the process advances to step S32, where the unwritten flag is set to "1".
Determine whether or not. If the determination in step S32 is NO, that is, the unwritten flag is reset, steps 323 to 25 in the flowchart described above with reference to FIG. It determines that the address has been written correctly and moves on to other work. on the other hand,
When the determination in step S332 is YES, it is determined that the unwritten flag has not been sorted and the necessary data has not been normally written to a predetermined area in the main storage area 2Oa of the memory 20, and the process proceeds to step S33. move on.
ステップS 、’33においては、メモリ2oのバッフ
ァ1としての第1のへソファ記憶エリア20bのデータ
を読出す。このステップS、33の実行により、未書込
みの必要データをcPUに一度取り込み、該ステップS
33において読込んだデータをステップS34でメイン
記憶エリア2Oa中のI」的のアトI7スのエリアに送
る(■)。その後ステップS34でメイン記憶エリア2
Oa中の目的のアドレスのエリアのデータを消去しく■
)、続くステップ゛S35でその目的のアドレスのエリ
ア乙こ必要データを書込む(■)。以トのステップ83
3〜S35の仕事の実行により、バッファ2としての第
2のバッファ記憶エリア20cに記憶と7でいたアドレ
スデータに従っ−C1当該アドレスのメイン記憶エリア
20a中のエリアに、ハ゛ソファ1としての第1のへソ
ファ記憶エリア20 bに記憶していたデータが書込ま
れるよ・)乙こなる。In step S'33, data in the first sofa storage area 20b as the buffer 1 of the memory 2o is read. By executing steps S and 33, the unwritten necessary data is once imported into the cPU, and the step S
In step S34, the data read in step 33 is sent to the area at I7 in the main storage area 2Oa (■). After that, in step S34, the main storage area 2
Delete the data in the area of the target address in Oa■
), and in the following step S35, the necessary data is written in the area of the target address (■). Step 83 below
By executing the work in steps 3 to S35, the second buffer storage area 20c as the buffer 2 is stored, and according to the address data in 7-C1, the first buffer storage area 20c as the high sofa 1 is stored in the area in the main storage area 20a of the address. The data stored in the sofa storage area 20b will be written.
続いてステップS36に進み1、ここでバッファ2とし
ての第2のバノノア記憶エリア20cに必要データを送
り(■)、その後のステップS37でこの第1のバッフ
ァ記憶エリア20bの内容を消去シ(■)、続<ステッ
プS 38 f=:おいてそのバッファ記憶エリア20
0に必要データを書込む(■)。以上のステ、ブS36
〜ステンブS3Bの仕事の実行により、第2のバッファ
記憶エリア20cの未書込フラグがリセ71・される。Next, the process proceeds to step S36, where the necessary data is sent to the second Banonoa storage area 20c as the buffer 2 (■), and in the subsequent step S37, the contents of this first buffer storage area 20b are erased (■). ), continued < step S 38 f=: and the buffer storage area 20
Write the necessary data to 0 (■). Above steps, BU S36
- The unwritten flag of the second buffer storage area 20c is reset 71 by the execution of the work of the stencil S3B.
上述したように、第5図のフローチャー1・図中のステ
ップSLl〜31.6の実行中に電源断が住じても、第
2のバッファ記憶エリア2Oc中の未書込フラグが七ノ
ドされていないので、第6同のフローチャート図中のス
テップS32の判定はNOとなり、データの再書込動作
は行われない。また、第5図のフローチャー1・図中の
ステップ817〜S25の仕事の実行中に電源断が生じ
ると未書込フラグが七ノ1−されているので、電源が復
帰したときには第6図のフローチャート図中のステップ
S32の判定はYESとなり、メイン記憶エリア2Oa
中の目的のアドレスのエリアへの必要データの書込みが
実行される。As mentioned above, even if the power is cut off during the execution of steps SL1 to 31.6 in flowchart 1 of FIG. 5, the unwritten flag in the second buffer storage area 2Oc remains unchanged. Therefore, the determination in step S32 in the sixth flowchart is NO, and the data rewriting operation is not performed. In addition, if the power is cut off during the execution of steps 817 to S25 in flowchart 1 of FIG. 5, the unwritten flag is set to 7-1, so when the power is restored, The determination in step S32 in the flowchart is YES, and the main storage area 2Oa
The necessary data is written to the area of the target address inside.
L記ステップsti〜S ]、 6、ステップSL7〜
S25のいずれにおいても、ユーザから見ると確認キー
を操作した瞬間の電源断であるので、ステップ311〜
S16の実行中に電源断となって有料告知チャンネルに
同調されても、確認キー受付の前に電源断が生じたと考
えればよい。これは電源が復帰した時点で確認キーの受
付が新たに行われ、ステップS1からの動作が再度行わ
れるからである。Steps sti~S], 6, Steps SL7~
In any of S25, from the user's perspective, the power is turned off the moment the confirmation key is operated, so steps 311 to
Even if the power is cut off during the execution of S16 and the user is tuned to a paid notification channel, it is sufficient to consider that the power cut occurs before the confirmation key is accepted. This is because when the power is restored, a new confirmation key is accepted and the operations from step S1 are performed again.
なお」二連した実施例では、CA T V端末器におい
て有料番組の視聴データを記憶するメモリ中のデータを
保護する装置について説明しているが、本発明は一般的
な電気機器のメモリにおし3るデータ保護にも等しく適
応することができる。In addition, in the two consecutive embodiments, a device for protecting data in a memory that stores viewing data of paid programs in a CA TV terminal is explained, but the present invention is applicable to the memory of general electric equipment. It is equally applicable to third-party data protection.
(効 果〕
以上説明したように本発明によれば、電源断によりデー
タがメモリの所定のアドレスに正常に書込みが行われて
いないときには、電源が復帰した時点で、バッファ記憶
エリアに記憶されているデータ、アドレス及びフラグを
利用して正しいブタをメイン記憶エリア所定のアト1/
スのエリアに書込むようになっているため、電気機器内
で発生ずるデータを記憶手段に書込み動作中に電源断が
生じても、記憶手段に書込まれるデータが中途半端な正
しくないものとなることが防止され、ブタの保護が図ら
れる。(Effects) As explained above, according to the present invention, when data is not normally written to a predetermined address in the memory due to a power outage, the data is stored in the buffer storage area when the power is restored. Use the data, addresses and flags to move the correct pig to the main storage area at a given address 1/
Since the data generated in the electrical equipment is written to the storage area, even if the power is cut off while the data is being written to the storage unit, the data written to the storage unit will be incomplete and incorrect. This prevents the pigs from becoming infected and protects the pigs.
第1図は本発明による電気機器におけるデータ保護装置
の基本構成を示すブロック図、第2図は本発明による電
気機器におけるデータ保護装置を適応したCATV端末
器こ構成を示すブロック図、
第3図は第2図中のメモリのマツプ構成を示す説明図、
第4図乃至第6図は第2図中のCPUがプログラムに従
って行う仕事を示すフローチャート図、
第7図は電気機器にデータメモリとして一般に使用され
るEEPROMの書込動作を説明するための説明図であ
る。
15・・・コントローラ、151・・・データ書込手段
、151a・・・第1の書込手段、151b・・・第2
の書込手段、151C・・・第3の書込手段、151d
・・・第4の書込手段、20・・・記憶手段、20a・
・・メイン記憶エリア、20b・・・第1のバッファ記
憶エリア、20c・・・第2のバッファ記憶エリア、2
4・・・電源復帰検出手段。
特許出願人 パイオニア株式会社FIG. 1 is a block diagram showing the basic configuration of a data protection device in electrical equipment according to the present invention, FIG. 2 is a block diagram showing the configuration of a CATV terminal to which the data protection device in electrical equipment according to the invention is applied, and FIG. is an explanatory diagram showing the map structure of the memory in Figure 2, Figures 4 to 6 are flowchart diagrams showing the work that the CPU in Figure 2 performs according to the program, and Figure 7 is a diagram showing the memory map structure in Figure 2. FIG. 2 is an explanatory diagram for explaining a write operation of the EEPROM used. 15... Controller, 151... Data writing means, 151a... First writing means, 151b... Second
writing means, 151C... third writing means, 151d
...Fourth writing means, 20...Storage means, 20a.
...Main storage area, 20b...First buffer storage area, 20c...Second buffer storage area, 2
4...Power return detection means. Patent applicant Pioneer Corporation
Claims (1)
憶エリアと、該メイン記憶エリアに書込もうとする書込
みデータを一時的に記憶する第1のバッファ記憶エリア
と、前記書込データを書込む前記メイン記憶エリア上の
アドレス及びフラグを記憶する第2のバッファ記憶エリ
アとを有する記憶手段と、 該記憶手段にデータを書込むデータ書込手段と、電源断
の復帰を検出する電源復帰検出手段とを備え、 前記データ書込手段は、 前記記憶手段に記憶すべきデータが電気機器内に発生し
たとき、前記第1及び第2のバッファ記憶エリアにメイ
ン記憶エリアに記憶すべきデータと記憶すべきデータを
記憶するメイン記憶エリアのアドレス及び第1のフラグ
とをそれぞれ書込む第1の書込手段と、 該第1の書込手段による書込みが終了した後前記メイン
記憶エリアに記憶すべきデータを書込む第2の書込手段
と、 該第2の書込手段による書込みが終了した後前記第2の
バッファ記憶エリアに前記第1の書込手段により書込ん
だフラグと異なる第2のフラグを書込む第3の書込手段
と、 前記電源復帰検出手段による電源復帰の検出に応じて、
前記第2のバッファ記憶エリアに記憶されているフラグ
が第1のフラグであるとき、前記第1のバッファ記憶エ
リアに記憶されているデータを前記第2のバッファ記憶
エリアに記憶されている前記メイン記憶エリアのアドレ
スに書込む第4の書込手段とを有する、 ことを特徴とする電気機器におけるデータ保護装置。[Scope of Claims] A main storage area for storing a plurality of data generated within the electrical equipment; a first buffer storage area for temporarily storing write data to be written to the main storage area; storage means having a second buffer storage area for storing an address on the main storage area and a flag for writing write data; a data writing means for writing data into the storage means; power return detection means for detecting, and the data writing means stores data in the first and second buffer storage areas in the main storage area when data to be stored in the storage means is generated in the electrical equipment. a first writing means for writing the address of the main storage area storing the data to be stored and the data to be stored, and a first flag, respectively; and after the writing by the first writing means is completed, the main storage a second writing means for writing data to be stored in the area; and a flag written by the first writing means in the second buffer storage area after the writing by the second writing means is completed. a third writing means for writing a second flag different from the second flag; and in response to detection of power restoration by the power restoration detection means,
When the flag stored in the second buffer storage area is the first flag, the data stored in the first buffer storage area is transferred to the main data stored in the second buffer storage area. A data protection device for an electrical device, comprising: fourth writing means for writing to an address in a storage area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63276003A JPH02123443A (en) | 1988-11-02 | 1988-11-02 | Data protecting device for electric apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63276003A JPH02123443A (en) | 1988-11-02 | 1988-11-02 | Data protecting device for electric apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02123443A true JPH02123443A (en) | 1990-05-10 |
Family
ID=17563421
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63276003A Pending JPH02123443A (en) | 1988-11-02 | 1988-11-02 | Data protecting device for electric apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02123443A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07200418A (en) * | 1993-12-28 | 1995-08-04 | Hitachi Maxell Ltd | Data storage device and control method thereof |
| JPH11288446A (en) * | 1998-04-02 | 1999-10-19 | Toshiba Corp | Wireless card, communication device and communication method using the same |
-
1988
- 1988-11-02 JP JP63276003A patent/JPH02123443A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07200418A (en) * | 1993-12-28 | 1995-08-04 | Hitachi Maxell Ltd | Data storage device and control method thereof |
| JPH11288446A (en) * | 1998-04-02 | 1999-10-19 | Toshiba Corp | Wireless card, communication device and communication method using the same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TW560191B (en) | Method and system of identifying software and firmware objects available for download over a network such as a cable television system | |
| CA1278855C (en) | Pay television system | |
| US5644354A (en) | Interactive video system | |
| JPH01220925A (en) | Control software updating system | |
| JPH0216077B2 (en) | ||
| JP4901044B2 (en) | Transmission method and terminal | |
| DE69216778T2 (en) | Device for receiving encrypted signals and recording methods | |
| CN102420953B (en) | Hybrid tuber control | |
| JP2690676B2 (en) | Signal processing method and signal processing device | |
| JPH03280685A (en) | Charged broadcast receiver | |
| JPH02126349A (en) | Data protecting device in electrical equipment | |
| JPH02128588A (en) | Catv terminal equipment | |
| JP3328507B2 (en) | Transmission device, reception device, and communication system | |
| JP2002300556A (en) | Proxy system for tv reception charge payment | |
| JP3540635B2 (en) | Digital television receiver | |
| JP3153738B2 (en) | Descrambler device | |
| US20030022621A1 (en) | Broadcasting information receiving device and broadcasting information receiving method | |
| JP3301669B2 (en) | Billing system for cable TV | |
| JP2000056980A (en) | Program remote correction method, program remote correction device, and terminal device adapted thereto | |
| JP2000152101A (en) | Digital TV broadcast receiver | |
| JP3309011B2 (en) | Communication terminal device | |
| JPH07222132A (en) | Scrambled signal receiver | |
| JPH11234645A (en) | Digital broadcast receiving terminal | |
| KR101325804B1 (en) | Broadcasting program reservation apparatus and method for broadcasting receiver | |
| KR100215435B1 (en) | Program receiving method and apparatus for satellite broadcasting receiver using modem |