摘要 |
PURPOSE:To prevent runaway with a comparatively simple constitution, by jumping to a restart routine, if the system operating state is not normal from the state of flag in an interruption routine of pulse train. CONSTITUTION:A crank pulse (a) of an engine is inputted to an interruption input terminal P20 of a microcomputer 1 generating an input capture IC interruption. Further, when an input signal to this terminal changes from 1 to 0 via an inverter 2, the signal is also inputted to an interruption terminal NMI generating non-maskable (NM) interruption. On the other hand, if each routine constituting an engine control program such as background BG, IC interruption, output conveyor (OC) interruption operates normally, no runaway takes place in the entire control program including a timer overflow (TO) interruption routine. For example, if OCIFLG is not set, the program jumps to a restart routine. |