Thread: 4x4 keypad problems

  1. #1
    Registered User
    Join Date
    Jan 2014
    Posts
    1

    4x4 keypad problems

    Hi, I have a keypad 74C922 encoder and a pic18f4520.
    how do i integrate it into my c program??
    it must be able to recognize numbers in sequence eg.1-2-3-4

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by data sheet
    Each of the PORTB pins has a weak internal pull-up. A
    single control bit can turn on all the pull-ups. This is
    performed by clearing bit, RBPU (INTCON2<7>). The
    weak pull-up is automatically turned off when the port
    pin is configured as an output. The pull-ups are
    disabled on a Power-on Reset.
    Quote Originally Posted by data sheet
    Four of the PORTB pins (RB<7:4>) have an interrupton-
    change feature. Only pins configured as inputs can
    cause this interrupt to occur (i.e., any RB<7:4> pin
    configured as an output is excluded from the interrupton-
    change comparison).
    Quote Originally Posted by data sheet
    The interrupt-on-change feature is recommended for
    wake-up on key depression operation and operations
    where PORTB is only used for the interrupt-on-change
    feature
    . Polling of PORTB is not recommended while
    using the interrupt-on-change feature.
    Link to a similar discussion on the Microchip forum: How to interface 4x4 keypad with PIC microcontroller

    Google search for "pic18f4520 keypad" brings up a host of information on the subject.

    If you need more information, please ask specific questions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. converting two keypad inputs into one decimal number
    By volkvanmyn25 in forum C Programming
    Replies: 1
    Last Post: 09-16-2010, 09:09 AM
  2. LCD Menu integration with 4x4 keypad (c programming)
    By unexpert in forum C Programming
    Replies: 5
    Last Post: 03-01-2010, 10:39 AM
  3. simulating alt+2 (keypad) combination
    By kangekraam in forum C++ Programming
    Replies: 2
    Last Post: 11-21-2009, 03:42 AM
  4. fread problems or memory problems
    By Lechuza in forum C Programming
    Replies: 1
    Last Post: 03-22-2009, 12:45 PM
  5. question related to keypad
    By lovemagix in forum C++ Programming
    Replies: 22
    Last Post: 01-05-2006, 02:25 AM