27220 Parallax Inc, 27220 Datasheet - Page 87

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
LcdCGRam
LcdLine1
LcdLine2
#DEFINE LcdReady = ($STAMP >= BS2P)
' -----[ Variables ]-------------------------------------------------------
char
idx
' -----[ EEPROM Data ]-----------------------------------------------------
Msg
' -----[ Initialization ]--------------------------------------------------
Reset:
Lcd_Setup:
' -----[ Program Code ]----------------------------------------------------
Main:
#IF ($STAMP >= BS2P) #THEN
#ENDIF
DIRL = %11111110
PAUSE 100
LcdBus = %0011
PULSOUT E, 3
PAUSE 5
PULSOUT E, 3
PULSOUT E, 3
LcdBus = %0010
PULSOUT E, 1
char = %00001100
GOSUB LCD_Cmd
char = %00000110
GOSUB LCD_Cmd
char = LcdCls
GOSUB LCD_Cmd
PAUSE 500
idx = Msg
#ERROR "Please use BS2p version: SW21-EX11-LCD_Demo.BSP"
CON
CON
CON
VAR
VAR
DATA
$40
$80
$C0
Byte
Byte
"The BASIC STAMP!", 0
' Character Generator RAM
' DDRAM address of line 1
' DDRAM address of line 2
' character sent to LCD
' loop counter
' store message
' setup pins for LCD
' let the LCD settle
' 8-bit mode
' 4-bit mode
' disp on, no crsr or blink
' inc crsr, no disp shift
' clear the LCD
' get EE address of message

Related parts for 27220