Welcome, Guest. Please login or register.


Author Topic: Wiznet 5100/5300 /etc and Enterprise (Read 23779 times)

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #30 on: 2015.May.04. 20:30:00 »

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #31 on: 2015.May.04. 22:20:18 »
Something like this http://www.tme.eu/en/details/wiz811mj/moduly-wiznet/wiznet/ ?

Yes, but I have wiz830mj it supports 8 and 16 bit parallel bus. Some of these modules seems to support only SPI, some of them parallel bus, some of them both :-P And also the chip type can counts, w5200 ior w5300. Wiz830mj has w5300, AFAIK SymbOS on MSX supports networking with w5100, but they are not so different, and w5300 can do more parallel connections and has bigger RAM buffer. As far as I can remember, I mean ...

http://www.wiznet.co.kr/sub_modules/en/product/Product_Line.asp?cate1=5&cate2=42

But you can get some hints about the ideas here if you try read through the posts within this topic from the start. Well, maybe not, since I can write a lot :-/

Btw, comparsion of the used chips themselves:

http://www.wiznet.co.kr/sub_modules/en/product/Product_Line.asp?cate1=5&cate2=7
« Last Edit: 2015.May.04. 22:37:55 by lgb »

Offline BruceTanner

  • EP lover
  • *
  • Posts: 607
  • Country: gb
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #32 on: 2015.May.05. 02:34:11 »
As I read in the All-In-One thread there is currently some development going on with the Wiznet W5x00 hardware?
Any news about this or is it currently too far away from publishing details? :)

Yes I am working on it as and when I can, using the wiz830mj module (W5300) in 8-bit I/O mapped mode.

I have a schematic and nearly a completed PCB design.

It is a vertical board that plugs into either the side of the Enterprise or into an Enterprise expansion bus board. It has an extra 64k RAM and 64k FLASH space.

Offline Prodatron

  • EP user
  • *
  • Posts: 256
  • Country: de
  • Back on the Z80
    • http://www.symbos.de
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #33 on: 2015.May.05. 15:10:47 »
Glad to hear that it's going on! :) Time to have a closer look at the W5300 programming again...

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #34 on: 2015.May.05. 15:16:43 »
Glad to hear that it's going on! :) Time to have a closer look at the W5300 programming again...

Well, if w5300 is compatible with w5100 with ignoring the new features of w5300 and possible with some extra initialization the same code can be used more or less, I guess. However I am not sure if it worth to use the extra features of w5300 (more buffer ram, more "sockets", probably, as far as I can remember). Which ports are used on MSX for this purpose? I have the faint memory that you told once: on MSX the memory mapped mode is not used only through for I/O ports. If the I/O ports would be the same, it would be even more easy for programming. Or SymbOS should introduce not only memory relocation of loaded programs but also for I/O ports :) I am not so serious now of course, as EP port of the SymbOS can have different I/O address for the wiznet stuff of course if the access method is similar at least ...
« Last Edit: 2015.May.05. 15:23:42 by lgb »

Offline Prodatron

  • EP user
  • *
  • Posts: 256
  • Country: de
  • Back on the Z80
    • http://www.symbos.de
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #35 on: 2015.May.05. 16:43:30 »
Which ports are used on MSX for this purpose? I have the faint memory that you told once: on MSX the memory mapped mode is not used only through for I/O ports. If the I/O ports would be the same, it would be even more easy for programming.
You probably mixed it with a planned W5100 hardware for the CPC :) About the MSX hardware I wrote the following here:
The DenYoNet card is using the memory of a full MSX slot/subslot (this is a 4x16K range which can be partially or fully mapped into the visible 64K area). The lower 32K are for the included flash ROM, in the upper 32K you can map the 32K of the W5100. This is separated into 2x16K, the lower are the registers, the higher are the transfer buffers. There are two additonal bits which select if and which part of the 32K is mapped to #8000 and if and which to #C000. Unfortunately I have no idea how this is done internally/wired, but it uses the memory-mapped based slot/subslot technology of the MSX standard.

Well, if w5300 is compatible with w5100 with ignoring the new features of w5300 and possible with some extra initialization the same code can be used more or less, I guess. However I am not sure if it worth to use the extra features of w5300 (more buffer ram, more "sockets", probably, as far as I can remember).
No, AFAIK the W5300 doesn't provide a "compatibility mode".
I studied the datasheet again and figured out, that you can't access the 128KB transfer (TX/RX) buffer memory directly in any case. You have to use a special FIFO register for each of the 8 sockets for sending/receiving data, which means, that even memory mapped mode wouldn't allow simple LDIR commands. So one more argument for using I/O mode.
Everything else seems to be the same, just with the double amount of sockets, more buffer and maybe some other little improvements. It's not much work to rewrite the W5100 routines for the W5300.

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #36 on: 2015.May.05. 16:48:12 »
You probably mixed it with a planned W5100 hardware for the CPC :) About the MSX hardware I wrote the following here:

Indeed :) The confusion because "DenYoNet" seems to use a wiznet chip and also we talk about that. However it seems the details are different.

Quote
Everything else seems to be the same, just with the double amount of sockets, more buffer and maybe some other little improvements. It's not much work to rewrite the W5100 routines for the W5300.

Even if it's done not in the memory mapped mode? I think it does not worth too much (or does it), if the "few I/O port" solution is much more easy to implement (in the hardware, I mean).

Offline Prodatron

  • EP user
  • *
  • Posts: 256
  • Country: de
  • Back on the Z80
    • http://www.symbos.de
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #37 on: 2015.May.05. 17:10:56 »
Indeed :) The confusion because "DenYoNet" seems to use a wiznet chip and also we talk about that. However it seems the details are different.
Yes, it's using the W5100 :)

Even if it's done not in the memory mapped mode?
Yes, that doesn't matter. I developed the Wizenet code in a two-layer way. The lower layer is for writing/reading Wiznet registers and transfering data from/to the buffers. This layer is different for I/O and memory mapped, and has to be rewritten for different computer platforms. These are only a few and simple routines ("write byte to register memory", "write word to register memory", "read byte from register memory", "write data to buffer memory" etc.).
The higher layer code is handling the network activities like "open connection", "check connection status", "send data", "receive data", "close connection". It's still Wiznet W5x00 specific, but it doesn't know anything about how to access the registers and buffers, as this is done by the lower layer code. The higher layer code is platform independant when using the same Wiznet chip and it's probably even possible to use nearly the same higher layer code for both the W5100 and W5300 with small modifications for the register addresses.

Offline BruceTanner

  • EP lover
  • *
  • Posts: 607
  • Country: gb
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #38 on: 2015.July.01. 12:40:54 »
[ Guests cannot view attachments ]

I have spoken to the WIZ 5300, and it has replied :) :) :)

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #39 on: 2015.July.01. 13:19:59 »
Nice work + good news! :)

Offline Prodatron

  • EP user
  • *
  • Posts: 256
  • Country: de
  • Back on the Z80
    • http://www.symbos.de
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #40 on: 2015.July.01. 14:23:38 »
Congratulation Bruce! These are fantastic news!
I want to play battleship on my EP against another Z80, soon :P

Offline lgb

  • EP addict
  • *
  • Posts: 3563
  • Country: hu
  • æðsta yfirmaður
    • http://lgb.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #41 on: 2015.July.01. 14:33:06 »
Congratulation Bruce! These are fantastic news!
I want to play battleship on my EP against another Z80, soon :P

That's boring :) It would be better to play ICMP war / SYN floods, etc between the network interfaces :-P But seriously, yes, it would be a very nice feature of SymbOS: multiple platforms are supported with SymbOS now it's time to connect these multiple platforms together on-line (or with the rest of the Net). :-)

Offline edoz

  • EP fan
  • *
  • Posts: 135
  • Country: nl
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #42 on: 2015.July.01. 14:34:13 »
(Attachment Link)

I have spoken to the WIZ 5300, and it has replied :) :) :)

Wow! That piece of hardware looks so nice!!!
Have fun with the Z80!

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14710
  • Country: hu
    • http://enterprise.iko.hu/
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #43 on: 2015.July.01. 15:20:09 »
Wow, very nice!

Offline geco

  • EP addict
  • *
  • Posts: 7070
  • Country: hu
    • Támogató Támogató
Re: Wiznet 5100/5300 /etc and Enterprise
« Reply #44 on: 2015.July.01. 19:08:03 »
:smt041 :smt041 :smt041