2020-03-31, 14:08:21
I think that my problem is here....
.ifdef HAS_PPS
;.error "PPS is not configured. More information in the firmware manual." ;xxx remove this line when PPS is configured
.ifdef USE_UART1
; ** IMPORTANT **
;
; THIS CODE IS JUST A TEMPLATE AND WILL MOST LIKELY NOT WORK FOR YOU,
; READ THE DATASHEET AND ALTER LINES MARKED WITH XXX
;
; ** IMPORTANT **
; Receive, map pin (14 = 1110) to uart
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bset RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx
bclr RPINR18, #U1RXR5 ;xxx
; Transmit, map uart to pin
bset RPOR1, #RP2R0 ;xxx
bset RPOR1, #RP2R1 ;xxx
bclr RPOR1, #RP2R2 ;xxx
bclr RPOR1, #RP2R3 ;xxx
bclr RPOR1, #RP2R4 ;xxx
bclr RPOR1, #RP2R5 ;xxx
.endif
although i am not sure....i read the datasheet but and adjust accordingly but still no comm....
.ifdef HAS_PPS
;.error "PPS is not configured. More information in the firmware manual." ;xxx remove this line when PPS is configured
.ifdef USE_UART1
; ** IMPORTANT **
;
; THIS CODE IS JUST A TEMPLATE AND WILL MOST LIKELY NOT WORK FOR YOU,
; READ THE DATASHEET AND ALTER LINES MARKED WITH XXX
;
; ** IMPORTANT **
; Receive, map pin (14 = 1110) to uart
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bset RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx
bclr RPINR18, #U1RXR5 ;xxx
; Transmit, map uart to pin
bset RPOR1, #RP2R0 ;xxx
bset RPOR1, #RP2R1 ;xxx
bclr RPOR1, #RP2R2 ;xxx
bclr RPOR1, #RP2R3 ;xxx
bclr RPOR1, #RP2R4 ;xxx
bclr RPOR1, #RP2R5 ;xxx
.endif
although i am not sure....i read the datasheet but and adjust accordingly but still no comm....