LK204 Not returning keypresses when polled
Posted: Thu Jun 12, 2014 1:36 pm
Hi all,
I'm working on getting a LK204-7T-1U running and while most everything is working the one issue I'm having is with polling the keypad.
I am working through an I2C interface and I am sending what I believe to be the correct configuration commands. I am sending the following:
(See screencap attached to post)
<START>
0x50 (address [write])
<ACK>
0xFE (command)
<ACK>
0x4F (auto-transmit off)
<ACK>
<STOP>
<START>
0x50 (address [write])
<ACK>
0xFE (command)
<ACK>
0x60 (auto-repeat off)
<ACK>
<STOP>
I then have a loop that polls the device for new keypresses every half second:
<START>
0x50 (address[write])
<ACK>
0xFE (command)
<ACK>
0x26 (poll)
<ACK>
<STOP>
<START>
0x51 (address[read])
<ACK>
0x00 (data received back from LK202)
<NACK>
<STOP>
Everything seems to be ACKing and NACKing as it should, but the only data I receive back from the LK204 poll keypad command is 0x00 no matter which button is pressed.
Is there a command I am missing? Something else I should be doing?
I have my screencap from the logic analyzer attached to this post.
Thanks in advance for any help
I'm working on getting a LK204-7T-1U running and while most everything is working the one issue I'm having is with polling the keypad.
I am working through an I2C interface and I am sending what I believe to be the correct configuration commands. I am sending the following:
(See screencap attached to post)
<START>
0x50 (address [write])
<ACK>
0xFE (command)
<ACK>
0x4F (auto-transmit off)
<ACK>
<STOP>
<START>
0x50 (address [write])
<ACK>
0xFE (command)
<ACK>
0x60 (auto-repeat off)
<ACK>
<STOP>
I then have a loop that polls the device for new keypresses every half second:
<START>
0x50 (address[write])
<ACK>
0xFE (command)
<ACK>
0x26 (poll)
<ACK>
<STOP>
<START>
0x51 (address[read])
<ACK>
0x00 (data received back from LK202)
<NACK>
<STOP>
Everything seems to be ACKing and NACKing as it should, but the only data I receive back from the LK204 poll keypad command is 0x00 no matter which button is pressed.
Is there a command I am missing? Something else I should be doing?
I have my screencap from the logic analyzer attached to this post.
Thanks in advance for any help