I have AVR(or any, doesn't matter) microcontroller and 1 Megabyte SPI flash IC that I want to write to, I can do it already, have no problems with communication between these two.
But so far I write to chip directly from microcontroller, basically I write data to the uC and then I write it to the flash with uC. Microcontrollers do not have big memory inside them, so this method is only good for very small data.
What should I do if I want for example write 1 Mb of data(from PC)?
I mean I have ideas how to do it with some kind of USART or with FTDI chip, but I wonder what is the right/efficient way of doing it?
|
|||||||||
|
You can just use xmodem or any other file transfer protocol. For hardware you can use any working usb -> RS232 converter (don't forget to have TTL level one, otherwise you have to use MAX232 to convert +-12V signals to TTL level). For example, here you can find simple example of xmodem protocol. |
||||
|