Two interrupt sources in one program


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    985

    Default Two interrupt sources in one program

    Hi Guys,
    I have DT elapsed timer working in a current program, and would also like to implement the portb.0 interrupt.
    I am familiar with using b.o interrupt in asm, but what I'd like to know is what to do at the interrupt vector
    for the program to tell if the interrupt was caused by portb.0 or timer1 for 16F877A, so the program can act in accordance.
    Cheers, Art.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Two interrupt sources in one program

    Check the value of INTF (INTCON register) in asm and clear it if it was set???

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Two interrupt sources in one program

    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Two interrupt sources in one program

    Thanks mackrackit
    (I did try to search!!!)

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts