27220 Parallax Inc, 27220 Datasheet - Page 99

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
LcdDDRam
LcdCGRam
LcdLine1
LcdLine2
#DEFINE _LcdReady = ($STAMP >= BS2P)
' -----[ Variables ]-------------------------------------------------------
char
idx
rndVal
addr
tOut
tIn
temp
width
' -----[ Initialization ]--------------------------------------------------
Reset:
Lcd_Setup:
Display:
#IF _LcdReady #THEN
#ENDIF
DIRL = %11111110
PAUSE 100
LcdBusOut = %0011
PULSOUT E, 3
PAUSE 5
PULSOUT E, 3
PULSOUT E, 3
LcdBusOut = %0010
PULSOUT E, 1
char = %00101000
GOSUB LCD_Cmd
char = %00001100
GOSUB LCD_Cmd
char = %00000110
GOSUB LCD_Cmd
char = LcdHome
GOSUB LCD_Cmd
PAUSE 2
FOR idx = 0 TO 15
#ERROR "Please use BS2p version: SW21-EX13-LCD_Read.BSP"
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
$80
$40
$80
$C0
Byte
Byte
Word
Byte
Byte
Byte
Word
Nib
' Display Data RAM control
' Character Generator RAM
' DDRAM address of line 1
' DDRAM address of line 2
' character sent to LCD
' loop counter
' random value
' address to write/read
' test value - out to LCD
' test value - in from LCD
' use for formatting
' width of value to display
' setup pins for LCD
' let the LCD settle
' 8-bit mode
' 4-bit mode
' multi-line mode
' disp on, no crsr or blink
' inc crsr, no disp shift

Related parts for 27220