fermat7
Member
I have a GPS receiver that transmit data at 4800 bauds....
the task consist of getting the geographical coordinates from the transmitted message:
For that ,i wrote that mplab's code to be implemented on dsPIC30F4011:
by that code i expected to get the hole messge on the terminal... but i don't get any thing....
ca someone tell me the problem... especially in the use of the function (putsUARTx)
*the declaration of Buffer ...
*configuration of UARTx register in mplab C30 compiler...!!!
please help as sooon as possible.... thnx
the task consist of getting the geographical coordinates from the transmitted message:
Code:
$GPGGA,xxxx,xxxxx,xxxxx.......
For that ,i wrote that mplab's code to be implemented on dsPIC30F4011:
Code:
char Rx;
char Buffer[40];
while(1)
{
if(DataRdyUART1())
{ Rx = ReadUART1();
if(Rx == '$') Buffer[i] = Rx; i++;
if(Rx == '\r') {i=0; putsUART1((unsigned int *)Buffer);}
}
}
by that code i expected to get the hole messge on the terminal... but i don't get any thing....
ca someone tell me the problem... especially in the use of the function (putsUARTx)
*the declaration of Buffer ...
*configuration of UARTx register in mplab C30 compiler...!!!
please help as sooon as possible.... thnx