LCD16x2 HD44780 Tutorial 4 – Character Entry Mode

LCD16x2 Character Entry Mode 1

In this tutorial, I will explain about character entry mode of the LCD16x2. There are 4 character entry modes that can be used. So far, we have been used the default character entry mode until previous post. The entry mode is auto-incrementing the cursor address every a new character is entered. This is the default entry mode every LCD is powered up. To do the first entry mode or the default entry mode, we can send instruction 0b00000110 to the LCD. Every a new character is entered, the cursor/DDRAM address is auto-incremented by 1. This mode is illustrated by animation below.

LCD entry 1

Continue reading “LCD16x2 HD44780 Tutorial 4 – Character Entry Mode”

Share this:

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: