reza Profile Topics Started Replies Created Engagements Search replies: Forum Replies Created Viewing 2 posts - 1 through 2 (of 2 total) Author Posts August 19, 2011 at 12:04 pm in reply to: How to interface GSM modem TO atmega16 #6612 rezaParticipant August 19, 2011 at 11:48 am in reply to: How to interface GSM modem TO atmega16 #6613 rezaParticipant 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); }; }; } Author Posts Viewing 2 posts - 1 through 2 (of 2 total)