piclist 1996\05\03\110338a >
Thread: Interrupts and machine state
www.piclist.com/techref/microchip/ints.htm?key=interrupt
face
flavicon
face BY : Andrew Warren email (remove spam text)



Martin J. Maney <PICLISTspamKILLspamMITVMA.MIT.EDU> wrote:

{Quote hidden}

Martin:

That one's also on my web page.  It looks like this:

   INTW    EQU     [any page-0 register]
   INTS    EQU     [any page-0 register]
   INTW1   EQU     INTW + 080H

           ....

   ; INTERRUPT SERVICE ROUTINE:

   PUSH    MOVWF   INTW
           MOVF    STATUS,W
           BCF     STATUS,RP0
           MOVWF   INTS
           ; save PCLATH and FSR here.

           ....

   POP     ; restore PCLATH and FSR here.
           MOVF    INTS,W
           MOVWF   STATUS
           SWAPF   INTW
           SWAPF   INTW,W
           RETFIE

-Andy

Andrew Warren - spam_OUTfastfwdEraseMEspamix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499
<199605031502.IAA24470@dfw-ix12.ix.netcom.com>

See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Interrupts and machine state

month overview.

new search...