Guys thanks for the replies.
Dave, you are correct (as always) - the SD card examples work fine when an 8Mhz crystal is used, (just got home to find my order had arrived). I can't test the serial ethernet as the add-on is in the post back to the supplier, but that's where the confusion comes in.
The schematic in the article shows the default 8Mhz extal used with the ENC28J60 chip, but some of the example files state a 8 or 10mHz
On some of the examples I tried re-compiling with the IP settings for my network and the 18F4520 with a 10Mhz and that still didn't work, so I opted to try a 16F877A with 10Mhz as per the notes and loaded the code straight from the example zip file - still no joy - hence the return of the board to the supplier.Code:target devices : ' * any PIC with integrated SPI and more than 4 Kb ROM memory ' * 32 to 40 MHz clock is recommended to get from 8 to 10 Mhz SPI clock, ' * otherwise PIC should be clocked by ENC clock output due to ENC silicon bug in SPI hardware ' * if you try lower PIC clock speed, don't be surprised if the board hang or miss some requests ! ' * tested with PIC16F877A@10Mhz on EasyPIC4 board
Henrik, to be honest I doubt if I'll be using the serial ethernet board in my current PBP project as it seems far too complicated to do using PBP. I might have to move over to the dark side and either use Mikrobasic or Swordfish, both of which have built in library files for these functions. - have a look at this article http://www.sfcompiler.co.uk/wiki/pmw...hUser.EthernetI have a PICPLC16 board which have the serial ethernet "module" on board. I'm very interested in what you might come up with, codewise, when it comes to that. It should be doable in PBP but I don't think it's an easy task.
It appears that the syntax of Swordfish is easy to pick up, but the limitations in the devices it supports compared to MikroBasic or PBP might be it's down fall... this is no doubt reflected in it's cheaper price tag. What it needs is for Darrel to come up with a nice little include file that handles the spi interfacing etc so all that is required is to enter the network settings in the main program, and away you goNow if it could upload html to the PIC in the same way as Mikrobasic does and run as a webserver, that would be cool
![]()


) - the SD card examples work fine when an 8Mhz crystal is used, (just got home to find my order had arrived). I can't test the serial ethernet as the add-on is in the post back to the supplier, but that's where the confusion comes in.



Bookmarks