I am running into a problem trying to figure out how to use RBC_INT on portB.1
I am using a 16F883 and I am looking for B.1 to drop from high to low. Below is part of my code to read the interrupt.
readchar:
@ INT_DISABLE RBC_INT
Dummy = PortB
if Dummy.1 = 0 then
goto good_int
Else
@ INT_CLEAR RBC_INT
@ INT_ENABLE RBC_INT
@ INT_RETURN
endif
good_int:
' process the interrupt code here
I know this is not correct but I cannot figure out why?
Any help would be appreciated.
Bookmarks