I have searched through numerous threads for an hour or so, but there are so many topics relating to timers and it is a little confusing.

I am using a PIC18F2550 which when when of the inputs on the PIC are triggered, a counter starts. This counter needs to be setable by a variable in the code from 5 seconds to around 60mins.

Once the timer has been triggered, if the same input or another for that matter on another two ports was triggered, it would stop the counter and go back to the beginning again. A kind of 'timer abort facility.

Can any one pint me in the right direction?

I've tried the pause command, but that only workks 65536 (65seconds)

Many thanks.