Projects › Projects › About LCD 2×16 › hi it is gana i have problem
hi it is gana i have problem with Micro C here i have a error message ” Not enough RAM ‘? lstr 10_lcd” bolded one is name of the project i am using at89c52 help ??
AND CODE : i am just beginner you know kk what is the ”char txt[100];” can i delete it what does it’s role?
char txt[100];
char keypadPort at P0;
sbit input4 at P1_4_bit;
sbit input3 at P2_7_bit;
sbit input2 at P2_6_bit;
sbit input1 at P1_3_bit;
sbit LCD_RS at P2_0_bit;
sbit LCD_EN at P2_1_bit;
sbit LCD_D4 at P2_2_bit;
sbit LCD_D5 at P2_3_bit;
sbit LCD_D6 at P2_4_bit;
sbit LCD_D7 at P2_5_bit;
// End Lcd module connections
void main() {
P1=0;
input2=0;
input3=0;
// Initialize Keypad
Lcd_Init(); // Initialize Lcd
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(1, 1, ” bvx yum “); // Write message text on Lcd
Lcd_Out(2, 1, ” ok bna “);
while (1){
if((input1==1)&&(input2==0) &&(input3==0)&&(input4==0))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “gal”); }
else if ((input1==0)&&(input2==1) &&(input3==0)&&(input4==0))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “xaalga “);}
else if ((input1==0)&&(input2==0) &&(input3==1)&&(input4==0))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “tsonx “);}
else if ((input1==0)&&(input2==0) &&(input3==0)&&(input4==1))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “xodolgoon”);}
else if((input1==1)&&(input2==1)&&(input3==0)&&(input4==0))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “gal”);
Lcd_Out(2, 1, “xaalga “);}
else if((input1==1)&&(input2==0)&&(input3==1)&&(input4==0))
{ Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “gal”);
Lcd_Out(2, 1, “tsonx “);
}
else if((input1==1)&&(input2==0)&&(input3==0)&&(input4==1))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “gal”);
Lcd_Out(2, 1, “xodolgoon “);}
else if((input1==0)&&(input2==1)&&(input3==1)&&(input4==0))
{Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “tsonx “);
Lcd_Out(2, 1, “xaalga “);}
else if((input1==0)&&(input2==1)&&(input3==0)&&(input4==1))
{ Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “xodolgoon “);
Lcd_Out(2, 1, “xaalga “);}
else if((input1==0)&&(input2==0)&&(input3==1)&&(input4==1))
{ Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1, 1, “xodolgoon “);
Lcd_Out(2, 1, “tsonx “);
}
} }