28.5.2.12 Software Event

A software event can be initiated on a channel by setting the Channel ‘n’ bit in the Software Event register (SWEVT.CHANNELn) to ‘1’. Then the software event can be serviced as any event generator; that is, when a bit is set to ‘1’, an event will be generated on the respective channel.

When using a software event on a channel with resynchronized path, the CHSTATUS.CHBUSYn bit will not be set immediately. Wait three GCLK_EVSYS_CHANNEL_n clock cycles for the CHSTATUS.CHBUSYn bit to be set, before issuing a new software event.