摘要 |
<P>PROBLEM TO BE SOLVED: To restore a system to an original sate within very short time while avoiding initialization of a whole system as much as possible, even when a CPU of a microcomputer becomes unable to execute a program due to external noise, unstableness of power supply voltage or other reasons and a fatal error such as runaway occurs. <P>SOLUTION: When a first and a second program modules generated by dividing machine language which is generated by compiling one or more source codes are executed, a CPU is reset between execution of the first program module and the second program module. When an error is detected in the CPU, a register of the CPU is restored using information stored in RAM and the CPU is restored to a state before occurrence of the error. By this way, an application program being executed is restored within very short time, and software processing is able to be continued as if the fatal error has not occurred. <P>COPYRIGHT: (C)2013,JPO&INPIT |