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 / /*– — — — — — — — —

/*– — — — — — — — —

|

Microcontroller › 8051 › program for 4 bit lcd interface with 89s52 › /*– — — — — — — — —

May 20, 2016 at 11:49 am #13932
Anonymous
Guest
/*– — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
 
HEADER FILE DECLARATION:
 
========================
 
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — */
 
#include<REGX52.H>;
 
#include<string.h>;
 
/*– — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
 
SFR AND PINS DECLARATION:
 
========================
 
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — */
 
sfr lcd=P0;  // 
 
sbit e=P3^6;
 
sbit rs=P3^7;
 
/*– — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
 
SUB-ROUTINE HEADER DECLARATION:
 
===============================
 
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — */
 
void lcd_init(void);
 
void cmd(char,int);
 
void strg_cmd(char p[],char,int);
 
 
note: here R/W pin of lcd is not used, so it is not mentioned above.
 
contact: cbiinfrastructures3502gmail.com, [email protected] 

RSS Recent Posts

  • washing machine motor wiring June 15, 2026
  • effect of calibration on s-parameters June 15, 2026
  • Mitsubishi Electric IPM module lot code format - how to decode? June 14, 2026
  • Replacement IGBT for DGG4015 for Honda Motorcycle ECU June 14, 2026
  • TDK Lambda ESS 500-20-11-D-LB-RSTL Parallel Operation June 13, 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