Hi geselaw,
Are you aware that it's set-up for a 32.768kz crystal on RB6 and RB7?
RB6 and RB7 are also the ICSP data and clock lines, so you can't have both things connected at the same time.
The Comparator and External interrupts are also enabled, but there isn't anything to handle them in the interrupt routine. If one of them causes an interrupt and the flag is not reset in the handler, you will be "continuously interrupting", which won't allow the rest of the program to do anything.
Also, as shown, the Start: section will "Fall Thru" into a subroutine. But then it might only be that it's a portion of the program.
<br>
Bookmarks