LEMON Manuals: Even more car manuals for everyone: 1960-2025
Home >> Mazda >> 2006 >> MX-5 Miata Base >> Repair and Diagnosis >> Engine Performance >> System >> On-Board Diagnostic [Engine Control System] >> DTC P0340 >> Diagnostic Procedure
April 5, 2026: LEMON Manuals is launched! Read the announcement.

Diagnostic Procedure

DTC P0340 DIAGNOSTIC PROCEDURE TABLE

STEP INSPECTION ACTION
1 VERIFY FREEZE FRAME DATA HAS BEEN RECORDED 
  • Has FREEZE FRAME DATA been recorded?
Yes Go to the next step.
No Record the FREEZE FRAME DATA on the repair order, then go to the next step.
2 VERIFY RELATED REPAIR INFORMATION AVAILABILITY 
  • Verify related Service Bulletins and/or on-line repair information availability.
  • Is any related repair information available?
Yes Perform repair or diagnosis according to the available repair information.
  • If the vehicle is not repaired, go to the next step.
No Go to the next step.
3 VERIFY CMP SENSOR VOLTAGE 
  • Disconnect the CMP sensor connector.
  • Connect a voltmeter between CMP sensor terminals B and C (sensor-side).
  • Inspect the voltage in AC range while cranking the engine.
  • Is there any voltage?
Yes Go to the next step.
No Go to step 10.
4 INSPECT CMP SENSOR CONNECTOR FOR POOR CONNECTION 
  • Verify that the CMP sensor connector is connected securely.
  • Is the connector normal?
Yes Go to the next step.
No Reconnect the connector, then go to Step 15.
5 INSPECT CMP SENSOR CIRCUIT FOR SHORT TO POWER SUPPLY 
  • Turn the ignition switch off.
  • Disconnect the CMP sensor connector.
  • Turn ignition switch to the ON position (Engine off)
  • Measure the voltage between the following terminals:
    • CMP sensor terminal B (wiring harness-side) and body ground
    • CMP sensor terminal A (wiring harness-side) and body ground
  • Is the voltage B+  ?
Yes Repair or replace the suspected wiring harness, then go to Step 15.
No Go to the next step.
6 INSPECT CMP SENSOR CIRCUIT FOR SHORT TO GROUND 
  • Inspect for continuity between the following terminal and body ground:
    • CMP sensor terminal B (wiring harness-side)
    • CMP sensor terminal C (wiring harness-side)
  • Is there continuity?
Yes Repair or replace the suspected wiring harness, then go to Step 15.
No Go to the next step.
7 INSPECT CMP SENSOR CIRCUITS FOR SHORT CIRCUIT 
  • Inspect for continuity between CMP sensor terminals B and C (wiring harness-side).
  • Is there continuity?
Yes Repair or replace the suspected wiring harness, then go to Step 15.
No Go to the next step.
8 INSPECT PCM CONNECTOR FOR POOR CONNECTION 
  • Disconnect the PCM connector.
  • Inspect for poor connection (damaged, pulled-out terminals, corrosion, etc.).
  • Is there any malfunction?
Yes Repair the terminal, then go to Step 15.
No Go to the next step.
9 INSPECT CMP SENSOR CIRCUIT FOR OPEN CIRCUIT 
  • Inspect for continuity between the following circuits:
    • CMP sensor terminal A (wiring harness-side) and PCM terminal 2P (wiring harness-side)
    • CMP sensor terminal B (wiring harness-side) and PCM terminal 2S (wiring harness-side)
    • CMP sensor terminal C (wiring harness-side) and PCM terminal 2AM (wiring harness-side)
  • Is there continuity?
Yes Go to Step 11.
No Repair or replace the suspected wiring harness, then go to Step 15.
10 INSPECT CMP SENSOR  Yes Go to the Step 15.
No Replace the CMP sensor and go to Step 15.
(See CAMSHAFT POSITION (CMP) SENSOR REMOVAL/INSTALLATION .)
11 VERIFY CMP SENSOR INSTALLATION  Yes Go to the next step.
No Reinstall the CMP sensor and go to Step 15.
12 VERIFY VALVE TIMING MECHANISM INSTALLATION 
  • Verify the valve timing mechanism installation for the following parts:
    • Timing chain misinstallation
    • Loose camshaft sprocket lock bolt
    • Loose crankshaft pulley lock bolt
  • Is the valve timing mechanism installed correctly?
Yes Go to the next step.
No Reinstall the following parts and go to Step 15.
  • Timing chain
  • Camshaft sprocket
  • Crankshaft pulley
13 INSPECT STOPPER PIN MECHANISM  Yes Go to the next step.
No Replace the variable valve timing actuator, then go to Step 15.
(See VARIABLE VALVE TIMING ACTUATOR REMOVAL/INSTALLATION .)
14 INSPECT ROTOR POSITION  Yes VARIABLE VALVE TIMING MECHANISM NORMAL 
NOTE:
  • This DTC is detected as an intermittent concern.
  • The intermittent concern might be removed by cleaning the variable valve timing mode control function.

Go to the next step.
No Replace the variable valve timing actuator, then go to the next step.
(See VARIABLE VALVE TIMING ACTUATOR REMOVAL/INSTALLATION .)
15 VERIFY TROUBLESHOOTING OF DTC P0340 COMPLETED
  • Make sure to reconnect all disconnected connectors.
  • Turn ignition switch to the ON position (Engine off).
  • Clear the DTC from the PCM memory using the WDS or equivalent.
  • Start the engine.
  • Access the MAF PID using the WDS or equivalent.
    NOTE:
    • The MAF PID should indicate 1.95 g/s {0.25 lb/min.} or above  during this test
  • Is same DTC present?
Yes Replace the PCM, then go to the next step.
(See PCM REMOVAL/INSTALLATION .)
No Go to the next step.
16 VERIFY AFTER REPAIR PROCEDURE  Yes Go to the applicable DTC inspection.
(See DTC TABLE  .)
No Troubleshooting completed.