SAMD20 PWM on multiple I/O (?)

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Everyone.

 

I am diving in to ASF4 and looking for the best way to accomplish something.

 

I have a PWM signal on PB02 using TC6. It works fine. PB02 drives a LED, but, I wish the same signal could drive 3 other LEDs (PA13, PB09, PB23).

 

void PWM_0_BLUES_PORT_init(void)
{
    gpio_set_pin_function(LEDPWM2, PINMUX_PB02F_TC6_WO0);
}

 

Is the only way to accomplish this through using related interrupts on TC6? Or can PA13/PB09/PB23 outputs be tied to PB02 somehow?

 

Thanks

Last Edited: Fri. Nov 22, 2019 - 11:42 AM