Every sensor reading, injection pulse and map value in an engine ECU depends on one thing that is easy to forget: clean, stable power. When the supply, the grounds or the internal sensor references go wrong, the ECU can show a strange mix of fault codes, refuse to start the engine or stop responding to a diagnostic or tuning tool. This article explains how an ECU is powered, what the main relay and the 5 V sensor references do, and how this knowledge helps with diagnosis and safe ECU reading and writing on cars, trucks, tractors and motorcycles.

Permanent supply, switched supply and wake-up
Most automotive wiring uses the DIN terminal names. KL30 is permanent battery positive, KL15 is the ignition-switched feed, KL31 is ground and KL87 is the output of a relay. A typical engine ECU has a small permanent feed from KL30, so it can keep some memory alive and react to a wake-up, and one or more main supply pins that carry the working current.
The ECU wakes up when it sees KL15, or on many newer vehicles when a wake-up message or signal arrives over the network. It then switches on the main relay, and the relay output feeds the ECU’s main supply pins and often the injectors, coils, sensors and other actuators through separate fuses. On cars the system runs on 12 V, while most heavy trucks and many large tractors use 24 V, so the ECU, relays and tools must match the vehicle.
Why the ECU controls its own main relay
When the key is turned off, many ECUs do not switch off immediately. They keep the main relay energised for a period called after-run. During this time the ECU can save adaptation values and fault memory, run the cooling fan, move the throttle or flaps through a self-test and close down in an ordered way. Only then does it release the relay and go to sleep.
This is why disconnecting the battery, or opening a truck battery isolator, straight after key-off is a bad habit. The ECU may lose learned values and log a code such as P2610. On trucks and agricultural machines with a battery master switch, follow the maker’s instruction about how long to wait before switching it off.
Many smaller motorcycles do not use an ECU-controlled main relay. Power comes through the key switch, the engine stop switch and sometimes the side-stand and clutch circuits, so a fault in those switches can look like a dead ECU.
Grounds: power and signal
An ECU usually has several ground pins. Power grounds carry the large currents from injector, coil and actuator drivers. Sensor grounds are separate returns that run back into the ECU, so the sensor signal is measured against a clean reference instead of the engine block, which may have a few tenths of a volt of noise on it. A loose or corroded engine ground strap can therefore cause effects that look like sensor faults, misfires or communication errors.
The 5 V sensor reference circuits
Most pressure and position sensors, such as MAP, rail pressure, throttle and pedal sensors, need a stable supply to produce a ratiometric signal. The ECU produces regulated 5 V reference supplies internally. These are protected against short circuits and monitored by the ECU, and they are usually labelled “A”, “B” and “C” in fault code descriptions.

The important detail for diagnosis is that one reference often feeds several sensors. If one sensor develops an internal short, or a chafed wire touches ground, the whole reference is pulled down. Suddenly the MAP, rail pressure and one pedal track all read wrong at the same moment, and the ECU stores a reference voltage code plus a list of plausibility codes. Safety-related sensors with two tracks, like the accelerator pedal, normally take their two tracks from different references, so a single fault does not remove both.
Diagnosing supply and reference faults
When several unrelated sensors fail together, think about what they share before replacing parts. A good order is:
- Read codes in all modules and note which sensors fail together.
- Check the battery and charging system at rest, while cranking and while running.
- Check the fuses and the main relay, then measure the relay output at the ECU connector.
- Do a voltage drop test on supply and ground circuits under load. A meter reading at rest can look perfect on a circuit that collapses when current flows.
- Measure the 5 V reference at a sensor connector. If it is low, unplug the sensors on that circuit one at a time. When the voltage returns, you have found the sensor or the branch with the short.
- Inspect connectors and harnesses for water, corrosion, chafing and badly made add-on wiring.
Back-probe connectors carefully and avoid piercing the insulation, because pierced wires let moisture in and cause a new fault later.

Why power matters for ECU reading and writing
Reading or writing an ECU can take several minutes, and the ECU and tool both need stable voltage the whole time. A tired battery, a battery charger that is not suitable for flashing, or a loose clamp can let the voltage drop in the middle of a write. That is one of the most common reasons for a failed ECU write. Connect a stable power supply designed for programming, switch off unnecessary consumers and make a full backup before any write. On the bench, supply the ECU exactly as the tool’s wiring diagram shows, including any wake-up or main relay pins.
Supply problems also explain why an ECU sometimes “does not respond” to a tool even though nothing is wrong with the calibration. Check power, ground and wake-up first, then the communication lines.
Related fault codes (DTCs)
The generic codes below are the ones most often linked to ECU supply, relay and reference problems. Trucks and agricultural machines on J1939 report similar faults with SPN and FMI numbers instead.
| Code | Meaning | Typical causes |
|---|---|---|
| P0560 | System voltage malfunction | Weak or failing battery, charging fault, poor battery terminals, high resistance in the ECU supply wiring |
| P0562 | System voltage low | Discharged battery, alternator not charging, corroded supply or ground connections, voltage drop on a fuse or relay contact |
| P0563 | System voltage high | Faulty voltage regulator, wrong charger or jump-start voltage, poor ground causing false high readings |
| P0641 | Sensor reference voltage “A” circuit/open | A sensor or wire shorting the shared 5 V reference, water in a connector, damaged harness, internal ECU fault |
| P0651 | Sensor reference voltage “B” circuit/open | Same as above on the second reference circuit; often stored with pedal, pressure or position sensor codes |
| P0697 | Sensor reference voltage “C” circuit/open | Same as above on the third reference circuit; find which sensors share it in the wiring diagram |
| P0685 | ECM/PCM power relay control circuit/open | Open relay coil or control wire, missing relay, corroded relay socket, ECU driver fault |
| P0686 | ECM/PCM power relay control circuit low | Control wire shorted to ground, faulty relay coil |
| P0687 | ECM/PCM power relay control circuit high | Control wire shorted to battery voltage, wrong relay fitted, relay coil fault |
| P0688 | ECM/PCM power relay sense circuit/open | Relay contacts burnt, blown fuse after the relay, open wire from relay output to the ECU |
| P2610 | ECM/PCM internal engine off timer performance | ECU powered down too early (battery disconnected or isolator switched off during after-run), supply interruptions, internal ECU fault |
| U0100 | Lost communication with ECM/PCM “A” | Engine ECU without power or ground, blown fuse, main relay fault, CAN wiring problem |
Generic SAE meanings shown. Manufacturer-specific codes and test values vary, so check the service data for your vehicle.
Have a clean original read from a car, truck, tractor or bike? Upload it to the tuning file service at ECUFileMarket for a file built for your exact ECU software.