JP3335210B2 - Counter - Google Patents

Counter

Info

Publication number
JP3335210B2
JP3335210B2 JP6629193A JP6629193A JP3335210B2 JP 3335210 B2 JP3335210 B2 JP 3335210B2 JP 6629193 A JP6629193 A JP 6629193A JP 6629193 A JP6629193 A JP 6629193A JP 3335210 B2 JP3335210 B2 JP 3335210B2
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.)
Expired - Fee Related
Application number
JP6629193A
Other languages
Japanese (ja)
Other versions
JPH06283998A (en
Inventor
幸宏 根津
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 TEC Corp
Original Assignee
Toshiba Corp
Toshiba TEC 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, Toshiba TEC 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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

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

【0002】[0002]

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

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

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

【0005】[0005]

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

【0006】[0006]

【課題を解決するための手段】この発明の計数装置は、
連続する数値を計数する計数手段と、この計数手段で計
数された数値を複数のエリアに記憶する記憶手段と、こ
の記憶手段に記憶される各エリア毎に管理エリアを設
け、上記計数手段で計数された連続する数値が下位エリ
アから上位エリアへ桁上りする際、下位エリアと上位エ
リアに設けられたそれぞれの管理エリアの数値を更新す
る更新手段と、この更新手段で更新されたそれぞれの管
理エリアの数値と上記計数手段で計数された数値とを上
記記憶手段に書込む書込手段と、上記記憶手段に記憶さ
れている複数のエリアの数値を所定のタイミングで読出
す読出手段と、この読出手段で読出された複数のエリア
における上位エリアと下位エリアに設けられている管理
エリアの数値を比較する比較手段とから構成されてい
る。
According to the present invention, a counting device 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. Updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area when the successive numerical values carry from the lower area to the upper area; and the respective management areas updated by the updating means. Writing means for writing the numerical value of the area and the value counted by the counting means into the storage means; reading means for reading the numerical values of a plurality of areas stored in the storage means at a predetermined timing; And comparing means for comparing 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】この発明の計数装置は、連続する数値を計
数する計数手段と、この計数手段で計数された数値を複
数のエリアに記憶する記憶手段と、この記憶手段に記憶
される各エリア毎に管理エリアを設け、上記計数手段で
計数された連続する数値が下位エリアから上位エリアへ
桁上りする際、下位エリアと上位エリアに設けられたそ
れぞれの管理エリアの数値を更新する更新手段と、この
更新手段で更新されたそれぞれの管理エリアの数値と上
記計数手段で計数された数値とを上記記憶手段に書込む
書込手段と、上記記憶手段に記憶されている複数のエリ
アの数値を所定のタイミングで読出す読出手段と、この
読出手段で読み出された複数のエリアにおける上位エリ
アと下位エリアに設けられている管理エリアの数値を比
較する比較手段と、この比較手段で比較された結果、不
一致の場合、上記上位エリアまたは下位エリアの数値と
管理エリアの数値とを補正する補正手段と、この補正手
段で補正されたエリアの数値と管理エリアの数値とで上
記記憶手段に記憶されている上記補正されたエリアの数
値と管理エリアの数値とを書換える書換手段とから構成
されている。
[0007] A counting device according to the present invention comprises a counting means for counting continuous numerical values, a storing means for storing numerical values counted by the counting means in a plurality of areas, and an area for each area stored in the storing means. Update means for providing a management area and updating the numerical values of the respective management areas provided in the lower area and the upper area when the continuous numerical value counted by the counting means carries from the lower area to the upper area; Writing means for writing the numerical value of each management area updated by the updating means and the numerical value counted by the counting means into the storage means; and writing the numerical values of the plurality of areas stored in the storage means to a predetermined value. Reading means for reading at a timing; and comparing means for comparing numerical values of management areas provided in an upper area and a lower area in a plurality of areas read by the reading means. As a result of the comparison by the comparing means, when there is a mismatch, a correcting means for correcting the numerical value of the upper area or the lower area and the numerical value of the management area, and a numerical value of the area corrected by the correcting means and a numerical value of the managing area. And a rewriting means for rewriting the numerical value of the corrected area and the numerical value of the management area stored in the storage means.

【0008】[0008]

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

【0009】[0009]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。
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 EEPROM as a copy number counter of an electronic copying machine to which the counting device of the present invention is applied.
This shows a case where M is used. That is, the copy number counter of the electronic copying machine includes a microcomputer 1 for controlling the equipment, and an EEPR for writing and reading data.
OM2, connected to the power supply terminal of EEPROM2,
It comprises a capacitor 3 for backing up the power supply 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 a serial port of the microcomputer 1 for controlling equipment 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, so that even if the entire power supply is turned off during the data write operation, the power supply of the EEPROM 2 is backed up for a time until the write 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 16-bit units. On the other hand, the counter of the electronic copying machine has six digits (0
0000-999999).

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

【0014】これを例えば、図2の(a)に示すように
3桁ずつに分け、上位3桁と下位3桁とが別々の上位エ
リアと下位エリアとに記憶されるようにした場合につい
て説明する。(それぞれ、000〜999をカウントす
る)
For example, as shown in FIG. 2A, a description will be given of a case where the upper three digits and the lower three digits are stored in separate upper area and lower area, respectively, as shown in FIG. I do. (Each counts 000-999)

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

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

【0017】図2の(a)において、例えば、下位エリ
アから書込みを始めて次に上位エリアを書込むとして、
正常に動作した場合、まず、下位エリアが「999」か
ら「000」と書込まれ、続いて上位エリアが「00
0」から「001」と書込まれ、カウンタの値は「00
1000」となる。
In FIG. 2A, for example, assuming that writing starts from the lower area and then writes to the upper area,
When the operation is normal, first, the lower area is written from “999” to “000”, and then the upper area is written “00”.
"001" is written from "0" 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 of this lower area,
Writing to the upper area is not 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 value of the counter becomes "000000", which deviates from the normal value by 1000.

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

【0020】図2の(b)において、本実施例のEEP
ROM2は16ビットのエリアに3桁の数値を保存すれ
ばよいので、BCD(2進化10進コード)を使ったと
しても4ビットのエリアが余り、この4ビットのエリア
を桁上がり管理エリアとして使用し、通常は上位桁の管
理エリア、下位桁の管理エリアともに同じデータが書込
まれる。次に、図3、図4のフローチャートを参照して
動作を説明する。
In FIG. 2B, the EEP of this embodiment is shown.
Since the ROM 2 only needs to store a 3-digit numerical value in a 16-bit area, even if a BCD (binary-coded decimal code) is used, a 4-bit area is left, and this 4-bit area is used as a carry management area. Usually, the same data is written in both 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, the lower order digit of the EEPROM 2 is counted up by "+1" by the microcomputer 1 each time one copy is performed. When the lower digit becomes “999” and carry is performed, the management area of the lower digit and the upper digit is counted up by “+1”. That is, the lower area is written from "0999" to "1000" including the management area, and the upper area is written "000" including the management area.
"1001" is written from "0", and the value of the counter becomes "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 of this lower area,
Writing to the upper area is not executed. That is, the lower areas include “0999” to “10” including the management area.
After "00" is written, the power is turned off and the upper area including the management area is not written and remains at "0000".

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

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

【0025】管理エリアの上位桁と下位桁の数値が不一
致の場合、マイクロコンピュータ1は、上位エリアを
「+1」カウントアップし、さらに上位桁の管理エリア
も「+1」カウントアップする。すなわち、上位エリア
は管理エリアを含めて「0000」から「1001」と
書込まれ、カウンタの値は管理エリアを除いて「001
000」となる。このようにして、正しいデータが記憶
される。
When 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 the upper digit management area by "+1". That is, the upper area is written from “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 this embodiment, the writing operation is performed each time the count of the number of copies is performed. However, the present invention can be applied to, for example, writing at the end of copying. In this case, it is conceivable that two or more carry occurs, but the difference between the value of the management area of the upper digit and the lower digit is “2”.
If so, carry is performed twice, and if "3", carry is carried out three times, so that the reliability of the data described above can be ensured. In addition, the present invention is not limited to counting the number of copies, and can be applied to, for example, handling of 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 numbers in multiple areas,
By providing a carry management area in the data, even if the writing operation is interrupted halfway, it can be corrected later to ensure the reliability of the data.

【0028】[0028]

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

【図面の簡単な説明】[Brief description of the 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 from power-on.

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

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

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭51−84565(JP,A) 特開 昭63−299612(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03K 21/40 G06F 7/00 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-51-84565 (JP, A) JP-A-63-299612 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H03K 21/40 G06F 7/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 連続する数値を計数する計数手段と、 この計数手段で計数された数値を複数のエリアに記憶す
る記憶手段と、 この記憶手段に記憶される各エリア毎に管理エリアを設
け、上記計数手段で計数された連続する数値が下位エリ
アから上位エリアへ桁上りする際、下位エリアと上位エ
リアに設けられたそれぞれの管理エリアの数値を更新す
る更新手段と、 この更新手段で更新されたそれぞれの管理エリアの数値
と上記計数手段で計数された数値とを上記記憶手段に書
込む書込手段と、 上記記憶手段に記憶されている複数のエリアの数値を所
定のタイミングで読出す読出手段と、 この読出手段で読出された複数のエリアにおける上位エ
リアと下位エリアに設けられている管理エリアの数値を
比較する比較手段と、 を具備したことを特徴とする計数装置。
1. A counting means for counting continuous numerical values, a storing means for storing numerical values counted by the counting means in a plurality of areas, and a management area for each area stored in the storing means. Updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area when the continuous numerical values counted by the counting means carry from the lower area to the upper area; Writing means for writing the numerical value of each management area and the numerical value counted by the counting means into the storage means; and reading out the numerical values of the plurality of areas stored in the storage means at a predetermined timing. Means, and comparing means for comparing 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.
【請求項2】 上記読出手段は、前記計数装置に電源が
供給されることに同期して上記記憶手段に記憶されてい
る複数のエリアの数値を読出すことを特徴とする請求項
1記載の計数装置。
2. The apparatus according to claim 1, wherein said reading means reads numerical values of a plurality of areas stored in said storage means in synchronization with power being supplied to said 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. Updating means for updating the numerical values of the respective management areas provided in the lower area and the upper area when the continuous numerical values counted by the counting means carry from the lower area to the upper area; Writing means for writing the numerical value of each management area and the numerical value counted by the counting means into the storage means; and reading out the numerical values of the plurality of areas stored in the storage means at a predetermined timing. Means for comparing numerical values of management areas provided in an upper area and a lower area in a plurality of areas read by the reading means; As a result of the comparison, if they do not match, the correcting means for correcting the numerical value of the upper area or the lower area and the numerical value of the management area; and the storing means by using the numerical value of the area corrected by the correcting means and the numerical value of the management area. Rewriting means for rewriting the numerical value of the corrected area and the numerical value of the management area stored in the counter.
【請求項4】 上記読出手段は、前記計数装置に電源が
供給されることに同期して上記記憶手段に記憶されてい
る複数のエリアの数値を読出すことを特徴とする請求項
3記載の計数装置。
4. The apparatus according to claim 3, wherein said reading means reads numerical values of a plurality of areas stored in said storage means in synchronization with supply of power to said 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 JPH06283998A (en) 1994-10-07
JP3335210B2 true 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
JPH06283998A (en) 1994-10-07

Similar Documents

Publication Publication Date Title
EP0444544B1 (en) Updating or restoring method for stored data groups and system executing same
US4400798A (en) Memory patching system
US6883060B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
CN1327359C (en) Memory controller
JP3284772B2 (en) Water heater
JP3335210B2 (en) Counter
JPH10240629A (en) Intra-memory information updating method
JPH0679297B2 (en) Sequence memory control circuit
JPS6234260A (en) Access system for nonvolatile memory
JP2002334586A (en) Information storing method using flash memory and information storing program
JPH01271856A (en) Battery back-up memory
JPH05189837A (en) Electronic device
JP2701089B2 (en) Information transfer method
JP3597548B2 (en) Digital signal processor
JPH04291647A (en) Access system for read-only memory
JPH04293139A (en) Data holding method
JP2853379B2 (en) Counter device
JPH0553386A (en) Backup controller for image forming device
JPS6031187A (en) Display
JPS58200388A (en) Data checking system for electronic memory
JPH01264698A (en) Storage device
JPH0373958B2 (en)
JPH0325544A (en) Memory control circuit
JPH04152488A (en) Ic card
JPH04296953A (en) Electrical erasion/write enable storage

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