Matt Ownby Posted February 5, 2013 Report Share Posted February 5, 2013 Hi guys, What I'm currently trying to do (aside from going through most of Hamster's tutorials, thanks these are GREAT!) is to read from a 15 MHz ADC (hardware already working) and stream the results to an SD card. I don't even know if I'll be able to pull this off due to the performance demands, but it will still be very educational for me to go through the steps of learning how to control an SD card. I realize that it is popular to control SD cards in SPI mode but since I really need every ounce of speed I can get, I want to do it in the 25 megabyte/second mode ("high speed, wide-bus SD mode"). Since the SD spec requires quite a bit of setup before one can actually start bulk writing, I am _positive_ that I will be making mistakes and I am going to need some feedback along the way. So I think it would be _very_ helpful I can get some logging over the FTDI usb port to show me what's going on. I've gone through hamster's tutorial on how to output RS232 and I actually got this working earlier today (woohoo) using putty on a windows PC. But here is the issue I am currently grappling with: - since the FPGA has different components running in parallel, it is conceivable that two different modules may want to output to the log simultaneously. Is there some kind of locking mechanism to prevent this? like some kind of mutual exclusion object or something? - And what about the issue of the log wanting to output to the serial port while another module wants to add to its buffer? - Speaking of buffers, I am thinking about using a small array of bytes with indices pointing to the start and end of the buffer (ie a revolving buffer). Too complicated? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.