JPH0594234A - Resetting controller - Google Patents

Resetting controller

Info

Publication number
JPH0594234A
JPH0594234A JP3253537A JP25353791A JPH0594234A JP H0594234 A JPH0594234 A JP H0594234A JP 3253537 A JP3253537 A JP 3253537A JP 25353791 A JP25353791 A JP 25353791A JP H0594234 A JPH0594234 A JP H0594234A
Authority
JP
Japan
Prior art keywords
reset
data
eeprom
signal
power
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
JP3253537A
Other languages
Japanese (ja)
Inventor
Shinichi Oi
伸一 大井
Shigeru Tashiro
成 田代
Kazuhisa Oshiro
和久 大城
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
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE 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 Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP3253537A priority Critical patent/JPH0594234A/en
Publication of JPH0594234A publication Critical patent/JPH0594234A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent data in a RAM from being erased by the input of a reset signal to a microcomputer without being saved in an EEPROM as to the microcomputer which saves the data in the EEPROM from the RAM. CONSTITUTION:The resetting controller which resets a reset part in response to the reset signal inputted from a resetting circuit 3 is equipped with a D flip-flop 112 which inputs specific data outputted from the reset part and stores the data temporarily, an OR gate 110 which controls the reset signal inputted corresponding to the signal from this D flip-flop 112, and a decoder 111.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はマイコンシステムのリセ
ット制御装置に関し、特に予定されないリセット信号の
入力によって、当該マイコンシステムのRAMに記憶さ
れたデータが消去されることを未然に防止するリセット
制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reset control device for a microcomputer system, and more particularly to a reset control device for preventing the data stored in the RAM of the microcomputer system from being erased by the unexpected input of a reset signal. Regarding

【0002】[0002]

【従来の技術】一般にマイコンシステムは、CPU,R
OM,RAM,入出力ポートなどで構成される。このマ
イコンシステムを1チップに構成した例を図8に示す。
2. Description of the Related Art Generally, a microcomputer system includes a CPU and an R.
It is composed of OM, RAM, input / output ports and the like. FIG. 8 shows an example in which this microcomputer system is configured in one chip.

【0003】図8に示すマイコンシステム(以下、単に
マイコンという)1は、EEPROM13を内蔵し、電
源端子6を介して入力される電源がOFFになっても必
要なデータが消えないような構成となっている。このマ
イコン1には端子6を介して入力された電源が端子7か
ら供給されるほか、電源がOFFになることを知らせる
電源ON/OFF信号が電圧検出部2より入力されてい
る。
A microcomputer system (hereinafter, simply referred to as a microcomputer) 1 shown in FIG. 8 has a built-in EEPROM 13 so that necessary data is not erased even when a power source input through a power source terminal 6 is turned off. Is becoming The microcomputer 1 is supplied with power supplied from the terminal 6 from the terminal 7, and a power ON / OFF signal for notifying that the power is turned off from the voltage detector 2.

【0004】この電圧検出部2は、IC化されたものが
各種市販されているため詳しい説明は省略するが、機能
としては電源端子6から供給される電源電圧を監視し、
電源がOFFになる時、すなわち電源電圧が低下して所
定レベルより低くなったときにLレベルの信号を出力
し、電源がONになる時、すなわち電源電圧が上昇して
所定レベルより高くなったときにHレベルの信号を出力
するものである。
The voltage detecting section 2 is omitted in detailed description since various ICs are commercially available, but its function is to monitor the power supply voltage supplied from the power supply terminal 6,
When the power is turned off, that is, when the power supply voltage drops and becomes lower than a predetermined level, an L level signal is output, and when the power is turned on, that is, the power supply voltage rises and becomes higher than a predetermined level. Sometimes it outputs an H level signal.

【0005】また、電源端子6を介して入力される電源
がOFFになり、電圧検出部2の電源ON/OFF信号
がLレベルになると、CPU11は電源のOFFによっ
て消去されてしまうRAM14内に存在するデータのう
ち、電源のOFF後も保存する必要のあるデータをEE
PROM13に転送(退避)する処理を実行する。この
ようにして、マイコン1は電源端子6を介して入力され
る電源がOFFになっても必要なデータは保存されるよ
うな処理を行う。
When the power input via the power supply terminal 6 is turned off and the power ON / OFF signal of the voltage detection section 2 becomes L level, the CPU 11 exists in the RAM 14 which is erased by the power OFF. EE data that needs to be saved even after the power is turned off
The process of transferring (saving) to the PROM 13 is executed. In this way, the microcomputer 1 performs processing such that necessary data is saved even when the power supplied via the power supply terminal 6 is turned off.

【0006】また、RAM14からEEPROM13へ
のデータ退避は、電源のOFFによってのみ行われるも
のではなく、例えばRAM14内に蓄積されるデータが
所定のバイト(ビット)数だけ蓄積した後に、データを
EEPROM13に転送(退避)する場合も考えられ
る。
The data saving from the RAM 14 to the EEPROM 13 is not performed only by turning off the power supply. For example, after the data accumulated in the RAM 14 has accumulated a predetermined number of bytes (bits), the data is stored in the EEPROM 13. It may be transferred (saved).

【0007】上述したように、電源のOFF或いはデー
タの蓄積量等に応じたRAM14からEEPROM13
へのデータ退避は、EEPROM13への書き換え回数
に制限のある場合に、書き換え回数を低く抑えてIC寿
命を長くするために行う場合や、EEPROM13のア
クセススピードが遅い場合に、より速度の速いRAM1
4内にデータを常駐しておき、通常はRAM14内のデ
ータを利用する場合に行われる。
As described above, from the RAM 14 to the EEPROM 13 according to the power-off or the amount of data accumulated.
The data is saved to the RAM 13 which has a higher speed when the number of times of rewriting to the EEPROM 13 is limited, when the number of times of rewriting is kept low to extend the IC life, and when the access speed of the EEPROM 13 is slow.
This is normally done when the data in the RAM 14 is made resident and the data in the RAM 14 is used.

【0008】さらにこのマイコン1には、リセット回路
3からのリセット信号が入力されている。このリセット
信号は、電源ON時にシステムの暴走防止のためCPU
11,入出力ポート12をリセットするほか、電源ON
/OFF切り換え時にはEEPROM13の内容が破壊
されるのを防止するために、EEPROM13のイネー
ブル端子(書き込みを許可する端子)にリセット信号を
入力して、EEPROM13への書き込みをデセーブル
にして内容の破壊を防止するようにしている。
Further, the reset signal from the reset circuit 3 is input to the microcomputer 1. This reset signal is used by the CPU to prevent system runaway when the power is turned on.
11, reset the I / O port 12 and power on
In order to prevent the contents of the EEPROM 13 from being destroyed at the time of switching on / off, a reset signal is input to the enable terminal (the terminal that permits writing) of the EEPROM 13 to disable the writing to the EEPROM 13 and prevent the destruction of the contents. I am trying to do it.

【0009】このCPUリセット回路も種々知られてい
るが、ここでは電圧検出部2の出力を利用した一例を図
9に示す。この図9に示すCPUリセット回路は遅延回
路30,抵抗31,スイッチ32,ANDゲート33か
らなる。
Various CPU reset circuits are known, but an example using the output of the voltage detection unit 2 is shown in FIG. The CPU reset circuit shown in FIG. 9 includes a delay circuit 30, a resistor 31, a switch 32, and an AND gate 33.

【0010】まず、スイッチ32が開いた状態で電源が
ON/OFFした場合を考えると、図8の端子6,7、
電圧検出部2の出力、リセット回路3の出力、CPU1
1の処理は図10のタイミング図に示すようになる。す
なわち、電源ON時には、遅延回路30で電圧検出部2
の出力が遅延されマイコンシステムは所定時間リセット
されるほか、EEPROM13も書き込みデセーブル状
態である。一方、電源OFF時には、電圧検出部2から
のLレベルの信号を受けたCPU11は、RAM14内
に存在するデータのうち電源OFF後も保存するデータ
をEEPROM13に転送(退避)する処理を実行す
る。遅延回路30は、この実行時間をより長くこの電圧
検出部からの信号を遅延し、マイコンシステムをリセッ
トし続ける。
First, considering the case where the power is turned on / off with the switch 32 open, the terminals 6, 7 in FIG.
Output of voltage detection unit 2, output of reset circuit 3, CPU 1
The process of 1 is as shown in the timing chart of FIG. That is, when the power is turned on, the delay circuit 30 causes the voltage detection unit 2 to
Is delayed, the microcomputer system is reset for a predetermined time, and the EEPROM 13 is also in the write disable state. On the other hand, when the power is turned off, the CPU 11 that has received the L level signal from the voltage detection unit 2 executes a process of transferring (saving), to the EEPROM 13, the data existing in the RAM 14 that will be saved even after the power is turned off. The delay circuit 30 delays the signal from the voltage detection unit for a longer time to execute the signal, and continues to reset the microcomputer system.

【0011】ここで、スイッチ32はシステム使用者が
リセットを必要としたときに使用するものであり、シス
テム使用者によるリセットを必要としない場合には、抵
抗31,スイッチ32,ANDゲート33は不要であ
る。
The switch 32 is used when the system user needs to reset it. If the system user does not need to reset it, the resistor 31, the switch 32, and the AND gate 33 are unnecessary. Is.

【0012】図11にはEEPROM13を内蔵したマ
イコン1を利用したシステムの一例である有料放送用受
信機を示す。図中、図8と同じ回路には同じ番号をつけ
ている。映像、音声デスクランブラ8を追加した回路で
あり、この映像音声デスクランブラ8は、放送局でスク
ランブル(暗号化)後放送している映像信号及び音声信
号をデスクランブル(解読)する回路ブロックである。
FIG. 11 shows a pay broadcasting receiver which is an example of a system using the microcomputer 1 having the EEPROM 13 built therein. In the figure, the same numbers are assigned to the same circuits as in FIG. This is a circuit to which a video / audio descrambler 8 is added. The video / audio descrambler 8 is a circuit block that descrambles (decrypts) a video signal and an audio signal that are broadcast after being scrambled (encrypted) at a broadcasting station. ..

【0013】この図11に示すような有料放送用受信機
では、デスクランブルの際に、マイコン1はその有料放
送用受信機が視聴しても良いか否かの判定を下す。つま
り、契約がある(受信料を支払っている)有料放送用受
信機の場合は映像音声デスクランブラは映像音声をデス
クランブルするが、契約がない(受信料を支払っていな
い)有料放送用受信機の場合には映像音声デスクランブ
ラ8へデスクランブルするための鍵となるデータを送ら
ないため映像音声デスクランブラ8は映像音声をデスク
ランブルできず、視聴者は番組を視聴することができな
い。
In the pay broadcast receiver as shown in FIG. 11, the microcomputer 1 determines whether or not the pay broadcast receiver can view the data when descrambled. In other words, in the case of a paid broadcast receiver with a contract (paid reception fee), the audiovisual descrambler descrambles the audio and video, but there is no contract (paid reception fee). In this case, since the key data for descrambling is not sent to the video / audio descrambler 8, the video / audio descrambler 8 cannot descramble the video / audio and the viewer cannot watch the program.

【0014】この視聴していても良いか否かの判定材料
となるデータには、有料放送用受信機ごとに異なる(契
約内容によって異なる)個別情報と、放送中の番組に関
する番組情報とがある。これらの情報は例えば衛星放送
の場合、デジタル音声信号に多重して送られてくる。
The data used as the material for determining whether or not the user may watch the program include individual information that differs for each pay broadcast receiver (differs depending on the contract content) and program information regarding the program being broadcast. .. In the case of satellite broadcasting, these pieces of information are multiplexed with a digital audio signal and transmitted.

【0015】映像音声デスクランブラ8は、この個別情
報,番組情報をデジタル音声信号から分離し、マイコン
1へ与える。マイコン1はこの個別情報と番組情報を比
較して契約の有無についての視聴可否判定を行い、視聴
可否判定の結果に応じて鍵となるデータの送信を制御し
ている。
The video / audio descrambler 8 separates the individual information and the program information from the digital audio signal and gives them to the microcomputer 1. The microcomputer 1 compares this individual information with the program information to determine whether or not there is a contract and whether or not there is a contract, and controls the transmission of key data according to the result of the determination as to whether or not the contract is possible.

【0016】上記情報のうち、個別情報は有料放送シス
テムの運用上、例えば1ヶ月に1回から数回程度しか送
られない場合も考えられるため、マイコン1はこの個別
情報をEEPROM13内にメモリし、電源OFF後も
保持するようにしている。
Among the above information, the individual information may be sent only once to several times a month due to the operation of the pay broadcasting system. Therefore, the microcomputer 1 stores this individual information in the EEPROM 13. Also, it is held even after the power is turned off.

【0017】また、有料放送の視聴方法(視聴倹約方
法)には、そのチャンネルの全番組を視聴できるような
フラットフィー契約のほか、視聴者が見たい番組のみ選
択して視聴するペーパビュー契約による方法もある。こ
のペーパビュー契約にはさらに視たい番組を番組単位で
選択し視聴するペーパプログラム方式や視たい番組を時
間単位で選択し視聴するペーパタイム方式がある。
[0017] Further, as a pay-broadcast viewing method (view-saving method), in addition to a flat fee contract in which all programs of the channel can be viewed, a paper view contract in which only the program desired by the viewer is selected for viewing There is also a method. This paper view contract includes a paper program method for selecting and viewing a desired program in program units and a paper time method for selecting and viewing a desired program in time units.

【0018】このようなペーパビュー契約では、ペーパ
プログラム方式,ペーパタイム方式ともに視聴した量に
従って料金の支払いを行うが、支払いの方法の一例とし
ていわゆる前払い方式がある。この前払い方式では、上
記個別情報の一部として送られてくる前払い金情報をメ
モリしておき、視聴した量に従ってメモリされた前払い
金から料金の引き去りを行うようにしている。
In such a paper view contract, both the paper program method and the paper time method are used to pay the fee according to the viewed amount. As an example of the payment method, there is a so-called advance payment method. In this prepayment method, prepayment information sent as a part of the individual information is stored in a memory, and the fare is deducted from the prepayment stored in accordance with the viewed amount.

【0019】上述した個別情報,前払い金情報は、電源
がOFF後も保存しておく必要のある重要データである
ので、EEPROM13にメモリするようにしている。
しかしながら、EEPROM13への書き換え回数に制
限のある場合や、EEPROM13のアクセススピード
が遅い場合には、EEPROM13にメモリしている前
払い金情報を一時、RAM14に移し、このRAM14
に対して前払い金からの料金の引き去りを行い、所定の
時間あるいは所定の数の番組視聴後に、まとめてRAM
14によってEEPROM13内の前払い金情報の書き
換えを行うことも考えられる。この場合、RAM14か
らEEPROM13へのデータの書き換え(データの退
避)は、上述したように電源がOFFになるときや、R
AM14内にデータが所定のバイト(ビット)数蓄積し
た後に行われる。
Since the above-mentioned individual information and advance payment information are important data that need to be stored even after the power is turned off, they are stored in the EEPROM 13.
However, when the number of times of rewriting to the EEPROM 13 is limited or when the access speed of the EEPROM 13 is slow, the prepayment information stored in the EEPROM 13 is temporarily transferred to the RAM 14, and this RAM 14
The charges are deducted from the prepayment and the RAM is collectively collected after watching a predetermined time or a predetermined number of programs.
It is also conceivable that the advance payment information in the EEPROM 13 is rewritten by 14. In this case, the rewriting of data from the RAM 14 to the EEPROM 13 (data saving) is performed when the power is turned off, as described above.
This is performed after a predetermined number of bytes (bits) of data are accumulated in the AM 14.

【0020】[0020]

【発明が解決しようとする課題】しかしながら、上述し
たようにRAM内に電源OFF後も消去しないで保持す
べき重要データが蓄積され、データが所定のバイト(ビ
ット)数だけ蓄積されてEEPROMへ退避処理される
前、或いはICの電源がOFFされてEEPROMへ退
避処理される前に、使用者等によってリセット信号がマ
イコンに入力され、これらRAM内に蓄積されている重
要データがEEPROMへ退避処理がされずに消去され
ることが想定される。
However, as described above, important data that should be retained without being erased even after the power is turned off is stored in the RAM, and a predetermined number of bytes (bits) of data are stored and saved in the EEPROM. Before being processed, or before the IC is powered off and saved in the EEPROM, a reset signal is input to the microcomputer by the user, etc., and important data stored in these RAMs is saved in the EEPROM. It is assumed that they will be erased without being deleted.

【0021】例えば、図11に示す例でペーパビュー契
約で視聴する場合においては、EEPROMにメモリし
ている前払い金情報を一時RAMに移し、所定の時間あ
るいは所定の数の番組視聴後まとめてEEPROM内の
前払い金情報の書き換えを行う場合、EEPROMへの
前払い金情報の書き換えを行う前に、使用者が故意にリ
セット信号をマイコンに入力しRAM内のデータを消去
すると、番組の視聴にも拘らずいつまでもEEPROM
内の前払い金情報が減額されないことになる。
For example, in the case of viewing with the paper view contract in the example shown in FIG. 11, the advance payment information stored in the EEPROM is temporarily transferred to the RAM, and the EEPROM is collectively collected after viewing a predetermined time or a predetermined number of programs. In the case of rewriting the prepayment information in the memory, if the user intentionally inputs the reset signal into the microcomputer and erases the data in the RAM before rewriting the prepayment information in the EEPROM, the program is concerned with watching the program. Forever EEPROM
The prepayment information in will not be reduced.

【0022】本発明は上記課題に鑑みなされたもので、
RAM内のデータをEEPROMへ退避処理するように
したマイコンにおいて、リセット信号のマイコンへの入
力によって、当該データがEEPROMへ退避処理され
ることなく消去されることを防止するシステムを提供す
ることを目的とする。
The present invention has been made in view of the above problems,
An object of the present invention is to provide a system that prevents a data in a RAM from being saved to an EEPROM without being erased without being saved to the EEPROM by inputting a reset signal to the microcomputer. And

【0023】[0023]

【課題を解決するための手段】上記目的を達成するため
に、本発明のリセット制御装置は、被リセット部で出力
される所定のデータを入力し一時的に格納する格納手段
と、この格納手段からの信号に応じて入力されるリセッ
ト信号を制御する制御手段とを有することを要旨とす
る。
In order to achieve the above object, the reset control device of the present invention is a storage means for inputting and temporarily storing predetermined data output from a reset target portion, and this storage means. It has the control means which controls the reset signal input according to the signal from.

【0024】[0024]

【作用】本発明のリセット制御装置は、入力されるリセ
ット信号に応じて被リセット部をリセットする際に、当
該被リセット部がリセットを許容し得る状態ではないと
きに出力される所定のデータが格納手段に一時的に格納
され、この格納手段に当該所定のデータが格納されてい
る間は、制御手段は前記リセット信号の入力を制御して
非リセット部のリセットを防止するようにしている。
According to the reset control device of the present invention, when the reset target portion is reset in response to the input reset signal, the predetermined data output when the reset target portion is not in a state in which the reset target portion can accept the reset is provided. While the predetermined data is temporarily stored in the storage means and the predetermined data is stored in the storage means, the control means controls the input of the reset signal to prevent the non-reset portion from being reset.

【0025】[0025]

【実施例】図1を参照して本発明に係る一実施例を説明
する。図1に示すリセット制御装置は本発明を有料放送
視聴装置のマイコンシステムに採用したものであり、以
下にその構成を詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described with reference to FIG. The reset control device shown in FIG. 1 adopts the present invention to a microcomputer system of a pay broadcast viewing device, and its configuration will be described in detail below.

【0026】まず、図1は図8に示す従来例に対し、リ
セット制御装置としてORゲート110,デコーダ11
1,Dフリップフロップ112及びANDゲート113
を追加したものである。尚、ここで図1に示したマイコ
ン1を含む回路の構成は一例であり、ここに示す回路以
外にもタイマやDMAコントローラ等の任意の回路を含
む場合が想定され、また1チップとして構成しても良く
或いは任意の形態で付属させるようにしても良く、その
構成は特に限定されるものではない。さらに、例えば図
1では本発明の説明に最低限必要な回路のみを図示して
おり、他には例えばクロック発生回路等も省略している
(後述する図2,図3,図4及び図6についても同
様)。
First, FIG. 1 differs from the conventional example shown in FIG. 8 in that an OR gate 110 and a decoder 11 are used as a reset control device.
1, D flip-flop 112 and AND gate 113
Is added. The configuration of the circuit including the microcomputer 1 shown in FIG. 1 is an example, and it is assumed that an arbitrary circuit such as a timer and a DMA controller is included in addition to the circuit shown here, and the circuit is configured as one chip. However, the configuration thereof is not particularly limited. Further, for example, in FIG. 1, only the circuits necessary for the description of the present invention are illustrated, and other components such as a clock generation circuit are omitted (see FIGS. 2, 3, 4, and 6 to be described later). Also for).

【0027】被リセット部としてのマイコンシステム1
は、本実施例においては有料放送視聴装置のセキュリテ
ィ保持装置として機能するものであって、CPU11と
このCPU11とアドレスバス17,データバス18及
びコントロールライン19を介して接続される入出力ポ
ート12、EEPROM13、RAM14、ROM1
5、アドレスデコーダ16、ORゲート110、Dフリ
ップフロップ112及びこのDフリップフロップ112
と接続されるデコーダ111、さらにこのデコーダ11
1のリセットマスク信号出力とリセット回路3からのリ
セット信号出力を入力して、これら2信号の論理積とし
てのリセット信号をCPU11、入出力ポート12及び
EEPROM13へ出力するANDゲート113によっ
て構成される。
Microcomputer system 1 as reset target
In the present embodiment functions as a security holding device of the pay-broadcast viewing device, and includes a CPU 11, an input / output port 12 connected to the CPU 11 via an address bus 17, a data bus 18, and a control line 19, EEPROM13, RAM14, ROM1
5, address decoder 16, OR gate 110, D flip-flop 112 and this D flip-flop 112
A decoder 111 connected to
An AND gate 113 which inputs the reset mask signal output of 1 and the reset signal output from the reset circuit 3 and outputs a reset signal as a logical product of these two signals to the CPU 11, the input / output port 12 and the EEPROM 13.

【0028】電圧検出部2は、電源端子6を介してマイ
コンシステム1の電源入力端子7及び該電圧検出部2に
入力される電力を監視しており、この電力の供給が停止
されると該電圧検出部2から電源がオフになるという信
号がリセット回路3へ出力されると共に、入出力ポート
12を介してCPU11へも出力され、RAM14内に
あるデータのうち管理中の視聴料金に係るデータ或いは
ペーパビュー(プログラム型)方式における無料視聴時
間に係るデータ等の退避の必要なデータ等をEEPRO
M15に退避し、いつ電源供給がなくなっても、データ
の消失が防止されるようにしている。
The voltage detecting section 2 monitors the power input to the power input terminal 7 of the microcomputer system 1 and the voltage detecting section 2 via the power terminal 6, and when the power supply is stopped, the A signal indicating that the power supply is turned off is output from the voltage detection unit 2 to the reset circuit 3 and is also output to the CPU 11 via the input / output port 12, and the data related to the viewing charge under management among the data in the RAM 14 is output. Alternatively, in the paper view (program type) system, data that needs to be saved, such as data related to free viewing time
The data is saved in M15 so as to prevent the loss of data even when the power supply is cut off.

【0029】バックアップコンデンサ5は、このマイコ
ン1がEEPROM13へのデータ退避に必要な時間は
回路が動作可能な電源が必要なため、該コンデンサに蓄
積された電荷を利用している。また、ダイオード4はこ
の電源を供給するためのバックアップコンデンサ5が電
源OFF時に蓄積された電荷が端子6側へ逆流しないよ
うにするためのものである。
The backup capacitor 5 uses the electric charge accumulated in the capacitor because the power supply for operating the circuit is required for the time required for the microcomputer 1 to save the data in the EEPROM 13. Further, the diode 4 prevents the backup capacitor 5 for supplying the power from flowing back to the side of the terminal 6 when the charge accumulated when the power is turned off.

【0030】映像、音声デスクランブラ8は、入力され
るスクランブルされた映像信号をデスクランブルする映
像デスクランブラと、入力されるスクランブルされた音
声信号をデスクランブルする音声デスクランブラによっ
て構成され、放送信号をスクランブルした信号をデスク
ランブルする。
The video / audio descrambler 8 is composed of a video descrambler for descrambles an input scrambled video signal and an audio descrambler for descrambles an input scrambled audio signal, and outputs a broadcast signal. Descramble the scrambled signal.

【0031】CPU11は、有料放送視聴装置全体の制
御を行う。入出力ポート12は、該入出力ポート12を
介して映像、音声デスクランブラ8と当該マイコンシス
テム1とを接続する。EEPROM13は、個別情報の
視聴料金に係るデータの他、電源遮断時にRAM14か
ら退避される上記管理中の視聴料金に係るデータ或いは
ペーパビュー(プログラム型)方式における無料視聴時
間に係るデータ等を一時的に格納する。ROM15は、
主にCPU11で行われる各種制御等のプログラムを格
納している。アドレスデコーダ16は、入出力ポート1
2、EEPROM13、RAM14及びROM15をC
PU11のアドレス空間への割り付けを決定するもので
ある。
The CPU 11 controls the entire pay broadcast viewing apparatus. The input / output port 12 connects the video / audio descrambler 8 and the microcomputer system 1 via the input / output port 12. The EEPROM 13 temporarily stores the data related to the viewing charge of the individual information, the data related to the viewing charge under management, which is saved from the RAM 14 when the power is cut off, or the data related to the free viewing time in the paper view (program type) system. To store. ROM15 is
It mainly stores programs such as various controls performed by the CPU 11. The address decoder 16 has an input / output port 1
2, EEPROM13, RAM14 and ROM15 C
The allocation of the PU 11 to the address space is determined.

【0032】ANDゲート113はアドレスデコーダ1
6及びアドレスバス17と接続され、その論理和信号を
格納手段としてのDフリップフロップ112に出力す
る。すなわち、RAM14内のデータがEEPROM1
3へ退避処理されていない等の理由により、マイコンシ
ステム1がリセットを許容し得る状態ではないときにC
PU11から出力される所定のデータをDフリップフロ
ップ112に出力するものである。デコーダ111はD
フリップフロップ112の出力が所定の値である場合に
Hレベルの信号を出力し、その値以外の場合はLレベル
の信号を出力するものである。
The AND gate 113 is the address decoder 1
6 and the address bus 17, and outputs the logical sum signal to the D flip-flop 112 as a storage means. That is, the data in the RAM 14 is the EEPROM 1
If the microcomputer system 1 is not in a state in which resetting is acceptable due to reasons such as that it has not been saved to C3, C
The predetermined data output from the PU 11 is output to the D flip-flop 112. Decoder 111 is D
When the output of the flip-flop 112 is a predetermined value, an H level signal is output, and when it is other than that value, an L level signal is output.

【0033】ORゲート110は、デコーダ111のリ
セットマスク信号出力とリセット回路3からのリセット
信号出力を入力して、これら2信号の論理積としてのリ
セット信号をCPU11、入出力ポート12及びEEP
ROM13へ出力するものである。尚、CPU11、O
Rゲート110及びデコーダ111は制御手段を構成す
るものである。
The OR gate 110 inputs the reset mask signal output of the decoder 111 and the reset signal output from the reset circuit 3, and outputs a reset signal as a logical product of these two signals to the CPU 11, the input / output port 12 and the EEP.
It is output to the ROM 13. In addition, CPU11, O
The R gate 110 and the decoder 111 constitute a control means.

【0034】次に、図1に示す第1の実施例の作用を説
明する。本実施例ではペーパビュー契約で視聴する場合
であって、かつEEPROM13にメモリしている前払
い金情報を一時RAM14に移し、所定の時間あるいは
所定の数の番組視聴後まとめてEEPROM13内の前
払い金情報の書き換えを行う方法で契約管理を行うよう
にプログラミングされているものとする。
Next, the operation of the first embodiment shown in FIG. 1 will be described. In this embodiment, the advance payment information stored in the EEPROM 13 is temporarily transferred to the RAM 14 in the case of viewing with a paper view contract, and the advance payment information in the EEPROM 13 is collectively collected after viewing a predetermined time or a predetermined number of programs. Shall be programmed to perform contract management by the method of rewriting.

【0035】CPU11は、まずRAM14からEEP
ROM13へ前払い金情報を転送する。そしてEEPR
OM13内の個別情報及びRAM14内の前払い金情報
と現在受信している番組の番組情報を比較し視聴判定す
る。この判定の結果、視聴可である場合、CPU11は
RAM14に所定の値を書き込み、さらにこのデータは
アドレスバス17等を介してDフリップフロップ112
に所定の値として一時的に格納される。これによりデコ
ーダ111はHレベルのリセットマスク信号を出力し、
ORゲート110がこのリセットマスク信号によりリセ
ット回路3から入力されるリセット信号をマスクするた
め、リセット信号がマイコン1に入力されないようにな
る。
The CPU 11 first reads the EEP from the RAM 14.
The advance payment information is transferred to the ROM 13. And EEPR
The individual information in the OM 13 and the advance payment information in the RAM 14 are compared with the program information of the currently received program to judge the viewing. If the result of this determination is that viewing is possible, the CPU 11 writes a prescribed value in the RAM 14, and this data is further transferred to the D flip-flop 112 via the address bus 17 or the like.
Is temporarily stored as a predetermined value. As a result, the decoder 111 outputs an H level reset mask signal,
Since the OR gate 110 masks the reset signal input from the reset circuit 3 by this reset mask signal, the reset signal is prevented from being input to the microcomputer 1.

【0036】次に、電源のOFF或いはデータの蓄積量
等に応じて、CPU11がRAM14内に存在する前払
い金情報のEEPROM13への退避処理を実行した
後、上記RAM14に所定の値以外の値を書き込む。こ
れにより、Dフリップフロップ112に一時的に格納さ
れた値がクリアされ、再びICの外部からマイコン1を
リセット可能にする。ここで、このリセット可能とする
条件は、RAM14内に存在するデータをEEPROM
13に退避するデータが所定バイト数たまった場合など
いろいろ考えられるが、この処理の実行については本実
施例において特に限定しない。
Next, after the CPU 11 saves the advance payment information existing in the RAM 14 to the EEPROM 13 in accordance with the power-off or the amount of accumulated data, a value other than the predetermined value is stored in the RAM 14. Write. As a result, the value temporarily stored in the D flip-flop 112 is cleared, and the microcomputer 1 can be reset again from outside the IC. Here, the condition for enabling the reset is that the data existing in the RAM 14 is stored in the EEPROM.
There are various conceivable cases such as the case where the data saved in 13 has accumulated a predetermined number of bytes, but execution of this processing is not particularly limited in this embodiment.

【0037】ここで、上記第1の実施例で1つ問題とな
る点がある。それは、電源ON時にDフリップフロップ
112の値が不定となり、偶然に上記所定の値になって
しまうと電源ONリセットできない場合があるという点
である。すなわち、マイコン1たち上げの際の、リセッ
トができず初期状態が定まらない状態となることが想定
される。これを解決した第2の実施例を図2に示す。
Here, there is one problem in the first embodiment. The point is that when the power is turned on, the value of the D flip-flop 112 becomes indefinite, and if the value accidentally reaches the predetermined value, the power on cannot be reset. In other words, it is assumed that the initial state cannot be determined because the reset cannot be performed when the microcomputer 1 is moved up. A second embodiment that solves this problem is shown in FIG.

【0038】図2では図1に比べてさらにDフリップフ
ロップ114,ANDゲート115を追加している。ま
た、デコーダ111はDフリップフロップ112,11
4が所定の値である場合にHレベルの信号を出力し、そ
の値以外の場合はLレベルの信号を出力するものであ
る。
In FIG. 2, a D flip-flop 114 and an AND gate 115 are further added as compared with FIG. Further, the decoder 111 includes D flip-flops 112 and 11
When 4 is a predetermined value, an H level signal is output, and when it is other than that value, an L level signal is output.

【0039】このようにDフリップフロップ112,1
14のビット数を増やすことにより電源ON時にDフリ
ップフロップ112,114の値が偶然に上記所定の値
になってしまう確率が下がる。さらに図示しないが、例
えばDフリップフロップを5つ(ビット数=40)にす
れば、Dフリップフロップの値が上記所定の値になる確
率はP=240=1012となりほとんど無視できる値とな
る。
As described above, the D flip-flops 112, 1
Increasing the number of bits of 14 reduces the probability that the values of the D flip-flops 112 and 114 will accidentally become the above predetermined value when the power is turned on. Although not shown, for example, if the number of D flip-flops is 5 (the number of bits = 40), the probability that the value of the D flip-flop will be the above-mentioned predetermined value is P = 2 40 = 10 12 , which is a value that can be almost ignored. ..

【0040】次に、図1に示すDフリップフロップ11
2を市販されている入出力ポート(例えばパラレルI/
Oポート)116で置き換えた第3の実施例について図
3を参照して説明する。CPU11が入出力ポート11
6を介して所定の値を出力すると、デコーダ111はH
レベルの信号を出力し、その値以外の場合はLレベルの
信号を出力する。
Next, the D flip-flop 11 shown in FIG.
2 is a commercially available input / output port (for example, parallel I /
A third embodiment in which the O port) 116 is replaced will be described with reference to FIG. CPU 11 is the input / output port 11
When a predetermined value is output via 6, the decoder 111 outputs H
A level signal is output, and when the value is other than that value, an L level signal is output.

【0041】その他の動作は図1に示す第1の実施例と
略同様なので、詳細な説明は省略する。尚、この入出力
ポート116も電源ON時に出力が不定となり、低い確
率であるものの上記所定の値になる可能性があり、この
場合に電源ONリセットができない虞が生じる。この場
合にも前記第2の実施例と同様に入出力ポートの数を増
やすということで解決できる。
Since the other operations are substantially the same as those of the first embodiment shown in FIG. 1, detailed description thereof will be omitted. The output of the input / output port 116 also becomes indefinite when the power is turned on, and there is a low probability that the output may become the predetermined value. In this case, there is a possibility that the power on reset cannot be performed. In this case as well, the problem can be solved by increasing the number of input / output ports as in the second embodiment.

【0042】尚、図1に示す第1の実施例における映像
音声デスクランブラ8と、入出力ポート12との間に例
えばデスクランブルに使用するランダム信号の発生回路
等、システムのセキュリティーに関係するランダムロジ
ック回路を配設しても良く、また、図1に示すリセット
回路3に代えて、入手の容易な市販される電源ONリセ
ット回路を採用しても良いのはいうまでもない。
A random circuit related to system security, such as a circuit for generating a random signal used for descramble between the video / audio descrambler 8 and the input / output port 12 in the first embodiment shown in FIG. It goes without saying that a logic circuit may be provided, and a commercially available power-on reset circuit that is easily available may be used instead of the reset circuit 3 shown in FIG.

【0043】次に、図4を参照して、第4の実施例につ
いて説明する。
Next, a fourth embodiment will be described with reference to FIG.

【0044】図4は、映像,音声デスクランブラ8から
例えば、デスクランブルに使用するランダム信号の発生
回路等、システムのセキュリティーに関係するランダム
ロジック回路117とパワー(電源)ONリセット回路
34をマイコン1に内蔵した例である。
FIG. 4 shows a random logic circuit 117 related to system security such as a circuit for generating a random signal used for descramble from a video / audio descrambler 8 and a power (power) ON reset circuit 34 in the microcomputer 1. It is an example built in.

【0045】以下、図5のタイミングチャートを参照し
てその動作を説明する。まず、t1 で電源がONされる
と、マイコン1に内蔵されるパワー(電源)ONリセッ
ト回路34が動作しイニシャライズを行なうt1
5 。そのとき同時にカウンター112もリセットさ
れ、デコーダの出力、すなわちリセットマスク信号が
“H”になるため、外部からのリセット、すなわちリセ
ット回路3の出力はORゲート110でマスクされる。
これにより、通常状態では外部からのリセットはできな
いことになる。
The operation will be described below with reference to the timing chart of FIG. First, when the power is turned on at t 1 , the power (power) ON reset circuit 34 incorporated in the microcomputer 1 operates to perform initialization t 1 ~
t 5 . At that time, the counter 112 is also reset at the same time, and the output of the decoder, that is, the reset mask signal becomes "H". Therefore, the external reset, that is, the output of the reset circuit 3 is masked by the OR gate 110.
As a result, external reset cannot be performed in the normal state.

【0046】次にt7 で、電源OFFを検出するとCP
U11からの出力により、RAM14にある特定のデー
タをEEPROM13に退避するシーケンスに入る(t
7 〜t9 )。このとき(t7 )、EEPROM13にデ
ータを書き込む際に必要なチップイネーブル信号(C
E)とライトイネーブル信号(WE)をアドレスデコー
ダ16より発生する。このチップイネーブル信号(C
E)をカウンタ119のクロックとしているので、所定
のデータ数を書き込むとカウンタ119のデコード出
力、すなわち、リセットマスク信号が“L”になるので
外部からのリセットが許可(t9 )される。尚、本実施
例では、被リセット部から出力される所定のデータとし
て、アドレスデコーダ16より発生されるチップイネー
ブル信号(CE)も含むものである。
Next, at t 7 , when power OFF is detected, CP
The output from U11 enters a sequence for saving specific data in the RAM 14 to the EEPROM 13 (t
7 ~t 9). At this time (t 7 ), the chip enable signal (C
E) and a write enable signal (WE) are generated by the address decoder 16. This chip enable signal (C
Since the E) is a clock of the counter 119, decodes the output of the writing predetermined number of data counter 119, i.e., the reset mask signal becomes "L" reset from the outside is permitted (t 9). In this embodiment, the predetermined data output from the reset target portion also includes the chip enable signal (CE) generated by the address decoder 16.

【0047】次に、図6を参照して、第5の実施例につ
いて説明する。図6に示す第5の実施例はリセット信号
発生部121と電源ONリセット信号発生部123とを
具備して、被リセット部としてのマイコン1がリセット
を許容し得る状態ではないときにCPU11から出力さ
れる所定のデータをマイコン1の外部から与えるように
したものである。
Next, a fifth embodiment will be described with reference to FIG. The fifth embodiment shown in FIG. 6 includes a reset signal generator 121 and a power ON reset signal generator 123, and outputs from the CPU 11 when the microcomputer 1 as the reset target is not in a state in which resetting is acceptable. The predetermined data is provided from outside the microcomputer 1.

【0048】[0048]

【発明の効果】以上説明したように本発明のリセット制
御装置は、入力されるリセット信号に応じて被リセット
部をリセットする際に、RAM内のデータがEEPRO
Mへ退避処理されていない等の理由により、当該被リセ
ット部がリセットを許容し得る状態ではないときに被リ
セット部から出力される所定のデータが格納手段に一時
的に格納されている間は、当該リセット信号によるリセ
ットを防止するようにしたので、RAM内のデータがE
EPROMへ退避処理されることなく消去されることが
防止される等の効果を奏するものである。
As described above, in the reset control device of the present invention, when the portion to be reset is reset according to the input reset signal, the data in the RAM is EEPRO.
While the predetermined data output from the reset target is temporarily stored in the storage unit when the reset target is not in a state in which the reset target can be reset due to the reason that the reset processing is not performed in M, for example. Since the reset by the reset signal is prevented, the data in the RAM is
This has the effect of preventing erasure without being saved in the EPROM.

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

【図1】本発明のリセット制御装置に係る第1の実施例
を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a reset control device of the present invention.

【図2】本発明に係る第2の実施例を示し、図1に示す
リセット制御装置の安定性を高めるための構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing a second embodiment according to the present invention and showing a configuration for enhancing the stability of the reset control device shown in FIG.

【図3】本発明に係る第3の実施例を示し、図1に示す
リセット制御装置のDフリップフロップを入出力ポート
で置き換えた場合の構成を示すブロック図である。
FIG. 3 is a block diagram showing a third embodiment according to the present invention and showing a configuration when the D flip-flop of the reset control device shown in FIG. 1 is replaced with an input / output port.

【図4】本発明に係る第4の実施例を示し、図1に示す
リセット制御装置のDフリップフロップをカウンタで置
き換えた場合の構成を示すブロック図である。
FIG. 4 is a block diagram showing a fourth embodiment according to the present invention and showing a configuration in which the D flip-flop of the reset control device shown in FIG. 1 is replaced with a counter.

【図5】図4に示す第4の実施例の動作を示すタイミン
グチャートである。
5 is a timing chart showing the operation of the fourth embodiment shown in FIG.

【図6】本発明に係る第5の実施例を示すブロック図で
ある。
FIG. 6 is a block diagram showing a fifth embodiment according to the present invention.

【図7】図6の第5の実施例に示したリセット信号発生
部の内部構成を示した回路図である。
FIG. 7 is a circuit diagram showing an internal configuration of a reset signal generator shown in a fifth embodiment of FIG.

【図8】従来のマイコンシステム例を示すブロック図で
ある。
FIG. 8 is a block diagram showing an example of a conventional microcomputer system.

【図9】図8に示したリセット回路の内部構成を示した
回路図である。
9 is a circuit diagram showing an internal configuration of the reset circuit shown in FIG.

【図10】図8に示した従来のマイコンシステムの動作
を示すタイミングチャートである。
10 is a timing chart showing the operation of the conventional microcomputer system shown in FIG.

【図11】図8に示した従来のマイコンシステムの応用
例を示すブロック図である。
11 is a block diagram showing an application example of the conventional microcomputer system shown in FIG.

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

1 マイコンシステム 2 電圧検出部 3 リセット回路 4 ダイオード 5 コンデンサ 6 電源端子 7 電源入力端子 8 映像、音声デスクランブラ 9 電源端子 11 CPU 12 入出力ポート 13 EEPROM 14 RAM 15 ROM 16 アドレスデコーダ 17 アドレスバス 18 データバス 19 コントロールライン 30 遅延回路 31 抵抗 32 スイッチ 33 ANDゲート 34 パワーオンリセット回路 110 ORゲート 111 デコーダ 112 Dフリップフロップ 113 ANDゲート 114 Dフリップフロップ 115 ANDゲート 116 入出力ポート 117 ランダムロジック回路 119 カウンタ 121 リセット信号発生部 123 電源ONリセット信号発生部 1 Microcomputer system 2 Voltage detector 3 Reset circuit 4 Diode 5 Capacitor 6 Power supply terminal 7 Power supply input terminal 8 Video and audio descrambler 9 Power supply terminal 11 CPU 12 Input / output port 13 EEPROM 14 RAM 15 ROM 16 Address decoder 17 Address bus 18 Data Bus 19 Control line 30 Delay circuit 31 Resistance 32 Switch 33 AND gate 34 Power-on reset circuit 110 OR gate 111 Decoder 112 D flip-flop 113 AND gate 114 D flip-flop 115 AND gate 116 Input / output port 117 Random logic circuit 119 Counter 121 Reset Signal generator 123 Power ON reset signal generator

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大城 和久 東京都港区新橋3丁目3番9号 東芝エ ー・ブイ・イー株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuhisa Oshiro 3-3-9 Shimbashi, Minato-ku, Tokyo Inside Toshiba Abu E., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力されるリセット信号に応じて被リセ
ット部をリセットするリセット制御装置において、 被リセット部で出力される所定のデータを入力し一時的
に格納する格納手段と、 この格納手段からの信号に応じて前記入力されるリセッ
ト信号を制御する制御手段とを有することを特徴とする
リセット制御装置。
1. A reset control device for resetting a reset target portion in response to an input reset signal, and storing means for inputting and temporarily storing predetermined data output from the reset target portion. And a control unit that controls the input reset signal in accordance with the signal.
JP3253537A 1991-10-01 1991-10-01 Resetting controller Pending JPH0594234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3253537A JPH0594234A (en) 1991-10-01 1991-10-01 Resetting controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3253537A JPH0594234A (en) 1991-10-01 1991-10-01 Resetting controller

Publications (1)

Publication Number Publication Date
JPH0594234A true JPH0594234A (en) 1993-04-16

Family

ID=17252751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3253537A Pending JPH0594234A (en) 1991-10-01 1991-10-01 Resetting controller

Country Status (1)

Country Link
JP (1) JPH0594234A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149419A (en) * 1997-11-17 1999-06-02 Yaskawa Electric Corp Method and device for backing up data
WO2011099117A1 (en) * 2010-02-09 2011-08-18 三菱電機株式会社 Programmable controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149419A (en) * 1997-11-17 1999-06-02 Yaskawa Electric Corp Method and device for backing up data
WO2011099117A1 (en) * 2010-02-09 2011-08-18 三菱電機株式会社 Programmable controller

Similar Documents

Publication Publication Date Title
US6615329B2 (en) Memory access control system, apparatus, and method
US6711683B1 (en) Compresses video decompression system with encryption of compressed data stored in video buffer
RU2154353C2 (en) Unit in receiver to process recorded or transmitted audiocomponents, videocomponents and data components of program signal
KR101110994B1 (en) Method and apparatus for protecting an integrated circuit from erroneous operation
EP1845470B1 (en) Multiple purpose integrated circuit
US4384326A (en) Memory security circuit using the simultaneous occurance of two signals to enable the memory
JPH06197341A (en) Method for access control
US20080189557A1 (en) Method and architecture for restricting access to a memory device
US20070118761A1 (en) Semiconductor integrated circuit device, program delivery method, and program delivery system
EP0961193A2 (en) Secure computing device
JPH08305558A (en) Ciphering program arithmetic unit
JPH03266051A (en) Security system for software
KR20040111553A (en) System for maintaining eeprom enable during de-energized state
US6757829B1 (en) Program debugging system for secure computing device having secure and non-secure modes
US20050010810A1 (en) Ownership tag on power up screen
US7360049B2 (en) Non-volatile semiconductor memory device having a password protection function
JPH11134258A (en) Method and device for providing access protection in integrated circuit
US5754647A (en) Software protection apparatus and the method of protection utilizing read-write memory means having inconsistent input and output data
GB2132860A (en) Conditional-access broadcast transmission
US8060929B2 (en) Method and system for providing security to processors
JPH0594234A (en) Resetting controller
KR101556243B1 (en) Broadcasing processing apparatus and contrl method of the same
US7542567B2 (en) Method and apparatus for providing security in a data processing system
US5831347A (en) Apparatus for determining if the duration of a power failure exceeded predetermined limits
JPH05143468A (en) Restoring device for power source turn-off