- This topic has 3 replies, 3 voices, and was last updated 12 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Interface with GPS please help me.
Hello gurus,
I ve used this web site a lot to learn 8051 controller programing thanks .
I am doing my final year project with ARM7(LPC-2148). I need your help here.I have to interface G.P.S with microcontroller for which I am using your code as the reference.
I do not understand two things:
1)In the main ()
void main()
}
how is check value incremented to 69?
2)You have defined a function receive_data() but never used it
I am not able to understand how you recieve data, store it in an array . If you can help me with the step by step procedure, I would be grateful to you.
Thanks
G.Pawan Kumar
Hi pawan,
that recieve program is written with interrupt,so when data is recieved the data will automatically store in buffer.i.e., info[check]; info[check++]=SBUF; so when data is 69 means you have completed recieved data. so you can go for check $GGA,$GGL and other. to know connect ypur GPS receiver to hyperterminal and view what all you get.
for more information you can view NMEA protocol datasheet to know the data format from GPS
Thank you syed,
I have not come across interrupt driven receive in ARM. I ll have to learn that and come back to your code. btw, thanks for the info.
but ameer in this same program i got problem in interrupt 4…….problem is the test array is not matching with data from gps…………….i tried all possible ways but i dint…….