Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Making/Displaying custom urdu characters on 16×2 lcd using 8051(89c51,89c52) Microcontroller

By EG Projects July 4, 2019

This post is about displaying custom urdu font characters on 16×2 character lcd display with the help of 89c51 microcontroller. Previously i discussed about ‘How to display custom character on 16×2 lcd display with 8051(89c51,89c52) microcontroller?’. This tutorial is made by following the same steps enlisted in the above tutorial. The only difference is, in this tutorial i calculated the character data arrays for each character/alphabet of urdu language. Urdu language is spoken in India, Pakistan, Bangladesh and Afghanistan. Pakistan national language is Urdu. Urdu alphabets are shown below. 
Urdu alphabets OR characters

Urdu alphabets OR characters

16×2 lcd custom characters End Result

Urdu characters displayed on 16x2 lcd with 89c51 microcontroller

Urdu characters displayed on 16×2 lcd with 89c51 microcontroller

Urdu language alphabets on 16x2 lcd

Urdu language alphabets on 16×2 lcd

CG-RAM(character generated ram) of HD44780 lcd controller

Making and displaying custom urdu characters on 16×2 lcd display is not an easy task. If you are newbie and previously have no experience with character lcd’s. Then first take the tutorial on How to make and display custom characters on 16×2 lcd? Tutorial will help you to understand how the 16×2 lcd works, about its pin out and internal register structure, about CG ram? how to store data(characters) in CG (character generated) ram?  and lastly how to print the custom characters that are made in CG-ram on 16×2 lcd screen?
​
Note: Every character lcd irrespective of its size(16×1, 16×2, 20×4 etc) has HD44780 lcd controller in it. So custom character display technique is same for each lcd display. Some bigger size lcd’s have two HD44780 controllers in them. Each controlling a single half of lcd. For those lcd’s custom character display technique is still same because of the same HD44780 controller behind the lcd.

CG-Ram can store up to 8 characters at a time. If you exceed this limit the new characters will be replaced by the previous one. For example if at first location we placed ‘>’ and then next 7 characters are placed in CG-RAM. Now the CG-RAM is fully occupied. Suddenly we send the ninth character ‘%’ to HD44780 controller to place it in CG-RAM. The HD44780 controller will accept the new character but place it at the first location. Where previously ‘>’ was present. Now ‘>’ is replaced with ‘%’. 

Custom language alphabets display on 16×2 lcd – Project circuit diagram

Connect 16×2 lcd data pins to Port-1 of 89c51 microcontroller. 16×2 lcd is interfaced with 89c51 microcontroller in 8-bit mode(Don’t understand take Tutorial ). Connect rs(register select) pin of lcd display to Port-3 pin#3 and en(enable) pin of lcd to Port-3 pin#6, ground rw(read/write) pin of lcd display. Grounding the rw pin tells the HD44780 controller that we only want to write to lcd display. If you don’t know how the 16×2 lcd works and how to connect it to the microcontroller here is a good tutorial 16X2 lcd working and pinout.
Custom characters display on 16x2 lcd with 89c51 microcontroller - Circuit diagram

Custom characters display on 16×2 lcd with 89c51 microcontroller – Circuit diagram

In the above code i first created and placed the initial eight alphabets of urdu language in CG-RAM and then displayed them on the lcd screen. After a few seconds delay i again made the eight characters and placed them in CG-RAM of 16×2 lcd display. The new eight alphabets replaces the previous ones and then i called them to display on 16×2 lcd. This process repeats unless all the alphabets are displayed on lcd. Whole code is placed in while(1) loop so the code runs again and again with the same logic. 

Some more tutorials on displaying custom characters on 16×2 lcd screen. Each project is made with different microcontroller. All projects are open source you can modify the circuit and code according to your needs.    

Custom characters display on lcd using Arduino uno

Displaying custom urdu alphabets on 16×2 lcd display with arduino uno

Custom characters display on lcd with pic microcontroller

Displaying custom urdu characters on lcd with pic microcontroller

Download the project code files. Code is written in keil uvision ide. Code is open source Don’t forget to provide us your feedback on the project.
Urdu custom characters code/files


Filed Under: 8051 Microcontroller, Electronic Projects, Microcontroller Projects

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

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

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe