What does the Electronic Control Unit (ECU) do?
The ECU controls the injectors (how much fuel), the ignition system (when to spark) and the turbocharger (how much boost). The outputs are determined by the inputs from sensors such as the Air Flow meter, Manifold pressure sensor, engine speed, crank and cam angles, etc. All ECU functions are variations on the above.