摘要 |
PURPOSE:To obtain a small-sized counting device suing nonvolatile memory by providing the arrangement such that, when a count stored in a counting value memory region exceeds a predetermined value, data in an address memory region is changed. CONSTITUTION:In the case of a counting device wherein the number of times of rewriting guarantee of a nonvolatile memory 4 is 10,000 and total number of sheets is 300,000 when number to be counted is represented as number of print sheets, in order to write count data into the nonvolatile memory 4 from CPU 1, address information of address O is read out to confirm the address in which data of counting value has been held so that the count data is newly put into an address indicated by the address information. And then, number of times of rewriting in the address to which count data have been put is compared with the guarantee number, i.e., 10,000, whereby, when rewriting number has reached 10,000, 1 (one) is added to address information value of the address O, whereas if said number has not reached 10,000, rewriting access is terminated, so that, next time, count data is put into the same address. As a result, a small- sized counting device using, as a counter, a nonvolatile memory having limited number of times of rewriting can be obtained. |