I am trying to use enable USART communication on a PIC18F6722 microcontroller. More specifically enable the receiver and attach a receive interrupt to it.
The datasheet describes the relevant bits as such
RC2IE: USART2 Receive Interrupt Enable bit
1 = Enables the USART2 receive interrupt
0 = Disables the USART2 receive interrupt
CREN: Continuous Receive Enable bit Asynchronous mode:
1 = Enables receiver
0 = Disables receiver
For some reason this piece of code doesn't do it though:
PIE3bits.RC2IE = 1;
RCSTA2bits.CREN = 0;
I want to set both of these to 1 although it isn't working. Any ideas?
I previously asked a similar question although I didn't get any useful information