What's the max throughput of the W5100 in SPI mode?
ags
Posts: 386
Someone must have figured this out, but a search didn't turn anything up. What is the maximum sustained bitrate when using the WizNet in SPI mode and a UDP socket? A very rough calcuation I've done is:
bit-banging the SPI signals (in PASM) means 2 instructions per SPI clock
4 Prop clocks per instruction
80 MHz Prop clock
80M/(2x4) = 10Mbps
This is a maxium, assuming there's nothing else going on in the cog reading the WizNet, and also deals with just the reading of data, ignoring the need to maniuplate the various WizNet registers (RSR, RD, CR, etc.). It also assumes the processing of the data in any other cog doesn't stall the reading cog.
So, a rough guess might be something closer to 1Mbps. Does that make sense and/or has it been tested in real life?
Thanks,
Al
bit-banging the SPI signals (in PASM) means 2 instructions per SPI clock
4 Prop clocks per instruction
80 MHz Prop clock
80M/(2x4) = 10Mbps
This is a maxium, assuming there's nothing else going on in the cog reading the WizNet, and also deals with just the reading of data, ignoring the need to maniuplate the various WizNet registers (RSR, RD, CR, etc.). It also assumes the processing of the data in any other cog doesn't stall the reading cog.
So, a rough guess might be something closer to 1Mbps. Does that make sense and/or has it been tested in real life?
Thanks,
Al
Comments
The read SPI code takes 3.55us and the write takes 3.60us. Each sends 32bits, 8 of which are data.
Thanks!