27297 Parallax Inc, 27297 Datasheet - Page 100

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
' -----[ Program Code ]----------------------------------------------------
Main:
NEXT
char = LcdLine2
GOSUB LCD_Cmd
PAUSE 2
FOR idx = 0 TO 15
NEXT
RANDOM rndVal
addr = rndVal.LOWBYTE & $3F
tOut = rndVal.HIGHBYTE
char = LcdCGRam + addr
GOSUB LCD_Cmd
char = tOut
GOSUB LCD_Out
PAUSE 100
char = LcdCGRam + addr
GOSUB LCD_Cmd
GOSUB LCD_In
tIn = char
' display results
char = LcdLine1 + 5
GOSUB LCD_Cmd
temp = addr
width = 2
GOSUB Put_Val
char = LcdLine1 + 13
GOSUB LCD_cmd
temp = tOut
width = 3
GOSUB Put_Val
char = LcdLine2 + 13
GOSUB LCD_Cmd
temp = tIn
width = 3
GOSUB Put_Val
PAUSE 1000
LOOKUP idx, ["ADDR=??
GOSUB LCD_Out
LOOKUP idx, ["
GOSUB LCD_Out
OUT:???"], char
IN:???"], char
' generate random number
' create address (0 to 63)
' create test value
' set CGRAM pointer
' move the value to CGRAM
' reset CGRAM pointer
' read value from LCD
' show address @ L1/C5
' show output @ L1/C13
' show output @ L2/C13

Related parts for 27297