Hi
My goal is to reach maximum transfer rate for openTCP stack(acording to my test's about 200kb/s) from mmc.
The problem is that excepy SPI code i have my own MMC and FAT32 code wich puts quite a delay( i'v could wrote it better but i'm a little lazy..
). On top of that is a ftp and http serwer. My oryginal asumption was that I would get at least 1Mhz throughput rate from SPI and the delay from the rest of the code would give mi a throughput of about 300 kb/s while reading a file using my fat system. It looks i was wrong...
Further optimization of send_byte acording to me is not posible. Curently asembly of send_byte consists of 3 assembler instructions (BRCLR,STAB,LDAB). Optimization you sugestested in your previous post works after adding "while (SPISR_SPTEF == 0);" to Init_spi.
I already have about 110kb/s from my ftp serwer. Additional optimization to my mmc and fat code is posible so I hope I can squeeze 200kb/s from it...
Thx for help and I hope I can manage on my own now...
Regards,
Kapsel