Patent ID: 8103432

Claim:
An internal-combustion-engine control apparatus comprising: a sensor that detects a vibration of an engine or a cylinder inner pressure vibration and outputs a signal in accordance with the vibration; a signal processing unit that forms a first data group consisting of serial segments each including a predetermined number of digital values that are obtained by A/D-converting the signal outputted from the sensor and a second data group consisting of serial segments each including the predetermined number of digital values, the starting timing of each serial segment in the second data group being shifted from that of each serial segment in the first data group by a predetermined amount, and that applies respective time-frequency analysis processings to the first data group and the second data group in each of a plurality of frequency bandwidths so as to output spectrums based on the respective processings; a knocking determination unit that performs knocking determination based on the respective peak values of the spectrums outputted from the signal processing unit; and a knocking determination unit that performs knocking determination based on the respective integration values of the spectrums outputted from the signal processing unit, wherein, in the case where knocking is detected by at least one of the knocking determination unit that performs knocking determination based on the respective peak values and the knocking determination unit that performs knocking determination based on the respective integration values, an ignition timing for the engine is delayed.