39.6.6 Events
The SDADC can generate the following output events:
- Result Ready (RESRDY): Generated when the conversion is complete and the result is available. Refer to EVCTRL39.8.4 Event Control for details.
- Window Monitor (WINMON): Generated when the window monitor condition match. Refer to WINCTRL39.8.11 Window Monitor Control register for details.
Writing a one to an Event Output bit in the Event Control Register (EVCTRL.xxEO) enables the corresponding output event. Writing a zero to this bit disables the corresponding output event. Refer to the Event System chapter for details on configuring the event system.
The SDADC can take the following actions on an input event:
- Start conversion (START): Start a conversion. Refer to SWTRIG39.8.17 Software Trigger for details.
- Conversion flush (FLUSH): Flush the conversion. Refer to SWTRIG39.8.17 Software Trigger for details.
Writing a one to an Event Input bit into the Event Control register (EVCTRL.xxEI) enables the corresponding action on input event. Writing a zero to this bit disables the corresponding action on input event.
The SDADC uses only asynchronous events. Therefore, an asynchronous Event System channel path must be configured. By default, the SDADC will detect a rising edge on the incoming event. If the SDADC action must be performed on the falling edge of the incoming event, the event line must be inverted first, by writing to one the corresponding Event Invert Enable bit in Event Control register (EVCTRL.xINV).
Note that If FLUSH and START events are available at the same time, the FLUSH event has higher priority.