LCD16x2 HD44780 Tutorial 3 – Display Address and Shifting

LCD16x2 DDRAM

In this tutorial, I will explain about LCD16x2 DDRAM (Display Data RAM) addressing. The function of DDRAM is to store character that are displayed on LCD screen. HD44780 controller has 128 different addresses for DDRAM, although not all addresses have their own location on LCD screen. Only 80 display locations can be used to store characters. HD44780 is an LCD controller that can be used not just for size 16×2, but also for other sizes such as 16×4, 20×2, or 40×2. The display location for all LCD size is the same (80 location). The different is number of location that can displayed on screen. For example, on size 16×2, there is only 32 location, but other locations still can be used to store characters, although not displayed. To displayed that, we can shift the display to the right or to the left. This is the address locations of DDRAM that displayed on LCD16x2 whenever the LCD is powered up.

LCD address

Continue reading “LCD16x2 HD44780 Tutorial 3 – Display Address and Shifting”

Share this:

LCD16x2 HD44780 Tutorial 2 – Basic Commands and Displaying Text

Power up the LCD16x2

In this post, I will explain how to send commands and data to LCD16x2. From the previous tutorial, we have finished build the circuit on the breadboard. When you power up this circuit, you will see a series of square only on line 1 of the display. This is the default pattern of an uninitialized LCD. The LCD will always reset itself to this pattern when power is applied. If you not see this pattern, you can turn the resistor variable that controls the contrast of the LCD until see this pattern.

Uninitialized LCD16x2

Continue reading “LCD16x2 HD44780 Tutorial 2 – Basic Commands and Displaying Text”

Share this:

LCD16x2 HD44780 Tutorial 1 – Basic Circuit

LCD16x2 HD44780

LCD16x2 is a popular display module and commonly used in various devices. In this tutorial, I will explain about LCD16x2 basic operation. LCD16x2 that I will use have a Hitachi HD44780 (or compatible) controller chip. In this tutorial, I will not use any microcontroller for controlling the LCD, but just use a series of switches, because it will be useful to understand the working principle of HD44780 controller chip. When you use microcontroller to drive LCD effectively, this experiment can be a benefical step to have more knowledge about HD44780 chip rather than just use existing library. You can get the datasheet for HD44780 chip from here.

LCD16x2

Continue reading “LCD16x2 HD44780 Tutorial 1 – Basic Circuit”

Share this: