Freescale Semiconductor Inc.
Main Page | Data Structures | File List | Data Fields | Globals

eTPU-FUEL-API Documentation

The eTPU FUEL APIs etpu_fuel.c/.h includes API functions for eTPU function Fuel Port Injection.

Each instance of the FUEL eTPU function controls a single FUEL channel.

There is a FUEL parameter tdc_angle, relative to which all angles are defined. Positive angles precede the tdc_angle, negative angles come after.

The CPU can control the FUEL operation using FUEL config variables angle_normal_end, angle_stop, angle_offset_recalc, injection_time, compensation_time, injection_time_minimum and off_time_minimum.

The CPU can update the amount of injected fuel during the running injection using the function fs_etpu_fuel_update_injection_time() which not only sets the injection_time value for the next engine cycles, but also updates the current injection - shorts the pulse, extends the pulse or generates an additional pulse.

In order to

The CPU can monitor the FUEL operation using FUEL state variables injection_time_applied, injection_start_angle and error. The reported error flags are: FS_ETPU_FUEL_ERROR_STOP_ANGLE_APPLIED - a fuel injection pulse has been stopped and shorted by the stop_angle. Hence, the commanded injection_time and the injection_time_applied may differ. FS_ETPU_FUEL_ERROR_MINIMUM_INJ_TIME_APPLIED - a fuel injection pulse, the main or an additional one, is shorter than the injection_time_minimum and hence not generated, skipped. The commanded injection_time and the injection_time_applied may differ.

Channel interrupt is generated once every engine cycle, on the angle_stop.