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 GIVING JUNK VALUES TO ATMEGA16

GPS GIVING JUNK VALUES TO ATMEGA16

|

Microcontroller › AVR › GPS GIVING JUNK VALUES TO ATMEGA16

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by Ashutosh Bhatt.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 9, 2015 at 9:41 am #3529
    prashant
    Participant

    I M RECIEVIND JUNK VALUES ON LCD LIKE     RD_X$….5 AND SOME UNKNOWN CHARACTERS…

    i m using atmega16a with 8mhz freq and baud rate4800/9600(both tried) and codevision for coding. for only just to recieve the gps data i m initially using following code….. 

     

    it was supposed to print GPS standard data format….

     

    #include <mega16a.h>
     
    // Alphanumeric LCD functions
    #include <alcd.h>
     
    // Standard Input/Output functions
    #include <stdio.h>
    #include <delay.h>
     
     
    char p;
     
    // Declare your global variables here
     
    void main(void)
    {
     
    // USART initialization
    // Communication Parameters: 8 Data, 1 Stop, No Parity
    // USART Receiver: On
    // USART Transmitter: On
    // USART Mode: Asynchronous
    // USART Baud Rate: 9600
    UCSRA=0x00;
    UCSRB=0x18;
    UCSRC=0x86;
    UBRRH=0x00;
    UBRRL=0x67;
     
    // Analog Comparator initialization
    // Analog Comparator: Off
    // Analog Comparator Input Capture by Timer/Counter 1: Off
    ACSR=0x80;
    SFIOR=0x00;
    lcd_init(16)
    ;
    lcd_putsf("starting");
    delay_ms(50);
    lcd_clear();
     
    while (1)
          {      
          p=getchar();
          delay_ms(2);
                      
           lcd_putchar(p);
     delay_ms(20);     
          }

    }

    March 14, 2015 at 8:59 pm #12698
    Ashutosh Bhatt
    Participant

    just go through our tutorial interfacing GPS with AVR micro controller

    March 14, 2015 at 9:04 pm #12699
    Ashutosh Bhatt
    Participant

    just go through our tutorials on GPS interfacing with AVR micro controller

  • 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

  • Sine wave distortion January 16, 2026
  • Variable audio oscillator January 16, 2026
  • potenciometer attachment / screwdriver January 16, 2026
  • flexible copper cable January 16, 2026
  • Wien bridge oscillator January 16, 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