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

sushant

  • Profile
  • Topics Started
  • Replies Created
  • Engagements

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 31, 2013 at 4:25 am in reply to: How to program a ATmega16 with GPS (basic)? #9400
    sushant
    Participant

     

    CODE VIII:
    #include <avr/io.h>
    BRiCS
    Page
    7
    #include <avr/interrupt.h>
    #include <util/delay.h>
    char status = 0,index = 0,lat[10] = ” “,lon[10] = ” “;
    char sat[2] = “**”,dop[4] = “****”,tim[6] = “******”;
    ISR(USART_RXC_vect){
    unsigned char c;
    c = UDR;
    if (c==’$’){status = 1;index = 0;}
    else if((index == 3)&(c != ‘G’)) status=0;
    else if((index == 4)&(c != ‘G’)) status=0;
    else if(index> 6 & index< 13)tim[(index- 7)]=c;
    else if(index>17 & index< 27)lat[(index-18)]=c;
    else if(index>30 & index< 40)lon[(index-31)]=c;
    else if(index>44 & index< 47)sat[(index-45)]=c;
    else if(index>46 & index< 51)dop[(index-47)]=c;
    if(status==1)
    index++;
    }
    int main(void) {
    set_uartbaud(9600);
    enable_uart_rxcint();
    LCDinit();
    LCDclr();
    sei();
    while (1) {
    _delay_ms(200);
    LCDGotoXY(0,0);
    LCDstring(lat,10);
    LCDstring(sat,2);
    LCDstring(dop,4);
    LCDGotoXY(0,1);
    LCDstring(lon,10);
    LCDstring(tim,6);
    }
    }
    March 31, 2013 at 4:20 am in reply to: problem occurs in getting value from input adc channel in atmega 16 #9399
    sushant
    Participant

    use folloing library file for ADC communication, 

     

     
    #include<avr/io.h>
    #include<adc_lib.h>
     
     
     
    #define ADC_VREF_TYPE 0x00
     
    // Read the AD conversion result
    unsigned int read_adc(unsigned char adc_input)
    {
    ADMUX=adc_input|ADC_VREF_TYPE;
    // Start the AD conversion
    ADCSRA|=0x40;
    // Wait for the AD conversion to complete
    while ((ADCSRA & 0x10)==0);
    ADCSRA|=0x10;
    return ADCW;
    }
     
    // header file//
    #include<avr/io.h>
     
    unsigned int read_adc(unsigned char);
    void ADCinit();
     
     
     
     
    void ADCinit()
    {
    ADMUX=ADC_VREF_TYPE;
    ADCSRA=0x85;
    }
    March 31, 2013 at 4:11 am in reply to: Can i use TTL based GSM sim 300 module for Atmega 8l (i need only to send msgs) #9398
    sushant
    Participant

    yes u can use TTL based GSM modem, conncnnct microcontroller  pin rx to GSM tx and microcontroller pin TX to GSM rx. and write the code for atmega8 and write the message in the code and  you can eaisly send the message to any mobile no.

    March 31, 2013 at 4:06 am in reply to: Programming a AVR #9397
    sushant
    Participant

    use any kind of programmer like usbtiny, USB asp .and use any sofware for transfering hex file in microcontroller like sinaprog, extreme burner..

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

RSS Recent Posts

  • Why aren’t the power windows in my 2006 Volkswagen Polo 2006 working despite repairing the control unit circuit board? May 10, 2026
  • Voltage comparator circuit verification May 10, 2026
  • What is this??? May 9, 2026
  • infiniBand Layer 1 specifications testing question May 8, 2026
  • block RF May 8, 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