33.6.2.6 Edge Detection

When resynchronized path is 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).