Greeting...I am trying to Connect two PIC microcontrollers


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624

    Default Re: Greeting...I am trying to Connect two PIC microcontrollers

    Hi,
    What do you mean by all pins are being used?
    A 4x3 matrix would require 7 pins and I see 8 free pins (RC2-7, RA4-5, RB5) on the '4550 in your schematic...

    If you put a slave PIC on the keypad you could program it to SEROUT/HSEROUT a byte each time a key is pressed and connect it to the USART of the 4550 (RC7 is the RX input for the USART and is currently not used in your schematic.)

    /Henrik.

  2. #2
    Join Date
    Nov 2012
    Posts
    4

    Default Re: Greeting...I am trying to Connect two PIC microcontrollers

    Hi,
    Thank you for your response and I am glad I found your answer. You are right there is more pins that the 3x4 can use. If you will, please guide me with the wiring connection. How would you connect the 3x4 keypad to the PIC18f4550? What pins from the keypad to what pins from the PIC?

    Thank you for your time.

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624

    Default Re: Greeting...I am trying to Connect two PIC microcontrollers

    Hi,
    For a basic 4x3 matrix you need 4 output and 3 inputs OR 3 outputs and 4 inputs - up to you really. The outputs drives the columns (or rows) and the inputs reads the rows (or columns).
    Pull up the inputs, drive one of the outputs low, read the inputs. If any of the inputs reads low you have a button pressed. Drive the next input low, read the inputs and so on.

    If you search the forum I'm sure you'll find examples.

    /Henrik.

Similar Threads

  1. Single PIC to Blink 5 LEDs Independently?
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 68
    Last Post: - 18th July 2015, 17:56
  2. Which pic? up to date basic chip for 16f877
    By tasmod in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th November 2012, 12:26
  3. How not to prototype your next PIC project
    By SteveB in forum General
    Replies: 3
    Last Post: - 12th November 2012, 10:35
  4. Programming for Microcontrollers in C
    By erice1984 in forum Off Topic
    Replies: 1
    Last Post: - 1st May 2009, 18:12
  5. Play Music (MP3, WAV,...) for greeting card
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th January 2007, 16:14

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