4x3 keypad


Results 1 to 10 of 10

Thread: 4x3 keypad

Threaded View

  1. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In fact you MUST use some low value for column, let's say 100-300 ohms. 4.7K is way too high. The PIC don't detect the LOW level signal. In best case the LOW level will be 2.5 volts... too high for a LOW level signal Refer tosection 18.4 of your datasheet for that.

    You can even remove the column resistor and plug it directly... it will work but it's not really recommended.

    Another thing, you must disable analog comparator too on PORTA
    Code:
    ADCON1=$0F    ' Disable AD converters
    CMCON =7      ' Disable analog comparator
    About now?

    PS: you can remove the DEFINE KEYPAD_AUTOREPEAT line. If you don't write it, the program will set it to off for you. This refer to that section of the include file
    Code:
                          @ ifndef KEYPAD_AUTOREPEAT           '       If AutoRepeat is not DEFINE
                                   repeat                                    
                                       Gosub readcol           '           Wait until 
                                       until KeyTemp=keymask   '               Key is released
                                   @ endif
    Last edited by mister_e; - 14th April 2006 at 04:02.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  2. keypad 4x3
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 15th July 2009, 06:34
  3. 4x3 keypad and an LCD.. need help.
    By taisen83 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 6th January 2009, 09:34
  4. Keypad input test
    By Kalind in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th October 2008, 04:00
  5. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16

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