Darrel,
Unfortunately, I could still use a little help here...
I regurgitated your little LED program in MicroCode Studio, and here's what I receive in errors:
--------------------------------------------------
'Interrupt test - PIC16F88
LED1 VAR PORTB.1
INCLUDE "DTINTS.BAS" 'base interrupt system (renamed only, not edited)
INCLUDE "REPBP.BAS" 'include if using PBP interrupts (as above)
Asm
INT_LIST macro ;IntSource, Label, Type, Resetflag?
INT_Handler INT_INT, _ToggleLED1, PBP, yes
endm
INT_CREATE ;creates the interrupt processor
INT_ENABLE INT_INT ;enable external (INT) interrupts
EndAsm
Main:
Pause 1
GoTo main
'----------[INT - interrupt handler]----------------
ToggleLED1:
Toggle LED1
@ INT_RETURN
------------------------------------------
Errors are as follows:
Error[113] g:\pbp\inttst.asm 115 : Symbol not previously defined (PIR2)
Warning[207] g:\pbp\inttst.asm 288 : Found label after column 1. (L?GoTo)
Error[122] g:\pbp\inttst.asm 288 : Illegal opcode (_SavePBP)
Warning[207] g:\pbp\inttst.asm 297 : Found label after column 1. (L?GoTo)
Error[122] g:\pbp\inttst.asm 297 : Illegal opcode (_ToggleLED1)
Warning[207] g:\pbp\inttst.asm 241 : Found label after column 1. (L?GoTo)
Error[122] g:\pbp\inttst.asm 241 : Illegal opcode (_RestorePBP)
(is there an easy way to copy this error list to clipboard? It seems to get lost every time I try, so I had to retype it manually here)
Attached is the inttst.asm file renamed to .txt
Bookmarks