EDE 1144 serial keypad encoder: anybody got it to work?
Archiver
Posts: 46,084
Hi, I bought a serial 16 button keypaf encoder chip, the EDE 1144
(ref www.elabinc.com) from Jameco for $7. It looks great, good
datasheet, and should save 7 IO lines bringing the need down to just
1 line. But I can't get it to work. My alternative is to buy a
Memkey for $28 rom solutions-cubed, which has software samples.
Anybody got the ede 1144 to work? I can't eben get a keypress signal
and I have checked for all teh obvious errors.
Hope somebody can help.
Regards
Rupert
(ref www.elabinc.com) from Jameco for $7. It looks great, good
datasheet, and should save 7 IO lines bringing the need down to just
1 line. But I can't get it to work. My alternative is to buy a
Memkey for $28 rom solutions-cubed, which has software samples.
Anybody got the ede 1144 to work? I can't eben get a keypress signal
and I have checked for all teh obvious errors.
Hope somebody can help.
Regards
Rupert
Comments
>Hi, I bought a serial 16 button keypaf encoder chip, the EDE 1144
>(ref www.elabinc.com) from Jameco for $7. It looks great, good
>datasheet, and should save 7 IO lines bringing the need down to just
>1 line. But I can't get it to work. My alternative is to buy a
>Memkey for $28 rom solutions-cubed, which has software samples.
>Anybody got the ede 1144 to work? I can't eben get a keypress signal
>and I have checked for all teh obvious errors.
>
>Hope somebody can help.
>Regards
>Rupert
Hi Rupert -
Two things come to mind. First, have you set the baud rate on the EDE1144
to the proper level (0 or low = 2400, 1 or high = 9600) which matches the
SERIN you're using on the Stamp ? Second, are you checking the Data Valid
signal (Pin 17 on
the EDE1144) before attempting your SERIN ?
HTH
Regards,
Bruce Bates
keyVAL VAR Byte 'for keypad value
INPUT 1 'make P1 an input
main:
IF IN1 = 0 THEN keypress 'check for key press.
GOTO main
keypress:
SERIN 0,84,[noparse][[/noparse]keyVal]
.
.
.
for keyVal 48 to 57 :
keyVal=keyVal - 48 '# 0 to 9
for keyVal 65 to 70:
keyVal=keyVal - 55 '#10 to 15
Regards
Mohamed Refky
>From: "strawberrypocket538" <rupert@r...>
>Reply-To: basicstamps@yahoogroups.com
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] EDE 1144 serial keypad encoder: anybody got it to
>work?
>Date: Mon, 10 Nov 2003 10:03:36 -0000
>
>Hi, I bought a serial 16 button keypaf encoder chip, the EDE 1144
>(ref www.elabinc.com) from Jameco for $7. It looks great, good
>datasheet, and should save 7 IO lines bringing the need down to just
>1 line. But I can't get it to work. My alternative is to buy a
>Memkey for $28 rom solutions-cubed, which has software samples.
>Anybody got the ede 1144 to work? I can't eben get a keypress signal
>and I have checked for all teh obvious errors.
>
>Hope somebody can help.
>Regards
>Rupert
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
> Hi, I bought a serial 16 button keypaf encoder chip,
> the EDE 1144
> 1 line. But I can't get it to work. My alternative
> is to buy a
> Anybody got the ede 1144 to work? I can't eben get a
> keypress signal
> and I have checked for all teh obvious errors.
Rupert,
I have used the EDE1144 many times...I find it a
very useful tool for connecting a keypad to the BS2.
The only thing I had to do with mine was create a
lookup table because the EDE1144 assumes you are using
a keypad with a very specific arrangement of keys. It
only took I think one or two lines of code to do it
though.
If you would like, tomorrow while I am at the shop
I will post my code for scanning it using the keypad I
purchased from B.G. Micro, which is a 16-key with 0-9
and A-F, if memory serves...I think I followed the
schematic exactly though that came with the chip as
far as connection goes.
=====
Chris Savage
Knight Designs
324 West Main Street
Montour Falls, NY 14865
(607) 535-6777
http://www.knightdesigns.com
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
l'm interested..
thanks
Chris Savage <knight_designs@y...> wrote:
--- strawberrypocket538 wrote:
> Hi, I bought a serial 16 button keypaf encoder chip,
> the EDE 1144
> 1 line. But I can't get it to work. My alternative
> is to buy a
> Anybody got the ede 1144 to work? I can't eben get a
> keypress signal
> and I have checked for all teh obvious errors.
Rupert,
I have used the EDE1144 many times...I find it a
very useful tool for connecting a keypad to the BS2.
The only thing I had to do with mine was create a
lookup table because the EDE1144 assumes you are using
a keypad with a very specific arrangement of keys. It
only took I think one or two lines of code to do it
though.
If you would like, tomorrow while I am at the shop
I will post my code for scanning it using the keypad I
purchased from B.G. Micro, which is a 16-key with 0-9
and A-F, if memory serves...I think I followed the
schematic exactly though that came with the chip as
far as connection goes.
=====
Chris Savage
Knight Designs
324 West Main Street
Montour Falls, NY 14865
(607) 535-6777
http://www.knightdesigns.com
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
[noparse][[/noparse]Non-text portions of this message have been removed]
> pls send the source code.
> l'm interested..
> thanks
Okay Rupert, here's the subroutine I used to scan the
keypad.
Initialization Code (This will vary on your setup):
Start:
dirs = $0001
x var byte
y var byte
x = $30
Calling Routine:
Test:
gosub KeyScan
serout 0,16468,[noparse][[/noparse]STR y]
goto Test
Main Subroutine:
KeyScan:
if IN14 = 1 then KeyScan
serin 15,84,[noparse][[/noparse]x]
x = x - 48
if x < 10 then KeyScan2
x = x - 7
KeyScan2:
lookup
x,[noparse][[/noparse]49,50,51,65,52,53,54,66,55,56,57,67,42,48,35,68],y
return
In this case the keypad was a 16-key unit from B.G.
Micro using the following layout:
1 2 3 A
4 5 6 B
7 8 9 C
* 0 # D
I noticed that the way the EDE1144 was scanning was
not like the layout of my keypad, so I wrote the
subroutine above to convert the numbers to the values
for my keypad. As usual Yahoo butchered my code a
little...In the lookup line above, the string of
numbers in brackets should be on the same line like
this:
lookup x,[noparse][[/noparse]49,50,51,65.......etc.
In the code above, I had a serial LCD display
connected to pin 0 of the BS2. Pin 14 of the BS2 was
connected to the EDE1144's pin 17 (Data Valid Output).
Pin 15 of the BS2 was connected to the EDE1144's pin
1 (Serial Output). Baud rate was 9600. If you have
any other questions, let me know, and I will see what
I can do. Test rig I did this with is listed on:
www.lightlink.com/dream/chris/stamps.htm
=====
Chris Savage
Knight Designs
324 West Main Street
Montour Falls, NY 14865
(607) 535-6777
http://www.knightdesigns.com
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
<knight_designs@y...> wrote:
> Okay Rupert, here's the subroutine I used to scan the
> keypad.
Just wanted to add, use the code that's between the
only.
Chris
> Regards
> Rupert
Rupert,
Were you able to get your EDE1144 working with the code I
provided? If you have any questions on that code, feel free to ask.
Chris Savage