Reputation: 21
Im using Arduino Due which has An Atmel core SAM3X8E i need to start the SAM3X8E timer and reading value directly form the timer any one has an example of how to start SAM3X8E timer and reading values directly form it here is the steps
1- setting the timer to count clock cycle (i also want the SAM3X8E to run on 84Mhz)
2- start timer
3- accessing timer reg and gets its value
4- stop the timer form counting
plz if u have any example (preferred in C)
Upvotes: 1
Views: 4462
Reputation: 2827
I recommend the following DueTimer library. It should fit your need. If not it should provide enough example in its source code for you to get what you want.
Along with the forum thread that details a lot about the SAM3X8E timers
Upvotes: 2