P0340 — Camshaft position sensor A circuit malfunction
P0340 usually does not stop the engine, it makes it start badly. Without the cam signal the ECU cannot tell compression from exhaust stroke, so it guesses — and guessing costs cranking time.
What the code actually means
The camshaft position sensor tells the ECU which stroke each cylinder is on. The crank sensor gives position but is ambiguous by one revolution, so the ECU needs the cam signal to fire in the right order. When that signal is missing, P0340 is set.
Most engines will still run on the crank signal alone using a default strategy, which is why this code often comes with long cranking rather than a no-start. VVT engines are the exception and may refuse to start or run very badly.
What you will notice
- Longer cranking than normal, sometimes several seconds, then a start
- A rough idle for the first seconds after start
- Poor acceleration and a loss of VVT function on engines with variable timing
- The light on with otherwise acceptable running
- On some cars a P0016 appears alongside it
Our order of checks
| Cause | Our category | Why it is on the list |
|---|---|---|
| Failing camshaft position sensor | Camshaft position sensors | The most common cause, and the sensor most likely to fail with heat. |
| Oil or sludge on the sensor face | — | A sensor buried in sludge reads nothing. Clean it before replacing it. |
| Timing chain or belt jumped | — | The cam signal arrives at the wrong time and the ECU flags the circuit. |
| Loom damage | — | The cam sensor wire runs along the head, which is hot and full of vibration. |
| Wrong sensor fitted previously | Camshaft position sensors | Hall and inductive sensors are not interchangeable, and the connectors often look alike. |
Test before you buy
- Clear the code and see whether it comes back immediately or after a drive cycle. Immediate return means a hard electrical fault.
- Check the sensor type and the connector — Hall sensors need a supply, inductive ones do not.
- Remove the sensor and look for metal debris or sludge on the face.
- If the sensor is good, check the cam timing marks before ordering anything else.
The expensive mistake
Not distinguishing P0340 from P0016. P0340 is the circuit; P0016 is the correlation between crank and cam. If both are present, the timing is suspect and a new sensor will not fix it.
Parts we stock for a P0340
Stocked numbers and fitment for these categories are in the catalogue; message us with the car details and we will pick the right one.
| Our category | Part numbers | When |
|---|---|---|
| Camshaft Position Sensors | 159 | Camshaft position sensor — check the type |
| Oil Control Valves | 183 | On VVT engines, check the oil control valve too |
| Crankshaft Position Sensors | 236 | Compare crank signal |
Questions we get
Can I drive with a P0340?
Why does the car crank longer with a P0340?
Contact
广州驭盟扬汽配 · Guangzhou Yumengyang Auto Parts Co., Ltd.
E05, Yiyou (Guangyuan East) Auto Parts City, Baiyun District, Guangzhou, China
Send us the code, the car and the year. If this page points at several parts, we will tell you which one to change first — and which one not to change.