Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24FJ128GA010 UART Config problem [solved]
#1
Hi,

I tried to change the default settings for uart. I could not find out the tx configuration for the PIC24FJ128GA010. Here is the part of the code from the ds30loader.s.

mov RPINR18, WPPSTEMP1 ;xxx
mov RPOR7, WPPSTEMP2 ;xxx

; 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

; Transmit, map uart to pin
bset RPOR7, #RP15R0 ;xxx
bset RPOR7, #RP15R1 ;xxx
bclr RPOR7, #RP15R2 ;xxx
bclr RPOR7, #RP15R3 ;xxx
bclr RPOR7, #RP15R4 ;xxx
.endif

I am using uart2.The pins are RF4->U2RX, RF5->U2TX. I couldn't find the RPOR from datasheet for U2TX.

Best Regards,

Berkay.
Reply
#2
Hi,
As far as I know 128GA010 does not have pps. You can disregard that piece of code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)