Osawa_Odessa
Banned

Hello,
I have an image in computer and want to transfer to sd card using ATmega128.
An image -----------> ATmega128 ------------------> SD card
The image has a size about 2Mb. I using FAT format to save the image in SD card. The protocol is SPI but I have some problems that confusing me.
I intend to devide the image into a small chunk and transfer it. What confusing me is what is the size of chunk and buffer i should choose? The dividing an image and transfer it to ATmega is done by a software in computer. In the atmega128 Fcpu= 8MHz and the SPI is maybe 4MHz. Can anyone help me about this?
I have an image in computer and want to transfer to sd card using ATmega128.
An image -----------> ATmega128 ------------------> SD card
The image has a size about 2Mb. I using FAT format to save the image in SD card. The protocol is SPI but I have some problems that confusing me.
I intend to devide the image into a small chunk and transfer it. What confusing me is what is the size of chunk and buffer i should choose? The dividing an image and transfer it to ATmega is done by a software in computer. In the atmega128 Fcpu= 8MHz and the SPI is maybe 4MHz. Can anyone help me about this?