beautypg.com

Writing data to the display, Disabling the unused lcd, Related resources – Digilent 410-087P-KIT User Manual

Page 52

background image

52

www.xilinx.com

Spartan-3E Starter Kit Board User Guide

UG230 (v1.0) March 9, 2006

Chapter 5: Character LCD Screen

R

Finally, issue a

Clear Display

command. Allow at least 1.64 ms (82,000 clock cycles)

after issuing this command.

Writing Data to the Display

To write data to the display, specify the start address, followed by one or more data values.

Before writing any data, issue a

Set DD RAM Address

command to specify the initial 7-bit

address in the DD RAM. See

Figure 5-3

for DD RAM locations.

Write data to the display using a

Write Data to CG RAM or DD RAM

command. The 8-bit

data value represents the look-up address into the CG ROM or CG RAM, shown in

Figure 5-4

. The stored bitmap in the CG ROM or CG RAM drives the 5 x 8 dot matrix to

represent the associated character.

If the address counter is configured to auto-increment, as described earlier, the application
can sequentially write multiple character codes and each character is automatically stored
and displayed in the next available location.

Continuing to write characters, however, eventually falls off the end of the first display
line. The additional characters do not automatically appear on the second line because the
DD RAM map is not consecutive from the first line to the second.

Disabling the Unused LCD

If the FPGA application does not use the character LCD screen, drive the LCD_E pin Low
to disable it. Also drive the LCD_RW pin Low to prevent the LCD screen from presenting
data.

Related Resources

Initial Design for Spartan-3E Starter Kit (Reference Design)

http://www.xilinx.com/s3estarter

PowerTip PC1602-D Character LCD (Basic Electrical and Mechanical Data)

http://www.powertipusa.com/pdf/pc1602d.pdf

Sitronix ST7066U Character LCD Controller

http://www.sitronix.com.tw/sitronix/product.nsf/Doc/ST7066U?OpenDocument

Detailed Data Sheet on PowerTip Character LCD

http://www.rapidelectronics.co.uk/images/siteimg/57-0910e.PDF

Samsung S6A0069X Character LCD Controller

http://www.samsung.com/Products/Semiconductor/DisplayDriverIC/MobileDDI/BWSTN
/S6A0069X/S6A0069X.htm