long precise delays

Hello!

I need to make long precise delays. I use a 4.9MHz crstal for timer but I need more than 65000 cycles. Does anyone have any elegant solutions for this?

Thank you!

Use a counter/timer to generate an interrupt every 1 ms, say, and increment a register on each interrupt.

Leon