my device is 'raspberry pi 3' I am using 'PmodAD1', a 12bit ADC with 1Msps sampling rate https://digilent.com/reference/pmod/pmodad1/start
Due to linux's 'spidev' system, my sample rate is compressed to only 20KSPS left
I have tried using 'DMA' to increase my sample rate
But due to lack of expertise, I can't understand how to modify
So I used the method of modifying bcm2835 to increase my sampling rate
Using mcp3008 to test successfully pulled the sampling rate to 130KSPS but still not enough for the sampling rate I need
I refer to this article to modify PmodAD1
How to achieve a high sampling speed using an ADC with Raspberry Pi?
But don't know how to modify the following CODE so it ends in failure
bcm2835_spi_transfernb(buf_0, readBuf_0, 2);
fprintf(f_0, "%d\n", (readBuf_0[0]<<6) + (readBuf_0[1]>>2));
Next I try to use pigpio to receive my ADC
But the baud rate he sends is not enough to get the sample rate I want
So I would like to ask how to modify the code below 'bcm2835' so that my ADC can work normally?
bcm2835_spi_transfernb(buf_0, readBuf_0, 2);
fprintf(f_0, "%d\n", (readBuf_0[0]<<6) + (readBuf_0[1]>>2));
Or does anyone sell a sound card with a sample rate of 300-400 KSPS
Thanks guys, I really want to get this done quickly