Ethernet connections for ENC26J80

348 views
Skip to first unread message

bobc

unread,
Apr 13, 2012, 12:46:53 PM4/13/12
to r2c2-repr...@googlegroups.com
I am not sure if the board I have is the same as everyone else, mine is from geetech.com http://www.geeetech.com/arduino-enc28j60-ethernet-module-p-263.html but I think they should be the same in function since they have the same ENC26J80 controller.

The data sheet for the controller chip is http://ww1.microchip.com/downloads/en/DeviceDoc/39662c.pdf

The pin mapping I think should be:

26J80 - R2C2

VCC - V3.3  [J20.2]
GND- GND [J20.14]

CS - EXP_SSEL1 P0.6 [J18.9]
SCK - EXP_SCK1 P0.7 [J18.10]
SO - EXP_MISO1 P0.8 [J18.11]
SI - EXP_MOSI1 P0.9 [J18.12]

We don't need to connect Reset, INT, WOL or ClkOut, but INT might be useful for interrupts.

It seems simpler to use SPI1 since SPI0 is used by the SD card. We could share an SPI, but we would need code to share access.

I am looking around for software, Microchip may have a driver for their TCP/IP stack, likely to be PIC specific. There is also a library somewhere for Arduino. There are a bunch of errata for the 26J80, we need to code carefully to avoid them.

TC

unread,
Apr 14, 2012, 11:28:32 AM4/14/12
to r2c2-repr...@googlegroups.com
Bob,

I suspect that you'll want to use an SSP (SPI with FIFO) but I could be wrong about that. It's been several years since I looked at the ENC26J80 specifics but I'm pretty sure that you can read/wrtie blocks of buffer memory. I would also guess that you'll want to use DMA for block moves between SRAM and SSP FIFOs.

Also, I'm not sure which specific microcontroller you are using. I know that with the NXP LPC176x only SSP0 overlaps with the pins for SPI0 (GPIO pins can be configured for either). SSP1 is on a different set of pins (doesn't overlap with SPI0 or SPI1 pins).

TC

bobc

unread,
Apr 15, 2012, 7:27:01 PM4/15/12
to r2c2-repr...@googlegroups.com
Yes, you are right it is actually SSP0 and SSP1 not SPI ;)

Nelson Neves

unread,
May 7, 2012, 5:29:34 PM5/7/12
to r2c2-repr...@googlegroups.com
Hi Bob,

I'm about to connect my Microchip ENC28J60 Ethernet , can you please double check this:

It is the ENC28J60, right ? I've seen some reference to ENC26J80 on your messages, but your link points to the ENC28J60!

I've got this last one cause I was looking to the link you have mentioned!


The pin mapping I think should be:

26J80 - R2C2

VCC - V3.3  [J20.2]
GND- GND [J20.14]

CS - EXP_SSEL1 P0.6 [J18.9]
SCK - EXP_SCK1 P0.7 [J18.10]
SO - EXP_MISO1 P0.8 [J18.11]
SI - EXP_MOSI1 P0.9 [J18.12]

What about the connection, is this right? Just double checking!

Thanks.
 

bobc

unread,
May 7, 2012, 7:13:10 PM5/7/12
to r2c2-repr...@googlegroups.com
Heh, sorry it should be ENC28J60... the pinout there is the same as I am using.

I have done a little chart to help me identify the pins. I am assuming that the expansion pins are the same on the v1.2 board as the v1.1 board. Best to double check all connections before power on! Make sure you get 3V3 pin because it is right next to VMM.

If you see anything that looks wrong, please let me know.
R2C2 Expansion Headers.png

Nelson Neves

unread,
May 8, 2012, 5:22:43 AM5/8/12
to r2c2-repr...@googlegroups.com
Heh, sorry it should be ENC28J60... the pinout there is the same as I am using.
 
Nice, I got the right one ;)
 
I have done a little chart to help me identify the pins. I am assuming that the expansion pins are the same on the v1.2 board as the v1.1 board. Best to double check all connections before power on! Make sure you get 3V3 pin because it is right next to VMM.

If you see anything that looks wrong, please let me know.


I've double-check with the github documentation and it seems ok:

Thanks for your chart, it really helps, I was doing it up-side down ... grrr, my bad! Will double check VCC and GND before powering it!

;)

Nelson Neves

unread,
May 8, 2012, 8:25:21 PM5/8/12
to r2c2-repr...@googlegroups.com
OK, managed to assemble my Ethernet 'Shield' today, thanks to Bob chart it was pretty straight forward!


Green Led on, and yellow blinks from time to time!

It looks pretty nice, now let's see if it not let me down ;)

Regads,
Nelson.

Jorge Pinto

unread,
May 9, 2012, 2:00:18 PM5/9/12
to r2c2-repr...@googlegroups.com
Nice pictures :-)
And nice to see the size of the Ethernet module is almost the same as
the space of the expansion header.
Reply all
Reply to author
Forward
0 new messages