Hello,
I read the characters and stored in buffer using UART0 communication but i am not able to store the incomming GPS data to buffer how do i store this data to buffer please help me
Thanks for ur help
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I read the characters and stored in buffer using UART0 communication but i am not able to store the incomming GPS data to buffer how do i store this data to buffer please help me
Thanks for ur help
Need to concur with Amit - presenting code would be helpful.
But also, you need to get a grip on the characteristics on GPS transmissions via serial line (I assume NMEA 183 ASCII format).
For my application using GPS (NMEA 183, mostly on a competitor's MCU), I used the following strategy:
The last step is important. Otherwise, the next transmission will start to overwrite your buffer while you about to parse it. Remember, those sentences come in bursts. I never do the parsing in the interrupt routine - otherwise you will lose character of following sentences, and thus the whole sentence. Instead, I check a flag in the main application loop, and enter parsing as soon as the interrupt routine reports an available sentence. Except for the proper start/termination character, I do no further syntax checking in the interrupt.
For the parsing of NMEA 183, there should be plenty of examples around - just ask your favourite search engine. That is not really TM4C specific. You may, however, need to make a choice how much "library support" you want to pull in (for string/integer number/ float number parsing), and what you want to write yourself, to safe Flash memory space.