May I request you to point out where can I possibly go wrong?medelec35 wrote: If RXINT0 is used before UART Initilise, then RX interrupt will not work.
Let me brief quickly, I am using PIC18F26K22, 16Mhz external crystal, UART on channel 2 (Tx-B.6, Rx-B.7), rest all the settings like your example, I am using the channel 1 UART for MODBUS Slave.
I am communicating with NEXTION display, I am able to send the command from PIC to Nextion well but not able to receive the command from Nextion, in the past (maybe Sep 2019) I was able to communicate both ways only the difference is I used PIC18F46K22
I first did the same mistake of placing the Initialize after RXINT0, then I corrected like you but still no success, I am only able to communicate one way. Is there any method to check if the Interrupt is working or not?
Thank you, hear you soon.
Abhi