Lcd Controller; Memory Map - Xilinx MIcroBlaze Development Spartan-3E 1600E Kit User Manual

Hide thumbs Also See for MIcroBlaze Development Spartan-3E 1600E Kit:
Table of Contents

Advertisement

Chapter 5: Character LCD Screen

LCD Controller

The 2 x 16 character LCD has an internal Sitronix
functionally equivalent with the following devices.

Memory Map

The controller has three internal memory regions, each with a specific purpose. The
display must be initialized before accessing any of these memory regions.
DD RAM
The Display Data RAM (DD RAM) stores the character code to be displayed on the screen.
Most applications interact primarily with DD RAM. The character code stored in a DD
RAM location references a specific character bitmap stored either in the predefined
ROM
Figure
upper line of characters is stored between addresses 0x00 and 0x0F. The second line of
characters is stored between addresses 0x40 and 0x4F.
Physically, there are 80 total character locations in DD RAM with 40 characters available
per line. Locations 0x10 through 0x27 and 0x50 through 0x67 can be used to store other
non-display data. Alternatively, these locations can also store characters that can only
displayed using controller's display shifting functions.
The
writing to DD RAM. Write DD RAM data using the
command, and read DD RAM using the
The DD RAM address counter either remains 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
CG ROM
The Character Generator ROM (CG ROM) contains the font bitmap for each of the
predefined characters that the LCD screen can display, shown in
code stored in
the CG ROM. For example, a hexadecimal character code of 0x53 stored in a
location displays the character 'S'. The upper nibble of 0x53 equates to DB[7:4]="0101"
44
www.xilinx.com
Samsung
S6A0069X
or KS0066U
Hitachi HD44780
SMOS SED1278
character set or in the user-defined
5-3shows the default address for the 32 character locations on the display. The
Character Display Addresses
1
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
2
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
1
2 3 4
5 6 7 8
Figure 5-3: DD RAM Hexadecimal Addresses (No Display Shifting)
Set DD RAM Address
command initializes the address counter before reading or
command.
DD RAM
for each character location subsequently references a position with
MicroBlaze Development Kit Spartan-3E 1600 Edition User Guide
ST7066U
graphics controller that is
CG RAM
character set.
Undisplayed
Addresses
10
50
9 10 11 12 13 14 15 16 17
UG257_05_03_061206
Write Data to CG RAM or DD RAM
Read Data from CG RAM or DD RAM
Figure
UG257 (v1.1) December 5, 2007
R
CG
. . .
27
. . .
67
. . .
40
command.
Entry
5-4. The character
DD RAM

Advertisement

Table of Contents
loading

Table of Contents