摘要 |
PROBLEM TO BE SOLVED: To always check a memory under any condition by making a memory check means perform the memory check in every prescribed cycle and in an idle time when a microcomputer executes a program. SOLUTION: A microcomputer 2 carries out an arithmetic process based on an input signal and a program stored in a ROM 12. An execution control means instructs a memory check means to check the memory in every prescribed cycle and in an idle time when the microcomputer 2 executes the program. Meanwhile, a memory check means previously divides a memory to be checked into plural areas and successively performs the memory check in each of divided areas. When the memory check is interrupted in a certain area, the memory check is successively carried out in the next time at and after the interrupted area. If the abnormality is detected in a certain area of the memory, an abnormality countermeasure processing means carries out a fail-safe processing that is set in every area. |