27297 Parallax Inc, 27297 Datasheet - Page 87

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
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 27297