Go Down

Topic: Number of Timers (Read 1 time) previous topic - next topic

Tipped

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

Graynomad

#1
Oct 28, 2012, 02:17 am Last Edit: Oct 28, 2012, 02:24 am by Graynomad Reason: 1
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
Rob Gray aka the GRAYnomad www.robgray.com

DuaneB

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
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Graynomad

#3
Oct 28, 2012, 06:10 am Last Edit: Oct 28, 2012, 06:17 am by Graynomad Reason: 1
Yes you're right, I could go with garrotting, I think that would be OK.

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

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

DuaneB

OT - Your starting to remind me of a film about a series of murders in your part of the world.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Graynomad

Rob Gray aka the GRAYnomad www.robgray.com

DuaneB

Still OT - Snowtown - it was on over here a few nights ago, haven't watched it yet.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Graynomad

Ah, the old bodies in the barrels trick.

I haven't seen it either.

'Spose we should go back OT now.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Go Up