This example demonstrates a simple configuration of 2 PWM synchronous channels to generate variable duty cycle signals. The duty cycle values are updated automatically by the Peripheral DMA Controller (PDC), which makes 2 on-board LEDs glow repeatedly.
This example can be used on any SAM3/4 boards. The 2 required leds need to be connected to PWM output pins, else consider probing the PWM output pins with an oscilloscope.