I want to develop a acquisition and streaming system using Zedboard with AD1. Since AD1 supports 2 channel , 1MSPS rate I want to use it for fast signals.
I used the sample project for interfacing AD1 with Zedboard.
The issue I am facing is that when I am changing the signal at Function Generator, the ADC signal from UART keeps on with previous signal. I am using LabVIEW for stream and monitoring the signal from serial terminal but I am not able to see the signal change when I change the Function Generator output.
Is there some kind of buffer for UART which keeps repeating the signal.
Let me know if I should test it in some other way.
Also
I wanted to calculate the maximum sampling rate I can achieve with the UART. The ADC (PMOD AD!) is 12 bits so maximum count is 4 digits (upto 4095). Each digit will occupy a character for UART.
UART bit rate: 115200 bps
UART Character rate : 11520 char/sec ( 10 bit for 1 char)
No of chars for each sample : 4 char/sample
Maximum sampling rate: 11520/4 = 2880 samples/s= 2.8KSps
Is my calculation correct? I wanted to find if UART acts as a bottleneck for high speed ADC transfer.
Question
falcon98
Hi,
I want to develop a acquisition and streaming system using Zedboard with AD1. Since AD1 supports 2 channel , 1MSPS rate I want to use it for fast signals.
I used the sample project for interfacing AD1 with Zedboard.
I am using following simple code in SDK:
while (1)
{
for (i=0; i<128; i++)
{
data=ADC1_IP_mReadReg(XPAR_ADC1_IP_S_AXI_BASEADDR, 0);
xil_printf("%d\r\n", data);
}
}
The issue I am facing is that when I am changing the signal at Function Generator, the ADC signal from UART keeps on with previous signal. I am using LabVIEW for stream and monitoring the signal from serial terminal but I am not able to see the signal change when I change the Function Generator output.
Is there some kind of buffer for UART which keeps repeating the signal.
Let me know if I should test it in some other way.
Also
I wanted to calculate the maximum sampling rate I can achieve with the UART. The ADC (PMOD AD!) is 12 bits so maximum count is 4 digits (upto 4095). Each digit will occupy a character for UART.
UART bit rate: 115200 bps
UART Character rate : 11520 char/sec ( 10 bit for 1 char)
No of chars for each sample : 4 char/sample
Maximum sampling rate: 11520/4 = 2880 samples/s= 2.8KSps
Is my calculation correct? I wanted to find if UART acts as a bottleneck for high speed ADC transfer.
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.