Receiving on UART2 sending on UART1 is 3 characters behind

Status
Not open for further replies.

razvanel

Junior Member level 2
Joined
Mar 18, 2009
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,443
uart2

Can anyone please tell me any possible reasons why this might happen? I wrote a program in C on my PIC24F to receive data from a GPS module through UART2 (using the rs232 connection of the development board) and whatever is in the U2RXREG is made equal to the U1TXREG to be sent through a Xbee module to my computer's hyperterminal program(my computer being also connected to a zigbee device to receive the data).

i always get 3 characters less...it's really bugging me..thanks guys!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…