M7 SmazTunerECU reference
Chapter 54 of 60·Part XII of XIV

Launch Control & Anti-Lag

2-step launch control, rally anti-lag, and rolling launch firmware.

ECUs06A906032LP
6 symbols in this chapter

Open the symbol index

In this page

In competitive drag racing, time attack, and circuit environments, turbocharged vehicles suffer from a fundamental thermodynamic disadvantage: turbo lag from a standstill and during gear transitions. Standard factory rev limiters employ fuel-injector cutouts, which extinguish the combustion flame front, eliminating exhaust mass flow and causing boost pressure to collapse instantly to 0.0 bar.

By injecting custom assembly routines directly into the C167CR execution pipeline, an engineer can reprogram the Bosch ME7.5 operating system to support Stationary Launch Control (2-Step), No-Lift Shift (NLS), True Rally Anti-Lag (ALS), and Highway Rolling Antilag.

code
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│                     C167CR LAUNCH CONTROL & ANTI-LAG EXECUTION LOGIC                             │
├──────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                                  │
│   [ Vehicle Speed: vfzg_w <= 3 km/h ]                                                            │
│   [ Clutch Pedal Switch: B_kuppl == 1 (ECU Pin 39) ]                                            │
│   [ Accelerator Pedal Position: wped_w >= 95% ]                                                  │
│                                  │                                                               │
│                                  ▼ All Launch Conditions Met                                     │
│   ┌─────────────────────────────────────────────────────────────────────────┐                    │
│   │ Custom C167 Code Hook at Main Ignition Calculation Routine (0x028A10)   │                    │
│   └──────────────────────────────┬──────────────────────────────────────────┘                    │
│                                  │                                                               │
│         ┌────────────────────────┴────────────────────────┐                                      │
│         ▼                                                 ▼                                      │
│   ┌───────────────────────────┐                     ┌───────────────────────────┐                │
│   │ Spark Timing Override:    │                     │ Soft Ignition Cut Pattern:│                │
│   │ Clamp ZW to -18.0° to     │                     │ Drop 2 of 4 spark pulses  │                │
│   │ -25.0° KW (ATDC Retard)   │                     │ to hold RPM exactly at    │                │
│   │ Burning charge exits into │                     │ target launch ceiling     │                │
│   │ exhaust manifold runners! │                     │ (e.g., 4000 RPM)          │                │
│   └─────────────┬─────────────┘                     └─────────────┬─────────────┘                │
│                 │                                                 │                              │
│                 └────────────────────────┬────────────────────────┘                              │
│                                          ▼                                                       │
│   ┌─────────────────────────────────────────────────────────────────────────┐                    │
│   │ Exhaust Gas Enthalpy Surge Powers Turbine Wheel at 0 MPH!               │                    │
│   │ • Generates 0.8 bar to 1.3 bar (12 - 19 psi) Positive Boost on Launch!  │                    │
│   │ • Driver Dumps Clutch: Instantaneous Maximum Torque Delivery            │                    │
│   └─────────────────────────────────────────────────────────────────────────┘                    │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘

54.1. Assembly Implementation: The C167 2-Step Launch Routine

To execute stationary launch control, a hook is placed inside the 10ms synchronous task queue immediately preceding the final dwell and spark angle calculation (n-synchrone Zündausgabe):

code
; ==============================================================================
; C167 Custom Firmware Patch: Stationary Launch Control (2-Step)
; Target File: 06A906032LP (Flash Offset: 0x07F800 Hooked from 0x028A10)
; ==============================================================================
patch_launch_control:
    MOV     R4, [0xFD02]          ; Read vehicle speed word (vfzg_w)
    CMP     R4, #0x0030           ; Compare with 3.0 km/h threshold
    JNB     CC_ULE, exit_patch    ; If speed > 3.0 km/h, branch to standard logic

    MOV     R4, [0xFD18]          ; Read digital input byte containing B_kuppl
    JNB     R4.3, exit_patch      ; If Clutch Pedal NOT depressed (Bit 3 == 0), exit

    MOV     R4, [0xFD44]          ; Read driver accelerator pedal position (wped_w)
    CMP     R4, #0x3A00           ; Compare with 90% throttle threshold
    JNB     CC_UGT, exit_patch    ; If throttle < 90%, exit

    ; --- All Launch Conditions Verified ---
    MOV     R4, [0xFD00]          ; Read instantaneous engine RPM (nmot_w)
    CMP     R4, #0x3E80           ; Compare with Launch Target RPM (e.g. 4000 RPM)
    JNB     CC_UGT, spark_retard  ; If RPM < 4000, apply retard to build boost

    ; --- RPM Above Launch Ceiling: Execute Soft Ignition Drop ---
    ; Note: Internal RAM 0x382A00 accessed via DPP2 (0x00E0): 0x8000 | 0x2A00 = 0xAA00
    MOV     R5, [0xAA00]          ; Read scratchpad rotation counter via DPP2 (RAM 0x382A00)
    ADD     R5, #0x0001
    AND     R5, #0x0003           ; Modulo 4 counter
    MOV     [0xAA00], R5          ; Write updated counter via DPP2 (RAM 0x382A00)
    CMP     R5, #0x0002           ; Drop 50% of spark events
    JNB     CC_EQ, skip_spark

spark_retard:
    MOV     [0xFD60], #0xF700     ; Clamp actual ignition timing ZW to -20.0° KW
    RETS

skip_spark:
    MOV     [0xFD62], #0x0001     ; Set spark suppress flag for current cylinder
    RETS

exit_patch:
    ; Restore original overwritten instructions and return
    MOV     R4, [0xFD60]
    RETS

54.2. Rally Anti-Lag System (ALS) Dynamics

While launch control operates from a standstill, Rally Anti-Lag (ALS) functions off-throttle during high-speed cornering:

  1. Air Bypassing: When the driver lifts off the throttle entering a turn, the ECU commands the electronic throttle motor G186 to remain cracked open by 12°… 18°, pumping continuous fresh air through the cylinders.
  2. Extreme Ignition Retard: Spark timing is driven deep into negative territory: -30°… -35° KW ATDC.
  3. Exhaust Manifold Combustion: Fuel is injected normally, but the spark fires so late that combustion occurs primarily as the mixture expands through the exhaust valves into the manifold.
  4. Instantaneous Turbine Spool: The explosive expansion in the manifold keeps the turbocharger spinning at > 120,000 rpm on closed throttle, delivering instantaneous full boost (> 1.5 bar) the millisecond the driver re-applies the accelerator at the corner exit!
  5. Thermal Protection Timers: Because ALS generates manifold gas temperatures exceeding 1100°C, continuous operation is strictly capped at 3.0 seconds per overrun event via internal countdown timers to prevent melting the turbine housing.

54.3. Rolling Launch Control (Highway Antilag)

Rolling launch allows a driver participating in rolling-start acceleration trials (e.g., 40… 60 mph roll racing) to pre-spool the turbocharger while maintaining a steady vehicle velocity:

  • Trigger Interface: The driver latches the cruise control stalk switch (GRA Set / Res) on the steering column while holding the accelerator pedal pinned at 100% WOT.
  • Torque Nullification: The C167 microcode detects the active GRA button press and immediately pulls ignition timing to -15° KW and initiates soft spark cuts.
  • Velocity Lock: Despite wide-open throttle, net engine brake torque matches road load. Vehicle speed remains held at 50 mph, while manifold boost pressure climbs from vacuum to 1.4 bar (20 psi).
  • The Launch: The instant the driver releases the cruise control switch, the custom code unlatches the spark clamp, unleashing maximum boost and peak engine torque in 0 milliseconds without a trace of turbo lag!
Esc
↑↓ move↵ openEsc close