Patent ID: 6883078

Claim:
A method for reducing memory usage of a microcomputer, the microcomputer comprising: a flash memory for storing: a data file for saving setting parameters of the microcomputer; a flash memory driver for controlling operations of the flash memory so as to write data into the flash memory; and a system program for controlling operations of the microcomputer, the system program comprising a system library wherein when the processor executes the flash memory driver, the flash memory driver is capable of calling the system library; a secondary memory far storing programs and data; and a processor for executing the system program to control the operations of the microcomputer; the method comprising: loading the flash memory driver and the system library into the secondary memory when the microcomputer is turned on while loading less than all of the system program stored in the flash memory into the secondary memory; restricting the processor to read the flash memory driver only from the secondary memory to execute so as to write data into the data file stored in the flash memory; restricting the processor to read the system program from the flash memory to execute so as to control the operations of the microcomputer; and restricting the flash memory driver to call the system library only from the secondary memory.