PURPOSE: To decrease a number of part items for a device and reduce its cost, by constituting a counter to a selectively usable manner for setting the injection timing and injection quantity.
CONSTITUTION: In case of 0 for an output switching signal S8 of an arithmetic unit 1, the arithmetic unit 1 outputs ignition timing A further a switching circuit 8 is connected to the side of a contact M. A counter 6 reads the ignition timing value A at a point T1 for a reference angle pulse S1 to be given, counts a unit angle pulse S2 from that point and outputs a signal S7 at a point T2 for a counted value aligned to the read value. A flip flop 7, if the signal S7 is applied, is inverted with the signal S8 to 1. If the signal S8 becomes 1, the arithmetic unit 1 outputs an injection quantity B further the switching circuit 8 is connected to the side of a contact N.