摘要 |
PROBLEM TO BE SOLVED: To provide a microcontroller with reduced data writing time into a nonvolatile memory. SOLUTION: In the microcontroller, when only one difference data area of a plurality of difference data areas of a first sector 32a set with a sector effective flag is vacant, difference data are written in the one difference data area, and a second sector 32b is erased. When a free space is absent in the plurality of difference data areas set with the sector effective flag 34a, new base data are created based on the difference data, base data stored in a base data area 38a of a first sector, and the difference data stored in the plurality of difference data areas of the first sector, the new base data are written in the second sector, a sector ineffective flag is set to the first sector, and the sector effective flag 34b is set to the second sector. COPYRIGHT: (C)2010,JPO&INPIT |