Shop OBEX P1 Docs P2 Docs Learn Events
Multiple 3-wire peripherals — Parallax Forums

Multiple 3-wire peripherals

Phaedra DGPhaedra DG Posts: 9
edited 2008-01-19 19:34 in General Discussion
Hello everyone,

I was wondering if I could "share" some pins when connecting multiple 3-wire peripherals to the Javelin, so that I do not need 3 pins of the Javelin per peripheral.
My guess would be that I can use one Javelin pin to connect to the SCLK pin of all the peripherals tied together, and the same for the I/O pin.
That would leave only the RST pin of each peripheral, for which I would need a Javelin pin for each peripheral.
Is my assumption right, could this work ?

Thank you,

Phaedra
·

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-19 17:39
    There can be 4 signals involved:
    CS (chipselect), CLK (clock), DIN (data in), DOUT (data out).
    All CLK's can be connected, as can all DIN's. If all DOUT's are hi-Z
    when not selected (CS inactive) then all DOUT's can be tied together.
    You need individual CS lines, could be via a multiplexer.

    regards peter
  • Phaedra DGPhaedra DG Posts: 9
    edited 2008-01-19 19:34
    Hello Peter,

    thank you for this very clear answer.

    Have a nice weekend still !

    Phaedra
Sign In or Register to comment.