Hans Stevens wrote: > On my PIC16C84 project, I use the 4 Interupts .... Now I wonna > create 4 Interupts vector address. > > Example > ORG 0X010 ;Ext. Int. Vector Adress > ..... > .... > > ORG 0X020 ;TMR0 Overflow > > Have somebody a idea how to do this? Hans: The 16F84 has only a single interrupt vector; to handle multiple interrupt sources, your interrupt service routine must check each enterrupt flag individually. For example: ORG 0x0004 MOVWF INT_W ;SAVE W. SWAPF STATUS,W ;SAVE STATUS. MOVWF INT_S ; BTFSS INTF ;EXTERNAL INTERRUPT? GOTO CHECKT0 ;IF NOT, JUMP AHEAD. ; EXTERNAL INTERRUPT IS PENDING. BCF INTF ;CLEAN UP. ; HANDLE EXTERNAL INTERRUPT HERE... CHECKT0: BTFSS T0IF ;TMR0 OVERFLOW INTERRUPT? GOTO CHECKPB ;IF NOT, JUMP AHEAD. ; TMRO-OVERFLOW INTERRUPT IS PENDING. BCF T0IF ;CLEAN UP. ; HANDLE TMR0-OVERFLOW INTERRUPT HERE... CHECKPB: BTFSS RBIF ;PORTB-CHANGE INTERRUPT? [etc....] -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499