A method and system for providing data representing crankshaft position.
For each rising edge of the crankshaft signal, a position value and a
factor value are stored in a look-up table. Cam and crankshaft signals
are used to locate an initial crankshaft position. This initial position
value is used as a pointer to the look-up table, and incremented with
each rising pulse of the crankshaft signal. Data from the table is used
to extrapolate crankshaft position from crankshaft signal values to a
desired resolution in degree angle units.