Why not use the prescaler? That will make the timer tick slower.
Otherwise, just do it the way you're thinking, each time it overflows (indicated by the interrupflag) you increment a variable. When it reaches the desired value you do whatever.
Just remember to claer the interrupt flag, you have that commented out in the code.
/Henrik.
Bookmarks