I did many research but couldn't find out what the problem it is. Actually my code as below. I am trying to implement a code in C with XC8 compiler.
To enable a sentence on the LCD of the board while RB6 button is pressed. I enable INCTONbits.GIE = 1 and INTCONbits.RBIE = 1 and INTCONbits.RBIF = 0.
Inside of interrupt, the displaySentence() function is entered to infinity loop to see result. I checked all answers related with interrupt in here but didn't help my problem. What can be problem for RB7-4 interrupt, I am working on PIC18f8722(Here is its datasheet:http://www.kynix.com/uploadfiles/pdf65976/PIC18F8722-E2fPT_787736.pdf).
I did many research but couldn't find out what the problem it is. Actually my code as below. I am trying to implement a code in C with XC8 compiler.
To enable a sentence on the LCD of the board while RB6 button is pressed. I enable INCTONbits.GIE = 1 and INTCONbits.RBIE = 1 and INTCONbits.RBIF = 0.
Inside of interrupt, the displaySentence() function is entered to infinity loop to see result. I checked all answers related with interrupt in here but didn't help my problem. What can be problem for RB7-4 interrupt, I am working on PIC18f8722(Here is its datasheet:http://www.kynix.com/uploadfiles/pdf65976/PIC18F8722-E2fPT_787736.pdf).
Following is the code:
Thanks a lot if you could help me!
Last edit: Kuangtae 2017-10-31
We could help but this is not the Microchip XC8 forum.
We would simply use Great Cow BASIC and it simple. :-)