ECU calculates base injection pulse width by processing signals from crankshaft angle sensor and other inputs.