Page 1 of 1

SAM V71 Xplained Ultra Timer Counter Problems

Posted: Wed Sep 30, 2015 9:20 am
by FlorianH.
Hello Everybody,

I recently started programming on a Atmel SAMv71 microcontroller. Easily I managed to get one timer (TC0, Channel 0) working corrently. Now I wanted to use more than one Channel/Timer. The problem now is, that the code that works fine with the already active timer channel won't work with the other channels. Has anybody more than one working counter? It would be great if somebody could help.

Re: SAM V71 Xplained Ultra Timer Counter Problems

Posted: Mon Oct 05, 2015 11:04 am
by FlorianH.
The code I use is this:

pmc_enable_periph_clk(ID_TC0);
NVIC_EnableIRQ(TC0_IRQn);
tc_init(TC0, 0, TC_CMR_TCCLKS_TIMER_CLOCK5);
tc_write_rc(TC0,0, ul_value);
tc_enable_interrupt(TC0,0,TC_IER_COVFS);
tc_start(TC0, 0);

Re: SAM V71 Xplained Ultra Timer Counter Problems

Posted: Thu Mar 10, 2016 9:50 am
by ilhan3
Hi Florian,
Have you found a solution for the non-working channels. I am experiencing the same problem.