SAM V71 Xplained Ultra Timer Counter Problems

AT91SAM9 Evaluation Boards

Moderator: nferre

FlorianH.
Posts: 2
Joined: Wed Sep 30, 2015 9:12 am

SAM V71 Xplained Ultra Timer Counter Problems

Wed Sep 30, 2015 9:20 am

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.
FlorianH.
Posts: 2
Joined: Wed Sep 30, 2015 9:12 am

Re: SAM V71 Xplained Ultra Timer Counter Problems

Mon Oct 05, 2015 11:04 am

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);
ilhan3
Posts: 1
Joined: Thu Mar 10, 2016 9:46 am

Re: SAM V71 Xplained Ultra Timer Counter Problems

Thu Mar 10, 2016 9:50 am

Hi Florian,
Have you found a solution for the non-working channels. I am experiencing the same problem.

Return to “Evaluation and Development Boards”

Who is online

Users browsing this forum: No registered users and 1 guest