27976 Parallax Inc, 27976 Datasheet - Page 3
![MODULE SRL LCD 2X16 NON-BACKLIT](/photos/7/89/78992/mfg_27976_sml.jpg)
27976
Manufacturer Part Number
27976
Description
MODULE SRL LCD 2X16 NON-BACKLIT
Manufacturer
Parallax Inc
Specifications of 27976
Display Mode
Transflective
Interface
Serial
Display Type
STN - Super-Twisted Nematic
Number Of Digits/alpha
32
Outline L X W X H
80.00mm x 36.00mm x 21.00mm
Viewing Area
61.00mm L x 15.70mm W
Backlight
Without Backlight
Display Format
16 x 2
Character Format
5 x 8 Dots
Voltage - Supply
5.0V
Operating Temperature
-20°C ~ 70°C
Character Count X Line
16 x 2
Module Size (w X H X T)
38 mm x 80 mm
Features
Serial LCD
Fluid Type
STN Positive
Voltage Rating
5 VDC
Operating Temperature Range
- 20 C to + 70 C
Backlight Type
LED Yellow-Green
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Dot Size
-
Character Size
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Displaying Text
Now that the LCD is set up, it’s time to start sending text to the display. To display a character of text on
the Serial LCD, simply send the ASCII code of that character to the Serial LCD over the serial port at the
correct baud rate.
When a character is received, the Serial LCD displays that character at the current cursor position and
then moves the cursor one position to the right. When you first turn on the LCD, the cursor is in the
leftmost position on the top line, as you might expect. The short bar on the bottom of the character
shows where the cursor is positioned currently.
Once you’ve sent a full line characters to the LCD, you will notice that the cursor automatically wraps
around to the leftmost position of the second line, just like the text in a book. The text will wrap like this
at the end of every line, with the end of the bottom line wrapping back around to the top line of the LCD.
The text will never “run off” the display; you’ll always see all of the characters you send.
Example code is provided below. You may download the example code files from the 27976, 27977, or
27979 product pages at www.parallax.com; just enter any of these product numbers in the “search” field
on the home page
BASIC Stamp 2 example code
You may download the example code from the 27976, 27977, or 27979 product pages at
www.parallax.com; just enter any of these product numbers in the “search” field on the home page. Try
the following code on your BASIC Stamp 2 to send a text string to the LCD display. First, set the baud
rate on your Serial LCD to 19,200. Then, load the code below into your BASIC Stamp 2 and run it.
You will see the text string show up and wrap to the second line of the display.
In all of your Serial LCD code, you should pause for 100 ms at start-up to give time for the Serial LCD to
initialize. You should also set the serial port pin on the BASIC Stamp to HIGH before the 100 ms start-up
delay, as this is the normal state of a serial port when it isn’t sending any data.
' {$STAMP BS2}
TxPin
Baud19200
For extensive code examples using the Parallax 2X16 LCD, see “Smart Sensors and Applications” which is
available for free download. Search “28089” from www.parallax.com.
Copyright © Parallax Inc.
HIGH TxPin
PAUSE 100
SEROUT TxPin, Baud19200, ["Hello, this text will wrap."]
CON
CON
0
32
Parallax Serial LCDs (#27976, #27977, #27979)
' Set pin high to be a serial port
' Pause for Serial LCD to initialize
2.1 4/15/2010 Page 3 of 10