/PIC Stuff/PIC_27J13/uart.c/uart.c |
---|
12,8 → 12,8 |
// UART1 TX RC6 |
// UART1 RX RC7 |
TRISCbits.TRISC6 = 0; // Tx pin set to output |
TRISCbits.TRISC7 = 1; // Rx pin set to input |
UART1_TX_TRIS = 0; // Tx pin set to output |
UART1_RX_TRIS = 1; // Rx pin set to input |
BAUDCON1bits.BRG16 = 0; // 8-bit baud rate generator |
SPBRG1 = 25; // Set UART speed to 115200 baud |