Claims
- 1. A method of controlling an engine having a rotatable output shaft, an electric device and a programmed computer including a central processing unit for performing a plurality of processing routines, said method comprising the steps of:
- providing a plurality of angular pulses during each rotation of said output shaft;
- counting the number of said angular pulses;
- generating angular interrupt requests in synchronism with said angular pulses;
- initiating, in response to said angular interrupt requests, angular interrupt routines of the highest priority in said central processing unit of said programmed computer irrespective of execution status thereof to control said electric device in accordance with control data calculated by said central processing unit of said programmed computer;
- generating program interrupt requests during selected angular interrupt routines when the counted number of said angular pulses reaches predetermined values, said program interrupt requests having lower priority than said angular interrupt requests; and
- initiating, in response to said program interrupt requests, program interrupt routines of lower priority than said angular interrupt routines to calculate said control data for said electric device in accordance with operating parameters of said engine, said programmed interrupt routines being executed after completing said selected angular interrupt routines but before any other routines except for said angular interrupt routines.
- 2. A method according to claim 1, wherein said electric device includes an ignition coil and a counter for activating and deactivating said ignition coil, wherein said control data includes timing data for activation and deactivation of said ignition coil, and wherein said angular interrupt routine transfers said timing data from said programmed computer to said counter.
- 3. A method according to claim 2, wherein said angular interrupt routine also measures intervals of time between said angular pulses provided successively, and wherein said measured intervals of time are used as one of said operating parameters to calculate said timing data in said program interrupt routine.
- 4. An apparatus for controlling an engine having a rotatable output shaft and an electric device, said apparatus comprising:
- sensor means for providing a plurality of angular pulses during each rotation of said output shaft;
- counter means for counting the number of said angular pulses;
- means for generating angular interrupt requests in synchronism with said angular pulses; and
- central processing means for performing a plurality of processing routines, said processing means also for: (1) initiating, in response to said angular interrupt requests, angular interrupt routines of the higest priority irrespective of execution status of said processing means to control said electric device in accordance with a control data calculated by said processing means, (2) generating program interrupt requests during selected angular interrupt routines when the counted number of said angular pulses reaches predetermined values, said program interrupt requests having lower priority than said angular interrupt requests, and (3) initiating, in response to said program interrupt requests, program interrupt routines of lower priority than said angular interrupt routines to calculate said control data for said electric device in accordance with operating parameters of said engine, said programmed interrupt routines being executed after completing said selected angular interrupt routines but before any other routines except for said angular interrupt routines.
Priority Claims (1)
Number |
Date |
Country |
Kind |
53-157782 |
Dec 1978 |
JPX |
|
Parent Case Info
This is a division of our copending application Ser. No. 409,349 filed Aug. 18, 1982, now U.S. Pat. No. 4,476,532, which in turn is a division of our application Ser. No. 103,942 filed Dec. 14, 1979, now U.S. Pat. No. 4,397,570.
US Referenced Citations (4)
Non-Patent Literature Citations (2)
Entry |
Korn: (textbook) Microprocessors and Small Digital Computer Systems for Engineers and Scientists, McGraw-Hill Book Co., 1977, pp. of interest: 2, 141-149,261-267. |
Manku: A Microprocessor Implementation of a Fuel Injection System; Second International Conference on Automotive Electronics; London, U.K., Oct. 29 to Nov. 2, 1979, pp. 28-32 of interest. |
Divisions (2)
|
Number |
Date |
Country |
Parent |
409349 |
Aug 1982 |
|
Parent |
103942 |
Dec 1979 |
|