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 Recent Posts

  • Variable audio oscillator January 17, 2026
  • Sine wave distortion January 17, 2026
  • My Advanced Realistic Humanoid Robots Project January 17, 2026
  • Micro mouse January 17, 2026
  • flexible copper cable 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