Back to Blog
AIPublished on November 15, 2026

Decompiling Obsolete Silicon: Reverse-Engineering 1990s ECU Telemetry with Budget Microcontrollers and LLM Disassemblers

Bridging legacy automotive protocols with modern computing no longer requires four-figure hardware and months of manual disassembling. Discover how pairing low-cost microcontrollers with LLM-assisted state machine recovery decodes proprietary pre-OBD-II engine telemetry in real time.

The Dark Age of Pre-OBD-II Automotive Telemetry

Before the United States federal government mandated the OBD-II standard (SAE J1962) in 1996, automotive manufacturers treated diagnostic protocols like proprietary crown jewels. If you pop the hood of a 1989–1994 vehicle—whether it is a GM truck, a Fox-body Mustang, or an early Jeep Cherokee with an AMC-era Renix or Chrysler single-board engine controller (SBEC)—you will not find a unified 16-pin CAN/K-Line port under the dashboard. Instead, you encounter a chaotic diaspora of proprietary diagnostic ports: GM's Assembly Line Diagnostic Link (ALDL), Ford's EEC-IV Self-Test Automatic Readout (STAR), and Chrysler's Serial Communications Interface (SCI).

These systems were powered by archaic 8-bit microcontrollers, predominantly Motorola 68HC11 variants or Intel 8051 derivatives, executing compiled assembly directly out of masked ROMs or OTP (One-Time Programmable) EPROMs. Diagnostics were never intended for end-user laptops; they were designed for proprietary, multi-thousand-dollar dealership scan tools (such as the Chrysler DRB-II or Tech 1) transmitting over quirky physical layers at oddball baud rates like 8192 or 7812.5 baud.

Traditionally, reverse-engineering these systems meant hunting down paper service manuals, probing pins with a dual-channel oscilloscope, dumping socketed EPROM chips with a Willem programmer, and staring into the abyss of 68HC11 assembly in IDA Pro for months. Today, the convergence of disposable 32-bit silicon—such as the $3 Raspberry Pi Pico (RP2040) or an ATmega328P—with multimodal reasoning models like Claude 3.7 and OpenAI Codex has inverted this equation. By transforming raw logic analyzer bitstreams into structured semantic protocols, developers can decompile proprietary binary state machines in an afternoon.

Hardware Layer: Interfacing 5V Open-Collector Logic with 3.3V Silicon

The primary barrier to interrogating a 1990s ECU is electrical survivability. Automotive power systems are notoriously hostile environments: 12V nominal lines regularly swing to 14.7V during alternator charging and can experience 60V load-dump transients when inductive loads disconnect. Furthermore, pre-OBD-II serial lines typically operate on high-impedance, inverted open-collector 5V or 12V logic.

Take Chrysler's SCI protocol as an exemplar. The ECU communicates via two dedicated lines: SCI Receive (Rx) and SCI Transmit (Tx). While modern microcontrollers expect symmetric push-pull logic, Chrysler SCI Tx relies on an open-collector NPN transistor inside the ECU that pulls the line to ground (0V) for a logical zero and floats it high through an internal or external pull-up resistor (5V or 12V) for a logical one.

Connecting this directly to a 3.3V microcontroller like an RP2040 will instantly blow its GPIO protection diodes. A simple, robust interface requires two stages:

  1. Level-Shifting and Isolation: An optocoupler (e.g., PC817 or 6N137 for high-speed edges) or a dual NPN transistor circuit to invert and safely clamp the signal to 3.3V.
  2. Baud Rate Clocking: Chrysler SCI diagnostics toggle between standard 7812.5 baud (derived from an internal 8 MHz crystal divided by $2^{10}$) and 9600 baud once initialized. Standard PC USB-UART bridges cannot lock onto 7812.5 baud without fractional divider support.

Here is how to configure an RP2040 using its Programmable I/O (PIO) state machine to sample non-standard, bit-level automotive UART with zero CPU overhead:

// rp2040_sci_rx.pio
.program sci_rx
.side_set 0

; 7812.5 baud at 125MHz system clock: 125,000,000 / 7812.5 = 16,000 cycles/bit
; Setup state machine to sample mid-bit

start:
    wait 0 pin 0        ; Wait for falling edge of Start Bit
    set x, 7       [24] ; Prepare 8 bits, delay to middle of start bit

bitloop:
    in pins, 1     [31] ; Sample Rx pin into ISR and wait
    jmp x-- bitloop     ; Loop 8 times

    push block          ; Push full byte into FIFO
    wait 1 pin 0        ; Wait for stop bit

By unloading the signal recovery onto the RP2040's hardware PIO, timing jitter is eradicated. The microcontroller acts as a transparent, high-speed bridge streaming raw logic transitions directly to a host workstation over USB serial.

Automated Protocol Reconstruction via Reasoning Engines

Once raw serial packets are captured during an ignition-on sequence, developers face a stream of unindexed hex bytes. Consider this raw 24-byte packet dumped from a 1994 Jeep Grand Cherokee 4.0L SBEC unit upon receiving a handshake probe 0x12:

0x12 0x18 0x00 0x82 0x3F 0x00 0x00 0x4B 0x1A 0xFF 0x22 0x9C 0x14 0x00 0x55 0x21 0x02 0x10 0x3C 0x8F 0x00 0x00 0x48 0x2E

Historically, identifying which byte correlates to Coolant Temperature (CTS), Manifold Absolute Pressure (MAP), Engine Speed (RPM), or Throttle Position (TPS) required systematic engine stimulation: manually twisting the throttle shaft, heating the temp sensor with a heat gun, and observing byte delta changes in a hex editor.

Today, modern LLMs act as neurosymbolic protocol decoders. By feeding the LLM an unannotated hex stream alongside the disassembly of a related Motorola 68HC11 firmware dump (easily obtained from open-source enthusiast archives), the model uses cross-referencing to determine table offsets and bitmasks.

The Prompting Pipeline

Rather than asking generic questions, provide the LLM with the processor architecture, RAM register bounds, and memory-mapped I/O ranges:

Target: Motorola 68HC11 (MC68HC11A8), Internal RAM at $0000-$00FF, Analog ADC Registers at $1031-$1034.
Context: Captured SCI continuous transmission packet (24 bytes). 
Task: Parse the loop routines inside this decompiled block to identify the transfer function mapping raw ADC values to packet indices.
; Decompiled routine from 68HC11 SBEC ROM
LDAB    $1031       ; Load AD Port 1 (Coolant Temp Sensor)
STAB    $004B       ; Store in internal RAM address $4B
LDX     #$0040      ; Base address for Diagnostic Frame
LDAA    #$18        ; Frame Length = 24 bytes
JSR     BUILD_SCI_FRAME

The LLM instantly maps $1031 directly to byte index 7 (0x4B) in the diagnostic payload. Furthermore, by recognizing the standard Steinhart-Hart NTC thermistor equation embedded in the ROM's math lookup routines, the model generates the exact C-based deserializer:

pub fn parse_coolant_temp(raw_byte: u8) -> f32 {
    // Extracted transfer function: ADC count to Volts, mapped to GM/Chrysler 2-point curve
    let volts = (raw_byte as f32) * (5.0 / 255.0);
    let resistance = (volts * 10000.0) / (5.0 - volts);
    
    // Steinhart-Hart coefficients synthesized from ROM lookup arrays
    let steinhart = (resistance / 10000.0).ln() / 3950.0 + (1.0 / (25.0 + 273.15));
    let temp_celsius = (1.0 / steinhart) - 273.15;
    
    temp_celsius
}

Closing the Loop: Real-Time Diagnostic Emulation

Decoding passive telemetry is only half the battle. Pre-OBD-II ECUs feature actuator testing loops: commands that allow testing fuel injector balance, cycling the idle air control (IAC) stepper motor, or advancing the base ignition timing table via bidirectional request bytes.

Modern agentic workflows (such as Claude Code running in a CLI environment) can ingest an assembly disassembly, write an Arduino or C++ firmware payload, flash it to the connected microcrontroller via bossac or picotool, monitor the serial console response, and iterate automatically when framing errors occur.

If the ECU responds to a command request with 0xFE (Negative Acknowledge), the agent identifies the packet checksum failure, inspects the byte-twiddling logic (e.g., verifying whether the protocol uses an additive XOR checksum or a two's-complement sum), modifies the C++ code, re-compiles, and successfully triggers the diagnostic mode in minutes.

// Calculated Checksum implementation generated via LLM assembly analysis
uint8_t calculate_sbec_checksum(const uint8_t *data, size_t len) {
    uint16_t sum = 0;
    for (size_t i = 0; i < len; i++) {
        sum += data[i];
    }
    // Protocol specifies: Checksum is the 2's complement of the low byte
    return (uint8_t)((~sum + 1) & 0xFF);
}

The Broader Impact on Embedded Systems Engineering

What makes this pipeline revolutionary is not merely reviving vintage vehicles. The global industrial infrastructure—from water treatment facilities and transit switches to legacy aerospace ground equipment and municipal HVAC units—runs heavily on obscure, unstandardized microcontrollers developed between 1985 and 1998.

Many of the original equipment manufacturers (OEMs) have gone bankrupt, lost their source code, or charge astronomical licensing fees for legacy support. By combining $3 high-speed ARM microcontrollers capable of software-defined physical-layer manipulation with generative models capable of cross-correlating binary dumps to functional code, the cost of legacy hardware reverse engineering has collapsed to near zero.

Engineers are no longer blind when facing obsolete silicon. With high-fidelity signal sampling and rapid semantic parsing, the impenetrable proprietary black boxes of the late 20th century are finally open systems.

#Reverse Engineering#Embedded Systems#AI Code Analysis#Microcontrollers#Firmware