a little help with keypad on 18f4520 please


Results 1 to 18 of 18

Threaded View

  1. #8
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Adding OPTION_REG.7 = 0 ' Enable PORTB pull-ups
    Shows a compile error in Microstudio
    Does not compile
    I am using an 18F4520
    Dennis not all pic has the internal pullup, could be that your mcu has not pullup.
    (Check the datasheet).



    Since you will need the pullups (otherwise the keypad will not work), so add four external 10K resistors.

    Al.

    Edit:

    Gusse has read the datasheet for you: Replace OPTION_REG.7 = 0 with INTCON2.7 = 0
    Last edited by aratti; - 20th November 2009 at 19:16.
    All progress began with an idea

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  2. Universal Keypad System
    By aratti in forum Code Examples
    Replies: 3
    Last Post: - 18th January 2009, 13:06
  3. Keypad input test
    By Kalind in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th October 2008, 04:00
  4. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16
  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