Professional Documents
Culture Documents
Close or E sc Key
Follow @EngineersGarage
Follow
11 p osts / 0 n ew
Last post
#1
hardeep
LastOfflin
seen:
e 2 years
11 month s ago
Jo ined : 22/0 2/20 11
- 23 :15
RF Channel Simulator
Add Doppler, delay, fading, noise & interference to your test signals
Top
or to post c omments
Permalink
dagakshay
GS M interfacing with 80 51
Offlin e
yo u can get the help fro m here its on 8 051 bu t you can con vert i t into A VR
Last
seen:
2
ht tp://www .eng ineersg arag e.co m/micro cont roller/8051 projects/gsmin terf ace-8051 -microcontroller-circu it-code
(http://www.engineers garage.com/ micr ocontroller /8051project s/inter facinggs m-8051-microcontroller- circuit -code)
ht tp://www .eng ineersg arag e.co m/micro cont roller/8051 projects/in terf acegsm-mo dule-805 1-micro cont roller-circuit-code
(http://www.engineers garage.com/ micr ocontroller /8051project s/inter facegs m-module-8051-microcont roller- circuit- code)
Top
Tue, 29/ 03/2 011 - 22 :37
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
or to post c omments
Permalink
1/6
11/11/2015
I am n ot get ting h ow to
I am n ot getting h ow to in terface i t with A TMEGA16 ...p lz hel p me with the c odin g
part.. .!!!
Ho w to sen d the string to the modem u sing u sart and al l...
In divi dual ly my usart i s runn ing fi ne and GSM mo dem al so run ning fine...b ut i m
no t able to interfac e mod em to atmega16.. .!!!
LastOfflin
seen:
e 2 years
11 month s ago
Jo ined : 22/0 2/20 11
- 23 :15
Top
or to post c omments
Permalink
dagakshay
th e links i have p osted abo ve sho ws how to interface gsm modem to 8051 ...
Last
seen:
2
let us kno w where exac tly you got struc t... are asking for alg o???
Top
or to post c omments
hardeep
Permalink
LastOfflin
seen:
e 2 years
11 month s ago
Jo ined : 22/0 2/20 11
- 23 :15
{
// usart_pu tstr(a) ;
// _del ay_ms(5) ;
// u sart_putstr( "\r\n") ;
// _ delay_ms(100 );
usart_ putstr(b );
_d elay_ms( 100) ;
usart_ putc h('"');
// _ delay_ms(100 );
usart_ putstr(n o);
// _ delay_ms(100 );
usart_ putc h('"');
_d elay_ms( 100) ;
usart_ putc h('\ r') ;
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
2/6
11/11/2015
//
//
//
//
//
// }
// g otoxy(2, 1);
}
return 0 ;
}
vo id ini t_LCD(vo id)
{
LCD_cmd(0x38); / / ini tial ization of 1 6X2 LCD in 8b it mod e
_d elay_ms( 1);
LCD_cmd(0x01); / / clear LCD
_d elay_ms( 1);
LCD_cmd(0x0E); / / cursor ON
_d elay_ms( 1);
LCD_cmd(0x80); / / ---8 go to fi rst li ne and --0 is for 0th p osition
_d elay_ms( 1);
return ;
}
vo id LCD_cmd (unsign ed char cmd)
{
LCD_DA TA=c md;
ctrl &=~ ( 1<<rs);
ctrl&= ~(1< <rw) ;
ctrl|= (1<< en); / / RS an d RW as LO W and EN as HIGH
_d elay_ms( 1);
ctrl &=~ ( 1<<rs);
ctrl&= ~(1< <rw) ;
ctrl&= ~(1< <en) ; // RS , RW , LOW and EN as LOW
_d elay_ms( 1);
return ;
}
vo id LCD_wri te(u nsi gned c har data)
{
LCD_DA TA= data;
ctrl |= (1 <<rs);
ctrl&= ~(1< <rw) ;
ctrl|= (1<< en); / / RW as LOW and RS, EN as HIGH
_d elay_ms( 1);
ctrl |= (1 <<rs);
ctrl&= ~(1< <rw) ;
ctrl&= ~(1< <en) ; // EN and RW as LOW and RS HIGH
_d elay_ms( 1); // d elay to get thing s exec uted retu rn ;
}
vo id usart_i nit( )
{
UBRRL = 0x47;
// UBRRL = ( unsi gned c har)BAUD_PRESCA LE;
// Load lo wer 8-bits o f the b aud rate val ue into the l ow byte of the UBRR register
// UBRRH = ( unsi gned c har)(BA UD_P RESCALE >>8) ; // Load upper 8-b its of the
baud rate valu e..
_d elay_ms( 1);
UCSRB |= ( 1 << RXE N) | (1 << TXEN); / / Turn o n the transmission an d
reception ci rcui try
UCSRC |= ( 1 << URS EL) | (1 <<USBS) | ( 1 << UCS Z0) | (1 < < UCS Z1);
// Use 8-b it character si zes
}
un sign ed int u sart_getch( )
{
wh ile (!(UCS RA & (1 << RXC) ) );
// Do noth ing un til data has been recei ved an d is ready to b e read from UDR
_d elay_ms( 1);
return (UDR); // return the byte
}
static void usart_ putch(u nsig ned ch ar send)
{
wh ile (( UCSRA & (1 << UDRE) ) == 0); / / Do nothing u nti l UDR is ready..
// for more data to be wri tten to it
UDR = send ; // Sen d the byte
}
voi d goto xy(u nsig ned c har ro w,un sign ed ch ar col umn)
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
3/6
11/11/2015
or to post c omments
Permalink
hardeep
LastOfflin
seen:
e 2 years
11 month s ago
Jo ined : 22/0 2/20 11
- 23 :15
Top
or to post c omments
Permalink
saahil agrawal
LastOfflin
seen:
e 4 years 5
mo nths ago
Top
or to post c omments
Permalink
reza
(No subject)
LastOfflin
seen:
e 4 years 2
mo nths ago
Jo ined : 19/0 8/20 11
- 17 :10
Top
Fr i, 19/ 08/2 011 - 17 :18
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
or to post c omments
Permalink
4/6
11/11/2015
LastOfflin
seen:
e 4 years 2
mo nths ago
Jo ined : 19/0 8/20 11
- 17 :10
pri ntf( "AT+CMGS =%c 0935 1563 176% c%c ",do uble_quo te, doub le_q uote,En ter) ;
d elay_ms( 100 );
p rintf("A VR Test 1%c ",Ctrlz) ;
d elay_ms( 500 );
};
};
}
Top
or to post c omments
Permalink
5HUJ4
LastOfflin
seen:
e 1 year 11
mo nths ago
Jo ined : 18/0 2/20 12
- 00 :22
Top
or to post c omments
Permalink
HA RESH
LastOfflin
seen:
e 1 year 2
weeks ag o
Jo ined : 09/0 7/20 14
- 11 :48
Top
or to post c omments
Lo g in or regist er to po st co mmen ts
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
5/6
11/11/2015
C opy right 2012 EngineersGarage. A ll rights reserved. Priva cy Po licy (http://www.engineer sgar age.com/privacy -policy ) | Refund Policy
(htt p:/ /www.engineersgarage.com/subscript ions -refund- policy) | About Us (http:// www.engineer sgarage.com/about- us)
www.engineersgarage.com/forums/avr/how-interface-gsm-modem-atmega16
6/6