Hello,
This "DT_INTS-18-k80.bas" and the matching re-enter file, did you download them from somewhere or are you trying to customize the default ones yourself?
I don't have those files and a simple search did not find them so I can't test much here except compiling a bare bones example with the standard DT-Ints-18 files and, needless to say, it compiles and assembles without errors.If you try the above with the stock DT-Ints files, does it compile? If you try with your K80-version of the DT-Ints files, does it compile?Code:CLEAR 'Clears memoryinclude "codesize.pbp" . Define Measure 1 wsave1 var byte $A0 system ;location for W if in bank0 wsave2 var byte $120 system ;location for W if in bank0 wsave3 var byte $1A0 system ;location for W if in bank0 INCLUDE "DT_INTS-18.bas" ; Basic Interrupt System INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts DEFINE OSC 20 ' clock frequency DEFINE USE_HIGHPRIORITY 1 ' use high priority interrupts 'define USE_LOWPRIORITY 1 ' not using low priority interrupts DEFINE WRITE_INT 1 INTCON2.6 = 0 ' Int on falling edge ' Set up data direction registers for all the pins. TRISA = %00111111 ' Set PORTA RA6 is Osc output to crystal TRISB = %00101001 ' Set PORTB TRISC = %00010100 ' Set PORTC TRISD = %00000011 ' Set PORTD TRISE = %00111011 ' Set PORTE only lower 4 bits available ';----[High Priority Interrupts]---------------------------------------- ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler TMR1_INT, _ClockCount, PBP, yes ;-- Timer Int. INT_Handler INT0_INT, _MoveCmd, PBP, yes ;-- Flap Switch endm INT_CREATE ; Creates High Priority interrupt processor ENDASM Main: GOTO Main '------------------------------------------------------------------------------------------------- ' Interrupt service routine '------------------------------------------------------------------------------------------------- ClockCount: LATA.0 = !LATA.0 @ INT_RETURN MoveCmd: LATB.0 = !LATB.0 @ INT_RETURN
/Henrik.


Reply With Quote

Bookmarks