Complete Keypad Example


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile great

    Hey thanks Trent,
    nice piece of work, will certainly use it
    will give thread a +++vote too!
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  2. #2
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Smile No Worries

    No Worries. I actually had a fair bit more to write, 10,000 character limit is cumbersome to work with. I"m currently reading over things, trying to shorten sentences in attempts to fit more in. Would prefer to keep it all as one single post.

  3. #3
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by T.Jackson View Post
    No Worries. I actually had a fair bit more to write, 10,000 character limit is cumbersome to work with. I"m currently reading over things, trying to shorten sentences in attempts to fit more in. Would prefer to keep it all as one single post.
    Its quite simple for me

    Code:
    <font color="#000080">@Config = _XT_OSC &amp; _WDT_OFF &amp; _PWRTE_OFF &amp; _LVP_OFF &amp; _BODEN_OFF 
    </font><font color="#800000"><b>DEFINE </b></font><b>PIC16F877A
    </b><font color="#800000"><b>DEFINE </b></font><b>OSC </b><font color="#0000FF"><b>4
    
    </b></font><font color="#800000"><b>INCLUDE </b></font><font color="#FF0000"><b>&quot;KeyPad.bas&quot; </b></font><font color="#0000FF"><b><i>' ( mister_e 's great keypad include file )
    </i></b></font><font color="#800000"><b>INCLUDE </b></font><font color="#FF0000"><b>&quot;MYLCD.BAS&quot;  
    </b></font><b>CMCON = </b><font color="#0000FF"><b>7
    </b></font><b>ADCON1 = </b><font color="#0000FF"><b>7
          
    </b></font><b>myvar </b><font color="#800000"><b>VAR BYTE
    
    </b></font><b>start:
        </b>@ <b>READKEYPAD _myvar
        </b><font color="#800000"><b>LCDOUT </b></font><font color="#0000FF"><b>$fe</b></font><b>,</b><font color="#0000FF"><b>1
        </b></font><font color="#800000"><b>LCDOUT </b></font><font color="#FF0000"><b>&quot; Key Value = &quot;</b></font><b>,</b><font color="#800000"><b>DEC2 </b></font><b>myvar 
        </b><font color="#800000"><b>GOTO </b></font><b>start
    </b>

  4. #4
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post

    I haven't seen Mister_e's keypad routine. Anyone have the link handy?

  5. #5
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post First paragraph under schematic.

    Notes & Eratta:
    First paragraph under schematic I state: Also, it's worth while noting that the 4MHz crystal isn't critical, you could if you wish use an RC oscillator. You'll save a few bucks. <hr/>*This assumes that you won't be connecting the keypad to the serial port. A crystal is mandatory if you intend to build the project entirely as presented.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by T.Jackson View Post
    I haven't seen Mister_e's keypad routine. Anyone have the link handy?

    But that's OK,

    new entries (ways) are welcome!
    <br>
    DT

  7. #7
    Join Date
    Jun 2007
    Location
    TÜRKİYE
    Posts
    3


    Did you find this post helpful? Yes | No

    Default TeŞekkürler

    güzel çalışma teşekkür ederim



    TÜRKİYE
    Last edited by Archangel; - 2nd July 2015 at 07:25.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by langtolan.com
    güzel çalışma teşekkür ederim can't be found
    Désolé je ne comprends pas

    Sayzer?
    Steve

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

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  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. novice need help for a security keypad
    By davleo in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 17th November 2003, 21: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