Pages: [1]   Go Down
Author Topic: Number of Timers  (Read 1402 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: October 27, 2012, 07:24:22 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes you're right, I could go with garrotting, I think that would be OK.

EDIT: I just checked, they are using it smiley

______
Rob
« Last Edit: October 28, 2012, 12:17:09 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Duane B
Logged


nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which one?

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Duane B
Logged


nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8592
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah, the old bodies in the barrels trick.

I haven't seen it either.

'Spose we should go back OT now.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: