;Interupt Service Routine ISR
Meine frage ist ob mann in Pic-Basic die Interupt Service Routine ISR
so auch einleiten muß oder nicht
;Saving STATUS and W
@ movwf W_TEMP ; W-Register Retten
@ swapf STATUS,W ; Status-Reg. -> w
@ movwf STATUS_TEMP ; Status-Reg. Retten
......mein code
und so beenden muß
@ swapf STATUS_TEMP,W ; in w-Register
@ movwf STATUS ; w -> Status
@ SWAPF W_TEMP,F ; W_TEMP -> W, ohne..
@ SWAPF W_TEMP,W ; .. Z-Flag zu aendern
retfie
--------------------------------------------------------
Service ;Interupt routine ISR
Mine is asked whether mann in pic Basic the service Interupt must introduce routine ISR or not
STATUS ;Saving W and
@ movwf W_TEMP
@ swapf STATUS,W
@ movwf STATUS_TEMP
... ... my code
and end
@ swapf STATUS_TEMP,W
@ movwf status
@ SWAPF W_TEMP,F
@ SWAPF W_TEMP,W
retfie
Bookmarks