PDA

View Full Version : W5500 driver



DynamoBen
09-24-2013, 04:01 PM
I'm working on getting some samples of the W5500 (http://www.wiznet.co.kr/sub_modules/en/product/Product_Detail.asp?cate1=5&cate2=7&cate3=77&pid=1193)from wiznet. The improvement over the W5100 and W5200 is the LQFP package so its easier to solder by hand. Also the module includes hardware for a MAC address which I suspect is the either the microchip part I've been using or a uC of some short.

Once I have samples I will sort out the driver, a quick pass on the datasheet indicates its almost identical to the W5200.

kingofkya
09-24-2013, 05:09 PM
Very interesting.

DynamoBen
09-24-2013, 06:05 PM
Just heard back from Wiznet and it looks like I won't be able to get samples, but the new module will be available for purchase on Oct 14. I'm asking them about the differences between the W5500 and the W5200. I also got a mailer from Saelig (http://www.saelig.com)this is what they had to say about it.


WIZnet has just introduced the W5500 Fast SPI Ethernet Controller IC, with enhancements and cost reductions over previous WIZnet Ethernet ICs. The W5500 chip is a hardwired TCP/IP Ethernet controller that provides easy Internet connection to embedded systems by using a single chip in which the TCP/IP stack, 10/100 Ethernet MAC and PHY are embedded. The W5500's TCP/IP Core is composed of a fully-hardwired, market-proven 10BaseT/100BaseTX TCP/IP stack with an integrated Ethernet MAC & PHY which supports TCP, UDP, IPv4, ICMP,ARP, IGMP, and PPPoE protocols. The W5500 now offers a fast, versatile SPI interface (up to 80 MHz) and the ability for a host MCU to flexibly utilize the W5500's buffer RAM for general-purpose data, a plus when using low-cost MCUs with limited on-chip RAM. Product hardware design is also simplified by the reduction of external power supply components and the use of firmware-setting (rather than pin-setting) of physical layer PHY options.

dlovely
09-24-2013, 06:22 PM
I saw this pop up on WizNet's site about a month ago. They also have a *IO version of it too, but its not pin compatible with the 820IO. Link (http://www.wiznet.co.kr/sub_modules/en/product/Product_Detail.asp?cate1=5&cate2=38&cate3=0&pid=1196). I sent the links off to Jim when I found it and he noticed its got a faster SPI bus.

timon
09-24-2013, 06:50 PM
Looks like it's still limited to 8 sockets although if you using unicast you can have 8, 12, 16 or more while only using a single socket so I guess it not a big deal.

jstjohnz
09-24-2013, 10:40 PM
There are 2 extra chips on the module. The larger one has to be a small micro, the other, I can't tell from the pic if it's an IC or just a large discrete component. I'm guessing it's the mac chip. Apparently the hardware reset line, when de-asserted, causes the on-board micro to come to life, read the mac chip and then communicate with the 5500 to load the mac address, default IP address, etc, then it is done. I'm assuming that that on-board micro is relying on the connected hardware to not attempt to talk to the W5500 during that time, using the READY signal to know when that init is done. Apparently this is a one-time only event that happens when the hardware rest pin is asserted.



It does look like the 5500 needs fewer discrete components. The module form factor is a bit bloated though, given the extra chips, apparently no bottom-mounted components, and the separate transformer instead of a mag-jack. It does bring back the mounting holes.

jstjohnz
09-25-2013, 01:13 AM
No auto-MDIX, strange. The 3rd chip is an 8-pin device. Also 2 specs for the SPI clock frequency: 80 MHz "theoretical design" and 33mhz "guaranteed minimum".

timon
09-25-2013, 03:52 AM
Too bad about no auto MDIX but since most switches and computers have it it's not a great loss.

Personally since the chip is easy to solder I'd just put the chip and a MagJack on the PCB and forget the module.

DynamoBen
09-25-2013, 05:27 PM
I sent the links off to Jim when I found it and he noticed its got a faster SPI bus.

Thanks for thinking of me, its not like I wrote the W5200 driver or something. ;)

DynamoBen
09-25-2013, 05:29 PM
Personally since the chip is easy to solder I'd just put the chip and a MagJack on the PCB and forget the module.

That is why I'm interested in it. The W5100 could be done by hand, the W5200 less so.

dlovely
09-25-2013, 06:27 PM
Thanks for thinking of me, its not like I wrote the W5200 driver or something. ;)

Had I had your email address handy you would have been CC'ed. LOL. Actually figured you might have already knew!

jstjohnz
09-25-2013, 11:38 PM
Still requires a lot of discrete components. 20+ resistors, 20+ caps, crystal, inductor, transformer. The transformer used in the 550IO is pricey. Wiznet's reference design varies somewhat from the transformer manufacturers data sheet also. A neat project might be a 5500-based pin-compatible replacement for the WIZ820IO.

DynamoBen
10-02-2013, 08:06 PM
Finally heard back from wiznet today about the differences between the W5200 and new W5500. See attachment.

jstjohnz
10-03-2013, 12:51 AM
I'm not sure I understand the new SPI protocol.

DynamoBen
10-03-2013, 11:23 AM
I'm not sure I understand the new SPI protocol.

Yeah I'm trying to wrap my head around the "Block Select Bit" portion. It seems that its just a shortcut to get to the registers for a given socket. So I think the deal is you select the Block [socket] then you offset into memory for the register you want.

jstjohnz
10-03-2013, 01:27 PM
How do you control the transfer size? Just stop sending clocks when done? And is the bit order reversed?

DynamoBen
10-03-2013, 02:23 PM
How do you control the transfer size? Just stop sending clocks when done?

Seems like there are two options, fixed and variable. For variable it knows to stop when the chip select pin state changes.


And is the bit order reversed?

That seems to be true.

Ugh I wish they would stop reinventing the wheel every time they release.

DynamoBen
10-21-2013, 09:51 PM
I have a dev board on the way.

besbes
01-07-2014, 03:39 AM
Does somebody have a working W5500 driver (or maybe working spi read/write functions)? Im trying to get a webserver with W5500 working. Im also using an atxmega128a1 for that.

RobG
01-07-2014, 09:48 AM
I have a working W5500 server for MSP430. With few small changes, it can be used on other platforms.

DynamoBen
01-07-2014, 02:12 PM
I have hardware but haven't spent any time updating the W5200 driver. What is your timeline?

besbes
01-08-2014, 10:06 AM
I have a working W5500 server for MSP430. With few small changes, it can be used on other platforms.
Can you upload it here please or send it to my email account: besart3000@hotmail.com ?
It would help me a lot.

RobG
01-09-2014, 10:41 AM
Can you upload it here please or send it to my email account...?

You can find it right here (http://forum.43oh.com/topic/4490-ethernet-booster-pack-v3/).