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

eTPU-KNOCK-API Documentation

The eTPU KNOCK APIs etpu_knock.c/.h includes API functions for eTPU function Knock.

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

This eTPU function is intended to support ADC sampling of a knock signal in an engine control system. The function has 2 modes:

In the Gate Mode a simple angle-based pulses are generated. The output signal can be used to gate the ADC running in continues mode. In the Trigger Mode a 50% duty-cycle PWM signal is generated within the angle-based window. The output signal can be used to trigger the ADC.

There is an KNOCK parameter tdc_angle, relative to which all windows are defined. Positive angles precede the tdc_angle, negative angles come after.

The number of angle-based windows is configurable. The windows are defined by an array of window structures, consisting of TDC-relative window start angle and angular windows width.

The KNOCK function enables to selectively generate channel interrupts and/or DMA requests at: