Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIORD_ALTERA_AVALON_PIO_DATA to slow?
Hi, I'm trying to capture samples from an A/D Converter and streaming them onto a PC via an ethernet connection. I've extended the triple speed ethernet design example from the Nios II v9.1 instal...
Altera_Forum
Honored Contributor
15 years agoYou should modify your ADC controller so that it writes into a circular buffer. For the circular buffer you could use a piece of on chip memory dedicated to this purpose. You could then have your ethernet controller hooked to that memory and dump large segments of your circular buffer at a time to the PC. You just need to be able to dump the data from the buffer to the PC faster than the ADC controller can fill it up or you will get a buffer overrun. You would be able to achieve the 62Mhz sample rate this way.
Having nios poll an IO block to get samples off of an ADC is not very efficient but it is pretty creative.