32.4.2.5 Edge Detector

The edge detector can be used to generate a pulse when a rising edge is detected on its input. To detect a falling edge, the TRUTH table has to be inverted.

The edge detector is enabled by writing a '1' to the Edge Selection (LUTCTRL[n].EDGESEL) bit in the LUT Control register. To avoid unpredictable behavior, either the filter or synchronizer must be enabled.

Edge detection is disabled by writing a '0' to LUTCTRL[n].EDGESEL. After an LUT is disabled, the corresponding internal edge detector logic is cleared one APB clock cycle later.

Figure 32-13. Edge Detector