Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pic24fj256ga106 cannot succeed make it work
#4
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....
Reply


Messages In This Thread
RE: pic24fj256ga106 cannot succeed make it work - by kabouras_33 - 2020-03-31, 14:08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)