2011-07-04, 12:22:42
(This post was last modified: 2012-12-22, 14:03:46 by Mikael Gustavsson.)
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.
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.