Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 108 → Rev 109

/Classwork/ECE4534 - Embedded Systems/PIC 27J13/uart.c
19,9 → 19,9
USART_BRGH_HIGH, 25); // Set UART speed to 115200 baud
 
// UART2 RX Pin RP6
RPINR16 = 10; // 10 is PPS RP10
// UART2 TX Pin RP9
RPOR9 = 6; // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output)
RPINR16 = 6; // 10 is PPS RP6
// UART2 TX Pin RP5
RPOR5 = 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