RS485 + Interrupts


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The handler "type" needs to be PBP.
    Otherwise, PBP's system variables get corrupted and the main loop get's lost.

    Code:
    ASM
    INT_LIST  macro    ; IntSource,    Label,  Type, ResetFlag?
           INT_Handler    RX_INT,     _IntRx,  PBP,    yes
           INT_Handler    INT_INT,    _IntBt,  PBP,    yes        
       endm
       INT_CREATE               
    ENDASM
      @ INT_ENABLE   RX_INT
      @ INT_ENABLE   INT_INT
    DT

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    The handler "type" needs to be PBP.
    Otherwise, PBP's system variables get corrupted and the main loop get's lost.

    Code:
    ASM
    INT_LIST  macro    ; IntSource,    Label,  Type, ResetFlag?
           INT_Handler    RX_INT,     _IntRx,  PBP,    yes
           INT_Handler    INT_INT,    _IntBt,  PBP,    yes        
       endm
       INT_CREATE               
    ENDASM
      @ INT_ENABLE   RX_INT
      @ INT_ENABLE   INT_INT
    Once again....Worked Perfectly!!

    Thanks you very much Darrel. I can pick up another project now.

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