DarrelsHiLoPriority

DT 12.Mar.2008

Try it like this, and see if the Low Priority RX_INT helps. Code:

DEFINE  USE_LOWPRIORITY  1
INCLUDE "DT_INTS-18.bas"       ; Base Interrupt System
INCLUDE "ReEnterPBP-18.bas"    ; Include if using PBP interrupts
INCLUDE "ReEnterPBP-18LP.bas"  ; Include if using Low Pr. PBP INTS
INCLUDE "Elapsed_INT-18.bas"   ; Elapsed Timer Routines

;----[High Priority Interrupts]-----------------------------------------------
ASM
INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
        INT_Handler   TMR1_INT,  _ClockCount,   PBP,  yes
    endm
    INT_CREATE               ; Creates the High Priority interrupt processor

;----[Low Priority Interrupts]------------------------------------------------
INT_LIST_L  macro  ; IntSource,        Label,  Type, ResetFlag?
        INT_Handler     RX_INT,     _Receive,   PBP,  no
    endm
    INT_CREATE_L             ; Creates the Low Priority interrupt processor
ENDASM

@    INT_ENABLE  TMR1_INT     ; Enable Timer 1 Interrupts  
@    INT_ENABLE  RX_INT       ; Enable USART Receive interrupts
Page last modified on March 17, 2018, at 11:09 PM