18F2455 - Interrupts config question


Closed Thread
Results 1 to 11 of 11

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    They are separate registers.
    If INTCON2 needs set to do what you want then set the bits needed, otherwise you can leave it alone.
    Dave
    Always wear safety glasses while programming.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I think a give the answer thank you very much: mackrackit

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


    Did you find this post helpful? Yes | No

    Default

    I think after reading the datasheet again this is what I need, can sombody please confirm?
    That looks like it will work.
    Dave
    Always wear safety glasses while programming.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Last part of the interrupt question:

    In the PBP manual it says: on interrupt goto lable.
    Do i have to check in the lable for state on port INT0 INT1 INT2 example:

    On interrupt goto led

    Code:
    LED:
    IF PORTB.0 = 1 Then GOTO LED100
    ELSE
      IF PORTB.1  = 1 Then GOTO LED200
    ELSE
      IF PORTB.2  = 1 Then GOTO LED300
    ENDIF

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

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