P0340: Camshaft position sensor A circuit fault, bank 1
The engine computer has lost or cannot read the signal from camshaft position sensor A on bank 1, or from the single cam sensor on engines that have only one. It uses this signal to tell which stroke each cylinder is on, for sequential injection and, on many engines, variable valve timing.
How the car decides
The crank sensor tells the computer where the pistons are, but each piston reaches the top of its stroke twice per cycle, once on compression and once on exhaust. The cam sensor settles which is which. P0340 is a circuit code: the computer sees no signal, a line stuck high or low, or a missing reference voltage. Sensor A is usually the intake cam sensor on engines with separate intake and exhaust sensors, and bank 1 is the side with cylinder 1. Many engines still run without it, often after a longer crank and with variable valve timing switched off; some will not start at all. Hall-type cam sensors often share a 5 V feed with other sensors, so a short elsewhere can take this one down too.
Common causes of P0340
- Failed camshaft position sensorCommon
- Corroded, oily or loose connectorCommon
- Broken or chafed wire, or a short on the 5 V reference circuitPossible
- Oil from the valve cover gasket or cam seal reaching the sensor connectorPossible
- Damaged cam reluctor or trigger wheelLess common
- Broken or badly jumped timing beltLess common
Symptoms
- Longer cranking before the engine starts
- Rough running or hesitation
- Reduced power if variable valve timing is disabled
- Occasional stalling on some engines
- Often none besides the warning light
What to check first
- Pay attention to how the engine starts; a slightly longer crank followed by normal running fits a lost cam signal on many engines.
- Locate sensor A on bank 1, usually on the cylinder head or timing cover at the intake camshaft, and check its connector for oil and corrosion.
- Check for codes from sensors that may share the 5 V supply, such as MAP or throttle position; several at once point to the reference circuit.
- Look for oil seeping onto the connector from the valve cover gasket or a cam seal.
- If the timing belt is overdue or was replaced recently, have its alignment checked.
How urgent is it?
Repair it soon. The car may drive normally for now, but one that sometimes will not restart can leave you stranded, and some engines stall with this fault.
General information, not a diagnosis of your car. Have a qualified mechanic confirm the cause before you replace parts, and stop driving if the car runs badly, overheats or the warning light flashes.
Questions
What is the difference between P0340 and P0335?
P0335 is the crankshaft sensor circuit and P0340 is the camshaft sensor circuit. Losing the crank signal usually stops the engine; losing the cam signal more often causes a long crank or rough running, because the computer can still estimate timing from the crank.
Can a timing belt cause P0340?
It can if the belt has broken, or jumped far enough that the cam signal no longer appears where expected. More often a timing problem shows up as a correlation or range code such as P0016 or P0341. Rule out the sensor and wiring first, then check timing if the belt is suspect.
Reading the code itself
- System
- P: Powertrain: engine, fuel, emissions or transmission
- Type
- P0: Generic: the same meaning on every make
- Subsystem
- 3: Ignition system or misfire
- Fault number
- 40