JPH06283998A - Counting device - Google Patents

Counting device

Info

Publication number
JPH06283998A
JPH06283998A JP6629193A JP6629193A JPH06283998A JP H06283998 A JPH06283998 A JP H06283998A JP 6629193 A JP6629193 A JP 6629193A JP 6629193 A JP6629193 A JP 6629193A JP H06283998 A JPH06283998 A JP H06283998A
Authority
JP
Japan
Prior art keywords
area
numerical values
counting
areas
management
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
JP6629193A
Other languages
Japanese (ja)
Other versions
JP3335210B2 (en
Inventor
Yukihiro Nezu
幸宏 根津
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP6629193A priority Critical patent/JP3335210B2/en
Publication of JPH06283998A publication Critical patent/JPH06283998A/en
Application granted granted Critical
Publication of JP3335210B2 publication Critical patent/JP3335210B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To secure the reliability of data without backing up a large-capacity power source. CONSTITUTION:An EEPROM 2 is connected to the serial port of a microcomputer 1 for equipment control and a capacitor 3 is connected to the power source (Vcc) terminal of the EEPROM 2; even if the main power source is turned during writing operation for data, the power source of the EEPROM 2 is backed up only for the period of time until the wiring operation ends. Successive of copying sheets of data of an electronic copying machine are stored in plural areas of the EEPROM 2 and each area is provided with a carry control to make corrections at the time of power source input even if the power is broken on the way of the writing operation.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えば、電子複写機
のカウンタデータなどのように連続した数値を計数する
計数装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a counting device for counting continuous numerical values such as counter data of electronic copying machines.

【0002】[0002]

【従来の技術】電子複写機等の電子機器における計数装
置では、不揮発性のデータメモリとしてEEPROMが
用いられることが多い。中でもシリアル入出力EEPR
OMは、I/Oピンが少なくて済み、価格が安いなどの
メリットがありよく用いられている。
2. Description of the Related Art In a counting device in electronic equipment such as an electronic copying machine, an EEPROM is often used as a nonvolatile data memory. Above all, serial input / output EEPR
OM is often used because it has few I / O pins and is low in price.

【0003】シリアルEEPROMでは、ストア動作
(書込動作)を入力させると、次のコマンドが受け付け
可能となるまでにしばらくの時間(10mS程度)を必
要とする。従って複数のデータを連続して書込むような
とき、書込み途中で電源オフなどが発生すると、例え
ば、最初のデータは新しいものに書き替わっているの
に、次のデータは古いままというような不具合が発生す
る。
In the serial EEPROM, when a store operation (write operation) is input, it takes some time (about 10 mS) before the next command can be accepted. Therefore, when writing multiple data continuously, if the power is turned off during writing, for example, the first data is overwritten with new data, but the next data remains old. Occurs.

【0004】このような現象を防ぐために、例えば、電
源のバックアップを持たせて連続したデータ書込みの時
間を保証するようなことも考えられるが、この場合には
マイクロコンピュータ等の動作も保証しなければなら
ず、負荷が大きく、かなり大きな容量が必要となる。こ
のような大きな容量を確保すると、オフ時の安全性(活
線が長時間残る)や、電源オン時の立上り時間、突入電
流などの問題が発生する。
In order to prevent such a phenomenon, for example, a backup of the power source may be provided to guarantee the time of continuous data writing, but in this case, the operation of the microcomputer or the like must also be guaranteed. It has a large load and requires a considerably large capacity. If such a large capacity is secured, problems such as safety at the time of off (live line remains for a long time), rise time at the time of power-on, and inrush current occur.

【0005】[0005]

【発明が解決しようとする課題】上記したように、計数
装置として複数のデータを連続して書込むようなとき、
書込み途中で電源オフなどが発生すると、例えば、最初
のデータは新しいものに書き替わっているのに、次のデ
ータは古いままというような不具合が発生し、データが
信頼できないという問題がある。これを防ぐために、大
容量の電源バックアップを確保して連続したデータ書込
みの時間を保証する場合は、オフ時の安全性(活線が長
時間残る)や、電源オン時の立上り時間、突入電流など
の問題があった。そこで、この発明は、大容量の電源バ
ックアップを必要とせず、データの信頼性を確保する計
数装置を提供することを目的とする。
As described above, when a plurality of data are continuously written as the counting device,
If the power is turned off during writing, for example, the first data is overwritten with new data, but the next data remains old, causing a problem that the data is unreliable. To prevent this, when a large-capacity power backup is secured to guarantee continuous data writing time, safety at off (live line remains for a long time), rise time at power on, inrush current There was such a problem. Therefore, an object of the present invention is to provide a counting device that does not require a large-capacity power source backup and ensures the reliability of data.

【0006】[0006]

【課題を解決するための手段】この発明の計数装置は、
連続する数値を計数する計数手段と、この計数手段で計
数された数値を複数のエリアに記憶する記憶手段と、こ
の記憶手段に記憶される各エリア毎に管理エリアを設
け、上記計数手段で計数された連続する数値が下位エリ
アから上位エリアへ桁上りする際、下位エリアと上位エ
リアに設けられたそれぞれの管理エリアの数値を更新す
る更新手段と、この更新手段で更新されたそれぞれの管
理エリアの数値と上記計数手段で計数された数値とを上
記記憶手段に書込む書込手段と、上記記憶手段に記憶さ
れている複数のエリアの数値を所定のタイミングで読出
す読出手段と、この読出手段で読出された複数のエリア
における上位エリアと下位エリアに設けられている管理
エリアの数値を比較する比較手段とから構成されてい
る。
The counting device of the present invention comprises:
A counting means for counting continuous numerical values, a storage means for storing the numerical values counted by the counting means in a plurality of areas, and a management area for each area stored in the storage means are provided. Updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area when the consecutive consecutive numerical values carry from the lower area to the upper area, and the respective management areas updated by the updating means And a reading means for reading the numerical values of a plurality of areas stored in the storage means at a predetermined timing, and the reading means. It is composed of a comparison means for comparing the numerical values of the management area provided in the upper area and the lower area in the plurality of areas read by the means.

【0007】この発明の計数装置は、連続する数値を計
数する計数手段と、この計数手段で計数された数値を複
数のエリアに記憶する記憶手段と、この記憶手段に記憶
される各エリア毎に管理エリアを設け、上記計数手段で
計数された連続する数値が下位エリアから上位エリアへ
桁上りする際、下位エリアと上位エリアに設けられたそ
れぞれの管理エリアの数値を更新する更新手段と、この
更新手段で更新されたそれぞれの管理エリアの数値と上
記計数手段で計数された数値とを上記記憶手段に書込む
書込手段と、上記記憶手段に記憶されている複数のエリ
アの数値を所定のタイミングで読出す読出手段と、この
読出手段で読み出された複数のエリアにおける上位エリ
アと下位エリアに設けられている管理エリアの数値を比
較する比較手段と、この比較手段で比較された結果、不
一致の場合、上記上位エリアまたは下位エリアの数値と
管理エリアの数値とを補正する補正手段と、この補正手
段で補正されたエリアの数値と管理エリアの数値とで上
記記憶手段に記憶されている上記補正されたエリアの数
値と管理エリアの数値とを書換える書換手段とから構成
されている。
The counting device of the present invention comprises: counting means for counting continuous numerical values; storage means for storing the numerical values counted by the counting means in a plurality of areas; and for each area stored in the storage means. A management area is provided, and when the consecutive numerical values counted by the counting means carry from the lower area to the upper area, updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area, and The writing means for writing the numerical values of the respective management areas updated by the updating means and the numerical values counted by the counting means into the storage means, and the numerical values of the plurality of areas stored in the storage means are set to predetermined values. A reading means for reading at a timing, and a comparing means for comparing the numerical values of the management areas provided in the upper area and the lower area in the plurality of areas read by the reading means. As a result of comparison by this comparison means, if they do not match, the correction means for correcting the numerical value of the upper area or the lower area and the numerical value of the management area, and the numerical value of the area and the numerical value of the management area corrected by this correction means And the rewriting means for rewriting the corrected area numerical value and the management area numerical value stored in the storage means.

【0008】[0008]

【作用】この発明は、連続する数値を計数手段で計数
し、この計数された数値を記憶手段の複数のエリアに記
憶し、この記憶される各エリア毎に管理エリアを設け、
上記計数手段で計数された連続する数値が下位エリアか
ら上位エリアへ桁上りする際、下位エリアと上位エリア
に設けられたそれぞれの管理エリアの数値を更新し、更
新されたそれぞれの管理エリアの数値と上記計数手段で
計数された数値とを上記記憶手段に書込み、上記記憶手
段に記憶されている複数のエリアの数値を所定のタイミ
ングで読出し、読出された複数のエリアにおける上位エ
リアと下位エリアに設けられている管理エリアの数値を
比較するようにしたものである。
According to the present invention, continuous numerical values are counted by the counting means, the counted numerical values are stored in a plurality of areas of the storage means, and a management area is provided for each of the stored areas.
When the consecutive numerical values counted by the above counting means carry from the lower area to the upper area, the numerical values of the respective management areas provided in the lower area and the upper area are updated, and the updated numerical values of the respective management areas. And the numerical values counted by the counting means are written in the storage means, the numerical values of the plurality of areas stored in the storage means are read out at a predetermined timing, and the upper area and the lower area in the plurality of read areas are read. The numerical values of the management areas provided are compared.

【0009】[0009]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1は、この発明の計数装置を適用する電
子複写機の複写枚数カウンタとしてシリアルEEPRO
Mを使用する場合を示すものである。すなわち、電子複
写機の複写枚数カウンタは、機器制御を行うマイクロコ
ンピュータ1、データの書込み、読出しを行うEEPR
OM2、EEPROM2の電源端子に接続され、EEP
ROM2の電源をバックアップするコンデンサ3、図示
しない読取部のスキャンモータ4、スキャンモータ4を
ドライブするドライバ5、図示しない画像形成部のメイ
ンモータ6、およびメインモータ6をドライブするドラ
イバ7とから構成されている。
FIG. 1 shows a serial EEPRO as a copy number counter of an electronic copying machine to which the counting device of the present invention is applied.
The case where M is used is shown. That is, the copy number counter of the electronic copying machine is the microcomputer 1 for controlling the equipment, and the EEPR for writing and reading data.
EEP connected to the power supply terminals of OM2 and EEPROM2
It is composed of a capacitor 3 for backing up the power source of the ROM 2, a scan motor 4 for a reading unit (not shown), a driver 5 for driving the scan motor 4, a main motor 6 for an image forming unit (not shown), and a driver 7 for driving the main motor 6. ing.

【0011】EEPROM2は、機器制御用のマイクロ
コンピュータ1のシリアルポートに接続され、データの
書込み、読出しができるように接続されている。また、
EEPROM2の電源(Vcc)端子にはコンデンサ3
が接続されていて、もしもデータの書込動作中に全体の
電源がオフされたとしても、書込動作が終了するまでの
時間だけEEPROM2の電源をバックアップするよう
になっている。
The EEPROM 2 is connected to the serial port of the microcomputer 1 for device control and is connected so that data can be written and read. Also,
A capacitor 3 is connected to the power supply (Vcc) terminal of the EEPROM 2.
Is connected, and even if the entire power source is turned off during the data writing operation, the power source of the EEPROM 2 is backed up for the time until the writing operation is completed.

【0012】EEPROM2は、例えば93C46のよ
うな機種の場合、16ビット単位でデータを扱うように
なっている。一方、電子複写機のカウンタは、6桁(0
00000〜999999)のデータで用いられてい
る。
In the case of a model such as 93C46, the EEPROM 2 handles data in units of 16 bits. On the other hand, the counter of the electronic copying machine has 6 digits (0
0000-999999).

【0013】従って、このカウンタデータを1つの記憶
単位内(16ビット=約64000)で記憶することは
できないので、2つのエリアにまたがって配置されるこ
とになる。
Therefore, since this counter data cannot be stored in one storage unit (16 bits = about 64000), the counter data is arranged over two areas.

【0014】これを例えば、図2の(a)に示すように
3桁ずつに分け、上位3桁と下位3桁とが別々の上位エ
リアと下位エリアとに記憶されるようにした場合につい
て説明する。(それぞれ、000〜999をカウントす
る)
For example, as shown in FIG. 2 (a), this is divided into 3 digits, and the upper 3 digits and the lower 3 digits are stored in different upper and lower areas. To do. (Counting 000 to 999 respectively)

【0015】EEPROM2で構成される複写枚数カウ
ンタは、1枚複写が行なわれる毎にマイクロコンピュー
タ1によってカウントアップされるようになっている。
下位エリアが0〜998の範囲でデータの書込みが行わ
れている限り、上位エリアに変動はなく、データを保存
するのは下位エリアのみでよい。
The copy number counter composed of the EEPROM 2 is incremented by the microcomputer 1 every time one copy is made.
As long as data is written in the lower area in the range of 0 to 998, the upper area does not change and only the lower area needs to store the data.

【0016】さて、ここでカウンタ値が「999」から
「1000」になるとき、即ち下位桁から上位桁への桁
上がりが発生するとき、上位エリアも下位エリアもデー
タが更新されるので、両方共に書込む必要がある。
Now, when the counter value changes from "999" to "1000", that is, when a carry from the lower digit to the upper digit occurs, the data is updated in both the upper area and the lower area. It is necessary to write together.

【0017】図2の(a)において、例えば、下位エリ
アから書込みを始めて次に上位エリアを書込むとして、
正常に動作した場合、まず、下位エリアが「999」か
ら「000」と書込まれ、続いて上位エリアが「00
0」から「001」と書込まれ、カウンタの値は「00
1000」となる。
In FIG. 2A, for example, if writing is started from the lower area and then the upper area is written,
When operating normally, first, the lower area is written as "999" to "000", and then the upper area is written as "00".
"0" to "001" are written, and the counter value is "00".
1000 ".

【0018】ところが下位エリアから書込みを始めて、
この下位エリアの書込動作中に電源がオフされた場合、
上位エリアの書込みが実行されなくなる。すなわち、下
位エリアが「999」から「000」と書込まれた後、
電源オフとなって上位桁が書込まれず「000」のまま
で、カウンタの値は「000000」となり、正常値か
ら1000ずれることになる。
However, starting writing from the lower area,
If the power is turned off during the write operation in this lower area,
Writing to the upper area will not be executed. That is, after the lower area is written from "999" to "000",
When the power is turned off and the upper digit is not written and remains "000", the counter value becomes "000000", which is 1000 deviation from the normal value.

【0019】このような現象を防ぐために、上述したよ
うに電源のバックアップをより長くすることも考えられ
るが、この場合にはマイクロコンピュータ1の動作も保
証しなければならず、かなり大きな容量を必要とする。
(注:シリアルEEPROMは書込みのコマンドが出さ
れれば、その後、マイクロコンピュータの動作が停止し
ても動作を続ける。但しEEPROMそのものの電源は
供給されなければならない。また、送信されたデータは
確実に記憶される)このような大きな容量を設けた場
合、電源オフ時の安全性の問題や、電源オン時の立上が
り時間、突入電流などの問題が副作用として発生する。
そこで本発明では、データの中に桁上がりの管理エリア
を設け、データの信頼性を確保すると共に、大容量の電
源バックアップを不要とするものである。
In order to prevent such a phenomenon, it is conceivable to lengthen the backup of the power source as described above, but in this case, the operation of the microcomputer 1 must be guaranteed and a considerably large capacity is required. And
(Note: If a write command is issued to the serial EEPROM, it will continue to operate even after the microcomputer stops operating. However, the power of the EEPROM itself must be supplied. If such a large capacity is provided, side effects such as safety problems at power-off, rise time at power-on, and inrush current occur.
Therefore, according to the present invention, a carry management area is provided in the data to ensure the reliability of the data and eliminate the need for a large-capacity power source backup.

【0020】図2の(b)において、本実施例のEEP
ROM2は16ビットのエリアに3桁の数値を保存すれ
ばよいので、BCD(2進化10進コード)を使ったと
しても4ビットのエリアが余り、この4ビットのエリア
を桁上がり管理エリアとして使用し、通常は上位桁の管
理エリア、下位桁の管理エリアともに同じデータが書込
まれる。次に、図3、図4のフローチャートを参照して
動作を説明する。
In FIG. 2B, the EEP of this embodiment
ROM2 only needs to store a 3-digit number in a 16-bit area, so even if BCD (binary coded decimal code) is used, a 4-bit area remains, and this 4-bit area is used as a carry management area. However, the same data is usually written in the upper digit management area and the lower digit management area. Next, the operation will be described with reference to the flowcharts of FIGS.

【0021】まず、EEPROM2は、1枚複写が行な
われる毎にマイクロコンピュータ1によって下位桁が
「+1」カウントアップされる。下位桁が「999」と
なって桁上げになると、下位桁と上位桁の管理エリアが
「+1」カウントアップされる。すなわち、下位エリア
は管理エリアを含めて「0999」から「1000」と
書込まれ、上位エリアは管理エリアを含めて「000
0」から「1001」と書込まれ、カウンタの値は管理
エリアを除いて「001000」となる。
First, in the EEPROM 2, the lower digit is incremented by "+1" by the microcomputer 1 every time one copy is made. When the lower digit is “999” and a carry is carried out, the management area of the lower digit and the upper digit is incremented by “+1”. That is, the lower area is written as "0999" to "1000" including the management area, and the upper area is written as "000" including the management area.
"0" to "1001" are written, and the value of the counter is "001000" excluding the management area.

【0022】ところが下位エリアから書込みを始めて、
この下位エリアの書込動作中に電源がオフされた場合、
上位エリアの書込みが実行されなくなる。すなわち、下
位エリアは管理エリアを含めて「0999」から「10
00」と書込まれた後、電源オフとなって上位エリアが
管理エリアを含めて書込まれず「0000」のままとな
る。
However, starting writing from the lower area,
If the power is turned off during the write operation in this lower area,
Writing to the upper area will not be executed. That is, the lower areas including the management area are from "0999" to "10".
After "00" is written, the power is turned off and the upper area including the management area remains "0000" without being written.

【0023】この時点でのカウンタの値は、上記同様に
「000000」であるが、管理エリアについては、下
位桁が「1」で上位桁が「0」であり、上位桁/下位桁
で不一致となっている。この管理エリアの数値の不一致
によって、書込み途中で電源オフがあったことが判断さ
れる。
The value of the counter at this point is "000000" as above, but in the management area, the lower digit is "1" and the upper digit is "0", and the upper digit / lower digit do not match. Has become. It is determined that the power was turned off during writing due to the mismatch of the numerical values in the management area.

【0024】次の電源オン時にマイクロコンピュータ1
は、上位桁/下位桁の管理エリアの数値を比較し、上位
桁/下位桁の数値が不一致だった場合に桁上げがあった
と判断する。
At the next power-on, the microcomputer 1
Compares the numerical values in the upper digit / lower digit management areas, and determines that there has been a carry when the numerical values in the upper digit / lower digit do not match.

【0025】管理エリアの上位桁と下位桁の数値が不一
致の場合、マイクロコンピュータ1は、上位エリアを
「+1」カウントアップし、さらに上位桁の管理エリア
も「+1」カウントアップする。すなわち、上位エリア
は管理エリアを含めて「0000」から「1001」と
書込まれ、カウンタの値は管理エリアを除いて「001
000」となる。このようにして、正しいデータが記憶
される。
When the numerical values of the upper digit and the lower digit of the management area do not match, the microcomputer 1 counts up the upper area by "+1" and further counts up the management area of the upper digit by "+1". That is, the upper area is written as "0000" to "1001" including the management area, and the counter value is "001" excluding the management area.
000 ". In this way, correct data is stored.

【0026】なお、本実施例では、複写枚数のカウント
1回毎に書込動作を行なっているが、例えば、複写終了
時にまとめて書込むなどの場合にも応用可能である。こ
の場合、2回以上の桁上げが発生している場合も考えら
れるが、上位桁と下位桁の管理エリアの値の差が「2」
だったら2回桁上げし、「3」だったら3回桁上げする
ようにして、上述したデータの信頼性を確保することが
できる。また、本発明は、複写枚数のカウントに限ら
ず、例えば、トナー消費量、ランプの寿命等の連続する
数値の扱いに応用することができる。
In the present embodiment, the writing operation is performed every time the number of copied sheets is counted, but the present invention can be applied to the case of collectively writing at the end of copying. In this case, a carry may occur more than once, but the difference between the values of the upper digit and lower digit management areas is "2".
If so, carry is carried out twice, and if it is "3", carry is carried out three times, whereby the reliability of the above-mentioned data can be secured. Further, the present invention can be applied not only to counting the number of copies, but also to handling continuous numerical values such as toner consumption and lamp life.

【0027】以上説明したように上記実施例によれば、
連続した数値を複数のエリアに記憶するような場合に、
データの中に桁上げ管理エリアを設けて、書込み動作が
途中で中断されるようなことがあっても後で補正してデ
ータの信頼性を確保することができる。
As described above, according to the above embodiment,
If you want to store consecutive numerical values in multiple areas,
By providing a carry management area in the data, the reliability of the data can be ensured by correcting it later even if the write operation is interrupted in the middle.

【0028】[0028]

【発明の効果】以上詳述したようにこの発明によれば、
大容量の電源バックアップを必要とせず、データの信頼
性を確保する計数装置を提供することができる。
As described above in detail, according to the present invention,
It is possible to provide a counting device that does not require large-capacity power source backup and ensures data reliability.

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

【図1】この発明の計数装置に係る電子複写機の複写枚
数カウンタの概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a copy number counter of an electronic copying machine according to a counting device of the present invention.

【図2】複写枚数カウンタの桁上げを説明するための
図。
FIG. 2 is a diagram for explaining a carry of a copy number counter.

【図3】複写枚数カウンタの桁上げを説明するためのフ
ローチャート。
FIG. 3 is a flowchart for explaining carry of a copy number counter.

【図4】電源オンからの桁上げ動作を説明するためのフ
ローチャート。
FIG. 4 is a flowchart for explaining a carry operation after the power is turned on.

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

1…マイクロコンピュータ 2…EEPROM 3…コンデンサ 4…スキャンモータ 5,7…ドライバ 6…メインモータ 1 ... Microcomputer 2 ... EEPROM 3 ... Capacitor 4 ... Scan motor 5, 7 ... Driver 6 ... Main motor

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 連続する数値を計数する計数手段と、 この計数手段で計数された数値を複数のエリアに記憶す
る記憶手段と、 この記憶手段に記憶される各エリア毎に管理エリアを設
け、上記計数手段で計数された連続する数値が下位エリ
アから上位エリアへ桁上りする際、下位エリアと上位エ
リアに設けられたそれぞれの管理エリアの数値を更新す
る更新手段と、 この更新手段で更新されたそれぞれの管理エリアの数値
と上記計数手段で計数された数値とを上記記憶手段に書
込む書込手段と、 上記記憶手段に記憶されている複数のエリアの数値を所
定のタイミングで読出す読出手段と、 この読出手段で読出された複数のエリアにおける上位エ
リアと下位エリアに設けられている管理エリアの数値を
比較する比較手段と、 を具備したことを特徴とする計数装置。
1. A counting means for counting continuous numerical values, a storage means for storing the numerical values counted by the counting means in a plurality of areas, and a management area for each area stored in the storage means. When the consecutive numerical values counted by the counting means carry from the lower area to the upper area, the updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area, and the updating means, Writing means for writing the numerical values of the respective management areas and the numerical values counted by the counting means to the storage means, and reading for reading the numerical values of the plurality of areas stored in the storage means at a predetermined timing. Means for comparing the numerical values of the management areas provided in the upper area and the lower area in the plurality of areas read by the reading means. Counting device to collect.
【請求項2】 上記読出手段は、前記計数装置に電源が
供給されることに同期して上記記憶手段に記憶されてい
る複数のエリアの数値を読出すことを特徴とする請求項
1記載の計数装置。
2. The reading means reads the numerical values of a plurality of areas stored in the storage means in synchronism with the supply of power to the counting device. Counting device.
【請求項3】 連続する数値を計数する計数手段と、 この計数手段で計数された数値を複数のエリアに記憶す
る記憶手段と、 この記憶手段に記憶される各エリア毎に管理エリアを設
け、上記計数手段で計数された連続する数値が下位エリ
アから上位エリアへ桁上りする際、下位エリアと上位エ
リアに設けられたそれぞれの管理エリアの数値を更新す
る更新手段と、 この更新手段で更新されたそれぞれの管理エリアの数値
と上記計数手段で計数された数値とを上記記憶手段に書
込む書込手段と、 上記記憶手段に記憶されている複数のエリアの数値を所
定のタイミングで読出す読出手段と、 この読出手段で読み出された複数のエリアにおける上位
エリアと下位エリアに設けられている管理エリアの数値
を比較する比較手段と、 この比較手段で比較された結果、不一致の場合、上記上
位エリアまたは下位エリアの数値と管理エリアの数値と
を補正する補正手段と、 この補正手段で補正されたエリアの数値と管理エリアの
数値とで上記記憶手段に記憶されている上記補正された
エリアの数値と管理エリアの数値とを書換える書換手段
と、 を具備したことを特徴とする計数装置。
3. A counting means for counting continuous numerical values, a storage means for storing the numerical values counted by the counting means in a plurality of areas, and a management area for each area stored in the storage means. When the consecutive numerical values counted by the counting means carry from the lower area to the upper area, the updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area, and the updating means, Writing means for writing the numerical values of the respective management areas and the numerical values counted by the counting means in the storage means, and reading for reading the numerical values of the plurality of areas stored in the storage means at a predetermined timing. Means for comparing the numerical values of the management areas provided in the upper area and the lower area in the plurality of areas read by the reading means, and the comparison means As a result of the comparison, if they do not match, a correction means for correcting the numerical value of the upper area or the lower area and the numerical value of the management area, and the storage means by the numerical value of the area and the numerical value of the management area corrected by the correction means And a rewriting unit for rewriting the corrected numerical value of the area and the numerical value of the management area stored in the counting apparatus.
【請求項4】 上記読出手段は、前記計数装置に電源が
供給されることに同期して上記記憶手段に記憶されてい
る複数のエリアの数値を読出すことを特徴とする請求項
3記載の計数装置。
4. The reading means reads the numerical values of a plurality of areas stored in the storage means in synchronization with power supply to the counting device. Counting device.
JP6629193A 1993-03-25 1993-03-25 Counter Expired - Fee Related JP3335210B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6629193A JP3335210B2 (en) 1993-03-25 1993-03-25 Counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6629193A JP3335210B2 (en) 1993-03-25 1993-03-25 Counter

Publications (2)

Publication Number Publication Date
JPH06283998A true JPH06283998A (en) 1994-10-07
JP3335210B2 JP3335210B2 (en) 2002-10-15

Family

ID=13311580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6629193A Expired - Fee Related JP3335210B2 (en) 1993-03-25 1993-03-25 Counter

Country Status (1)

Country Link
JP (1) JP3335210B2 (en)

Also Published As

Publication number Publication date
JP3335210B2 (en) 2002-10-15

Similar Documents

Publication Publication Date Title
EP0444544B1 (en) Updating or restoring method for stored data groups and system executing same
US6330634B1 (en) External storage apparatus having redundant boot blocks, and data processing method therefor
EP1403771A1 (en) Non-volatile memory control method
CN1327359C (en) Memory controller
WO2018054261A1 (en) Storage medium, data processing method and cartridge chip using this method
JPS5844823A (en) Method and device for storing counting value of electronic counter
JP2000019891A (en) Image forming device and its control method, and storage medium
JP3284772B2 (en) Water heater
US4853853A (en) Elecetronic cash register
JPH10240629A (en) Intra-memory information updating method
JPH06283998A (en) Counting device
JPS6234260A (en) Access system for nonvolatile memory
JPH0373496A (en) Eeprom writer
JPS5945694A (en) Modification system for rom read information
JPH05189837A (en) Electronic device
JPH05324305A (en) Program change method
JP2002041369A (en) Semiconductor memory
JPH05128882A (en) Data processing device
JP2853379B2 (en) Counter device
JPH03188541A (en) Counting device
JPH111049A (en) Image processor
JPH0553386A (en) Backup controller for image forming device
JPH02303874A (en) Counting device
JP2001051910A (en) Non-volatile memory device
JPH04293139A (en) Data holding method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees