GM Service Manual Online
For 1990-2009 cars only

Diagnostic Instructions

    • Perform the Diagnostic System Check - Vehicle prior to using this diagnostic procedure.
    • Review Strategy Based Diagnosis for an overview of the diagnostic approach.
    •  Diagnostic Procedure Instructions provides an overview of each diagnostic category.

DTC Descriptors

DTC P0040: HO2S Signals Swapped Banks 1 and 2 Sensor 1

Circuit Description

The wide band heated oxygen sensor (HO2S) measures the amount of oxygen in the exhaust system and provides more information than the switching style HO2S. The wide band sensor consists of an oxygen sensing cell, an oxygen pumping cell, and a heater. The exhaust gas sample passes through a diffusion gap between the sensing cell and the pumping cell. The engine control module (ECM) supplies a voltage to the HO2S and uses this voltage as a reference to the amount of oxygen in the exhaust system. An electronic circuit within the ECM controls the pump current through the oxygen pumping cell in order to maintain a constant voltage in the oxygen sensing cell. The ECM monitors the voltage variation in the sensing cell and attempts to keep the voltage constant by increasing or decreasing the amount of current flow, or oxygen ion flow, to the pumping cell. By measuring the amount of current required to maintain the voltage in the sensing cell, the ECM can determine the concentration of oxygen in the exhaust. The HO2S voltage is displayed as a lambda value. A lambda value of 1 is equal to a stoichiometric air fuel ratio of 14.7:1. Under normal operating conditions, the lambda value will remain around 1. When the fuel system is lean, the oxygen level will be high and the lambda signal will be high or more than 1. When the fuel system is rich, the oxygen level will be low, and the lambda signal will be low or less than 1. The ECM uses this information to maintain the correct air/fuel ratio. If the ECM detects that the HO2S signals are the opposite of the commanded air/fuel ratio for both banks, this DTC sets.

Conditions for Running the DTC

    • The engine is operating.
    • The front heated oxygen sensors are in closed loop.
    • The ECM is commanding the primary heated oxygen sensor fuel trim control.
    • DTC P0040 runs continuously once the above conditions are met.

Conditions for Setting the DTC

    • The ECM detects that the front HO2S signal for 1 bank of the engine is more than the expected value, while the other front HO2S is less than less than the expected value.
    • The above conditions exists for more than 80 seconds.

Action Taken When the DTC Sets

DTC P0040 is a Type B DTC.

Conditions for Clearing the MIL/DTC

DTC P0040 is a Type B DTC.

Diagnostic Aids

This diagnostic detects if the front heated oxygen sensors are not connected to the correct bank of the engine.

Reference Information

Schematic Reference

Engine Controls Schematics

Connector End View Reference

    •  Engine Control Module Connector End Views
    •  Engine Controls Connector End Views

Electrical Information Reference

    •  Circuit Testing
    •  Connector Repairs
    •  Testing for Intermittent Conditions and Poor Connections
    •  Wiring Repairs

DTC Type Reference

Powertrain Diagnostic Trouble Code (DTC) Type Definitions

Scan Tool Reference

    •  Scan Tool Data List
    •  Scan Tool Data Definitions
    •  Scan Tool Output Controls

Circuit/System Verification

  1. Ignition ON, observe the DTC information with a scan tool. Verify no other HO2S DTCs are set.
  2. If a DTC is set, refer to Diagnostic Trouble Code (DTC) List - Vehicle.
  3. Operate the engine at 1500 RPM for two minutes. Observe the DTC information with a scan tool. DTC P0040 should not set.
  4. If the DTC failed this ignition, switch the HO2S Bank 1 Sensor 1 harness connector with the HO2S Bank 2 Sensor 1 harness connector.
  5. Operate the vehicle within the Conditions for Running the DTC to verify the DTC does not reset. You may also operate the vehicle within the conditions that you observed from the Freeze Frame/Failure Records data.

Repair Instructions

Perform the Diagnostic Repair Verification after completing the diagnostic procedure.

    •  Heated Oxygen Sensor Replacement - Bank 1 Sensor 1
    •  Heated Oxygen Sensor Replacement - Bank 2 Sensor 1