Quantcast
Viewing all articles
Browse latest Browse all 20577

Share your working BASCOM-AVR code here : Arduino Mega W5100 ethernetshield with SD-card : REPLY

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

Viewing all articles
Browse latest Browse all 20577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>