Command Set - Xilinx Spartan-3E User Manual

Starter kit board
Hide thumbs Also See for Spartan-3E:
Table of Contents

Advertisement

Chapter 5: Character LCD Screen
The CG RAM address counter can either remain constant after read or write operations, or
auto-increments or auto-decrements by one location, as defined by the I/D set by the
Mode Set
Figure 5-5
character is stored in the fourth CG RAM character location, which is displayed when a
DD RAM location is 0x03. To write the custom character, the CG RAM address is first
initialized using the
the custom character location. The lower three address bits point to the row address for the
character bitmap. The
character bitmap row. A '1' lights a bit on the display. A '0' leaves the bit unlit. Only the
lower five data bits are used; the upper three data bits are don't care positions. The eighth
row of bitmap data is usually left as all zeros to accommodate the cursor.

Command Set

Table 5-3
the display is set up for 4-bit operation, each 8-bit command is sent as two 4-bit nibbles.
The upper nibble is transferred first, followed by the lower nibble.
Table 5-3: LCD Character Display Command Set
Function
Clear Display
Return Cursor Home
Entry Mode Set
Display On/Off
Cursor and Display Shift
46
command.
provides an example, creating a special checkerboard character. The custom
Set CG RAM Address
Write Data to CG RAM or DD RAM
A5
A4
A3
A2
Character Address
Row Address
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
Figure 5-5: Example Custom Checkerboard Character with Character Code 0x03
summarizes the available LCD controller commands and bit definitions. Because
0
0
0
0
0
www.xilinx.com
command. The upper three address bits point to
Upper Nibble
Write Data to CG RAM or DD RAM
A1
A0
D7
D6
D5
Don't Care
0
0
-
-
-
0
1
-
-
-
1
0
-
-
-
1
1
-
-
-
0
0
-
-
-
0
1
-
-
-
1
0
-
-
-
1
1
-
-
-
Upper Nibble
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
Spartan-3E Starter Kit Board User Guide
Entry
command is used to write each
Lower Nibble
D4
D3
D2
D1
Character Bitmap
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
0
0
1
0
1
0
0
0
0
Lower Nibble
0
0
0
0
0
1
0
1
I/D
1
D
C
S/C
R/L
-
UG230 (v1.0) March 9, 2006
R
D0
0
1
0
1
0
1
0
0
1
-
S
B
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Spartan-3e fpga

Table of Contents