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 / Code.

Code.

|

Electronics › Electronics › Embedded system › Code.

January 23, 2017 at 3:24 pm #14360
Hari Prasaath K
Participant
below code for wireless notice bord:
 
 
#include<reg51.h>
#include"lcd.h"
#include"uart.h"
 
void main()
{
unsigned char a,i,read[15];
lcd_init();
uart_init();
 
lcd_string("wireless board");
while(1)
{
 
while(rx_data()!=0x0d);
 
while(rx_data()!=0x0a);
 
if(rx_data()=='+')
{
if(rx_data()=='C')
{
if(rx_data()=='M')
{
if(rx_data()=='T')
{
if(rx_data()=='I')
{
while(rx_data()!=',');
a=rx_data();
delay_ms(10);
tx_string("at");
tx_data(0x0d);
tx_data(0x0a);
tx_string("at+cmgf=1");
tx_data(0x0d);
tx_data(0x0a);
tx_string("at+cmgr=");
tx_data(a);
tx_data(0x0d);
tx_data(0x0a);
while(rx_data()!=0x0a);
while(rx_data()!=0x0a);
while(rx_data()!=0x0a);
 
for(i=0;i<15;i++)
{
read=rx_data();
}
lcd_stringxy(1,0,read);
delay_ms(5000);
}}}}}
 
} }

RSS Recent Posts

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