How-to guides · 2026-11-27

Hysterisis table help

Stefan Bogdanescu

Founder & Senior Architect

How to Understand and Configure EGR and Boost Hysteresis Tables on EDC16 ECUs

This tutorial explains how turbocharged diesel engine control systems manage open-loop versus feedback modes for boost pressure and EGR flow using hysteresis tables. You will learn how injection quantity (IQ) determines active mode, how the PID controller operates in feedback mode, and how to interpret these interactions during calibration or diagnostics on EDC16 platforms.

What you'll need

  • An EDC16 ECU-equipped vehicle
  • Diagnostic tool capable of logging real-time data (e.g., IBDII SAE, HDS)
  • Access to ECU maps (N75 tables, boost tables, EGR duty tables, hysteresis thresholds)
  • Understanding of basic turbo mechanics and EGR valve function

Step 1: Identify the Role of Injection Quantity in Mode Selection

The hysteresis table acts as a switch that determines whether the engine operates in open-loop or feedback mode. The decision is based on injection quantity (IQ), not RPM alone.

  • Boost Control:

    • Low IQ: Open-loop mode. The turbo is controlled solely by N75 wastegate tables. The ECU ensures the requested N75 duty is met but does not directly monitor actual boost pressure.
    • High IQ: Feedback mode. A PID controller compares requested boost to actual boost, adjusting the wastegate to match them.
  • EGR Control:

    • Low IQ: Feedback mode. The ECU uses MAF (mass air flow) as the target. It opens the EGR valve to cut actual MAF down to the requested value defined in EGR tables.
    • High IQ: Open-loop mode (EGR off). The EGR valve closes, allowing 100% of the measured MAF into the intake.

Why it matters: At high injection quantities (high load), feedback control ensures precise boost and EGR management for efficiency and emissions. At low IQ (light load/idle), open-loop simplifies control and reduces sensor dependency.

Step 2: Understand Open-Loop vs. Feedback Operation

Open-Loop Mode

  • Boost: The N75 wastegate duty is set directly from the N75 table based on RPM and IQ. The ECU does not care about actual boost pressure—only that the requested duty is achieved. This mode is common at idle or very low load.
  • EGR: The EGR valve is fully closed (duty 0%), so actual MAF equals measured MAF. No PID correction occurs for air mass reduction.

Feedback Mode

  • Boost: The PID controller compares requested boost (from boost table) to actual boost (from boost sensor). It adjusts the N75 wastegate duty to close or open the valve until actual boost matches the request. The initial N75 value comes from the N75 table, but the PID controller refines it in real time.
  • EGR: The ECU targets a specific MAF reduction (from EGR tables). It uses the EGR duty table as an initial valve position and adjusts via PID to ensure actual MAF matches the target. If requested EGR MAF is greater than actual MAF, the valve stays shut to prevent over-reduction.

Key Insight: In feedback mode, sensor data (boost pressure, MAF) actively corrects actuator positions. In open-loop mode, only table values are used, making it less responsive to real-time conditions but simpler and more stable at low load.

Step 3: Interpret Hysteresis Thresholds and Tune Mode Transitions

Hysteresis tables define the IQ thresholds where the engine switches between modes. These thresholds prevent rapid oscillation (chattering) by requiring a different IQ level to exit than to enter a mode.

Boost Hysteresis Example

  • 0–1500 rpm:
    • Switch from open-loop to feedback at IQ ≥ 40 mg.
    • Return to open-loop at IQ < 38 mg.
  • Other RPM ranges: Thresholds may vary but follow the same principle.

Tuning Options

  • Force Feedback Mode: Lower hysteresis thresholds (e.g., 2–1 mg) across all RPM/IQ ranges. This engages PID control even at very low injection quantities, improving boost precision but potentially increasing sensor noise sensitivity.
  • Force Open-Loop Mode: Raise hysteresis thresholds (e.g., 100–98 mg). This disables feedback control, relying solely on N75 tables. Useful when boost sensors are unreliable or during initial calibration to stabilize N75 values.

EGR Hysteresis Example

  • Low IQ: Feedback mode (EGR active). The ECU uses MAF target and PID correction.
  • High IQ: Open-loop mode (EGR off). The valve is fully closed, so actual MAF = measured MAF.

Why it matters: Proper hysteresis tuning prevents mode oscillation during transient driving conditions (e.g., hard acceleration followed by deceleration). It ensures smooth transitions and stable engine behavior.

Step 4: Verify Mode Operation Using Diagnostic Logging

To confirm that hysteresis tables are functioning correctly, log real-time data during controlled driving cycles.

Boost Verification

  1. Log N75 Duty and Actual/Requested Boost:

    • In open-loop mode, N75 duty should match the N75 table value exactly. Actual boost may deviate from requested boost since no PID correction is applied.
    • In feedback mode, N75 duty will differ slightly from the N75 table as the PID controller adjusts it. Actual boost should closely track requested boost.
  2. Check for PID Activity:

    • Observe if N75 duty changes rapidly in response to boost sensor input during feedback mode. If no change occurs, verify that the hysteresis threshold is correctly engaging feedback mode at the current IQ.

EGR Verification

  1. Log MAF and EGR Duty:

    • In feedback mode, actual MAF should track the requested EGR MAF (from EGR tables). The EGR duty will adjust to maintain this match.
    • In open-loop mode, EGR duty should be 0% (valve closed), and actual MAF should equal measured MAF.
  2. Check for Valve Behavior:

    • If requested EGR MAF > actual MAF, the valve should remain shut to prevent over-reduction. Log this condition to confirm correct logic.

Diagnostic Tip

Use a tool like IBDII SAE to log "Requested EGR %" alongside current MAF. This reveals how much air would be available if the EGR valve were fully closed, helping you verify that the EGR system is operating as intended.

Step 5: Calibrate N75 and EGR Duty Tables for Accuracy

Accurate baseline tables are critical for feedback mode to work properly. Start with open-loop mode to establish stable N75 values before enabling PID correction.

N75 Calibration

  1. Force Open-Loop Mode: Set hysteresis thresholds high (e.g., 100–98 mg) to disable feedback control.
  2. Log Idle and Low-Load Behavior: Verify that N75 duty matches the table value at idle and low RPM. Adjust the N75 table if actual boost deviates significantly from expected values.
  3. Enable Feedback Mode: Lower hysteresis thresholds to engage PID control (e.g., 2–1 mg). Log boost behavior again and confirm that actual boost now tracks requested boost closely.

EGR Duty Calibration

  1. Set Target MAF: Define the desired EGR reduction in the EGR table for specific RPM/IQ combinations.
  2. Log Actual vs. Requested MAF: In feedback mode, verify that actual MAF matches the target. Adjust the EGR duty table if there is a consistent offset between requested and actual values.
  3. Test Valve Response: Confirm that the valve opens/closes smoothly without hunting or oscillation. If the valve stalls at an intermediate position, recalibrate the EGR duty table to ensure proper actuator response.

Verification Checks and Troubleshooting

  • Mode Oscillation: If the engine rapidly switches between open-loop and feedback mode during driving, widen the hysteresis thresholds (e.g., increase the gap between entry and exit IQ levels).
  • Boost Instability in Feedback Mode: If actual boost does not track requested boost, verify:
    • N75 table accuracy.
    • Boost sensor calibration.
    • PID controller tuning parameters (if accessible).
  • EGR Not Engaging: If EGR remains closed in feedback mode:
    • Confirm that hysteresis thresholds are set to engage feedback at the current IQ.
    • Verify that requested EGR MAF is less than actual MAF; otherwise, the valve may stay shut by design.
  • Smoke During Hard Acceleration: Black smoke often indicates insufficient air supply or poor combustion. Check if EGR is properly disengaging (closing) at high IQ to allow maximum airflow.

Final Note: Long-Term PID Values

The PID controller in feedback mode updates long-term values that may influence actuator positions over time. The exact precedence of these long-term corrections relative to real-time table values can vary by ECU version and calibration. Verify the behavior under sustained load conditions using diagnostic logging if precise boost or EGR performance is critical, such as during emissions testing or high-performance tuning. Always confirm final behavior on your specific vehicle with actual data logs rather than relying solely on theoretical descriptions.