Toyota
Yaris NCP90 91 92 93
Repair Manual
1Nz-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 Conditions | Trouble Areas |
| 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.
| Items | Contents |
| Terminals | CH1: G2+ - NE- CH2: NE+ - NE- |
| Equipment Settings | 5 V/Division, 20 ms./Division |
| Conditions | Cranking or idling |
WIRING DIAGRAM
Refer to DTC P0335 (Click here).INSPECTION PROCEDURE
- HINT:
- Read freeze frame data using an intelligent tester. Freeze frame data record the engine condition when malfunctions are detected. 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 C18 Camshaft Position (CMP) sensor connector.
Measure the resistance between terminals 1 and 2.
- Standard resistance:
Tester Connections Conditions Specified Conditions 1 - 2 Cold 1,630 to 2,740 Ω 1 - 2 Hot 2,065 to 3,225 Ω
- HINT:
- Terms cold and hot refer to the temperature of the coils. Cold means approximately -10° to 50°C (14 ° to 122°F). Hot means approximately 50° to 100°C (122° to 212°F).
Reconnect the CMP sensor connector.
| REPLACE CAMSHAFT POSITION SENSOR (Click here) | |||
| OK | |
![]() |

Disconnect the C18 CMP sensor connector.
Disconnect the C20 ECM connector.
Check the resistance.
- Standard resistance (Check for open):
Tester Connections Specified Conditions G2+ (C18-1) - G2+ (C20-99) Below 1 Ω NE- (C18-2) - NE- (C20-121)
- Standard resistance (Check for short):
Tester Connections Specified Conditions G2+ (C18-1) or G2+ (C20-99) - Body ground 10 kΩ or higher NE- (C18-2) or NE- (C20-121) - Body ground
Reconnect the ECM connector.
Reconnect the CMP sensor connector.
| REPAIR OR REPLACE HARNESS OR CONNECTOR | |||
| OK | |
![]() |

Check the CMP sensor installation.
- 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 (Click here) | |||
| OK | |
![]() |
| NEXT | |
![]() |
Connect an intelligent tester to the DLC3.
Turn the ignition switch to ON and turn the tester on.
Clear DTCs (Click here).
Start the engine.
Select the following menu items: Powertrain / Engine and ECT / DTC.
Read DTCs.
- Result:
Display (DTC Output) Proceed To No output A P0340 B
- HINT:
- If the engine does not start, replace the ECM.
| END | |||
| A | |
![]() | |
| REPLACE ECM (Click here) | |


