Toyota
Camry ACV40 GSV40
Repair Manual
2Az-Fe Engine Control System
Sfi System
DTC P0340 Camshaft Position Sensor "A" Circuit (Bank 1 or Single Sensor)
DESCRIPTION
The Camshaft Position (CMP) sensor consists of a magnet and an iron core which is wrapped with copper wire, and is installed onto the cylinder head. When the camshaft rotates, each of 3 teeth on the camshaft passes through the CMP sensor. This activates the internal magnet in the sensor, generating a voltage in the copper wire. The camshaft rotation is synchronized with the crankshaft rotation. When the crankshaft turns twice, the voltage is generated 3 times in the CMP sensor. The generated voltage in the sensor acts as a signal, allowing the ECM to locate the camshaft position. This signal is then used to control ignition timing, fuel injection timing, and the VVT system.| DTC No. | DTC Detection Condition | Trouble Area |
| P0340 | Case 1
|
|
- HINT:
- DTC P0340 indicates a malfunction relating to the CMP sensor (+) circuit (the wire harness between the ECM and CMP sensor, and the CMP sensor itself).

- HINT:
- The correct waveform is as shown in the illustration.
- G2+ stands for the CMP sensor signal, and NE+ stands for the Crankshaft Position (CKP) sensor signal.
- Grounding failure of the shielded wire may cause noise in waveforms.
| Item | Content |
| Terminals | CH1: G2+ - G2- CH2: NE+ - NE- |
| Equipment Settings | 5 V/DIV. 20 ms./DIV. |
| Conditions | Cranking or idling |
WIRING DIAGRAM
Refer to DTC P0335 (Click here).INSPECTION PROCEDURE
- HINT:
- Read freeze frame data using the intelligent tester. The ECM records vehicle and driving condition information as freeze frame data the moment a DTC is stored. When troubleshooting, freeze frame data can help determine if the vehicle was moving or stationary, if the engine was warmed up or not, if the air-fuel ratio was lean or rich, and other data from the time the malfunction occurred.

Disconnect the C31 Camshaft Position (CMP) sensor connector.
Measure the resistance between terminals 1 and 2.
- Standard resistance:
Tester Connection Specified Condition 1 - 2 950 to 1,250 Ω
Reconnect the CMP sensor connector.
| REPLACE CAMSHAFT POSITION SENSOR | |||
| OK | |
![]() |

Disconnect the C31 CMP sensor connector.
Disconnect the C24 ECM connector.
Measure the resistance between the terminals of the wire harness side connectors.
- Standard resistance (Check for open):
Tester Connection Specified Condition G2+ (C31-1) - G2+ (C24-99) Below 1 Ω G2- (C31-2) - G2- (C24-98)
- Standard resistance (Check for short):
Tester Connection Specified Condition G2+ (C31-1) or G2+ (C24-99) - Body ground 10 kΩ or higher G2- (C31-2) or G2- (C24-98) - Body ground
Reconnect the ECM connector.
Reconnect the CMP sensor connector.
| REPAIR OR REPLACE HARNESS OR CONNECTOR | |||
| OK | |
![]() |

Check the CMP sensor installation condition.
- OK:
- Sensor is installed correctly.
| SECURELY REINSTALL SENSOR | |||
| OK | |
![]() |

Remove the cylinder head cover.
Turn the crankshaft pulley, and align its groove with the timing mark "0" on the timing chain cover.
Check that the timing marks on the camshaft timing sprocket and camshaft timing gear are facing upward as shown in the illustration.
- If not, turn the crankshaft 1 revolution (360°), then align the marks as above.
- OK:
- Timing marks on camshaft timing gears are aligned as shown in the illustration.
- If not, turn the crankshaft 1 revolution (360°), then align the marks as above.
Reinstall the cylinder head cover.
| ADJUST VALVE TIMING | |||
| OK | |
![]() |
Check the teeth of the camshaft.
- OK:
- Camshaft teeth do not have any cracks or deformation.
| REPLACE CAMSHAFT | |||
| OK | |
![]() |
| NEXT | |
![]() |
Connect the intelligent tester to the DLC3.
Turn the ignition switch to the ON position and turn the tester on.
Clear the DTCs (Click here).
Start the engine.
Select the following menu items: Powertrain / Engine and ECT / DTC.
Read the DTCs.
- Result:
Display (DTC Output) Proceed to No output A P0340 B
- HINT:
- If the engine does not start, replace the ECM.
| REPLACE ECM | |||
| A | |
![]() | |
| END | |


