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 / Replies / hii think this program is

hii think this program is

|

Microcontroller › AVR › How to interface GSM modem TO atmega16 › hii think this program is

August 19, 2011 at 11:48 am #6613
reza
Participant

hi

i think this program is betet 4 u .

i did it .this program is working with pc (in codevision terminal )but it doesnt work with gsm 300!!!

 

 

#include <mega16.h>
#include <stdio.h>
#include <delay.h>
 
char Enter=13;
char double_quote=34;
char Ctrlz=26;
 
void main(void)
{
 
PORTD=0x00;
DDRD=0x00;
 
UCSRA=0x00;
UCSRB=0x18;
UCSRC=0x86;
UBRRH=0x00;
UBRRL=0x33;
 
while (1)
      { 
      
        if (PIND.2==0) {
        
          printf(“at%c”,Enter);
          delay_ms(500);
          
          printf(“AT+CMGF=1%c”,Enter);
          delay_ms(500);
          
          printf(“AT+CMGS=%c09351563176%c%c”,double_quote,double_quote,Enter);
          delay_ms(100);
          
          printf(“AVR Test 1%c”,Ctrlz);
          delay_ms(500);
          
        };
                   
       };
}
 

RSS feed: Recent Posts Recent Posts

  • Advice for an ESP32 Soil Tensiometer project with 5V sensors September 9, 2026
  • Marantz SR4500 – CS49400 DSP reverse-engineering / custom active crossover September 9, 2026
  • How does an air tag work? September 9, 2026
  • Cheap ways to link 5 Keithley units and 4 BNC units? September 8, 2026
  • Sony KV-29VL40 - 4 Blink error - IC001 Pin 17 high September 8, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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