tarose78
Junior Member level 2
- Joined
- Jul 22, 2012
- Messages
- 23
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,441
Hi all,
Now I am working on Atmega128 to receive GPS Data from Holux GR-87.
Connected using this init code.
I know the GPS should return NMEA sentences, something like $GPRMC and others.
But, the Atmega128 is getting different sentences.
These are the code returned from the GPS and Received by Atmega128.
I tried to change the baudrate, but 4800 is the best so the sentences is readable by human.
I connect Pin PD2 directly to TX pin on GPS.
I dont know what else to check.
Please help...
Now I am working on Atmega128 to receive GPS Data from Holux GR-87.
Connected using this init code.
Code:
// USART1 initialization
// Communication Parameters: 8 Data, 1 Stop, No Parity
// USART1 Receiver: On
// USART1 Transmitter: On
// USART1 Mode: Asynchronous
// USART1 Baud rate: 4800
UCSR1A=0x00;
UCSR1B=0x18;
UCSR1C=0x06;
UBRR1H=0x00;
UBRR1L=0x8f;
I know the GPS should return NMEA sentences, something like $GPRMC and others.
But, the Atmega128 is getting different sentences.
These are the code returned from the GPS and Received by Atmega128.
Code:
read: GPS parser
read: GP1,,09,T$GP1,,09,T$GP1,,09,T$GP1,,09,T$GP1,,AE,1,,01,,0090T$GP1,,09,T$GP1,,09,T$GP1,,09,
read: $GP1,,09,T$GP1,,AE,1,,01,,0090T$GP1,,09,T$GP1,,09,T$GP1,,09,T$GP1,,09,T$GP1,,AE,1,,01,,00
I tried to change the baudrate, but 4800 is the best so the sentences is readable by human.
I connect Pin PD2 directly to TX pin on GPS.
I dont know what else to check.
Please help...
Last edited: