Wiznet W5100 SPI Driver

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Timothy D. Swieter, created: 2013-04-17 | updated: 2013-04-17

 

An ASM driver for communicating with the Wiznet W5100 Ethernet IC using SPI. This driver launches a COG that handles FAST reading and writing to the W5100. There are routines in both ASM and SPIN for establishing communication and transferring data and settings.

See the file for further instructions on usage. Included in the Auxiliary files is a demo demonstrating how to use the driver. The Propeller will receive UDP frames and then echo the data back to the sender.

0.6 - Updated the file for various bugs pointed out to me in PM and on the forum. I also reviewed the tx/rx routines for UDP/TCP to be sure they were the same between the Indirect/Parallel code and the SPI code.

Please note that the most up-to-date code may be available via Google Code:

http://code.google.com/p/spinneret-web-server/

http://spinneret-web-server.googlecode.com/svn/trunk/W5100_SPI_Driver.spin

 

Original File Upload
AttachmentSize
Binary Data W5100_SPI_Driver.spin184.7 KB
Binary Data Brilldea_W5100_UDP_Echo_Demo_SPI_Ver004_SPI.spin35.02 KB

Comments

[originally posted by Anonymous on 2011-01-03 15:36:41] I have found a bug in the TxUDP routine that truncates packets when the packet being sent wraps around the end of the buffer. I have uploaded a corrected version in the forum thread "Update to Spinneret Serial (SPI) driver to fix problem with truncated UDP packets" in the Spinneret forum. -jstjohnz

[originally posted by Timothy D. Swieter on 2011-01-21 18:11:55] Thank you. It appears that this bug was fixed in the Indirect/Parallel version of the software and not copied to the SPI version. Version 0.6 has been updated with this fix.