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

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
Initialize:
' -----[ Program Code ]----------------------------------------------------
Main:
END
' -----[ Subroutines ]-----------------------------------------------------
Init_Lcd:
Send_Inst:
Send_Text:
Next_Line:
' =========================================================================
'
'
'
'
'
'
' -----[ Program Description ]---------------------------------------------
' This program demonstrates using a Hitachi-compatible Parallel LCD Display
' This code works with the BS2p24, BS2p40, BS2pe and BS2px24
' -----[ I/O Definitions ]-------------------------------------------------
Lcd
' -----[ Variables ]-------------------------------------------------------
temp
char
' -----[ Initialization ]--------------------------------------------------
Init_Lcd:
© Parallax, Inc. • 2X16 Parallel LCD (
LOW RW
OUTS = %0000000000000000
DIRS = %0000000011111111
GOSUB Init_Lcd
FOR temp = 0 TO 27
NEXT
PAUSE 200
OUTS = %00110000
PULSOUT E,1
PAUSE 10
PULSOUT E,1
PAUSE 10
PULSOUT E,1
PAUSE 10
OUTS = %00100000
PULSOUT E,1
Inst = %00101000
GOSUB Send_Inst
Inst = %00001110
GOSUB Send_Inst
Inst = %00000110
GOSUB Send_Inst
Inst = %00000001
GOSUB Send_Inst
Inst = 14
GOSUB Send_Inst
RETURN
LOW RS
OUTB = Inst.HIGHNIB
PULSOUT E,1
OUTB = Inst.LOWNIB
PULSOUT E,1
HIGH RS
RETURN
OUTB = Char.HIGHNIB
PULSOUT E,1
OUTB = char.LOWNIB
PULSOUT E,1
PAUSE 100
RETURN
Inst = 128+64
GOSUB Send_Inst
RETURN
File...... Parallel_LCD_2X16.bsp
Purpose... Parallel LCD Display Demo
Author.... Parallax, Inc.
E-mail.... support@parallax.com
{$STAMP BS2p}
{$PBASIC 2.5}
IF temp = 15 THEN
ENDIF
READ temp, char
GOSUB Send_Text
GOSUB Next_Line
PIN
VAR
VAR
BASIC Stamp 2p24, 2p40 2pe and 2px24 code
0
Byte
Byte
#603-00006
' LCD Enable Pin
' Set LCD To Write Mode
' Set All Output Low
' Set I/O Direction
' Initialize The LCD Display
' 28 Characters
' Check For End Of Line
' Jump To Next Line
' Read Next Character From EEPROM
' Send Character To LCD Display
' Reset The LCD
' Send Command Three Times
' Set To 4-bit Operation
' Function Set (2-Line Mode)
' Turn On Cursor
' Set Auto-Increment
' Clears LCD
' Set Cursor To Underline
' Set Instruction Mode
' Send High Nibble
' Send Low Nibble
' Set LCD Back To Text Mode
' Send High Nibble
' Send Low Nibble
' Move Cursor To Line 2
)
7/2005 Version 1.3
Page 4

Related parts for 603-00006