# SPI Cable

**URL:** <https://community.sparkfun.com/t/spi-cable/3879>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 12, 2007, 10:58pm UTC](https://community.sparkfun.com/t/spi-cable/3879 "2007-03-12T22:58:10Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 12, 2007, 10:58pm UTC](https://community.sparkfun.com/t/spi-cable/3879/1 "2007-03-12T22:58:10Z")

</div>

Dears,

I have 2 board each contains SPI.

I need to know to to connect the 2 boards using the SPI.

Thnaks

BISO

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [March 12, 2007, 11:15pm UTC](https://community.sparkfun.com/t/spi-cable/3879/2 "2007-03-12T23:15:06Z")

</div>

MOSI (master) to MOSI (slave)

MISO (master) to MISO (slave)

SCLK (master) to SCLK (slave)

SS (master) to SS (slave)

Leon

---

<div class="post-metadata">

**Author:** ![fordp](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fordp](https://community.sparkfun.com/u/fordp)\
**Post date:** [March 13, 2007, 8:08am UTC](https://community.sparkfun.com/t/spi-cable/3879/3 "2007-03-13T08:08:16Z")

</div>

A ground connection may be handy too 😉

---

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 16, 2007, 2:11pm UTC](https://community.sparkfun.com/t/spi-cable/3879/4 "2007-03-16T14:11:45Z")

</div>

where to buy?

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [March 16, 2007, 3:56pm UTC](https://community.sparkfun.com/t/spi-cable/3879/5 "2007-03-16T15:56:33Z")

</div>

Just make one from pieces of wire and connectors.

Leon

---

<div class="post-metadata">

**Author:** ![Polux\_rsv](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Polux\_rsv](https://community.sparkfun.com/u/Polux_rsv)\
**Post date:** [March 19, 2007, 8:27am UTC](https://community.sparkfun.com/t/spi-cable/3879/6 "2007-03-19T08:27:32Z")

</div>

SPI is not reliable on long distances, \>50cm, with normal levels, TTL, HCmos,… even at low speeds.

Angelo

---

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 19, 2007, 11:16pm UTC](https://community.sparkfun.com/t/spi-cable/3879/7 "2007-03-19T23:16:48Z")

</div>

Could you please provide me with a tutorial to make the SPI

Thanks

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [March 20, 2007, 1:57am UTC](https://community.sparkfun.com/t/spi-cable/3879/8 "2007-03-20T01:57:53Z")

</div>

It’s only five wires, why do you need a tutorial?

Leon

---

<div class="post-metadata">

**Author:** ![hvymtlsteve](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@hvymtlsteve](https://community.sparkfun.com/u/hvymtlsteve)\
**Post date:** [March 20, 2007, 3:48am UTC](https://community.sparkfun.com/t/spi-cable/3879/9 "2007-03-20T03:48:45Z")

</div>

> leon\_heller:  
> It’s only five wires, why do you need a tutorial?
> 
> Leon

I get the impression that he may want guidance getting them connected in specific to the two boards he has.

But we don’t know what the boards are or what connectors (if any) there are on the SPI lines…

---

<div class="post-metadata">

**Author:** ![Polux\_rsv](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Polux\_rsv](https://community.sparkfun.com/u/Polux_rsv)\
**Post date:** [March 20, 2007, 8:52am UTC](https://community.sparkfun.com/t/spi-cable/3879/10 "2007-03-20T08:52:52Z")

</div>

> biso:  
> where to buy?

:?: :?:

SPI is not standard for board interconnection. It is mainly used to connect a microcontroller to peripherals on the same board. Due to speed limitations on long distances, \>50cm :? you will not have fast speeds. And even at low speeds, you could have serious issues if the clock signal have very bad edges. This will corrupt data transfer.

Check if your board have SCI (UART), wich is asynchronous. RS-232 is the other name of such interface.

Angelo

---

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 21, 2007, 12:34am UTC](https://community.sparkfun.com/t/spi-cable/3879/11 "2007-03-21T00:34:13Z")

</div>

I want to connect LPC2294 [http://microcontrollershop.com/product\_ … cts\_id=946](http://microcontrollershop.com/product_info.php?products_id=946)

with HUB Board 4I66 PC104-PLUS MAC-HUB

[http://www.mesanet.com/serialcardinfo.html](http://www.mesanet.com/serialcardinfo.html)

I thought that i can connect both with SPI

is that applicable?

BISO

---

<div class="post-metadata">

**Author:** ![hvymtlsteve](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@hvymtlsteve](https://community.sparkfun.com/u/hvymtlsteve)\
**Post date:** [March 21, 2007, 4:35am UTC](https://community.sparkfun.com/t/spi-cable/3879/12 "2007-03-21T04:35:03Z")

</div>

That can probably be done, I don’t know the specifics of the hub board that you’re looking at.

On the LPC board side, the SPI interface is probably accessible at some specific pins… you can just terminate some wires with female header connectors and connect them to whatever pins on the EXT port correspond to the SPI on your ARM controller.

For example, you could get one of these [http://www.sparkfun.com/commerce/produc … cts\_id=115](http://www.sparkfun.com/commerce/product_info.php?products_id=115) (you may be able to find them at a local electronics shop if you don’t want to order them) and break off one header for each wire you need… you could solder wires to the male pin side and stick the female end on whatever EXT pins you need. Wrap the solder joints and bare wire in a little bit of electrical tape so you don’t short anything out.

This may not be the best way to do it, but it’s a way to do it, if you don’t want to break out a whole ribbon cable on your EXT port.

I hope that helps enough to get you started!

---

<div class="post-metadata">

**Author:** ![hvymtlsteve](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@hvymtlsteve](https://community.sparkfun.com/u/hvymtlsteve)\
**Post date:** [March 21, 2007, 4:39am UTC](https://community.sparkfun.com/t/spi-cable/3879/13 "2007-03-21T04:39:24Z")

</div>

Looking a little closer at the details of that MAC hub you’re looking at-- I don’t see anything that suggests that it has an SPI interface. Are you sure it has that?

---

<div class="post-metadata">

**Author:** ![Polux\_rsv](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Polux\_rsv](https://community.sparkfun.com/u/Polux_rsv)\
**Post date:** [March 21, 2007, 8:34am UTC](https://community.sparkfun.com/t/spi-cable/3879/14 "2007-03-21T08:34:30Z")

</div>

The MAC Hub board is a PC-104 “ethernet interface card with integrated Hub”. It is a peripheral board and needs a PC-104 processor board to drive it. These 2 boards are stacked together.

The LPC2294 can’t drive the MAC-HUB board.

It is possible that the MAC-Hub board can run in stand allone mode, but probably would act as a simple Hub.

Could you better describe your application ?

Angelo

---

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 23, 2007, 10:12pm UTC](https://community.sparkfun.com/t/spi-cable/3879/15 "2007-03-23T22:12:22Z")

</div>

> Polux rsv:  
> The MAC Hub board is a PC-104 “ethernet interface card with integrated Hub”. It is a peripheral board and needs a PC-104 processor board to drive it. These 2 boards are stacked together.
> 
> The LPC2294 can’t drive the MAC-HUB board.
> 
> It is possible that the MAC-Hub board can run in stand allone mode, but probably would act as a simple Hub.
> 
> Could you better describe your application ?
> 
> Angelo

Hi Angelo,

I am just trying to make a simple router with LPC2294 and the Hub… is that possible?

Thanks alot

BISO

---

<div class="post-metadata">

**Author:** ![boothowto](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@boothowto](https://community.sparkfun.com/u/boothowto)\
**Post date:** [March 25, 2007, 1:35am UTC](https://community.sparkfun.com/t/spi-cable/3879/16 "2007-03-25T01:35:35Z")

</div>

> I am just trying to make a simple router with LPC2294 and the Hub… is that possible?

I'm a man who provided him a hint to hook many (\>2) Ethernet ports to conventional SoC in another discussion thread.

BISO, it’s not possible for you to connect your LPC with PC104plus “MAC-HUB” which I mentioned. To achieve your router application, you need;

1. “local bus style” EMAC chip with MII interface

2. Micrel switch chip

You have to learn about how to wire LPC with EMAC and the switch chip. It’s not a kind of soldering practice.

---

<div class="post-metadata">

**Author:** ![biso](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biso](https://community.sparkfun.com/u/biso)\
**Post date:** [March 27, 2007, 7:56am UTC](https://community.sparkfun.com/t/spi-cable/3879/17 "2007-03-27T07:56:51Z")

</div>

> boothowto:
> 
> > I am just trying to make a simple router with LPC2294 and the Hub… is that possible?
> 
> I'm a man who provided him a hint to hook many (\>2) Ethernet ports to conventional SoC in another discussion thread.
> 
> BISO, it’s not possible for you to connect your LPC with PC104plus “MAC-HUB” which I mentioned. To achieve your router application, you need;
> 
> 1. “local bus style” EMAC chip with MII interface
> 
> 2. Micrel switch chip
> 
> You have to learn about how to wire LPC with EMAC and the switch chip. It’s not a kind of soldering practice.

Dear boothowto,

You had given me hope that I could finally do my project, now i am despondent 😢

There must be an easy solution. Could you please help me to find it?

Thanks

BISO

---

<div class="post-metadata">

**Author:** ![boothowto](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@boothowto](https://community.sparkfun.com/u/boothowto)\
**Post date:** [March 27, 2007, 12:45pm UTC](https://community.sparkfun.com/t/spi-cable/3879/18 "2007-03-27T12:45:10Z")

</div>

BISO,

My hope part was an idea which makes possible to have \>2 Ethernet ports with conventional Ethernet circuit. Franky I think you need to learn much before completing router design. LPC2294 is just under power CPU to achieve modern 100Mbps L3 routing.

* * *
