BRIEF DESCRIPTION OF THE DRAWINGS
Other objects and aspects of the invention will become apparent from the following description of embodiments with reference to the accompanying drawings in which:
FIG. 1 is a block diagram schematically illustrating an example of the structure of an electronic control unit installed in a vehicle according to an embodiment of the present invention;
FIG. 2 is a signal waveform chart schematically illustrating a crank signal, first and second cam signals, and a cam-edge signal according to the embodiment of the present invention;
FIG. 3 is a block diagram schematically illustrating an example of the structure of an angle clock generating unit illustrated in FIG. 1;
FIG. 4 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of an input signal according to the embodiment of the invention;
FIG. 5 is a flowchart schematically illustrating an input signal diagnosing task to be executed by a CPU illustrated in FIG. 1;
FIG. 6 is a flowchart schematically illustrating a time-synchronized task to be executed by the CPU illustrated in FIG. 1;
FIG. 7 is a flowchart schematically illustrating a crank-edge interrupt task to be executed by the CPU illustrated in FIG. 1;
FIG. 8 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal according to the embodiment of the invention;
FIG. 9 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal during the crank-edge interrupt task illustrated in FIG. 7;
FIG. 10 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal during the crank-edge interrupt task illustrated in FIG. 7;
FIG. 11 is a flowchart schematically illustrating a cam-edge interrupt task to be executed by the CPU illustrated in FIG. 1;
FIG. 12 is a table schematically illustrating correspondences between individual initial values of respective counters of angle clock module illustrated in FIG. 3 and individual active edges in the cam-edge signal in a table format according to the embodiment;
FIG. 13 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal during the cam-edge interrupt task illustrated in FIG. 11;
FIG. 14 is a flowchart schematically illustrating a pass-angle interrupt task to be executed by the CPU illustrated in FIG. 1;
FIG. 15 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal during the cam-edge interrupt task illustrated in FIG. 11; and
FIG. 16 is a time chart schematically illustrating variations of parameters of the angle clock generating unit with variation of the input signal during the cam-edge interrupt task illustrated in FIG. 11.