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,The initial commands for

Hi,The initial commands for

|

Projects › Projects › 4bit lcd program for 2148…..i am getting perfectly output in kiel but in proteus nothing is displaying on lcd..can you tell me › Hi,The initial commands for

June 11, 2013 at 1:04 pm #9945
AJISH ALFRED
Participant

Hi,

The initial commands for the 4 bit interfacoing should be something like the following; don’t forget to add some delay after all the commands.

 

    lcd_cmd ( 0x02 ); // to initialize LCD in 4-bit mode.
    lcd_cmd ( 0x28 ); //to initialize LCD in 2 lines, 5X7 dots and 4bit mode.
    lcd_cmd ( 0x0C );
    lcd_cmd ( 0x06 );
    lcd_cmd ( 0x80 );
    lcd_cmd ( 0x01 );
    delay_ms ( 500 );

 

Check your circuit connections also, use a variable resistor with the contrast pin of the LCD to adjust the contrast and also use a resistance in series with 15 th or 16 th pin to adjust the backlight.

 

Suggest you to leave the simulating software and try it on the real hardware, because one day you have to do the project in the hardware and then you will find that you were actually wasting your time with the simulating softwares.

RSS Recent Posts

  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026
  • Beginner Questions About CNC Machines – G-code, Control Systems & Accuracy April 21, 2026
  • A Must-Watch Video Showing Dangerous Construction of Cheap Lithium-Ion Cells April 21, 2026
  • S1MJ ? April 20, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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