Quick Start Guide for Using DMA with TCC

The supported board list:

In this use case, the TCC will be used to generate a PWM signal. Here the pulse width varies through following values with the help of DMA transfer: one quarter of the period, half of the period, and three quarters of the period. The PWM output can be used to drive an LED. The waveform can also be viewed using an oscilloscope. The output signal is also fed back to another TCC channel by event system, the event stamps are captured and transferred to a buffer by DMA.

The PWM output is set up as follows:

Board

Pin

Connect to

SAMD21 Xpro

PB30

LED0

SAMR21 Xpro

PA19

LED0

SAML21 Xpro

PB10

LED0

SAML22 Xpro

PC27

LED0

SAMDA1 Xpro

PB30

LED0

SAMC21 Xpro

PA15

LED0

The TCC module will be setup as follows:
The event resource of EVSYS module will be setup as follows:
The DMA resource of DMAC module will be setup as follows: