Shop OBEX P1 Docs P2 Docs Learn Events
Shift Registers and the Prop.. — Parallax Forums

Shift Registers and the Prop..

RingWorksRingWorks Posts: 5
edited 2007-05-02 00:27 in Propeller 1
Greetings! My first post so don't be to tough on me...

I am researching the I/O capabilities of the Prop to work with 4094 IC's (8 bit) in a shift and store bus register solution. Basically, I need to have 96 I/O ports for output and 96 I/O ports for input. I am going to use 4094's in series to achieve the needed amount of ports. I would like to do this with a 16 bit IC if possible and will be putting together some test boards in the next few weeks. Any tips towards helping with this endeavor would be appreciated.

David

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-30 23:22
    Why the 4094? What do you mean by a 16 BIT IC? Do you need a total of 96 inputs and 96 outputs or do you need 96 bidirectional pins?

    Parallax sells and supports the 74HC595 for serial output expansion and the 74HC165 for serial input expansion and has lots of examples of their use with the Stamp in their various tutorials. They, like the 4094, are 8-bit devices and are usable in series.

    Philips and Microchip make a 16-bit I/O expander with bidirectional I/O pins (MCP23017 for I2C and MCP23S17 for SPI) that works very nicely with the Propeller. The MCP23017 can be daisy-chained (up to 8 devices) off the same pins as the boot EEPROM.
  • JTCJTC Posts: 60
    edited 2007-05-01 03:04
    Allegromicro has shift regesters for in and out up to 32 pin.

    http://www.allegromicro.com/en/Products/Categories/ICs/vfdisplaydriver.asp

    I have· not used them but look pretty simple. THe shiftin and out should work with them.

    Jim
  • RingWorksRingWorks Posts: 5
    edited 2007-05-01 03:47
    Mike - Thanks for the recommendations.

    To answer your questions :

    Why the 4094? - Because it can be used in series to accomplish the I/O requirements that I am looking to meet. The cost of the chip is .38 vs $1.77 for the 74HC595.· I am very new to microprocessor developement, honestly I have not looked at the 74HC595 in depth enough to fully appreciate the features that it offers that would be an advantage over the 4094.· There might be a speed advantage in that the 74HC595 cycles data a little diffrently then the the 4094.· Ultimately, if the end result is that I/O communications can occur within milliseconds using a 4094 at·1/4 the expense of the 74HC595, then I will go with the 4094.

    What do you mean by a 16 BIT IC?·- 16 bit path intergrated circuit

    I need a total of 96 inputs and 96 outputs (and more in some cases) not bidirectional.

    The Philips and Microchip chips sounds very promissing however·I have not found them in quantities less then a 1000.· I will see what I can find for the MCP23017, I just need an intergration example to work from..

    Jim - Coolness, I will take a look at it.

    Post Edited (RingWorks) : 5/1/2007 3:58:22 AM GMT
  • LeonLeon Posts: 7,620
    edited 2007-05-01 03:58
    I'd use a small FPGA for that sort of thing.

    Leon


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Bill HenningBill Henning Posts: 6,445
    edited 2007-05-01 05:02
    You can get ten 74HC595's for around $2.76 from Jameco.com [noparse]:)[/noparse]

    https://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?storeId=10001&langId=-1&catalogId=10001&productId=875181

    I like using 595's because they are very easy to use, and quite flexible.
    RingWorks said...
    Mike - Thanks for the recommendations.

    To answer your questions :

    Why the 4094? - Because it can be used in series to accomplish the I/O requirements that I am looking to meet. The cost of the chip is .38 vs $1.77 for the 74HC595. I am very new to microprocessor developement, honestly I have not looked at the 74HC595 in depth enough to fully appreciate the features that it offers that would be an advantage over the 4094. There might be a speed advantage in that the 74HC595 cycles data a little diffrently then the the 4094. Ultimately, if the end result is that I/O communications can occur within milliseconds using a 4094 at 1/4 the expense of the 74HC595, then I will go with the 4094.

    What do you mean by a 16 BIT IC? - 16 bit path intergrated circuit

    I need a total of 96 inputs and 96 outputs (and more in some cases) not bidirectional.

    The Philips and Microchip chips sounds very promissing however I have not found them in quantities less then a 1000. I will see what I can find for the MCP23017, I just need an intergration example to work from..

    Jim - Coolness, I will take a look at it.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2007-05-01 10:09
    I think Mike knows what a 16bit IC is but which IC do you want to be 16bit and why?

    Graham
  • RingWorksRingWorks Posts: 5
    edited 2007-05-01 16:06

    Bill - Good call! Thanks, I will take a close look at the 74HC595's and see how they stack up against the Allegromicro A6818 for what I am wanting to do.

    Graham - I am sure Mike knows what a 16bit IC is too, me being the new guy on the block, I just answered the question strait up. Doh!
    I would rather use a 16bit ( or a 32bit chip for that matter ), because the board design would require less chips to be used in total. The cost involved is a factor, but if the cost is negligible, then a larger chip, 16 or 32 would be better the 8. I need to control 43v and 5v devices with these chips, either through the use of a Darlington transistor or directly if the chip can handle it. Allegromicro has a 32 bit chip that looks very promising. Their A6818 can handle output at 60v, with 3 chips I could get the output I need for 96 devices. The Allegromicro A6818:

    http://www.allegromicro.com/en/products/part_numbers/6818/ runs about 5 bucks, because I would not have to use transistors to control higher voltage devices that is a huge advantage. I might be missing something here though, I certainly could use any insight the community is willing to offer.

  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-05-01 16:10
    Something you haven't answered yet, how fast do you need to transfer the data to/from these devices?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 5/1/2007 4:17:05 PM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-01 16:19
    The Allegro chip looks very straightforward. The high current drivers are source-only (the sink side is low current).

    Since the chip can handle clocks up to 30MHz or so, it should be fairly fast to load, even for 100 bits (over 100K/sec refresh).
    If you don't need refresh rates over 200Hz, you could do the whole thing in Spin, otherwise you'll need an assembly routine.
  • RingWorksRingWorks Posts: 5
    edited 2007-05-01 17:30
    Transfer rates can be below 200Hz. Faster is always better, but·a data transfer of·lets·say 150Hz to 200Hz·would be more then·fine. ·
  • SkogsgurraSkogsgurra Posts: 231
    edited 2007-05-01 18:25
    Just curious,

    Is this for a musical application?

    Post Edited (Skogsgurra) : 5/2/2007 5:00:01 AM GMT
  • RingWorksRingWorks Posts: 5
    edited 2007-05-01 19:16
    No, it certainly could be though, interesting thought.· I need to control solenoids, valves and lamps.·
  • PropabilityPropability Posts: 142
    edited 2007-05-02 00:27
    Since you are switching some good loads I would look into the TPIC6B595 shift register· which IIRC can handle about 150 ma per line and they are about 1.05$ each in quantities of 25 from digi-key.

    Pete
Sign In or Register to comment.