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 / Thanks for reply  actaully i

Thanks for reply  actaully i

|

Microcontroller › PIC › problem in receving message with pic16f877a › Thanks for reply  actaully i

December 30, 2013 at 4:42 am #10786
kittythakur
Participant

Thanks for reply 

 

actaully i apllied this code in infinite loop …you can check this

 
 
 
while(1)
{ UART1_Init(9600);
delay_ms(500);
UART1_Write_Text(“ATeo”);
UART1_Write(0x0D);
delay_ms(300);
UART1_Write_Text(“AT+CMGF=1”);
UART1_Write(0x0D);
delay_ms(300);
UART1_Write_Text(“AT+CNMI=2,2,0,0” );
UART1_Write(0x0D);
delay_ms(300) ;
UART1_Write_Text(“AT+CMGR=1”) ;
UART1_Write(0x0D);
delay_ms(300);
 
led1=1 ;
if(UART1_Data_Ready()>0)
 {
 while (UART1_Read()==’’)
 {
inchar=UART1_Read();
i++;
delay_ms(10);}
 
        if (inchar[0]==’#’)
        {i++;
        if(inchar[1]==’o’)
        {i++;
        if(inchar[2]==’n’)
 
                {led=1;}
          else if (inchar[2]==’f’)
        {led=0;}
        }
        }
else led=0;Tx();delay_ms(10);inchar=UART1_Read();UART1_Write_Text(“AT+CMGD=1,4”);UART1_Write(0x0D);
        }
        }

        }

 

 

 

now tell me what to do ???

it is not working ….can any body correct this??

RSS feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 2026

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