Hello All
I thought I would have a play with this sample from Ben.
So far I have found two things one is $baud = 56700 should be $baud = 57600 to keep it to standard rates
The next is from my experience with the ENC28J60 server you can get better performance by setting the SPI double speed bit SPSR = 1 see the code below it made a big difference to the speed of the web page being displayed as now the SPI runs at 8Mhz with it set. I will have to make a board to accept Arduino shields using the mega 1284p this will give a 25% increase as the 1284p runs at 20Mhz so its SPI buss will be at 10Mhz you also get 16K of ram to use in buffers.
[code:1:ee6e3ba8be]
'*******************************************************************************
'Init SD Card
Call Activate_sdcard()
Call Init_sd_card() 'Init SD Card
Call Activate_wiz812()
Waitms 100
Spsr = 1 'set the SPI double speed bit
'*******************************************************************************
[/code:1:ee6e3ba8be]
Regards Paul
↧