33.5.2.7 Edge Detection
When synchronous or resynchronized paths are used, edge detection must be enabled. The event system can execute edge detection in three different ways:
- Generate an event only on the rising edge
- Generate an event only on the falling edge
- Generate an event on rising and falling edges.
Edge detection is selected by writing to the Edge Selection bit group of the Channel register (CHANNELn.EDGSEL).