2
\$\begingroup\$

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?

\$\endgroup\$
2
  • \$\begingroup\$ Have you tried using a ring buffer yet? \$\endgroup\$ Commented Aug 12, 2015 at 1:21
  • \$\begingroup\$ You mean ring buffer with UART? I was thinking about it, but I wonder if that's the right way. Probably that's the easiest way, yes, but seems too easy. And I guess it will take a lot of time for big chunks of data. \$\endgroup\$ Commented Aug 12, 2015 at 1:27

1 Answer 1

1
\$\begingroup\$

Use FTDI chips to communicate with PC. Its a easiest way to communicate with PC. since, its drivers are readily available on internet. Just design a circuit of FTDI or buy from the market and install drivers. Actually FTDI chips converts USB to TTL serial. Start UART and SPI interrupts. Whenever you receive data from PC just forward it through SPI. According to me, this will be fast and efficient way.

pankaj

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.