4x4 keypad Help


Results 1 to 7 of 7

Thread: 4x4 keypad Help

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Yes it will stuck, you need some pull-up resistors in that. You can enable the PIC internal one
    Code:
    INTCON2.7=0
    Just saw you already did.. just the wrong way

    AND you WILL have erratic results with this routine... add a PAUSEUS 5 in this section
    Code:
    TRISB = (dcd col) ^ $ff ' Set one column pin to output
    PAUSEUS 5
    row = PORTB >> 4 ' Read row
    Last edited by mister_e; - 13th April 2008 at 22:46.
    Steve

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

Similar Threads

  1. connecting a 4X4 keypad
    By fadibasic in forum Schematics
    Replies: 6
    Last Post: - 12th November 2008, 17:52
  2. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16
  3. 4x4 Keypad and LCD sharing port B
    By msnm4 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th May 2008, 08:13
  4. I2C PCF8574 4X4 Keypad routine
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th January 2007, 21:25
  5. Inconsistent output on a 4x4 matrix keypad
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th November 2006, 03:54

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