I want to use the TimerOne library to make two interrupt routines. Is this possible or can you attach only one? What I would like to do is in the first interrupt is reading an input every 0.5ms, the second interrupt should send the collected data over the serial port to my computer for further processing when e.g. 80 samples are taken.
If yes, how do you do it? Can you just initialize the timer twice?
If no, what are my other options?