Timers in Arduino Due

Janakiram picture Janakiram · Nov 7, 2013 · Viewed 7.6k times · Source

I am new to arduino (as a matter of fact to programming). I am thinking to use arduino due for my academic projects. While going through it's datasheet(SAM3X8E datasheet from Atmel) I came across timers, and it is said that all are 32bit counters. And they count till 0xFFFF before going to 0x0000 again. I am confused a bit. Shouldn't they count till 0xFFFFFFFF(before going to zero) as they are 32bit counters. I think 16bit counters are one's which count till 0xFFFF. May be what I ask is silly but please throw some light on it.

Thanks in advance..

37.6 Functional Description , 37.6.2 32-bit Counter , page no: 873 in datasheet

Answer

Ivan Seidel picture Ivan Seidel · Nov 17, 2013

Perhaps my library can help you: https://github.com/ivanseidel/DueTimer

Read this help file also: https://github.com/ivanseidel/DueTimer/blob/master/TimerCounter.md

I know it's not exactly what you want, but might be what you want as a final result.