Ethernet Shield

Post Reply
rmd6502
Posts: 6
Joined: Mon May 23, 2011 12:40 am

Ethernet Shield

Post by rmd6502 » Mon May 23, 2011 12:45 am

I'm working on getting the WebServer example from the Ethernet library working - so far needed to comment out avr/pgmspace.h and include stdint.h in w5100.h. I've just hit the !SS macro in w5100.h, which references PORTB directly. Next step is to cross-reference with the schematic and figure out how the pic32 references the corresponding bits, though I imagine I could change it to a digitalWrite instead.

Has anyone else taken a shot at this? I'll create a fork at my github account, "rmd6502" - anyone who wants to be added as a collaborator shoot me a message!

Thanks, Rob D

User avatar
Charles
Posts: 12
Joined: Mon May 23, 2011 10:38 am
Location: Aiken, SC
Contact:

Re: Ethernet Shield

Post by Charles » Mon May 23, 2011 11:03 am

Very interested in this. I can not offer any help, but can not wait to see a working example!
Owner of TheMakersWorkbench.com
All of my chipKIT articles and tutorials can be found here.

philtor
Posts: 1
Joined: Mon May 23, 2011 9:42 pm

Re: Ethernet Shield

Post by philtor » Mon May 23, 2011 9:47 pm

I'm curious, the online specs for the chipKIT Max32 (here: http://www.digilentinc.com/Products/Det ... PKIT-MAX32 )
says that it's got the 10/100 Ethernet MAC on board, but then it says that you need an add-on shield to access it. Is this add-on shield available yet? (since most arduino ethernet shields you'd buy now would also include the MAC, I think). where does one acquire this special add-on shield?

...and why didn't they just put the ethernet connector right on the board since it has a MAC?

cobbj
Site Admin
Posts: 63
Joined: Thu May 19, 2011 6:14 am

Re: Ethernet Shield

Post by cobbj » Mon May 23, 2011 10:49 pm

The PIC32 chip itself has a 10/100 MAC w/ MII/RMII interfaces, but it needs a PHY in order to work. Digilent is working on a shield that will use this and other advanced comms - there is a little discussion in the post on Hack-a-Day here: http://hackaday.com/2011/05/12/chipkit- ... -the-hood/ - June / July timeframe is what Digilent is saying for release.

The Ethernet connector itself is not on the board for a mix of reasons - footpring compatibility / IC's on the board / some other items... but the shield will be coming, and it will be awesome :)

User avatar
Charles
Posts: 12
Joined: Mon May 23, 2011 10:38 am
Location: Aiken, SC
Contact:

Re: Ethernet Shield

Post by Charles » Tue May 24, 2011 1:26 am

The chipKIT Ethernet shield will be released sometime in June. The details I have are: Ethernet PHY and transformer, USB OTG, 32 KHz oscillator, 256 Kbit I2C EEPROM, and 2 CAN interfaces

There will also be a Basic I/O shield released around the same time. Details on it are: 4 switches, 4 buttons, I2Câ„¢ temperature sensor, 256 Kbit I2C EEPROM, 128x32 OLED display, 4 open drain channels, 1 potentiometer, and 8 LEDs
Owner of TheMakersWorkbench.com
All of my chipKIT articles and tutorials can be found here.

rmd6502
Posts: 6
Joined: Mon May 23, 2011 12:40 am

Re: Ethernet Shield

Post by rmd6502 » Thu May 26, 2011 2:53 pm

It's starting to look like the SPI pins on the Arduino don't correspond to the SPI pins on the chipkit - I'll check, perhaps SPI.h does a software "bitbanged" SPI on the corresponding pins?

rmd6502
Posts: 6
Joined: Mon May 23, 2011 12:40 am

Re: Ethernet Shield

Post by rmd6502 » Sat May 28, 2011 2:07 am

I wrote a quick and dirty software SPI that hardcodes mode 0 (CPOL=0, CPHA=0, MSB). That seems to work, though I haven't tested with an actual ethernet cable yet.
[url]git://github.com/rmd6502/chipKIT32-MAX.git[/url]

rmd6502
Posts: 6
Joined: Mon May 23, 2011 12:40 am

Re: Ethernet Shield

Post by rmd6502 » Sat May 28, 2011 3:27 am

Yup! Example sketch works, though I have to hit the reset button first. I'll investigate then issue the pull request.

hobbified
Posts: 3
Joined: Mon May 30, 2011 6:38 am

Re: Ethernet Shield

Post by hobbified » Mon May 30, 2011 7:23 am

If I wanted to play with the onboard etherMAC without waiting for a shield to come out, is there some recommended PHY that I could wire up without a lot of hassle? Preferably without surface-mount soldering, but I get the feeling that means buying someone's "demo board" that costs more than the whole rest of the system...

jamodio
Posts: 5
Joined: Mon May 30, 2011 3:47 pm
Location: San Antonio, Texas
Contact:

Re: Ethernet Shield

Post by jamodio » Mon May 30, 2011 4:18 pm

I'm planning to put together a design for an Ethernet shield using Microchip's ENC424J600 controller, planning to drop in there a serial FLASH for the HTTP server, both using the PIC32MX SPI interface, and may be other stuff.

I'll probably include a digital temperature sensor that seems to be a popular thing for beginners.

I'm open for suggestions/comments about what else to include in the shield.

Cheers
Jorge Amodio - LJCV Electronics, San Antonio, Texas
"If everything seems to be going well, you obviously overlooked something. Murphy's law"

Post Reply