Hi all - been trying to get some Timer1-related stuff working for my arduino project (just got into this about a week ago) but I'm having a little trouble understanding a few things about timer1. Here's the ideal setup:
I want to use Timer1 as a global timer that is always running, that allows me to synchronize when certain events happen in the system. - Is it possible to slow down the speed of the timer so it doesn't overflow so quickly? Or is this inherent to the timer? I may want it at full speed later on, but for debugging, it might be nice to have it run at a more human-friendly speed :D - If this isn't possible, how might you recommend using this timer1 as a global timer? Perhaps incrementing some variable every time it overflows or something? - Also, is it possible to reset or write values to Timer1? Like if I had a global clock reset signal, could that reset Timer1 to 0? - Is the value of the timer able to be read as well?
So.. those are my questions. In addition, I just don't really understand how these timer interrupts or this whole timer1 thing works. Internet tutorials/example code are a bit cryptic, as is the data sheet. Any help, guideance, and/or example code you guys could give me would be stupendous. Thanks!