SAML10 with 1 Timer and 2 PWM

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using the SAML10 Xplained Pro board and ASF4.

From the datasheet it seems that all the timers should be able to be configured separately and independently.

But from playing around with the settings, it seems that not all configurations work. 

These are the 3 setups I've tried; By moving the timer to different clocks I found a configuration that worked.

But I do not understand why the others do not work. 

(These setups are all with default settings from Atmel Start)

 

TC0

TC1

TC2

result

PWM (PA05)

Timer (toggle LED0)

PWM (PA19)

Works!

Timer (toggle LED0)

PWM (PA25)

PWM (PA19)

TC1 PWM fails

PWM (PA05)

PWM (PA25)

Timer (toggle LED0)

Timer Interrupt Fails

 

Regards, Ryan

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"configured separately and independently"? Not exactly. Different timers often share GCLK ID. For example, it looks that on SAML10 both TC0 and TC1 have GCLK=14.