Howard, you must be setting the reset flag to TRUE by entering YES in the interrupt declaration ResetFlag field like this:
ASM
INT_LIST macro ;IntSource Label Type ResetFlag
INT_Handler IC3DRIF_INT, _InputSignal, ASM, yes
endm
INT_CREATE
ENDASM
Howard, you must be setting the reset flag to TRUE by entering YES in the interrupt declaration ResetFlag field like this:
ASM
INT_LIST macro ;IntSource Label Type ResetFlag
INT_Handler IC3DRIF_INT, _InputSignal, ASM, yes
endm
INT_CREATE
ENDASM
Dave Purola,
N8NTA
EN82fn
Hello
Where can I find the homepage that were on these two links?
And where do I download the latest DT_INTS?
DT_INTS-14 (12F-16F)
http://darreltaylor.com/DT_INTS-14/intro.html
DT_INTS-18 (18F)
http://darreltaylor.com/DT_INTS-18/home.html
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I'm working on a project using 18LF13K22. I need to use RAB Change Interrupt with DT Ints18. I made changes on DT_INTS-18.bas below but i couldn't succeed. Any suggestion?
.........Code:#define RABC_INT INTCON, RABIF ;-- RAB Port Change
Thanks..Code:ifdef RABIF INT_Source INTCON,RABIF, INTCON, RABIE,INTCON2,RABIP endif
I had to do the same thing with the PIC18F14K50.
Our entries look similar except your label is RABC_INT.
andCode:#define RAB_INT INTCON, RABIF ;-- RAB Port Change, Added 3/15/14 for PIC18F14K50
Could it be you're not enabling it with:Code:ifdef RABIF ;----{ RAB Port Change Interrupt }-----------[INTCON, RABIF]--- (Added 3/15/14 for PIC18F14K50 INT_Source INTCON,RABIF, INTCON,RABIE, INTCON2,RABIP endif
Code:INT_ENABLE RABC_INT ; Enable IOC
Louie
Edit: ooops, forgot the "@".
Code:@ INT_ENABLE RABC_INT ; Enable IOC
Louie
The chips have arrived. I tried RAB change interrupt on a demo board. The situation is the same with isis. This is my test code below.
Code:INCLUDE "DT_INTS-18.bas" ' Base Interrupt System INCLUDE "ReEnterPBP-18.bas" ' Include if using PBP interrupts ........ OSCCON = %00110100 OSCCON2 = 0 OSCTUNE = %10000000 TRISA = %11101111 TRISB = %11111111 TRISC = %00000000 ANSEL = 0 ANSELH = 0 INTCON2.7 = 0 WPUA = %00101111 WPUB = %11110000 IOCA = %00000111 IOCB = %01010000 ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler RABC_INT, _RABC, PBP, yes endm INT_CREATE ; Creates the interrupt processor INT_ENABLE RABC_INT ENDASM MAIN: ...... GOTO MAIN RABC : COUNTER = COUNTER + 1 @ INT_RETURN
Bookmarks