Calculator


Closed Thread
Results 1 to 6 of 6

Thread: Calculator

  1. #1
    neiron21's Avatar
    neiron21 Guest

    Default Calculator

    I would like someone to show me how to make a calculator with pic 16f628, a 4X4 keypad and a 16X1 LCD display. I am not multiplexing anything.

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


    Did you find this post helpful? Yes | No

    Default

    I am not multiplexing anything.
    how can you do that without any multiplexing

    4X4 keypad = 16 pushbutton = 16 i/o
    LCD = 6 i/o
    --------------
    22 i/o on a 18 pins PIC ?!?

    you must calculate:
    4X4 keypad = 8 i/o
    lcd = 6 i/o
    -------------
    14 i/o... will work with a PIC16F628 that gives a max of 15 i/o

    or maybe you're using a 4X4 matrix keyboard decoder like an 74C922... that's one of those i use instead of multiplexing stuff, bitshift and bla bla bla.

    in this case you'll need
    5 i/o for 74C922
    6 for LCD
    total of 11 wich is great too
    Steve

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

  3. #3
    neiron21's Avatar
    neiron21 Guest


    Did you find this post helpful? Yes | No

    Default

    PORTA can be used in whole as the input and PORTB as the output. My teacher told me that there is no problem at all. The only thing I have to do is to use the internal clock. It is an asichronous circuit 8 i/o keypad. For exemple, if I push #1 Col1 and Row1 will send a singal.
    Last edited by neiron21; - 31st January 2005 at 19:55.

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


    Did you find this post helpful? Yes | No

    Default

    yes... that's what we call a multiplexed keyboard.

    perhaps those can be usefull:

    http://www.melabs.com/resources/samples/x1/pbp/keyx.bas

    http://www.rentron.com/PicBasic/crosspoint.htm
    Steve

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

  5. #5
    neiron21's Avatar
    neiron21 Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Not much. But thanks anyway!!!!
    If you find anythink anything else post me or send me an e-mail

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


    Did you find this post helpful? Yes | No

    Default

    What else you need to know??? 90% of what you need is in the link i post here. You have
    • 1. the routine for 4x4 keypad
      2. all you need to convert from PORT reading to be display on LCD
      3. LCDOUT example.

    Begin to display your keypad on the LCD, once it's done... you'll only need to play with variable. That's it

    CODE EXAMPLE should be a place for CODE EXAMPLE not for CODE REQUEST IMHO.
    Steve

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

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 17:45
  2. help with calculator
    By minssss in forum General
    Replies: 3
    Last Post: - 10th November 2009, 01:12
  3. Tmro Tmr1 Calculator
    By kevin in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th April 2006, 18:39
  4. help with my calculator project
    By loayaouad in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th May 2005, 08:42
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 17:48

Members who have read this thread : 1

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