How to use timer interrupts.

Thanks, but that doesn't completely answer my question. As far as I can tell, the only timer example waits for the timer to overflow, not for a user-defined period. Also, the ISR would need to have access to a variable that tells it what numbers to display. Does it just need to be a global variable? Or does it need to have something special done to it?