Trying to run this code but cant go through it. needs help!!! | Microcontroller › 8051 › Trying to run this code but cant go through it. needs help!!! This topic has 1 reply, 2 voices, and was last updated 10 years, 6 months ago by Ashutosh Bhatt. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 18, 2014 at 8:10 am #3088 fadiParticipant #include<reg51.h> #define port2 P2 sbit rs = P1^0; sbit rw = P1^1; sbit e = P1^2; char info[70]; char test[6]={“$GPGGA”}; char comma_position[15]; unsigned int check=0,i; unsigned char a; void receive_data(); void lcd_latitude(); void lcd_longitude(); //DELAY FUNCTION void delay(unsigned int msec) { int i,j ; for(i=0;i<msec;i++) for(j=0;j<1275;j++); } // LCD COMMAND SENDING FUNCTION void lcd_cmd(unsigned char item) { port2 = item; rs= 0; rw=0; e=1; delay(1); e=0; return; } // LCD DATA SENDING FUNCTION void lcd_data(unsigned char item) { port2 = item; rs= 1; rw=0; e=1; delay(1); e=0; return; } // LCD STRING SENDING FUNCTION void lcd_string(unsigned char *str) { int i=0; while(str!=’