Main Content

Event system

Use the event system properties to configure peripherals such as timer/counter and analog to digital converter to generate or respond to known events. Peripherals that generate events on the selected event channel are called channel generators. Peripherals that respond to events on the selected event channel are called channel users.

Note

You can configure event system properties on these hardware boards:

  • Arduino® MKR 1000

  • Arduino MKR Zero

  • Arduino MKR Wi-Fi® 1010

  • Arduino Nano 33 IoT

Enable EVSYS channel 0, 1, 2, 3

Select an event channel to route the events from channel generators to channel users. Each event channel is dedicated to one channel user. You cannot use an event channel to set multiple channel generators at the same time.

Settings

Default: off

on

Channel generator

Select the peripheral trigger that is the source of the event generator. You can select from the peripheral group timer/counter [0:2] or analog to digital converter (ADC) for conditions such as register overflow, register match/compare, or analog to digital conversion result ready.

Settings

  • Default: TCC0 overflow — Generate an event when the register overflow occurs for TCC0.

  • TCC0 MCx0 — Generate an event when the value in the match/compare register 0 for TCC0 matches with the input ADC/PWM value.

  • TCC0 MCx1 — Generate an event when the value in the match/compare register 1 for TCC0 matches with the input ADC/PWM value.

  • TCC0 MCx2 — Generate an event when the value in the match/compare register 2 for TCC0 matches with the input ADC/PWM value.

  • TCC0 MCx3 — Generate an event when the value in the match/compare register 3 for TCC0 matches with the input ADC/PWM value.

  • TCC1 overflow — Generate an event when the register overflow occurs for TCC1.

  • TCC1 MCx0 — Generate an event when the value in the match/compare register 0 for TCC1 matches with the input ADC/PWM value.

  • TCC1 MCx1 — Generate an event when the value in the match/compare register 1 for TCC1 matches with the input ADC/PWM value.

  • TCC2 overflow — Generate an event when the register overflow occurs for TCC2.

  • TCC2 MCx0 — Generate an event when the value in the match/compare register 0 for TCC2 matches with the input ADC/PWM value.

  • TCC2 MCx1 — Generate an event when the value in the match/compare register 1 for TCC2 matches with the input ADC/PWM value.

  • ADC result ready — Generate an event after ADC conversion result is ready in the register.

Dependencies

To enable this parameter, select Enable EVSYS channel for a channel.

Channel user

Select the peripheral action corresponding to the generator event on the channel.

Settings

  • Default: ADC start conversion — ADC starts an analog to digital conversion after the peripheral generates an event on the event channel.

  • ADC flush conversion — ADC flushes a pending analog to digital conversion. All the conversions in progress are filtered out and lost. After flushing the pending request, ADC resumes from where it left off. If a conversion was pending, ADC starts a new conversion.

Dependencies

To enable this parameter, select Enable EVSYS channel for a channel.