Hi all

It must have been timing related. I revised the code to :


serout2 Tx,84, [$FE,$1B] 'Request data from Keypad

pauseus 100 ' added a short delay

serin2 Rx,84,10,cont,[key] ' put a Timeout & jump in so the SERIN2 will wait
' for a while for the data to come back

cont: ' label to "jump to" if no data

pause 50 'Not sure if this is needed, will play with it some

serout2 Tx, 84, [$FE,$0C,1,0,#key] 'the decimal key value is now displayed
' The keypad defaults to 0 if a request
'is made and no key pressed

Anyway, now it works great. Learned something in the process too !