Detection Condition
DTC P0325 indicates Knock Sensor (KS) malfunction.
DTC P0326 indicates knock sensor has detected vibrations (voltage generated is based on this vibration) relative with engine speed that is outside a calibrated level.
A tuned accelerometer on engine that converts engine vibration to an electrical signal. PCM uses this signal to determine presence of engine knock and retard ignition timing as necessary.