# OBD-II P0340: OBD-II P0340: Camshaft Position Sensor "A" Circuit (Bank 1)

> **Quick Answer:** Code **P0340** (SAE J2012) means the PCM lost or received an erratic electrical signal from the **Bank 1 Camshaft Position Sensor "A" (`CMP` / intake cam)**. Because the ECU relies on the CMP pulse paired with Crankshaft (`CKP`) sync to time sequential fuel injection and coil firing, `P0340` causes **long extended cranking (`3–6 s` before firing), sudden stalling, limp mode, or a complete crank/no-start**. Do **not** buy an aftermarket sensor blindly—first test **`5 V / 12 V` reference power, sensor ground, and signal continuity** at the plug, pull the sensor to wipe **iron filings / metallic debris off its magnetic tip**, and inspect for **stretched timing chain or jumped timing belt slack** (also verify battery/starter cranking RPM and alternator AC ripple) ($35–$140 DIY; $160–$480 shop).

- **URL:** https://faultcodes.org/automotive/obd2-p0340
- **Category:** Automotive & OBD-II
- **Brand / Standard:** OBD-II
- **System Area:** Ignition & Misfire System
- **Severity:** High — Service Soon
- **Safe to Operate?:** No — Risk of Damage
- **DIY Difficulty:** Moderate (Intermediate)
- **Updated:** 2026-11-22T00:00:00Z

## What This Fault Code Means
While the crankshaft turns twice for every single camshaft rotation, the CMP sensor identifies exactly which stroke Cylinder #1 is on (compression vs exhaust). Most modern engines use a **3-wire Hall-effect CMP** (`5 V` or `12 V` supply, ground, and `0–5 V` square-wave signal); older designs use a **2-wire Variable Reluctance (VR)** pickup generating AC sine pulses. Missing edges, shorted reference voltage, or phase mismatch from a loose timing drive immediately logs `P0340`.

## Technical Thresholds & Specifications
| Parameter / Condition | Factory Spec / Threshold | Note |
| --- | --- | --- |
| 3-Wire Hall-Effect Signal | 5 V / 12 V supply + ground + 0–5 V square wave | Check toggling edge during cranking with multimeter or oscilloscope |
| 2-Wire VR Pickup Spec | ~200–1,200 Ω coil + AC mV/V crank pulse | Variable reluctance pickups generate alternating current proportional to RPM |
| Key Mechanical Check | Metallic debris on tip / timing chain slack | Iron filings distort magnetic teeth; stretched chains shift cam sync |
| Drivability / Safety Risk | Sudden stalling or crank / no-start hazard | Do not drive highway distances until resolved |

## Commonly Affected Models & Service Bulletins
- Nissan Altima / Maxima / 350Z / Pathfinder VQ35DE & QR25DE (classic Hall CMP failures)
- Volkswagen / Audi / BMW / Mercedes-Benz 4- and 6-Cylinder Engines
- Ford F-150 / Mustang (alternator diode ripple & timing), Chevrolet & Honda/Toyota Models

## Common Symptoms
- **Extended cranking (`3–6 seconds`)** before catching (as the PCM falls back to crankshaft-only guessing) or **crank/no-start**
- Sudden stalling at traffic lights, rough running, and Check Engine Light (`P0340`)
- Engine drops into safe limp mode with disabled VVT control and flat acceleration

## Most Likely Root Causes
- **Failed Hall-effect (`3-wire`) or VR (`2-wire`) Camshaft Position Sensor "A"** dropping signal when heat-soaked (#1 cause)
- Broken **`5 V / 12 V` reference, ground, or signal wire**, oil-wicked harness plug, or **metallic sludge debris stuck to the magnetic sensor tip**
- **Stretched timing chain, skipped timing belt tooth, or failing VVT phaser** shifting cam-to-crank alignment out of window
- Weak battery / slow starter cranking voltage or failed **alternator diode AC ripple** inducing electrical noise onto CMP wiring (classic Chrysler/Ford/GM quirk)

## Tools & Parts Reference
- Digital multimeter or lab oscilloscope (testing `5 V / 12 V` Hall square wave or VR AC pulse)
- OBD-II live scanner (verifying cranking RPM, cam/crank sync & paired timing codes)
- `10 mm` socket + lint-free rag (inspecting/cleaning metallic particles on sensor tip)

## Step-by-Step Troubleshooting & Fix
1. If metallic shavings coat the CMP tip, clean it carefully and inspect engine oil/filter for bearing or timing-guide wear; clean any engine oil out of the connector plug.
2. If `5 V / 12 V` supply or ground fails, repair chafed harness wiring or replace a corroded pigtail connector before touching the sensor.
3. If reference voltage and ground test perfect yet signal flatlines during cranking/heat-soak, fit a **genuine OEM Camshaft Position Sensor** (aftermarket CMP sensors frequently exhibit weak Hall triggers and repeat `P0340`!).
4. If `P0340` returns immediately with a fresh OEM sensor and clean wiring, pull the valve cover or inspect timing marks—replace a **stretched timing chain, worn tensioner, or slipped timing belt** and clear `P0340`.

## Estimated Repair Cost Benchmark
| Currency | DIY Parts Only | Professional Repair (Parts + Labor) |
| --- | --- | --- |
| USD | $35–$140 | $160–$480 |
| GBP | £28–£115 | £130–£380 |
| CAD | CA$45–CA$185 | CA$210–CA$630 |
| EUR | €30–€130 | €145–€430 |
| CHF | CHF 40–CHF 170 | CHF 200–CHF 580 |

## Frequently Asked Questions
### Why does my car crank for several seconds before finally starting with P0340?
Without the Camshaft Position Sensor signal, the PCM knows crankshaft speed yet cannot tell which cylinder is on compression vs exhaust stroke. After `3–6 seconds` of cranking, the ECU makes an educated backup guess from the crankshaft sensor alone so the car starts slowly.

### Why do mechanics recommend ONLY genuine OEM Camshaft Position Sensors for P0340?
Many generic aftermarket CMP sensors have slower Hall-effect rise times or loose air-gap tolerances that fail high-RPM sync or heat-soak within weeks, causing `P0340` to come right back even on a brand-new part.


## Verified Official & Engineering References
- [SAE International: SAE J2012 Diagnostic Trouble Code Standards](https://www.sae.org/standards/content/j2012/) (Regulation / Standard)
- [US EPA On-Board Diagnostics (OBD) Standards](https://www.epa.gov/obd) (Regulation / Standard)
- [NHTSA Vehicle Safety & Emissions Recalls / TSB Portal](https://www.nhtsa.gov/recalls) (Official Support)
