MicroBlaze Development Kit Spartan-3E 1600 Edition User Guide 47
UG257 (v1.1) December 5, 2007 www.xilinx.com
LCD Controller
R
Disabled
If the LCD_E enable signal is Low, all other inputs to the LCD are ignored.
Clear Display
Clear the display and return the cursor to the home position, the top-left corner.
This command writes a blank space (ASCII/ANSI character code 0x20) into all DD RAM
addresses. The address counter is reset to 0, location 0x00 in DD RAM. Clears all option
settings. The I/D control bit is set to 1 (increment address counter mode) in the Entry Mode
Set command.
Execution Time: 82Ps – 1.64 ms
Return Cursor Home
Return the cursor to the home position, the top-left corner. DD RAM contents are
unaffected. Also returns the display being shifted to the original position, shown in
Figure 5-3.
The address counter is reset to 0, location 0x00 in DD RAM. The display is returned to its
original status if it was shifted. The cursor or blink move to the top-left character location.
Execution Time: 40Ps – 1.6 ms
Entry Mode Set
Sets the cursor move direction and specifies whether or not to shift the display.
These operations are performed during data reads and writes.
Execution Time: 40Ps

Bit DB1: (I/D) Increment/Decrement

Set CG RAM Address 0001A5A4A3A2A1A0
Set DD RAM Address 001A6A5A4A3A2A1A0
Read Busy Flag and
Address
0 1 BF A6 A5 A4 A3 A2 A1 A0
Write Data to CG RAM or
DD RAM
10D7D6D5D4D3D2D1D0
Read Data from CG RAM
or DD RAM
11D7D6D5D4D3D2D1D0
Tabl e 5 - 3 : LCD Character Display Command Set (Continued)
Function
LCD_RS
LCD_RW
Upper Nibble Lower Nibble
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0Auto-decrement address counter. Cursor/blink moves to left.
1Auto-increment address counter. Cursor/blink moves to right.