Blog · 2026-11-10
Letting Off Gas Forces Open Loop
Stefan Bogdanescu
Founder & Senior Architect
Letting Off Gas Forces Open Loop
When analyzing engine data from a 98 Mazda 626, you might encounter a specific transient behavior: the ECU briefly drops out of closed loop and reverts to open loop for approximately one second whenever the driver lifts off the throttle. This occurs whether the vehicle is decelerating after a high-rev gear or simply rolling off a steady cruise at high RPM. While this pattern appears in the data, it contradicts the typical expectation that an engine remains in closed loop as long as oxygen sensor feedback is valid and stable.
To understand why this happens, we must look at how modern ECUs manage fuel trims based on lambda values. Closed loop operation relies on the primary and secondary oxygen sensors to adjust the air-fuel ratio around stoichiometry (14.7:1). However, the ECU's logic includes a safety mechanism known as "fuel cutoff" or "deceleration enrichment." When you lift off the gas, the throttle plate closes, causing a rapid drop in manifold pressure and a significant reduction in airflow.
The core issue lies in how the ECU interprets this sudden vacuum change relative to its learned fuel trim values. During closed loop operation, the ECU maintains specific long-term and short-term fuel trims to compensate for variations in oxygen sensor response time and ambient conditions. When you abruptly cut the throttle, the airflow drops so quickly that the calculated fuel delivery based on these stored trims becomes excessive for the new, lower air mass. The engine momentarily runs rich.
Crucially, if the O2 sensors detect a lambda value significantly below 1 (indicating a rich condition) immediately after the throttle event, many ECU architectures interpret this not as a sensor error or a transient spike, but as a sign that closed loop control has lost validity. The logic assumes that if the mixture is too rich for the current load point, the feedback loop might be unstable or the sensors are overwhelmed by the sudden change in lambda dynamics. Consequently, the ECU forces the system into open loop to prevent running excessively rich, which could lean out a spark plug or flood the cylinder.
Once the throttle stabilizes at the new low position and the airflow rate settles, the ECU re-evaluates the oxygen sensor readings. If the sensors return to their expected responsiveness within a few hundred milliseconds, the system transitions back to closed loop. In the case of the Mazda 626, this transition takes about a second, likely due to the time required for the lambda values to stabilize and for the ECU's internal counters to reset to zero fuel trim before re-engaging feedback control.
This behavior is distinct from a "fuel cut" event where the ECU stops injecting fuel entirely during deceleration to save on emissions and improve response. In a true fuel cut, oxygen sensors often stop producing voltage because they are starved of fuel, effectively breaking the closed loop condition permanently until the throttle is opened again. The phenomenon observed in the Mazda data shows a temporary exit from closed loop rather than a complete fuel cut, suggesting the ECU is prioritizing stability over immediate feedback control during the transient vacuum spike.
For developers working with embedded systems or tuning ECUs, this highlights a critical trade-off between aggressive fuel efficiency algorithms and robustness against transient disturbances. A system that aggressively maintains closed loop during rapid deceleration risks running rich if the trim values aren't perfectly calibrated for every load point. Conversely, forcing open loop during these events ensures emissions compliance but sacrifices the immediate correction capabilities of feedback control. The decision to drop out of closed loop is a protective measure, ensuring the engine doesn't enter a state where it cannot recover quickly once the driver re-applies throttle.