Subversion Repositories Code-Repo

Rev

Rev 107 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 107 Rev 109
Line 17... Line 17...
17
            USART_EIGHT_BIT &       // Operate in 8-bit mode
17
            USART_EIGHT_BIT &       // Operate in 8-bit mode
18
            USART_CONT_RX &         // Continuously recieve messages
18
            USART_CONT_RX &         // Continuously recieve messages
19
            USART_BRGH_HIGH, 25);  // Set UART speed to 115200 baud
19
            USART_BRGH_HIGH, 25);  // Set UART speed to 115200 baud
20
 
20
 
21
    // UART2 RX Pin RP6
21
    // UART2 RX Pin RP6
22
    RPINR16 = 10;    // 10 is PPS RP10
22
    RPINR16 = 6;    // 10 is PPS RP6
23
    // UART2 TX Pin RP9
23
    // UART2 TX Pin RP5
24
    RPOR9 = 6;  // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output)
24
    RPOR5 = 6;  // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output)
25
    
25
    
26
    Open2USART(USART_TX_INT_OFF &   // Interrupt on TX off
26
    Open2USART(USART_TX_INT_OFF &   // Interrupt on TX off
27
            USART_RX_INT_ON &      // Interrupt on RX on
27
            USART_RX_INT_ON &      // Interrupt on RX on
28
            USART_ASYNCH_MODE &     // Operate in async mode
28
            USART_ASYNCH_MODE &     // Operate in async mode
29
            USART_EIGHT_BIT &       // Operate in 8-bit mode
29
            USART_EIGHT_BIT &       // Operate in 8-bit mode