Professional Documents
Culture Documents
This is a simple project which stores data in the microcontroller’s register and then
microcontroller transfer it to the LCD’s data register. To create a dynamic effect to the message
which is given to the LCD we can use the following hex codes corresponds to the desired
function. In this project we use the hex code
Code
1 Clear screen display
2 Return home
You 4 Decrement cursor can
use
6 Increment cursor the
5 Shift display right
7 Shift display left
8 Display OFF, cursor OFF
A Display OFF, cursor ON
C Display ON, cursor OFF
E Display ON, cursor blinking
10 Shift cursor position to left
14 Shift cursor position to right
18 Shift the entire display to the left
1C Shift the entire display to the right
80 Force the cursor to the beginning of the 1st line
C0 Force cursor to the beginning of the 2nd line
38 Use 2 lines and 5x7 matrix