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()==’