The CKP sensor (Crankshaft Position Sensor) sends information about the position or synchronization of the crankshaft to the PCM (Powertrain Control Module). This information is used in the engine RPM.
On the other hand, the CMP sensor (Camshaft Position Sensor) tells the PCM the exact position of the camshaft, as well as the time of it.
When there is an electrical problem in one of these circuits, the PCM sets the DTC code P0320 OBD2. It should be noted that this fault code refers to an electrical problem only.