Yeah this is a repeat post but im really struggling to see whats wrong here. Im using the Timer feature of TMR0 module. The prescalar is set to 1:256 and an initial value of d'252' is loaded into TMR0 for an interrupt to occur every millesecond. It runs off the internal clock (4Mhz). Goto ISR is placed at the 0x04 locatioin, but it seems that it either doesn't go to the ISR or TMR0 does not incremment. Any help, its greatly appreciated.
TMR0Setup
bcf STATUS, RP1
bcf STATUS, RP0
movlw b'00010111'
movwf OPTION_REG
movlw b'10100000'
movwf INTCON movlw d'252'
movwf TMR0 bcf INTCON, TMR0IF
ISR
bcf INTCON, GIE comf PORTB
SaveSettings
movwf Temp_W
swapf STATUS, W
movwf Temp_STATUS
incf MS_TIMER
ResetTimer0
movlw d'252'
movwf TMR0 bcf INTCON, TMR0IF
bsf INTCON, GIE
RestoreSettings
swapf Temp_STATUS, W
movwf STATUS swapf Temp_W, F swapf Temp_W, W
retfie
TMR0Setup
bcf STATUS, RP1
bcf STATUS, RP0
movlw b'00010111'
movwf OPTION_REG
movlw b'10100000'
movwf INTCON movlw d'252'
movwf TMR0 bcf INTCON, TMR0IF
ISR
bcf INTCON, GIE comf PORTB
SaveSettings
movwf Temp_W
swapf STATUS, W
movwf Temp_STATUS
incf MS_TIMER
ResetTimer0
movlw d'252'
movwf TMR0 bcf INTCON, TMR0IF
bsf INTCON, GIE
RestoreSettings
swapf Temp_STATUS, W
movwf STATUS swapf Temp_W, F swapf Temp_W, W
retfie