Conversion of "W5100_drv_011.spin" for Spinneret?
Oldbitcollector (Jeff)
Posts: 8,091
Has anyone done a conversion of "W5100_drv_011.spin" for the Spinneret?
There are some interesting demos here which appear to be compatible.
OBC
There are some interesting demos here which appear to be compatible.
OBC

Comments
I don't understand the reference to SPI_DONE, and that may be holding me up.
OBC
I looked at the web page demo that goes with that driver and it was incredibly basic, only waiting for a connection and then outputting a fixed string of data that produces a single static page.
A proper web page demo should handle HTTP more correctly, and serve requested files.
Examining the code a little more it appears there are some additional details to handle.
PUB mode(opmode) | temp '' Call this function with the value wanted for opmode before '' the start function is called. If the start function has '' already been called then this function will do nothing. if (cogon == 0) 'Be sure driver not already running DIRA |= $70000 'Set pins 16-18 to output temp := opmode << 16 'Shift our arg 16 bits left OUTA &= $FFF8FFFF 'Clear all outputs on pins 16-18 OUTA |= opmode 'Set only required pins on pins 16-18OBC
I'm serving files from the sd card, and I was even able to download a PDF file from the spinneret via a link on a page.
Anyway it's still very basic, but it's a start.
Now I sleep!
I also created a simple internet service to grab the current time. Values are separated by commas.
http://www.agaverobotics.com/spinneret/datetime.aspx?gmtoffset=-7