koheron-sdk icon indicating copy to clipboard operation
koheron-sdk copied to clipboard

Koheron 250-4 data acquisition tutorial?

Open frontcover opened this issue 2 years ago • 3 comments

I have checked the board with given SD card (Ubuntu OS) . The board is working well. I connected it with PC via Serial port and Ethernet.

Now, I want to capture 4-channel ADC data , and transfer it to my PC using Ethernet. I am looking for some tutorial for data acquisition!

Also, what is the length of maximum continuous data that can be captured? For all 4 ADC channels sampling at 250MSPS. Thanks in advance.

frontcover avatar Jul 28 '21 03:07 frontcover

You can have a look at this example: https://github.com/Koheron/koheron-sdk/tree/master/examples/alpha250-4/adc-bram

Data is stored in FPGA BRAM which allows only 32768 samples to be acquired for each of the 4 channels simultaneously.

Acquiring more samples would require transferring the data directly to the RAM using DMA (Direct Memory Access). An example of such DMA is available for the ALPHA250 (not the ALPHA250-4): https://github.com/Koheron/koheron-sdk/tree/master/examples/alpha250/adc-dac-dma

jeanminet avatar Aug 06 '21 17:08 jeanminet

Thank you for the reply, While running the example "adc-bram", it shows ADC size = 65536 (per channel??)

In case of ADC_DMA: Do I only need to modify these 4 files for ALPHA250-4?

Similar example is available here: https://github.com/rsarwar87/koheron-sdk/tree/master/examples/alpha250-4/adc-dma-origin However, I am getting Errors for command >> make CONFIG=examples/alpha250-4/adc-dma-origin/config.yml error_output.txt

image

frontcover avatar Aug 09 '21 02:08 frontcover

you are mixing and matching different branches which is why you are setting that problem. ps_control registers are not available on all branches i believe.

rsarwar87 avatar Sep 03 '21 20:09 rsarwar87