JPS6347777A - Electronic counter device - Google Patents

Electronic counter device

Info

Publication number
JPS6347777A
JPS6347777A JP61190836A JP19083686A JPS6347777A JP S6347777 A JPS6347777 A JP S6347777A JP 61190836 A JP61190836 A JP 61190836A JP 19083686 A JP19083686 A JP 19083686A JP S6347777 A JPS6347777 A JP S6347777A
Authority
JP
Japan
Prior art keywords
data
prom
cpu
writing
circuit
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.)
Granted
Application number
JP61190836A
Other languages
Japanese (ja)
Other versions
JPH0828655B2 (en
Inventor
Toshio Nagasaka
利男 長坂
Shizuo Tsuchiya
静男 土屋
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.)
Casio Computer Co Ltd
Casio Electronics Manufacturing Co Ltd
Original Assignee
Casio Computer Co Ltd
Casio Electronics Manufacturing 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 Casio Computer Co Ltd, Casio Electronics Manufacturing Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP61190836A priority Critical patent/JPH0828655B2/en
Publication of JPS6347777A publication Critical patent/JPS6347777A/en
Publication of JPH0828655B2 publication Critical patent/JPH0828655B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Counters In Electrophotography And Two-Sided Copying (AREA)
  • Control Or Security For Electrophotography (AREA)

Abstract

PURPOSE:To prevent a CPU from malfunction at the time of the runaway of the CPU and to protect data in an EE-PROM by permitting the CPU to write data only when specific data are sent. CONSTITUTION:In case of writing data for the number of prints in the EE- PROM (electrical erasable programmable read-only memory) 4, a write control circuit 16 controls the EE-PROM so as to permit it to write data only for an allowable period. Specific data are sent to a write control circuit 16 through an address bus 5 and also sent to the EE-PROM 4 prior to the writing of data for the number of prints. Since the EE-PROM is constituted so as to be permitted to write data only when the specific data are sent, data writing in the EE-PROM is inhibited when a situation such as the runaway of the CPU 1 due to noise e.g. is generated, so that data writing in error can be completely removed and the data in the EE-PROM 4 can be surely protected.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、数値を計数するカウンタ装置、特に電子写真
複写機、ページプリンタのプリント枚数の計数に好適な
電子カウンタ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a counter device for counting numerical values, and particularly to an electronic counter device suitable for counting the number of prints of an electrophotographic copying machine or a page printer.

〔従 来 技 術〕[Traditional technique]

従来、この種の装置としては、電磁カウンタとカムを組
合せたメカカウンタが使用されていたが、最近ではマイ
クロコンピュータ制御の電子カウンタが普及している。
Conventionally, as this type of device, a mechanical counter that is a combination of an electromagnetic counter and a cam has been used, but recently, microcomputer-controlled electronic counters have become popular.

このカウンタは計数値の記憶手段として0MO3のRA
M(ランダムアクセスメモリ)、あるいは0MO3のC
PU (プロセッサ回路)に内蔵されたRAMを用い、
且つこのRAMは電源遮断時にデータが消滅するため、
リチウム電池等によりバソクア、プされる。また、RA
Mの代りにデータの書込み及び消去が可能なEE−FR
OM (エレクトリ力す−イレーサブループログラマブ
ルリードオンリーメモリ)も用いられている。EE−F
ROMを使用した場合、周知の如く、バノクア・ノブ用
の電池は不要である。そして、これらのカウンタのデー
タは発光ダイオードからなる7セグメントの表示器を使
用して表示できるため、メカカウンタに比較して表示品
質が良く、また他の装置とデータの授受6できる利点を
有する。
This counter uses 0MO3 RA as a storage means for counting values.
M (random access memory) or C of 0MO3
Using the RAM built into the PU (processor circuit),
Moreover, data in this RAM disappears when the power is cut off, so
It is powered by lithium batteries, etc. Also, R.A.
EE-FR that can write and erase data instead of M
OM (electronic eraser blue programmable read only memory) is also used. EE-F
If a ROM is used, as is well known, batteries for the Banokwa Knob are not required. Since the data of these counters can be displayed using a 7-segment display made of light emitting diodes, the display quality is better than that of mechanical counters, and it has the advantage of being able to exchange data with other devices.

〔従来技術の問題点〕[Problems with conventional technology]

しかしながら、前述のような0MO3のRAMあるいは
EE−FROMを用いたカウンタ装置では、いずれであ
ってもCPUによって制御するため、もしCPUが暴走
するような事態が生じた場合、カウンタの内容を誤書込
みによって破壊する恐れがある。CPUが暴走した場合
、その検出手段としてウォッチドッグタイマのようなも
のも知られているが、CPUの暴走を検出するには一定
の時間が必要であるため、その時間内にCPUが暴走す
ればやはり前述のようなデータの破壊の恐れがある。従
って、ウォッチドッグタイマを用いても、確実にカウン
タの内容を保護することが困難であった。
However, with counter devices using 0MO3 RAM or EE-FROM as described above, they are controlled by the CPU, so if a situation where the CPU goes out of control occurs, the contents of the counter may be written incorrectly. There is a risk of destruction. A watchdog timer is known as a means of detecting a runaway CPU, but it takes a certain amount of time to detect a runaway CPU, so if the CPU runs out of control within that time, There is still a risk of data destruction as mentioned above. Therefore, even if a watchdog timer is used, it is difficult to reliably protect the contents of the counter.

〔発明の目的〕[Purpose of the invention]

本発明は、上記問題点に鑑み、CPUが暴走した場合で
あっても、確実にデータを保護するようにした電子カウ
ンタ装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide an electronic counter device that reliably protects data even when the CPU goes out of control.

〔発明の要点〕[Key points of the invention]

上記目的は本発明によれば、記1.α手段と、咳記す、
ご手段にカウントデータを害込む書込手段と、特定信号
が出力された場合゛に前記書込手段の前記記憶手段への
データ書込みを許可する制御手段とを有することを特徴
とする電子カウンタ装置を提供することにより達成され
る。
According to the present invention, the above object is achieved as described in 1. α means and cough,
An electronic counter device characterized by having a writing means for corrupting count data in the means, and a control means for permitting the writing means to write data to the storage means when a specific signal is output. This is achieved by providing

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照して詳細に説明する
。第1図は本発明のカウンタ装置の一実施例を示すブロ
ック図である。なお、本実施例は電子写真複写機に使用
されるカウンタ装置を例にとって説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a counter device of the present invention. The present embodiment will be explained by taking as an example a counter device used in an electrophotographic copying machine.

第1図において、1はCPU (プロセッサ回路)であ
り、ROM (リードオンリメモリ)2に格納された制
御プログラムに従って電子写真複写機の動作を制御する
。3はRAM(ランダムアクセスメモリ)、4はEE−
FROMであり、電気的にデータの消去、書込みができ
る機能を有し、後述するようにRAM3、CPUIでデ
ータバス5を通してデータの授受を行うことにより、電
子写真複写機のプリント枚数を計数するカウンタ装置を
構成する。
In FIG. 1, reference numeral 1 denotes a CPU (processor circuit), which controls the operation of the electrophotographic copying machine according to a control program stored in a ROM (read only memory) 2. As shown in FIG. 3 is RAM (random access memory), 4 is EE-
FROM, which has the function of electrically erasing and writing data, and is a counter that counts the number of sheets printed by the electrophotographic copying machine by sending and receiving data through the data bus 5 using the RAM 3 and CPUI, as described later. Configure the device.

また、6はアドレスデコーダであって、アドレスバス7
により前記ROM2、RAM3、EE−PROM4、出
力ラッチ8.9及び入カバソファ10.11、書込制御
回路16に接続されている。
Further, 6 is an address decoder, and an address bus 7
It is connected to the ROM2, RAM3, EE-PROM4, output latch 8.9, input cover sofa 10.11, and write control circuit 16.

そして、アドレスデコーダ16は、CPUIの指令に基
づいて各部のアドレスをデコードするようになっている
。また、出力う7チ8の出力信号は、発光ダイオードを
用いた7セグメントの表示器12に入力され、後述する
ようにCPUIの指令に従ってプリント枚数を表示する
。出力ラッチ9の出力は、負荷12、即ち電子写真プロ
セスを実行する感光体の駆動装置、現像器等の各部品に
出力される。更に入カバソファ10.11には、各種の
センサ14、操作パネル上のキーボードからなる入力部
15からセンサ出力及びプリント枚数が入力される。C
PUIは、この入力に基づき設定枚数のプリントを行う
ように制御すると共に、センサ出力により動作条件を制
御する。
The address decoder 16 is configured to decode the addresses of each part based on instructions from the CPUI. The output signal from the output channel 8 is input to a 7-segment display 12 using light emitting diodes, and the number of prints is displayed in accordance with instructions from the CPUI, as will be described later. The output of the output latch 9 is outputted to a load 12, that is, each component such as a photoreceptor driving device, a developing device, etc., which performs an electrophotographic process. Furthermore, sensor outputs and the number of prints are input to the input cover sofa 10.11 from an input unit 15 consisting of various sensors 14 and a keyboard on an operation panel. C
The PUI controls the printing of a set number of sheets based on this input, and also controls the operating conditions based on the sensor output.

書込制御回路16は、詳しくは後述するが、EE−PR
OM4にプリント枚数データを書込む場合に、許容され
た期間内のみデータの書込みを許可するように制御する
回路である。
Although the write control circuit 16 will be described in detail later, the write control circuit 16 is an EE-PR
This is a circuit that controls to permit data writing only within a permitted period when writing print number data to the OM4.

第2図はその書込制御回路16の具体的構成を示す回路
図である。
FIG. 2 is a circuit diagram showing a specific configuration of the write control circuit 16.

図中17は、CPUIから送出される特定データによっ
てフリフプフロソプ回路(以下、FF回路という)18
にDDEC信号を送出するアンド回路である。特定デー
タは、アドレスバス5を通って書込制御回路16に送出
され、且つこのデータはCPUIがEE−PROM4に
プリント枚数データを書込む前に送出される。また、特
定データとしては、本実施例では16進数で55Hを用
い、2進数では01010101である。この特定デー
タの上位からアンド回路17の各入力端子のD?、D6
.D5・・・Doの順に入力される。
In the figure, 17 indicates a flip-flop circuit (hereinafter referred to as FF circuit) 18 that uses specific data sent from the CPUI.
This is an AND circuit that sends out a DDEC signal to the DDEC signal. The specific data is sent to the write control circuit 16 through the address bus 5, and this data is sent before the CPUI writes the print number data to the EE-PROM 4. Further, as the specific data, in this embodiment, 55H is used in hexadecimal notation, and 01010101 is used in binary notation. D? of each input terminal of the AND circuit 17 from the higher order of this specific data? , D6
.. They are input in the order of D5...Do.

この場合、アンド回路17の入力端子のD+。In this case, the input terminal D+ of the AND circuit 17.

D3.D5.D7にはそれぞれインバータ回路19が設
けられているので、データ55Hが入力されると、アン
ド回路17の出力はハイレベルに立上る。この動作を第
3図に示すタイムチャートにより説明すると、まずCP
U 1がアドレスADECIにデータ55H@書込むと
、データバス5から第3図(alに示すデータ55 I
(が送出され、第3図fb)に示す如く、アンド回路1
7からハイレベルのDDEC信号がFF回路18に送出
される。
D3. D5. Since each D7 is provided with an inverter circuit 19, when data 55H is input, the output of the AND circuit 17 rises to a high level. To explain this operation using the time chart shown in FIG.
When U1 writes data 55H @ to address ADECI, data 55H shown in FIG.
(is sent out, and as shown in FIG. 3 fb), the AND circuit 1
A high level DDEC signal is sent from the FF circuit 7 to the FF circuit 18.

一方、CPUIがアドレスADEC1をアクセスしたの
でアドレスバス7の出力は前記アドレスデコーダ6によ
りデコードされ、第3図(C1に示す如く、A、DEC
lがローレベルとなる。ADEClは、FF回路18の
CK(クロック)端子に入力されており、CPUIが次
のアドレスをアクセスした時にこのADEClが立上る
ことにより前記DDEC(ハイレベル)をFF回路18
に取込む。これにより、第3図(dlに示すように、F
F回路18のQ出力からCPUIがEE−PROM4に
データの書込みを許可するWEN (ライトイネーブル
)信号が出力され、EE−FROM4へのデータ書込み
待機状態となる。WEN信号はナンド回路20に出力さ
れ、この状態でCPU1から第3図(e)に示すWR(
ライト)信号をナンド回路20に出力することにより、
ナンド回路20から第3図(flに示すようなEE−P
WR信号が出力され、EE−PROM4にCPUIから
データバス5を介して出力されているデータが書込まれ
る。
On the other hand, since the CPUI accessed the address ADEC1, the output of the address bus 7 is decoded by the address decoder 6, and as shown in FIG.
l becomes low level. ADECl is input to the CK (clock) terminal of the FF circuit 18, and when the CPU accesses the next address, when this ADECl rises, the DDEC (high level) is input to the FF circuit 18.
Incorporate into. As a result, as shown in Fig. 3 (dl), F
A WEN (write enable) signal is outputted from the Q output of the F circuit 18, which allows the CPU to write data into the EE-PROM 4, and the state is set to a standby state for data writing to the EE-FROM 4. The WEN signal is output to the NAND circuit 20, and in this state, the CPU 1 outputs the WR (
By outputting the write) signal to the NAND circuit 20,
From the NAND circuit 20 to EE-P as shown in FIG.
The WR signal is output, and the data being output from the CPU via the data bus 5 is written into the EE-PROM 4.

また、CPUIは前述のようにEE−FROM4にデー
タを書込んだ後に、ADEC2というアドレスをアクセ
スし、アドレスデコーダ6はこれを受けてデコードする
ことにより、第3図(aに示すように、ADEC2をロ
ーレベルに立下る。ADEC2信号は、アンド回路21
を介して前記FF回路18のR(リセット)端子に入力
され、これによりADE02信号の立下りに同期してF
F回路18の出力(WEN信号)がローレベルに立下る
(第3図(d))、従って、ナンド回路20にローレベ
ルのWEN信号が入力されるため、ナンド回路20は閉
じた状態になり、EE−FROM4のデータ書込みが禁
止される。
Furthermore, after writing data to the EE-FROM 4 as described above, the CPU accesses the address ADEC2, and the address decoder 6 receives and decodes this, thereby converting the data to the ADEC2 as shown in FIG. 3(a). falls to low level.The ADEC2 signal falls to the AND circuit 21
is input to the R (reset) terminal of the FF circuit 18 through the
The output of the F circuit 18 (WEN signal) falls to a low level (FIG. 3(d)). Therefore, the low level WEN signal is input to the NAND circuit 20, so the NAND circuit 20 becomes closed. , data writing to EE-FROM4 is prohibited.

従って、EE−PR0M4にデータを書込む場合に、特
定データを送出したときのみデータの書込みを許可する
構成であるため、例えばノイズによってCPUIが暴走
するような事態が生じた場合、前述の様なデータ書込み
条件が満足されないことになる。この場合、EE−FR
OM4へのデータ書込みは禁止された状態となるため、
EE−FROM4に誤まってデータが書込まれるという
ようなことは全くなくなり、確実にEIF、−PROM
4のデータを保護することができる。
Therefore, when writing data to the EE-PR0M4, the configuration allows data writing only when specific data is sent, so if a situation such as the CPU going out of control due to noise occurs, the above-mentioned problem will occur. The data write conditions will not be satisfied. In this case, EE-FR
Since writing data to OM4 is prohibited,
There is no possibility that data will be written to EE-FROM4 by mistake, and the EIF and -PROM will be reliably written.
4 data can be protected.

なお、第2図中、RES信号は装置の電源投入時の書込
制御回路16を初期状態に設定するためのリセット信号
である。
Note that in FIG. 2, the RES signal is a reset signal for setting the write control circuit 16 to the initial state when the device is powered on.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、EE−FROMに
デー夕を書込む場合に、特定データを送出したときのみ
データの書込みを許可するようにしたので、CPUが暴
走するような事態が生じた場合に、EE−FROMへの
データ書込みを禁止することができる。従って、CPU
が暴走したときにEE−PROMに誤まってデータが書
込まれるような誤動作を防止でき、確実にEE−FRO
Mのデータを保護することができる。
As explained above, according to the present invention, when writing data to EE-FROM, writing of data is permitted only when specific data is sent, so a situation where the CPU goes out of control may occur. In this case, data writing to the EE-FROM can be prohibited. Therefore, the CPU
This prevents malfunctions such as erroneous data being written to the EE-PROM when the EE-FRO goes out of control.
M's data can be protected.

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は本発明の要部の構成を示す回路図、第3図(a
)〜(g)は上記実施例の動作を示すタイムチャートで
ある。 1・・・CPU。 2・・・ROM。 4・・・EE−PROM。 6・・・アドレスデコーダ、 16・・・書込制御回路。 特許出願人  カシオ計算機株式会社 同   上  カシオ電子工業株式会社手続補正書動式
) 昭和61年11月10日 2、発明の名称 電子カウンタ装置 3、補正をする者 事件との関係 特許出願人 住所  東京都新宿区西新宿2丁目6番1号名称  (
144)カシオ計算機株式会社代表者  樫 尾 忠 
雄 住所  東京都東大和市桜が丘2丁目229番地名称 
 カシオ電子工業株式会社 代表者  樫 尾 忠 雄 4、代理人8102=(03) 238−0031住所
  東京都千代田区麹町6丁目1番18号7、補正の内
容 明細書の第10真第1行目〜2行目に「第3図(al〜
fg)は上記実施例の動作を示すタイムチャートである
。」とあるを「第3図は上記実施例の動作を示すタイム
チャートであって、f8)は特定データ55Hの波形図
、(blはアンド回路17から出力されるDDEC信号
の波形図、(C1はFF回路18に入力されるADHC
I信号の波形図、(dlはFF回路18から出力される
WEN信号の波形図、(e)はCPU1から出力される
WR倍信号波形図、(flはナンド回路20から出力さ
れるEEPWR(8号の波形図、(g)はアンド回路2
1に入力されるτ丁丁τ丁信号の波形図である。」と補
正する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a circuit diagram showing the configuration of the main part of the present invention, and FIG.
) to (g) are time charts showing the operation of the above embodiment. 1...CPU. 2...ROM. 4...EE-PROM. 6... Address decoder, 16... Write control circuit. Patent Applicant: Casio Computer Co., Ltd. Above: Casio Electronics Co., Ltd. (Procedural Amendment Written Form) November 10, 1985 2, Title of Invention Electronic Counter Device 3, Relationship with the Person Who Makes the Amendment Case Patent Applicant Address: Tokyo 2-6-1 Nishi-Shinjuku, Shinjuku-ku, Tokyo Name (
144) Tadashi Kashio, Representative of Casio Computer Co., Ltd.
Address: 2-229 Sakuragaoka, Higashiyamato City, Tokyo Name
Casio Electronics Co., Ltd. Representative Tadao Kashio 4, Agent 8102 = (03) 238-0031 Address 6-1-18-7 Kojimachi, Chiyoda-ku, Tokyo, Line 1 of the 10th column of the statement of contents of the amendment ~In the second line, “Figure 3 (al~
fg) is a time chart showing the operation of the above embodiment. "Figure 3 is a time chart showing the operation of the above embodiment, where f8) is a waveform diagram of the specific data 55H, (bl is a waveform diagram of the DDEC signal output from the AND circuit 17, and (C1 is the ADHC input to the FF circuit 18
I signal waveform diagram, (dl is a waveform diagram of the WEN signal output from the FF circuit 18, (e) is a WR multiplied signal waveform diagram output from the CPU 1, (fl is the EEPWR (8 Waveform diagram of No. (g) is AND circuit 2
FIG. 1 is a waveform diagram of a τ-ding-ding τ-ding signal inputted into the circuit 1; ” he corrected.

Claims (1)

【特許請求の範囲】 記憶手段と、該記憶手段にカウントデータを書込む書込
手段と、 特定信号が出力された場合に前記書込手段の前記記憶手
段へのデータ書込みを許可する制御手段とを有すること
を特徴とする電子カウンタ装置。
[Scope of Claims] A storage means, a writing means for writing count data into the storage means, and a control means for permitting the writing means to write data to the storage means when a specific signal is output. An electronic counter device comprising:
JP61190836A 1986-08-14 1986-08-14 Electronic counter device Expired - Fee Related JPH0828655B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61190836A JPH0828655B2 (en) 1986-08-14 1986-08-14 Electronic counter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61190836A JPH0828655B2 (en) 1986-08-14 1986-08-14 Electronic counter device

Publications (2)

Publication Number Publication Date
JPS6347777A true JPS6347777A (en) 1988-02-29
JPH0828655B2 JPH0828655B2 (en) 1996-03-21

Family

ID=16264570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61190836A Expired - Fee Related JPH0828655B2 (en) 1986-08-14 1986-08-14 Electronic counter device

Country Status (1)

Country Link
JP (1) JPH0828655B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5444522A (en) * 1977-09-16 1979-04-09 Ricoh Co Ltd Copying control device
JPH0550787A (en) * 1991-08-23 1993-03-02 Dainippon Printing Co Ltd Record calling method in forming id card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5444522A (en) * 1977-09-16 1979-04-09 Ricoh Co Ltd Copying control device
JPH0550787A (en) * 1991-08-23 1993-03-02 Dainippon Printing Co Ltd Record calling method in forming id card

Also Published As

Publication number Publication date
JPH0828655B2 (en) 1996-03-21

Similar Documents

Publication Publication Date Title
KR940002755B1 (en) One-chip microcomputer
US4858138A (en) Secure vault having electronic indicia for a value printing system
EP0679981A2 (en) Reset circuit of electronic device
US20030074572A1 (en) Battery enclosing encryption key
JPS6242354B2 (en)
GB2075729A (en) Microprogramm control circuit
JPS61239360A (en) Documentation device
JPS6347777A (en) Electronic counter device
JPS5927349A (en) Electronic apparatus
JPS59101099A (en) Device for detecting destruction of storage content
US4796215A (en) Programmable calculator with external memory module and protection against erroneous erasure of data in the module
JPH03204053A (en) Read-only memory
WO2004049349A3 (en) Circuit arrangement with non-volatile memory module and method for registering light-attacks on the non-volatile memory module
JP2000235483A (en) Information processor
JP3166167B2 (en) Microcomputer
JPH01138569A (en) Copying device
JPH05233475A (en) Information processor
JPS63221416A (en) Reset control device for equipment
JPH0334115B2 (en)
JPH05197627A (en) Eeprom write protecting method and information processor
JPH08147262A (en) Microprocessor
KR930007367Y1 (en) Parrity check system
JP2763528B2 (en) Document processing device
JPS56117400A (en) Buffer memory control system
JPS60164860A (en) Data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees