发明名称 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
摘要 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.
申请公布号 US2016275011(A1) 申请公布日期 2016.09.22
申请号 US201414412398 申请日期 2014.09.25
申请人 KYOTO SOFTWARE RESEARCH, INC. 发明人 TANAKA Yasuyuki
分类号 G06F12/02;G06F12/12 主分类号 G06F12/02
代理机构 代理人
主权项 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.
地址 Kyoto-shi, Kyoto JP