EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / hi it is gana i have problem

hi it is gana i have problem

|

Projects › Projects › About LCD 2×16 › hi it is gana i have problem

April 13, 2011 at 5:18 am #5956
gana
Participant

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 “);
  }
}   }

RSS Recent Posts

  • Simple LED Analog Clock Idea July 7, 2025
  • The Analog Gods Hate Me July 7, 2025
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz July 7, 2025
  • PIC KIT 3 not able to program dsPIC July 7, 2025
  • Parts required for a personal project July 6, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise