Академический Документы
Профессиональный Документы
Культура Документы
Follow
Follow
Home
Insight
Knowledge Base
EG Labs
Contribute
Articles
Advertise
Invention Stories
Subscribe
Forum
Contact Us
AMIT DAS
Invite a friend
My account
Create content
Add a Project
Log out
INSIGHTDISCOVER
HOW GADGETS
WORK?
Adapter
Banana Jack
Electric Beard
Trimmer
HDMI Cable
Membrane
Keypad
Micro Switch
Scientific
Calculator
SMPS
Telephone
Turbidity
Sensor
USB
Connector
...more
EG
SPONSORED
VIDEO
ST Micro ARM
Cortex M4
Evaluation
Board
MC076
Summary
Description
Circuit Diagram
Code
Components
// Program to Interface GSM Module with 8051 microcontroller (AT89C51) without usin
#include<reg51.h>
#define port P1
#define dataport P2
sbit rs = port^2;
sbit rw = port^3;
sbit en = port^4;
int count,i;
unsigned char check,str[15];
bit check_space;
void init_serial()
{
TMOD=0x20;
TH1=0xfd;
SCON=0x50;
TR1=1;
}
void delay(unsigned int msec)
{
int i,j;
for(i=0;i<msec;i++)
for(j=0; j<1275; j++);
}
// Mode2
// 9600 baud
// Serial mode=1 ,8-Bit data,1 Stop bit ,1
// Start timer
// Function for delay
http://www.engineersgarage.com/microcontroller/8051projects/interfacing-gsm-8051-microcontroller-circuit-code
1/4
2/28/2014
Access Denied
dataport = item;
rs= 0;
rw=0;
en=1;
delay(1);
en=0;
return;
Altera Cyclone
V GX FPGA
Board
int i=0;
while(str[i]!='\0')
{
lcd_data(str[i]);
i++;
delay(10);
}
return;
Access
IR4312M
Power Module
}
void lcd()
{
lcd_cmd(0x38);
delay(5);
Denied
lcd_cmd(0x0F);
delay(5);
lcd_cmd(0x80);
delay(5);
}
void transmit_data(unsigned char str)
{
SBUF=str;
while(TI==0);
TI=0;
}
void receive_data()
Access Denied
interrupt 4
// For display on c
{
http://www.engineersgarage.com/microcontroller/8051projects/interfacing-gsm-8051-microcontroller-circuit-code
2/4
2/28/2014
FEATURED
ARDUINO
PROJECTS
Getting Started
with Arduino
LCD Arduino
Interfacing
Xbee Arduino
Interfacing
Interface GPS
with Arduino
Interface SD
Card with
Arduino
Call using
Keyboard, GSM
& Arduino
SPI Module of
Arduino
... more arduino
projects
FEATURED
RASPBERRY PI
PROJECTS
How to Load
Ubuntu on
Raspberry Pi
How to
Configure
Raspberry Pi
How to use
Alarm Signal in
Raspberry Pi
How to Get GUI
on Raspberry Pi
Playing Snake
Game using
Raspberry Pi
RI=0;
str[++count]=SBUF;
//Read SBUF
http://www.engineersgarage.com/microcontroller/8051projects/interfacing-gsm-8051-microcontroller-circuit-code
// Initiali
// Initiali
// Transmit 'A' to
// Transmit 'T' to
// Transmit carriag
// Check th
// Check pr
3/4
2/28/2014
lcd_data(0x20);
check_space=0;
Game Pad
How to Use
Raspberry Pi as a
Game Server
}
}
else
{
lcd_data(str[0]);
check_space=1;
}
}
count--;
for(i=0;i<count;i++)
{
str[i]=str[i+1];
}
}
}
}
Tweet
64852 reads
Top
Copyright 2012 EngineersGarage. All rights reserved. Privacy Policy | Refund Policy | About Us
http://www.engineersgarage.com/microcontroller/8051projects/interfacing-gsm-8051-microcontroller-circuit-code
4/4