Keypad input test


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    3 buttons instead of the keypad
    One to drive the value up (up arrow?), one to drive the value down (down arrow?), one to save the value and move on (enter?).
    maybe even a 4th button to reset the value back to a default value (ESC?).
    A lot easier than 'punching in numbers'.
    Overdesigning a project sometimes really sucks...

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Are you trying to use Mister_e's Keypad.bas program ? You will need the statement INCLUDE "keypad.bas" early in your code. You will need interrupts, and it will require you to use MPASM as the assembler unless you use Darrel's modified version.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    no im using another keypad routine. can u help me out on this one joe?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kalind View Post
    no im using another keypad routine.
    I thought you were using Steve's for some reason.
    Where did you get the code and how is the keypad connected to the pic.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    connected to the pic via port c.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I thought you were using Steve's for some reason.
    Where did you get the code and how is the keypad connected to the pic.
    I did a search on KEYPAD_ROW_PORT and the only places I could find that PARTICULAR define is connected with Steve's keypad routine...
    hmmmm........

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This looks like part of you code.
    http://www.melabs.com/resources/samples/x1/pbp/keyx.bas
    and here is the schematic for it
    http://www.melabs.com/downloads/labx1sch.pdf
    Make the necessary hardware changes and get the above code working. Do not add anything else yet, just the keypad code. (maybe a blinky to see if thing are running) but nothing else.

    Then we will go from there.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kalind View Post
    no im using another keypad routine. can u help me out on this one joe?
    All I can do to get Steve's routine to work, I will be posting something using it when I kill off a couple of bugs in my code, Finally with some help from Jeremy got my interrupts to work
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  2. help!! With Keypad change
    By clare1 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th December 2006, 21:13
  3. Replies: 8
    Last Post: - 17th September 2006, 17:46
  4. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29
  5. Serial Keypad Input
    By OKST8 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th April 2005, 23:49

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts