[Ethernet] SPI connection

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

Post Reply
MartijnV
Posts: 1
Joined: Sun Apr 13, 2008 10:18 pm
Location: Den Haag, Holland

[Ethernet] SPI connection

Post by MartijnV » Mon May 05, 2008 7:52 pm

hy

I am trying to get a SPI connection between a PIC and a ethernet controller. but its not working. :(
I am using a PIC 18f4620 @5v 20Mhz, and a ENC28j60 @3.3v.
The levelconverting is done by a SN74LS08.
i've used this http://electronicfr.com/index.php/Micro ... -ethernet/ website and this http://electronicfr.com/enc2.png schematic.
on my old 20mhz scoop i can see some scribbles,
i have treid a lot of things, but nothing works.

i am using the ethenet modules off swordfish, and even i have cut-and-pasted all code in 1 short piece of code.
just the init of the PIC and SPI, and sending of 1 byte by spi.
i've double checked all, but its correct.

i dont know anymore
can somebody help me please?

thanks!
Martijn
KIS
keep it simple

User avatar
blueroomelectronics
Posts: 46
Joined: Mon Apr 23, 2007 3:48 pm
Location: Toronto
Contact:

Post by blueroomelectronics » Thu May 08, 2008 11:54 pm

Where's the transformer? You are using an Ethernet jack with magnetics right.

User avatar
JWinters
Posts: 106
Joined: Mon Feb 04, 2008 4:56 pm
Location: North Carolina, USA
Contact:

Post by JWinters » Tue May 20, 2008 6:17 am

I have been able to get the ENC28J60 to work quite well with the swordfish module. My setup used a 18F4610, 5v @ 25 MHz. I found that I didn't even need a voltage level translator IC on the SPI lines. It worked the same with or without it.

Post Reply