To avoid generation of overshoot in control of a variable valve timing mechanism.
When detection cycle Tref of rotation phase of a camshaft in relation to a crankshaft is larger than feed back control cycle Ts0 of an actuator of the variable valve timing mechanism, actuator operation amount is maintained at previous value until detection of the rotation phase and operation amount is calculated/renewed and outputted based on detection value of the rotation phase at a time of detection of the rotation phase to perform feed back control of the actuator (S45 to 46, 47). When the detection cycle Tref is same as or less than feed back control cycle Ts0, feed back control of the actuator is performed based on detection value θdet of the latest rotation phase at every control cycle Ts0 (S44 to 46, 47).