In your main file you need to uncomment the 'define use_lowpriority' and rearrange the DT-INTS setup section.
Try:
Code:
' ---------- Set up DT_INTS-18 Routine for Instant Interrupt handling -----------
DEFINE USE_LOWPRIORITY 1 ' Include if using Low Pr. PBP INTS
' ****** include Placed here becuase of pin varables and routine varable needed to be set first *******
INCLUDE "DT_INTS-18_Q43.bas" ; Base Interrupt System for 18FxxQ43 processors ( DT_INTS-18_3_42.BAS)
INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts
INCLUDE "ReEnterPBP-18LP.bas" ; Include if using Low Priority PBP INTS
'------------------------------------------------------------------------------
INCLUDE "modedefs.bas" ' Required for shiftout,shiftin commands as defined symbols
;----[High Priority Interrupts]-----------------------------------------------
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler TMR1_INT, _EL_ClockCount,PBP,yes ; Call ClockCount subroutine in K9_Elapsed_INT-18.bas
; INT_Handler TMR3_INT, _Show_Display, PBP,yes ; Call Display Show for LED Modules in
; INT_Handler TMR2_INT, _Bright_Ctrl, PBP,yes ; call Brightness Control for display module
endm
INT_CREATE ; Creates the High Priority interrupt processor
;----[Low Priority Interrupts]------------------------------------------------
INT_LIST_L macro ; IntSource, Label, Type, ResetFlag?
INT_Handler TMR0_INT, _Timer0_Count, PBP,yes ; call Timer0_Count subroutine
; INT_Handler IOC_INT, _Rx_mode_IOC, PBP,yes ; Call Rx_mode_IOC subroutine for RF RX_mode
; INT_Handler U2_INT, _Term_RX, PBP,yes ; Q43 - Call Term_input for terminal char buffer
; INT_Handler RX2_INT, _Term_RX, PBP,yes ; K40 - Call Term_input for terminal char buffer
endm
INT_CREATE_L ; Creates the Low Priority interrupt processor
ENDASM
Bookmarks