Arduino Forum

Products => Arduino Due => Topic started by: Tipped on Oct 27, 2012, 08:37 pm

Title: Number of Timers
Post by: Tipped on Oct 27, 2012, 08:37 pm
Just a quick question on how many timers the Due provides. I've looked, but haven't found any information on that aside from a vague statement of it having "many" timers.
Does it have 6 like the Mega? Or does it just have the 4 that the Cortex provides (I think it has 4, if I'm reading the documentation correctly...)?
Thanks in advance
Title: Re: Number of Timers
Post by: graynomad on Oct 28, 2012, 02:17 am
This is how I read the data sheet.

There are three general-purpose TC blocks each of which has 3 16-bit TCs. So that's a total of 9 16-bit TCs.

Within each block you can gang the timers in series so you could have 1 32- and 1 16-bit, or 1 48-bit TC in each block.

There is also the SysTick counter, this should be used for regular interrupts like the millis(), if it's not the entire Arduino team need shooting.

Then there's the RTT, this can be used to count elapsed seconds.

Then there's the 8 channels of PWM timers.

And finally there's the RTC which does all the things you'd expect of an RTC.

Quote
Or does it just have the 4 that the Cortex provides

Most timers are manufacturer-supplied peripherals and therefore nothing to do with the Cortex, of the above I think the only "Cortex timer" is SysTick.

_____
Rob
Title: Re: Number of Timers
Post by: DuaneB on Oct 28, 2012, 06:04 am
Quote

There is also the SysTick counter, this should be used for regular interrupts like the millis(), if it's not the entire Arduino team need shooting.


Harsh.

Duane B
Title: Re: Number of Timers
Post by: graynomad on Oct 28, 2012, 06:10 am
Yes you're right, I could go with garrotting, I think that would be OK.

EDIT: I just checked, they are using it :)

______
Rob
Title: Re: Number of Timers
Post by: DuaneB on Oct 28, 2012, 06:48 am
OT - Your starting to remind me of a film about a series of murders in your part of the world.

Duane B
Title: Re: Number of Timers
Post by: graynomad on Oct 28, 2012, 06:56 am
Which one?

_____
Rob
Title: Re: Number of Timers
Post by: DuaneB on Oct 28, 2012, 07:09 am
Still OT - Snowtown - it was on over here a few nights ago, haven't watched it yet.

Duane B
Title: Re: Number of Timers
Post by: graynomad on Oct 28, 2012, 07:20 am
Ah, the old bodies in the barrels trick.

I haven't seen it either.

'Spose we should go back OT now.

______
Rob