Patent attributes
In an engine control device, when a missing-tooth location K formed on a rotor of a crank shaft sensor fixed to a crank shaft of an engine is detected at timing t1 under the condition T3 ≧2.4×pulse interval T4, it is checked whether or not the detection result is correct based on pulse intervals T0 to T5. When the detection result is correct, the difference (an adjusting counter value) between a counter-value of a crank counter at the missing-tooth location K detection timing and a correct value at the detection timing of the missing-tooth location K is calculated. The device calculates an adjusted counter-value based on an adjusting counter-value, the current counter-value of the crank counter, and a value (+1) set in advance based on the rewriting timing. The crank counter is replaced with the adjusted counter-value at a first rising-edge of the crank signal.