+ Reply to Thread
Page 2 of 2
First 1 2
Results 16 to 28 of 28

Thread: Development board help

  1. #16
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,807

    Default

    To interface an LCD and a 4x3 keypad to a pic requires a minimum of 9 I/O pins without any additional glue logic. Surely, the 24 I/O pins left are enough for your needs.

    Mike.


  2. #17
    fromansr Newbie
    Join Date
    Apr 2009
    Location
    Australia
    Posts
    15

    Default

    The 4x4 keypad (8pins) and LCD (7pins) takes up 15 in total, which leaves 16 I/O pins. At the moment, this is just enough to interface my other components (ds1307 etc..), but it doesn't leave much room for expansion. So, I'm just looking for a general description of interfacing 2 micros just in case i need it in the future.

    thanks

  3. #18
    3v0
    3v0 is offline
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,464
    Blog Entries
    11

    Default

    Back in the days when it took a handful of chips to support the processor buying a development board saved a lot of time. Not so much anymore.

    For a person just starting a complex development board will often be both overkill and confusing.

    People who know what they are doing will often find development boards limiting.

    I have no idea what your ability is.
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's Tutorials
    Junebug USB PIC programmer kit., USB Bit Whacker,
    The 15 Minute Printed Circuit Board! (+drill time)

  4. #19
    Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent
    Join Date
    Jul 2008
    Location
    Out there
    Posts
    1,761

    Default

    Well... Lcd requires 6 pins, there is no need to read from the LCD so you can tie the r/w pin and save a PIC pin. Also you can use the same 4 PIC pins for the LCD data drivers and the keypad column drivers. So you only need 10 pins total. I believe that's what Pommie was saying.

    Interfacing a second micro is almost always the worst way to do it. You can add a very cheap serial->parallel latch chip for a few cents, and these can be chained to give unlimited amount of output pins from just 2 PIC output pins. Likewise some of these latch chips can be used parallel->serial to give 8 more input pins for the cost of 2 PIC pins.

  5. #20
    fromansr Newbie
    Join Date
    Apr 2009
    Location
    Australia
    Posts
    15

    Default

    Thanks Mr RB!!

    This will make my project much easier!!

  6. #21
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,826
    Blog Entries
    1

    Default

    While all he needs is extra I/O in this case there's nothing bad about using two micro's. SPI isn't that difficult.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

  7. #22
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,793

    Default

    Quote Originally Posted by Sceadwian View Post
    While all he needs is extra I/O in this case there's nothing bad about using two micro's. SPI isn't that difficult.
    And serial is even easier, and can work on just one pin, bi-directionally if required.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  8. #23
    3v0
    3v0 is offline
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,464
    Blog Entries
    11

    Default

    I have tried to be delicate but have gotten no reply.

    My take is that we have a user who has yet to blink a led talking about multi-uC's. My feeling is that until you have done some of the simple things you should not be looking this far down the road.
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's Tutorials
    Junebug USB PIC programmer kit., USB Bit Whacker,
    The 15 Minute Printed Circuit Board! (+drill time)

  9. #24
    Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent Mr RB Excellent
    Join Date
    Jul 2008
    Location
    Out there
    Posts
    1,761

    Default

    I love those 74HC595 chips. I bought a few sticks of them surplus for about 5c/chip, the only down side is that are SO16 package but still easy enough to solder. I've got some little SO16-DIP16 headers too for through hole use but usually just use the SO16 and solder to the PCB.

    They only need 2 pins; clk and data to drive 8 output pins and no timing issues. And you can chain them as I said above. I really can't see why you'd mess with two PICs with 2 lots of software, 2 times you have to program them, 2 xtals, possible slow asynch serial clock rates etc etc??

  10. #25
    Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent Sceadwian Excellent
    Join Date
    Oct 2006
    Location
    Rochester, NY U.S.
    Posts
    9,826
    Blog Entries
    1

    Default

    Nigel, SPI is much faster than serial, there's no possibility of baud rate missmatches and it's bidrectional as well.
    "Because I be what I be. I would tell you what you want to know if I
    could, mum, but I be a cat, and no cat anywhere ever gave anyone a
    straight answer, har har."

  11. #26
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,793

    Default

    Quote Originally Posted by Sceadwian View Post
    Nigel, SPI is much faster than serial, there's no possibility of baud rate missmatches and it's bidrectional as well.
    What do you want massive speed for?, feeding an LCD and reading a keypad are incredibly slow processes - there's no problem with baud rate mismatches (unless you deliberately write them, and why would you?). It's also easy to do bi-directional via serial using just a single pin, saving even more valuble I/O.

    People seem to jump on I2C, SPI, and even the parallel port in one case as ways to transfer data between two PIC's, serial is much simpler than all of them, and for most cases exceeds any requirements for the data transfer.

    All communication methods have their uses, but what's 'best' for a particular application isn't always obvious.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  12. #27
    fromansr Newbie
    Join Date
    Apr 2009
    Location
    Australia
    Posts
    15

    Default

    I have tried to be delicate but have gotten no reply.

    My take is that we have a user who has yet to blink a led talking about multi-uC's. My feeling is that until you have done some of the simple things you should not be looking this far down the road.
    Your right 3v0, but I still need to plan my project before diving into the implementation.

    I've also hit another problem...Is it possible to operate a SPI IC and 12C IC simultaneously using 1 micro?? I'm a bit confused by the micro (16f887) data sheet...

  13. #28
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    Quote Originally Posted by fromansr View Post
    I was just looking at it!!!

    The unicorn seems like an option...but I already have an LCD
    Bill, if your out there, a recommendation would be helpful.....
    Guess I'm late in seeing this post.

    The Unicorn supports two types of LCD. A 2x16 LCD and 128x64 GLCD it doesn't include them. There is support for an external 4x4 keypad on the bottom.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

+ Reply to Thread
Page 2 of 2
First 1 2

Similar Threads

  1. Pic Development Board - uk
    By hackableFM in forum Micro Controllers
    Replies: 2
    Latest: 1st February 2009, 10:42 AM
  2. PIC development board
    By kta22 in forum Micro Controllers
    Replies: 13
    Latest: 8th October 2008, 07:09 PM
  3. help with PIC-01 Development Board
    By axmanjr in forum Micro Controllers
    Replies: 4
    Latest: 31st August 2008, 08:22 AM
  4. Pic Development Board
    By bryan1 in forum Micro Controllers
    Replies: 27
    Latest: 12th November 2005, 08:59 AM
  5. Z80 development board
    By canadianpoet2012 in forum Micro Controllers
    Replies: 7
    Latest: 10th July 2004, 05:43 AM

Tags for this Thread