scdoro
Member level 5

Hi,
I have some doubts on programing PIC 16F872 using assembly language.
1) Can a program have more than one interrupts ? If so, may I know how to set priority? so that two interrupt will not clash together ?
2) at the beinging of a program
org 0x000
goto start ;skip over location pointed to by
; interrupt vector
org 0x004
goto iserv
if there are more than one interrupt, do i need to add in other command to the above vector ?
3) can two interrupt happen at the same time ? how to overcome this ?
4) can we call a subroutine ( call function ) in a interrupt service routine ?
Thanks a lot for the help
I have some doubts on programing PIC 16F872 using assembly language.
1) Can a program have more than one interrupts ? If so, may I know how to set priority? so that two interrupt will not clash together ?
2) at the beinging of a program
org 0x000
goto start ;skip over location pointed to by
; interrupt vector
org 0x004
goto iserv
if there are more than one interrupt, do i need to add in other command to the above vector ?
3) can two interrupt happen at the same time ? how to overcome this ?
4) can we call a subroutine ( call function ) in a interrupt service routine ?
Thanks a lot for the help