1 of 1 people found this helpful
I believe that easyest way of sampling input stream woul be using existing SPI slave component SPIS. It just reads input binary stream and converts it to byte. Then you send that byte to PC using USBFS. If continuously transmitting, the bottleneck is USB transfer speed (~2MB/s). Other way to convert binary to byte is Shift register component. No interrupts should be involved. Use DMA to temporarily buffer incoming data in RAM.
Thank you very much! I've never used an SPIS or a DMI component before, but it actually seems like a very suitable solution to my problem. It's not what I was hoping for as I will find it more difficult to debug it if I get transmission errors, but very suitable. If I can get it working I'll definitely vote this as the correct answer. Thank you.