hantto
Member
Hello!
I'm experimenting with interrupts now. I got it to enter the interrupt, but it won't exit it! What seems to be the problem?
Thank you! All help is warmly welcome!
I'm experimenting with interrupts now. I got it to enter the interrupt, but it won't exit it! What seems to be the problem?
Code:
; ===============================
; Interrupt
; ===============================
org 0x0004 ;Interrupt Vector
Iterrupt movwf w_temp ;Save W register
swapf status, w ;Swap status to be saved into W
movwf s_temp ;Save STATUS register
movfw PCLATH
movwf p_temp ;Save PCLATH
call LCD_Clr
call LCD_Line1
movlw 'J'
call LCD_Char
movlw 'e'
call LCD_Char
movlw 'a'
call LCD_Char
movlw 'h'
call LCD_Char
call Delay255
Int_Exit movfw p_temp
movwf PCLATH ;Restore PCLATH
swapf s_temp, w
movwf STATUS ;Restore STATUS register - restores bank
swapf w_temp, f
swapf w_temp, w ;Restore W register
retfie
; == Interrupt End ==
Thank you! All help is warmly welcome!