2013-09-12, 23:19:40
Thanks. Try this code, replace the existing code in user_code.inc
Code:
; Receive, map pin RB11/RP11 to UART2 Rx
bclr RPINR19, #U2RXR0 ;xxx
bset RPINR19, #U2RXR1 ;xxx
bclr RPINR19, #U2RXR2 ;xxx
bset RPINR19, #U2RXR3 ;xxx
bclr RPINR19, #U2RXR4 ;xxx
; Transmit, map UART2 Tx to pin RB10/RP10
bset RPOR5, #RP10R0 ;xxx
bclr RPOR5, #RP10R1 ;xxx
bset RPOR5, #RP10R2 ;xxx
bclr RPOR5, #RP10R3 ;xxx
bclr RPOR5, #RP10R4 ;xxx