I wrote two programs just to check how PIC timer works with internal and external clock. But when I check both my program on ISIS Proteus 7 they are working abnormal. Please also check my code that, are they written correctly. Note that are not for specific purpose I just want to check timers.
For internal clock
===========================================================
and for external clock. There is also a problem in ISIS Proteus that with external clock it is only working with clock speed given in PIC option. Is there any option to disable internal clock so we can input pulse from RA4 pin.
In the first bit of code you have enabled the timer interrupt but you have no interrupt routine?
When the timer overflows, the code will jump to the interrupt vector, which in your case, doesn't exist.