I've started working with the timer interrupt and using code I found on this forum, have managed to get one working properly. However I need to integrate this interrupt into other code and I have a couple of questions.
-
Can someone give me a reference that explains in detail how the timer interrupt works? In particular what all of the different flags and registers do? I'm using things like TIMSK2 and CCS21 for example but don't have any sort of reference for them and so don't know what they do are what they mean.
-
How many timer interrupts are available and how does one use more than one of them?
-
Do I have to disable anything in the arduino code in order to avoid conflicts? I am not using pwm at all.
-
Can I use timer interrupts and external interrupts at the same time?
Any information on this would be great!! Thanks in advance.