In the attached file, you can use the Timer1 with Interrupts. Just Start Timer1 by setting t1con.0 bit and then either check flag or stop whatevere your are doing in the ISR routine, inside the IF-THEN.
Thanks to Darrel once again for his DT-INTS.
Don't forget to include the files in the directory of your code and use MPASM as an assembler.
Ioannis
Bookmarks