GSM cclk not working with pic 16f877a

Status
Not open for further replies.

Anand Kr. Singh

Newbie level 4
Joined
Jul 30, 2014
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
43
code did not response:

Code:
void sim_time()
{
unsigned char atcmd1[13]="AT+CCLK?\r";
 for(i=0;i<12;i++)
   {
      putchar(atcmd1[i]);
   }
putchar(buffer1[20]);
 putchar(0x0D);   // enter key
   //while(getchar()!=':');
   //while(getchar()!=0x0A);
   delay_ms(10000);
  // lcd_clear();
   for(i=4;i<20;i++)
   {   
      buffer1[i] = getchar();
   }
}


help me to solve the problem
 
Last edited by a moderator:

is anything displayed on the LCD?
is the UART receiver interrupt driven? if not you have probably lost all the information received as the UART receive buffer is only a two byte FIFO
 

yes i did not getting any display on lcd
i havnt use UART reeive buffer ..
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…