The PCM knock sensor is used in order to detect any engine knock or detonation (there is a piezoelectric element inside the sensor). The signal from the knock sensor is sent to the PCM/ECM and that is used to control the engine's timing.