603-00006 Parallax Inc, 603-00006 Datasheet - Page 3

LCD PARALLEL 2X16 W/CABLE

603-00006

Manufacturer Part Number
603-00006
Description
LCD PARALLEL 2X16 W/CABLE
Manufacturer
Parallax Inc
Datasheet

Specifications of 603-00006

Display Type
LCD - Monochrome
Display Mode
Reflective
Number Of Digits/alpha
32
Display Format
16 x 2
Character Size
5.00mm H x 3.00mm W
Voltage - Supply
5.0V
Interface
Parallel
Character Count X Line
16 x 2
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Operating Temperature
-
Backlight
-
Viewing Area
-
Outline L X W X H
-
Dot Size
-
Character Format
-
Lead Free Status / Rohs Status
No
Init_LCD:
' -----[ Program Code ]----------------------------------------------------
Main:
Out:
' -----[ Subroutines ]-----------------------------------------------------
Wr_LCD:
Next_line:
GOTO Out
' =========================================================================
'
'
'
'
'
'
' -----[ Program Description ]---------------------------------------------
' This program demonstrates using a Hitachi-compatible Parallel LCD Display
' This code works with the BS2, BS2e and BS2sx
' -----[ I/O Definitions ]-------------------------------------------------
E
RW
RS
' -----[ Variables ]-------------------------------------------------------
char
inst
index
temp
' -----[ EEPROM Data ]-----------------------------------------------------
DATA "Hello, this is the LCD demo."
' -----[ Initialization ]--------------------------------------------------
© Parallax, Inc. • 2X16 Parallel LCD (
LOW RW
LET PINS = %00110000
PULSOUT E,1
PAUSE 10
PULSOUT E,1
PAUSE 10
PULSOUT E,1
PAUSE 10
LET PINS = %00100000
PULSOUT E,1
LET char = %00101000
GOSUB Wr_LCD
LET char = 1
GOSUB Wr_LCD
LET char = 6
GOSUB Wr_LCD
LET char = 14
GOSUB Wr_LCD
HIGH
FOR B6 = 0 TO 27
READ B6, char
IF B6 = 15 THEN Next_Line
GOSUB Wr_LCD
NEXT
END
temp = char & %11110000
PINS = PINS & %00001000 | temp
PULSOUT E,1
PAUSE 10
temp =
PINS = PINS & %00001000 | temp
PULSOUT E,1
PAUSE 100
RETURN
LOW RS
LET char = 128 + 64
GOSUB Wr_LCD
HIGH RS
READ B6, char
GOSUB Wr_LCD
File...... Parallel_LCD_2X16.bs2
Purpose... Parallel LCD Display Demo
Author.... Parallax, Inc.
E-mail.... support@parallax.com
{$STAMP BS2}
{$PBASIC 2.5}
RS
char & %00001111 * 16
PIN
PIN
PIN
VAR
VAR
VAR
VAR
0
2
3
Byte
char
Word
Byte
BASIC Stamp 2, 2e and 2sx code
#603-00006
' Puts LCD Into Write Mode
' Wakes Up LCD
' Send Data Three Times
' Function Set, 4-bit Operation
' Set 4-bit Operation
' Clears The LCD Screen
' Set Cursor Direction
' Sets Cursor To Underline
' Prepare To Send Characters
' Read Data From EEPROM To Display
' Places Cursor On Line 2
' Puts LCD Into Display Mode
' End Of Code
' Write The Character In B3 To LCD
' Logical AND Data Of High Byte Of
' I/O Pins
' Logical OR The Data Leaving RS
' Pin In An Unchanged State
' Clocks Out Data
' Logical AND Data To Low Byte Of
' I/O Pins And Shifts To The Left
' Logical ORs The Data Leaving RS
' Pin In An Unchanged State
' Clocks Out Data
' Enable Pin For LCD
' R/W Pin For LCD
' LCD Register Select
' 0 = Instruction, 1 = Text
' Character To Send To LCD
' Induction To Send To LCD
' Character Pointer
' Temp Variable
' Message To Send To LCD
)
7/2005 Version 1.3
Page 3

Related parts for 603-00006