Quick 4x4 keypad matrix question


Results 1 to 16 of 16

Threaded View

  1. #9
    Join Date
    Jun 2011
    Location
    St. Louis, MO
    Posts
    13


    Did you find this post helpful? Yes | No

    Smile Re: Quick 4x4 keypad matrix question

    I just assembled the same circuit using an 16f88 instead of the 16F877. Using the same circuit and code[plus changes for the 16F88], the program works perfect.

    These are the register setting I use on the 16F88.

    Code:
    CMCON =     7                   '// PortA = digital I/O
    OPTION_REG.7  =  0              '// Enable PORTB pull-ups
    ADCON1  =  7 
    ANSEL=%00000000                 '// set all analog pins to digital
    ANSEL = 0                       '// disable ADC
    With the circuit working on the 16F88, I resumed working on the 16F877.

    I rebuilt and re-checked the wiring on the 16F877. I also got rid of all the extra LCDOUT and HSEROUT commands, while using only the SEROUT command, just like the Bruce's original example. It still has the weird problem. I just cant seem to pinpoint what is causing the error. Its weird too, because I dont have to be pressing the button fast....it does it even if when I press the button slowly. Every once in a while it will display the number below instead of the actual number. Arghhhhhh!!!! I love this stuff .

    *Archangel, the "ANSI.INC" was from Darrel Taylors easy ANSI module for PBP.
    It is the main reason I wanted to use HSEROUT. The ansi.inc only works with the hardware USART, and not with SEROUT(2).

    Thanks for the help, Im not giving up on this.

    Sean
    Last edited by triton99; - 20th June 2011 at 04:03.
    "Reality is merely an illusion, albeit a very persistent one." , Albert Einstein

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts