Shop OBEX P1 Docs P2 Docs Learn Events
EDE -1144 Keypad Encoder IC — Parallax Forums

EDE -1144 Keypad Encoder IC

DipenDipen Posts: 3
edited 2007-10-19 15:41 in Learn with BlocklyProp
Need BS2 code for EDE-1144 Keypad Encoder IC

Comments

  • pwillardpwillard Posts: 321
    edited 2007-10-17 17:36
    You would just need to read the KEPAD ENCODERS RS232 output using SERIN since the encoder sends keypresses as Serial ASCII. You would need to create a translation table in BS2 code that matches your keypad so you can make sens of it.


    Ascii <-> Keypad #

    48 = "1"
    52 = "2"
    56 = "3"
    49 = "4"
    53 = "5"
    57 = "6"
    50 = "7"
    54 = "8"
    65 = "9"
    55 = "0"


    To get started with testing the output of the encoder, you could use SERIN @ 9600 Baud (make sure encoder is at 9600):

    serData var byte
    myloop:
    Serin 1,16468,[noparse][[/noparse]serData]
    debug serData
    pause 500
    goto myloop


    Then map the ASCII received in serData to the keypress you want to catch.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-19 15:41
    I have posted code for the EDE1144 several times in the past. Use our Google Search to find it by searching for 'Chris Savage EDE1144'. Take care.

    (A couple of links)

    http://forums.parallax.com/showthread.php?p=594468

    http://forums.parallax.com/showthread.php?p=641089

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support


    Post Edited (Chris Savage (Parallax)) : 10/19/2007 3:46:07 PM GMT
Sign In or Register to comment.