So, for clarification, here is what I have that is working...
Code:
IOCB=%11110000 'enable INT on change RB 7,6,5,4
ASM
INT_LIST macro ; IntSource, Label, Type, Resetflag?
INT_Handler RABC_INT, _Binthndlr, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
Note that I changed the individual ...
Code:
'IOCB.7=1 'enable INT on change RB7
'IOCB.6=1 'enable INT on change RB6
'IOCB.5=1 'enable INT on change RB5 rotary push button
Into one statement...
Code:
IOCB=%11110000 'enable INT on change RB 7,6,5,4
(and added the additional bit that enables IOC on B.4)
But I still wonder which part of my code is actually enabling the INT on change. As I look over at darrel's web page where he gives examples I do not see anywhere that he has to manipulate the registers to enable the INT's.
So I am back to thinking that it is really my code that is making the INT's work and part of Darrel's code that tells the PIC where to jump to on INT. "Binthndler"
still confused
Bookmarks