SPI Cable

Dears,

I have 2 board each contains SPI.

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

Thnaks

BISO

MOSI (master) to MOSI (slave)

MISO (master) to MISO (slave)

SCLK (master) to SCLK (slave)

SS (master) to SS (slave)

Leon

A ground connection may be handy too :wink:

where to buy?

Just make one from pieces of wire and connectors.

Leon

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

Angelo

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

Thanks

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

Leon

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…

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

I want to connect LPC2294 http://microcontrollershop.com/product_ … cts_id=946

with HUB Board 4I66 PC104-PLUS MAC-HUB

http://www.mesanet.com/serialcardinfo.html

I thought that i can connect both with SPI

is that applicable?

BISO

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 (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!

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?

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

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

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.

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 :cry:

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

Thanks

BISO

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.