Jul 30, 2014 #1 A 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: Jul 30, 2014
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
Jul 30, 2014 #2 H horace1 Advanced Member level 5 Joined Nov 18, 2008 Messages 2,118 Helped 596 Reputation 1,188 Reaction score 571 Trophy points 1,393 Location Norwich, UK Activity points 13,063 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
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
Aug 4, 2014 #3 A 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 yes i did not getting any display on lcd i havnt use UART reeive buffer ..
Aug 4, 2014 #4 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 Zip and post full project files.