> On Thu, 2004-09-16 at 08:04, Mike Hawkshaw wrote: > > Stuart, > > > > Microchip do a TCP/IP stack for the 18F452, based on a development board > > they sell. > > I re-wrote the hardware level code to interface to a 16 bit ISA card and it > > worked quite well. Then Herbet wrote: > Very interesting. Any chance you'll release this code to the public > domain? Thanks, TTYL Groan.......Well, I don't really think it is anywhere near fit to publish, to be honest. I intended to start again from scratch (at least from the bare MC TCP/IP stack source code) and actually document what I did then release it to the world. What I wrote above sounds much more grand than the reality more like slight tweeks - though I did get it to work OK. I've just been looking through the code, and the hardware level code hasn't changed much at all. One of the major things I did change was the way the code set the MAC address. In the original code, it is hard coded into one of the files, but I wanted the code to read it from the network card (it then has to be sent back to the card as part of the initialisation). The web page it serves is hard coded - I was intending to interface to a hard disk eventually, but ran out of time / enthusiasm. The card I used was a Micronet SP2020B which is NE2000 compatible and uses the 8019AS chip if I remember correct. As I can't really remember what I did to get it to work (I have cut out an awfull lot of the original source code files (because didn't need them) - which is almost certainly against the MChip agreement - and altered the remaining ones to some extent) I have just zipped the whole sorry mess together and put it here (1.237 Mbyte): http://www.spikey-mike.demon.co.uk/files/webserver.zip There is a photo of the test lash-up here (310kbyte): http://www.spikey-mike.demon.co.uk/files/webserver.jpg If anyone wants to have a look, feel free - I'll leave it there for a couple of days. I expect it to build as is, using MChip C18, but it might not, who knows - no guarentees...... If there are any specific questions then feel free to ask. Cheers for now......Mike. --- Outgoing mail is certified as Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004 _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist