Re: CONFIGURATION BAUDRATE TO BE 9600 (PIC16F18875)
2018/10/17 00:02:08
(permalink)
I would actually recommend you get the serial receive working WITHOUT interrupts first.
Just looking at what you have done, you have not shown any code which sets the RCIE bit, so you won't be getting interrupts when you receive anyway.
Are you switching the RX pin from analog to digital mode anywhere in your code?
In your ISR, you try to clear the RCIF flag. That flag is read-only, you CANNOT clear it like that. The only way to clear it is by reading RCREG.