EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Interface with GPS please help me.

Interface with GPS please help me.

|

Microcontroller › 8051 › Interface with GPS please help me.

  • This topic has 3 replies, 3 voices, and was last updated 14 years, 2 months ago by praveen.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 31, 2012 at 2:40 pm #1693
    Pawan Kumar
    Participant

    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.

    http://www.engineersgarage.com/microcontroller/8051projects/gps-interface-8051-microcontroller-circuit

    I do not understand two things:

    1)In the main ()

    void main()

    {
    serial();
    lcd_cmd(0x38);        //2 LINE, 5X7 MATRIX
    lcd_cmd(0x0e);         //DISPLAY ON, CURSOR BLINKING
    IE=0x90;
    while(1)
    {
    if(check==69)
    compare();

    }

     

    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

     

    February 1, 2012 at 10:28 am #7096
    Syed Aameer
    Participant

    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

    February 1, 2012 at 12:12 pm #7097
    Pawan Kumar
    Participant

    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.

    March 22, 2012 at 7:20 pm #7320
    praveen
    Participant

    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…….

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • washing machine motor wiring June 15, 2026
  • Mitsubishi Electric IPM module lot code format - how to decode? June 14, 2026
  • Replacement IGBT for DGG4015 for Honda Motorcycle ECU June 14, 2026
  • TDK Lambda ESS 500-20-11-D-LB-RSTL Parallel Operation June 13, 2026
  • Programmable 1kV DC Power Supply – Budget ~$600 with Display June 13, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise