Hi,
It compiles here. I renamed the interrupt handler to ISR (changed the label) and adjusted the DT-Ints declaration accordingly:
Code:
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler TMR0_INT, ISR, ASM, yes
endm
INT_CREATE ; Creates the interrupt processor
INT_ENABLE TMR0_INT ; Enable Timer 0 Interrupts
ENDASM
And
Code:
ASM
;******************************************************************************
; INTERRUPT HANDLER (runs this code each timer0 interrupt)
;******************************************************************************
;------------------
ISR
;------------------
I compiled it for a 16F628A for which I had to add
Code:
INCLUDE DT_Ints-14.bas
wsave VAR BYTE $70 SYSTEM
wsave1 VAR BYTE $A0 SYSTEM
wsave2 var BYTE $120 SYSTEM
Make sure your compiling "from" the main source file and not from within the timp.pbp.txt file.
/Henrik.
Bookmarks