27963 Parallax Inc, 27963 Datasheet - Page 13

SOLUTIONS CUBED: MEMKEY

27963

Manufacturer Part Number
27963
Description
SOLUTIONS CUBED: MEMKEY
Manufacturer
Parallax Inc
Datasheet

Specifications of 27963

Accessory Type
Keypad Encoder
Product
Microcontroller Accessories
For Use With/related Products
BASIC Stamp®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Miniature Engineering Modules – MEMKey
SEROUT 14,396,[$0A,$05,$45]
PAUSE 10
SEROUT 14,396,[$0A,$06,$46]
PAUSE 10
SEROUT 14,396,[$0A,$07,$47]
PAUSE 10
SEROUT 14,396,[$0A,$08,$48]
PAUSE 10
SEROUT 14,396,[$0A,$09,$49]
PAUSE 10
SEROUT 14,396,[$0A,$0A,$4A]
PAUSE 10
SEROUT 14,396,[$0A,$0B,$4B]
PAUSE 10
SEROUT 14,396,[$0A,$0C,$4C]
PAUSE 10
SEROUT 14,396,[$0A,$0D,$4D]
PAUSE 10
SEROUT 14,396,[$0A,$0E,$4E]
PAUSE 10
SEROUT 14,396,[$0A,$0F,$4F]
PAUSE 10
SEROUT 14,396,[$0A,$10,$50]
PAUSE 10
SEROUT 14,396,[$0A,$11,$51]
PAUSE 10
SEROUT 14,396,[$0A,$12,$52]
PAUSE 10
SEROUT 14,396,[$0A,$13,$53]
PAUSE 10
SEROUT 14,396,[$0B,$13]
SERIN 15,396,[b0]
DEBUG "Key 19 is: ",dec b0,cr,cr
'
SEROUT 14,396,[$0E,$00]
PAUSE 10
SEROUT 14,396,[$0F]
SERIN 15,396,[b0]
DEBUG "Config byte is: ",bin b0,cr,cr
'
SEROUT 14,396,[$10]
SERIN 15,396,[b0]
DEBUG "Firmare version is: ",dec b0,cr,cr
'
KeyScanStart
DEBUG "Press any key",cr,cr
KeyScanLoop:
SEROUT 14,396,[$01]
SERIN 15,396,[b0]
If b0 = 0 Then KeyScanLoop
'
ReadKeys:
SEROUT 14,396,[$00]
SERIN 15,396,[b0]
DEBUG "Keypress is: ",dec b0,cr,cr
GOTO KeyScanStart
'
END
SOLUTIONS CUBED
530-891-8045
'program serial key 5 to return $45
'allow EEPROM to write
'program serial key 6 to return $46
'allow EEPROM to write
'program serial key 7 to return $47
'allow EEPROM to write
'program serial key 8 to return $48
'allow EEPROM to write
'program serial key 9 to return $49
'allow EEPROM to write
'program serial key 10 to return $4A
'allow EEPROM to write
'program serial key 11 to return $4B
'allow EEPROM to write
'program serial key 12 to return $4C
'allow EEPROM to write
'program serial key 13 to return $4D
'allow EEPROM to write
'program serial key 14 to return $4E
'allow EEPROM to write
'program serial key 15 to return $4F
'allow EEPROM to write
'program serial key 16 to return $50
'allow EEPROM to write
'program serial key 17 to return $51
'allow EEPROM to write
'program serial key 18 to return $52
'allow EEPROM to write
'program serial key 19 to return $53
'allow EEPROM to write
'read serial key 19
'program config byte: poll mode, typematic off
'allow EEPROM to write
'read configuration byte
'test mode
'read # of keys
'if no keys in buffer keep looking
'keys in buffer so read buffer
'get key value
12

Related parts for 27963