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.
SAM V71 Xplained Ultra Timer Counter Problems
Moderator: nferre
Post
Re: SAM V71 Xplained Ultra Timer Counter Problems
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);
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);
Post
Re: SAM V71 Xplained Ultra Timer Counter Problems
Hi Florian,
Have you found a solution for the non-working channels. I am experiencing the same problem.
Have you found a solution for the non-working channels. I am experiencing the same problem.
Who is online
Users browsing this forum: No registered users and 3 guests