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
LK204 Not returning keypresses when polled
-
- LCD?
- Posts: 7
- Joined: Thu Jun 12, 2014 1:11 pm
Re: LK204 Not returning keypresses when polled
Hi,
Have you set the transmission protocol to I2C?
If not send the "Transmission Protocol Select" and set the Protocol to I2C.
This will set the display to transmit data to the host in I2C.
You can also find some general I2C development information that could help here:
http://www.matrixorbital.ca/appnotes/i2c/
Let me know if this helps.
Martino
Have you set the transmission protocol to I2C?
If not send the "Transmission Protocol Select" and set the Protocol to I2C.
This will set the display to transmit data to the host in I2C.
You can also find some general I2C development information that could help here:
http://www.matrixorbital.ca/appnotes/i2c/
Let me know if this helps.
Martino
Martino DeLeon
Matrix Orbital
Technical Support Representative
Matrix Orbital
Technical Support Representative
-
- LCD?
- Posts: 7
- Joined: Thu Jun 12, 2014 1:11 pm
Re: LK204 Not returning keypresses when polled
Yes, the jumpers are set to I2C
-
- LCD?
- Posts: 7
- Joined: Thu Jun 12, 2014 1:11 pm
Re: LK204 Not returning keypresses when polled
However it was NOT being set in software.
That fixed the issue.
0x50
0xFE
0xA0
0x00
I was under the impression only the jumpers would need to be set.
A note to anyone from Matrix, the documentation for this display could make it a bit clearer that both the jumpers need to be set as well as the software command sent. The section of the manual describing I2C setup makes mention of setting the jumpers to set up I2C but does NOT mention sending the protocol select.
That fixed the issue.
0x50
0xFE
0xA0
0x00
I was under the impression only the jumpers would need to be set.
A note to anyone from Matrix, the documentation for this display could make it a bit clearer that both the jumpers need to be set as well as the software command sent. The section of the manual describing I2C setup makes mention of setting the jumpers to set up I2C but does NOT mention sending the protocol select.
Re: LK204 Not returning keypresses when polled
Hi,
That's great!
Thank you, I will forward that on to have the command also noted in the I2C set up section of the manual to help avoid the confusion.
Again thank you for posting on our forums.
If you have any other questions or concerns please feel free to ask.
Thank you
Martino
That's great!
Thank you, I will forward that on to have the command also noted in the I2C set up section of the manual to help avoid the confusion.
Again thank you for posting on our forums.
If you have any other questions or concerns please feel free to ask.
Thank you
Martino
Martino DeLeon
Matrix Orbital
Technical Support Representative
Matrix Orbital
Technical Support Representative