Search found 8 matches

by fitzi
Sat Apr 02, 2005 5:20 am
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

Do you have any other suggestions, how to get the "keypad read" over i2c to run.

Best Regards
by fitzi
Fri Mar 25, 2005 2:33 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

the only thing that does not work is reading from the keypad over i2c.
My i2c Interface works fine with other devices, such as the Philips PCF8574AP (i2c I/O Expander). With this chip it is possible to read data from porst and write data to porsts.

greeting
Michael
by fitzi
Sat Mar 19, 2005 6:18 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

Hi,

the debounce time is set to "20". I set this value at Display Tuner.
This debounce time works fine if the keypad is polled over RS232 within the Display Tuner application.

At i2c mode i get the same results than before.

Best Regards
Michael
by fitzi
Sat Mar 12, 2005 3:18 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

the Speep(1500); command is only for delaying and does not disturb i2c communication.
I added also the "auto repeat off" [0xfe] [0x60] command to my code. But i get the same results than before.

greeting
Michael
by fitzi
Wed Mar 02, 2005 12:02 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

#define LK202_I2CADDR 0x50
//init_i2c..
//AutoTransmitKey off..

{//loop

==============================
//My Poll command
char cmd[] = {0xFE, 0x26};
i2c_write(LK202_I2CADDR, cmd, 2);
===========================
..
..
//Read Data
//print Data
}



Best Regards
Michael

PS: It's non differentiated ...
by fitzi
Wed Mar 02, 2005 8:28 am
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

My test programm has follow operational sequence.

snippets of my programm

#define LK202_I2CADDR 0x50

//init
i2c_init();

//set AutoTransmitKey to off
char cmd[2] = {0xFE, 0x4F};
//generate start condition, send data, generate stop condition
i2c_write(LK202_I2CADDR, cmd, 2);

//Data buffer
char ...
by fitzi
Tue Mar 01, 2005 11:30 am
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

the problem is:
I press different Buttons at the keypad and get at determined keys the same data back from module.
see above

////key 2 pressed
//data = 0x21

////key 3 pressed
//data = 0x21 //it is the same as key 2

a push to key 2 or key 3 deliver the same data (I can not differ in my ...
by fitzi
Mon Feb 28, 2005 4:03 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: LK202-25 Keypad read over i2c
Replies: 15
Views: 11748

LK202-25 Keypad read over i2c

Hi,

i have a peck of trouble to get the correct Data over i2c which i read from keypad at LK202-25.

I atteched a 3x4 matrix Keypad to LK202-25. I tested the keypad with the Display Tuner and all works fine. After the first test was ok. I tried to writing and reading to the LK202-25 over i2c ...