START Weirdness w/ ATSAMV-series?

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

Trying to use START to generate a simple timer example. Struggling to get the timer ISR to fire slower than every 100mS for some reason. START only gives the Master Clock as a possible clock source for TCO, but the datasheet says PCK6 (or 5) can be used. Also not sure what START means when it asks you to enter "Lenth of one timer tick in uS". Does that mean "how many uS until you get an overflow, and then START calculates the value for the TC register? Looking at the code it generates, I also don't understand why it's using two different timer registers to hold values:


// <o> Length of one timer tick in uS <0-4294967295>
// <id> timer_tick
#define CONF_TC0_TIMER_RC_TICK 1000
// </h>

// <h> Event Control
// <e> Event Output Enable
// <id> timer_event_output_wave

// <o> Length of one timer RA tick in uS <0-4294967295>
// <id> timer_ra_tick
#define CONF_TC0_TIMER_RA_TICK 500


Are the timers on these parts much more confusing than an AVR part or is it just me?