Shop OBEX P1 Docs P2 Docs Learn Events
# of pins — Parallax Forums

# of pins

VladimirVladimir Posts: 64
edited 2006-04-18 19:22 in BASIC Stamp
Here's the thing, I have a serial LCD, will intstall a keypad. What can be done to increase number of pins (eg. getting two stamps together somehow?)

Anyone has any ideas?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks,

Vladimir
·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-18 14:58
    Shift registers or I/O expanders could be used to add I/O pins without having to use two Stamp Modules.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • VladimirVladimir Posts: 64
    edited 2006-04-18 15:07
    what is the example of one of the i.o. expanders?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thanks,

    Vladimir
    ·
  • KC8DKTKC8DKT Posts: 76
    edited 2006-04-18 15:27
    MCP23016 or MCP23008 is about the best you can get but they use I2C. You will need a BS2P or higher for the I2C or you will have to bit-bash I2C. N&V has a MPC23016 and LCD setup in one of them! That should give you enough info / code and I think he talks about the bit-bash a little more for the older stamps.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-18 16:48
    Those are good examples of I/O expanders that use I2C.· For expansion using SPI (you use SHIFTIN/SHIFTOUT) then please see the StampWorks Manual, which has examples of I/O expansion using shift registers for both input and output.

    http://www.parallax.com/detail.asp?product_id=27220

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • VladimirVladimir Posts: 64
    edited 2006-04-18 19:11
    umm, you guys said a lot, but i still don't quite understand what I need to do to make more pins

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thanks,

    Vladimir
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-18 19:22
    There is a link above.· Download the PDF file at that link and read the section on expanding I/O and it will explain everything.· You have to read it though to get the information.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.