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 / gps

gps

|

Microcontroller › AVR › gps

  • This topic has 2 replies, 3 voices, and was last updated 13 years ago by Amrith.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 14, 2012 at 9:06 am #1842
    meir
    Participant

    Hi.

    I’m doing a project with atmega16 and a gpsboard of sureelectronics. They are connected by rs232 with baud 9600. the clock is 7.3728MHz. So in URRL I have 0x2F.

    In scope I see the write data, but in the code that I’ve wrote it is a timing problem. It can’t get the data in the right sequence. For exemplewen it get $, it find the G much time after that. 

    Someone can help me?

    Tnak You

    June 14, 2012 at 10:53 am #8042
    midhun
    Participant

    You are not getting the letter G coming next to $. You are not able to read the values in the correct sequence. you can do polling on the flag bit of receiving data serially.

    do not use any delay after reading any value, until you get the desired sequence…

    June 14, 2012 at 12:25 pm #8044
    Amrith
    Participant

    Hi meri,

    The UBRR value is correct for 9600 baud rate with 7.3728MHz crystal, As midhun said try reducing delay and try polling method to debug your problem.

    Are you directly dispalying data as you receive it, if yes don’t do so. Store your data in the buffer first and then process it.

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

RSS Recent Posts

  • Parts required for a personal project June 15, 2025
  • Curved lines in PCB design June 15, 2025
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz June 15, 2025
  • using a RTC in SF basic June 15, 2025
  • PIC KIT 3 not able to program dsPIC June 15, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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