27976 Parallax Inc, 27976 Datasheet - Page 4

MODULE SRL LCD 2X16 NON-BACKLIT

27976

Manufacturer Part Number
27976
Description
MODULE SRL LCD 2X16 NON-BACKLIT
Manufacturer
Parallax Inc
Datasheets

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
Propeller Example Code
Try the following code on your Propeller 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 Propeller and load RAM or EEPROM.
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 wait for 100 ms after starting the FullDuplexSerial.spin object,
to give the object and the Serial LCD time to initialize. The FullDuplexSerial.spin object is included with
the Propeller Tool.
{{
Serial_LCD_Demo.spin
For Parallax Serial LCDs 27976, 27977, 27979
}}
CON
OBJ
PUB Main
Moving the Cursor
When you send a character to the Serial LCD, it always displays at the current cursor position. There are
a few different ways to move the cursor on the Serial LCD display. After each character you send, the
cursor automatically moves over one position. Along with this, there is a standard set of cursor move
commands including Backspace, Carriage Return, and Line Feed.
The Backspace/Left command (Dec 8) moves the cursor one place to the left and the Right command
(Dec 9) moves the cursor one place to the right. These can be useful for moving the cursor around to
overwrite existing text. These commands wrap to the next line of the display, if necessary. The Line
Feed command (Dec 10) moves the cursor to the next line of the display without changing the horizontal
position of the cursor. The Carriage Return command (Dec 13) also moves the cursor to the next line,
but it moves the cursor to the leftmost position on that line as well. The Form Feed command (Dec 12)
clears the entire display and moves the cursor to the leftmost position on line 0, just like when you first
turn on the display. You will need to pause for 5mS in your code after sending the Form Feed command,
to give the Serial LCD time to clear the display. Except for Form Feed, none of these move commands
affects the characters on the display.
There are also direct move commands that you can use to move the cursor to any position on the display
with a single command. The commands in the range Dec 128 to 143 and Dec 148 to 163 move the
cursor to the 16 different positions on each of the two lines of the model 27976 and 27977 LCDs. The
commands in the range Dec 128 to 207 move the cursor to the 20 different positions on each of the four
lines of the model 27979 LCD.
Copyright © Parallax Inc.
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
TX_PIN
BAUD
LCD
LCD.start(TX_PIN, TX_PIN, %1000, 19_200)
waitcnt(clkfreq / 100 + cnt)
LCD.str(string("Hello, this text will wrap."))
= 0
= 19_200
: "FullDuplexSerial.spin"
Parallax Serial LCDs (#27976, #27977, #27979)
' Pause for FullDuplexSerial.spin to initialize
2.1 4/15/2010 Page 4 of 10

Related parts for 27976