18,10 → 18,10 |
USART_CONT_RX & // Continuously recieve messages |
USART_BRGH_HIGH, 25); // Set UART speed to 115200 baud |
|
// UART2 RX Pin RP6 |
RPINR16 = 6; // 10 is PPS RP6 |
// UART2 TX Pin RP5 |
RPOR5 = 6; // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output) |
// UART2 RX Pin RP5 |
RPINR16 = 5; // 5 is PPS RP5 |
// UART2 TX Pin RP6 |
RPOR6 = 6; // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output) |
|
Open2USART(USART_TX_INT_OFF & // Interrupt on TX off |
USART_RX_INT_ON & // Interrupt on RX on |