connecting a 4X4 keypad


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    fadibasic's Avatar
    fadibasic Guest


    Did you find this post helpful? Yes | No

    Default

    Melanie,
    What about pic16f877? and what do you guys mean by Pull Ups?

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


    Did you find this post helpful? Yes | No

    Default

    Whatever the PIC you're using, you can use almost every I/O on it. The software must be done to work with your own assignment. Not much.

    PIC16F877A have internal pull-up which can be enable by software... but they're on PORTB ONLY. No problem if you don't need any feature available on PORTB. Just hook your keypad on PORTB, use
    Code:
    OPTION_REG.7=0 ' Enable internal pull-up on PORTB
    and away you go.

    Explanation of pull-up.
    http://www.seattlerobotics.org/encod...97/basics.html
    Steve

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

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    By the kind of question you've asked, it looks like you're not too experienced with PICs. Yes, 16F877 is fine, if you checked you'd discover it has a PORTB and if you look at the Datasheet (which you can freely download from the Microchip website - and is a MUST!!!) you will discover that PORTB on that PIC also has pull-up's. All a pull-up is, is a Resistor internal to the PIC, which you can program the PIC to switch-in if you need it. That Resistor connects between the relevant PIC pin and Vdd (+ve supply rail) pulling that pin up to +ve (hence the name). Just saves you having to provide one externally.

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  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