Hye there,
Currently i am using this product to get GPS value.
http://www.skylab.com.cn/SKM53.html
I already set Uart to receive but nothing coming out.
Here is my setting for Uart: //C18 language
//---------------------RX Uart Setting-----------
SPBRG=31; //9600BPS FOR 20MHZ
TXSTAbits.BRGH=0; //LOW SPEED CONFIG
TXSTAbits.SYNC=0; //ENABLE SERIAL ASYNCHRONOUS
RCSTAbits.SPEN=1; //SERIAL PORT BIT ENABLED
RCSTAbits.RX9=0; //8-BIT RECEPTION
RCSTAbits.CREN=1; //ENABLE RECEPTION
//---------------------RX Uart Setting-----------
unsigned char uart_rec(void){ //receive uart value function
unsigned char rec_data;
while(PIR1bits.RCIF==0);//wait for data
rec_data = RCREG;
return rec_data; //return the received data
}
The default rate for the module is 9600 and i am using 20MHz with PIC18F4550.
FYI i am using SN7407N to convert the 2.8 TTL to 5V TTL.
It got stuck at (PIR1bits.RCIF) Condition...
I am connecting th TX(GPS)---> SN7407N ---->RX(PIC18F4550)
If this project is success, i will share the code for this GPS module.
THanks