I want to use an external clock signal as an interrupt for the Due timer. How do I do that? I could not find any info on this on the net.
-
This can help: How to set up one second interrupt/ISR for ds3231 RTC, arduino.stackexchange.com/questions/29873/…– user31481Oct 22, 2017 at 9:11
1 Answer
Everything you need to know is in the SAM3X datasheet:
http://www.atmel.com/Images/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf
However, as Atmel's datasheets are some of the most cryptic ones around, you'll need to spend quite some time deciphering it.
There's an entire section just on the timers. It tells you all about how they work, however, relating that to which registers you need to set to get it to do that is not clear (as is normal for Atmel) since the registers are listed elsewhere in that section with no real relationship between them.