MICROCOMPUTER WITH BUILT-IN FLASH MEMORY, METHOD FOR WRITING DATA TO BUILT-IN FLASH MEMORY OF MICROCOMPUTER, AND PROGRAM FOR WRITING DATA TO FLASH MEMORY
First Claim
1. A microcomputer with a built-in flash memory, comprising:
- two memory blocks that are configured to be sequentially updated, whereineach of said memory blocks includes block management information and a plurality of slots that store data,said block management information includes an update counter that indicates an order in which data has been updated,each of said plurality of slots has updated data and a write complete flag for indicating that writing of said updated data to said slot has been completed, anddata in said plurality of slots is updated in a predetermined order, said microcomputer further comprising;
memory block detection means for detecting the most recently updated memory block based on said update counters of said two memory blocks; and
slot detection means for detecting the most recent slot in which writing of data has been completed most recently in view of said predetermined order and said write complete flag in said memory block detected by said memory block detection means.
1 Assignment
0 Petitions
Accused Products
Abstract
A microcomputer with a built-in flash memory includes two memory blocks that are sequentially updated. Each of the memory blocks includes block management information and a plurality of slots that store data. The block management information includes an update counter that indicates order in which data has been updated. Each of the plurality of slots has updated data and a write complete flag (WCM) indicating that writing of the updated data to the slot has been completed. Data in the plurality of slots is updated in predetermined order. The microcomputer further includes memory block detection means (S14) for detecting the most recently updated memory block based on the update counters of the two memory blocks; and slot detection means (S15 to S17) for detecting the most recent slot in which writing of data has been completed most recently in view of the predetermined order and the write complete flag in the memory block detected by the memory block detection means.
-
Citations
7 Claims
-
1. A microcomputer with a built-in flash memory, comprising:
-
two memory blocks that are configured to be sequentially updated, wherein each of said memory blocks includes block management information and a plurality of slots that store data, said block management information includes an update counter that indicates an order in which data has been updated, each of said plurality of slots has updated data and a write complete flag for indicating that writing of said updated data to said slot has been completed, and data in said plurality of slots is updated in a predetermined order, said microcomputer further comprising; memory block detection means for detecting the most recently updated memory block based on said update counters of said two memory blocks; and slot detection means for detecting the most recent slot in which writing of data has been completed most recently in view of said predetermined order and said write complete flag in said memory block detected by said memory block detection means. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for writing data to a built-in flash memory of a microcomputer including two memory blocks that are configured to be sequentially updated, wherein
each of said memory blocks includes block management information and a plurality of slots that store data, said block management information includes an update counter that indicates an order in which data has been updated, each of said plurality of slots has updated data and a write complete flag for indicating that writing of said updated data to said slot has been completed, and data in said plurality of slots is updated in a predetermined order, said method comprising the steps of: -
detecting the most recently updated memory block based on said update counters of said two memory blocks; and detecting the most recent slot in which writing of data has been completed most recently in view of said predetermined order and said write complete flag in said memory block detected in said detection step.
-
-
7. A program for writing data to a built-in flash memory of a microcomputer including two memory blocks that are configured to be sequentially updated, wherein
each of said memory blocks includes block management information and a plurality of slots that store data, said block management information includes an update counter that indicates an order in which data has been updated, each of said plurality of slots has updated data and a write complete flag for indicating that writing of said updated data to said slot has been completed, and data in said plurality of slots is updated in a predetermined order, said microcomputer is caused to execute said program comprising the steps of: -
detecting the most recently updated memory block based on said update counters of said two memory blocks; and detecting the most recent slot in which writing of data has been completed most recently in view of said predetermined order and said write complete flag in said memory block detected in said detection step.
-
Specification