Respected Team,
I am using ZC702 Board in my project. I have connected the Output of my RF front end EMIO pins. RF front end giving me output (ADC samples) at 30MHz. I have connected the Output of RF front end to PL using EMIO. I have used PMOD JA on ZC702 board to connect the output of RF front end. Then I have configured EMIO pins as (54,55,56,57.58) as external pins. Then I tried to read the value of pin using GPIO drivers in Xilinix SDK.
My task is to collect read the samples from RF front end and write the data into text file and store it in SD card. Right now I have written code in Xilinx SDK using available drivers. In that I am reading the EMIO pins for 1 sec and writing a data to CSV file. (Please find attached code)
Question:
1. As I mentioned earlier, sampling frequency of ADC in the RF front end is 30MHz. So is it possible that I can accurately read 30M samples in one seconds using the code I have written. Because when I checked using my code, I could get 0.75 Million samples in 1 sec. I have used count variable in the code which will give me last count of sample when it is coming out of while loop where I am reading the EMIO pins. So when I print the value of count then value is around
2. Also what could be the efficient way to read the huge data and store it to SD card.
It would be very kind of you if you could point out the errors in the code, and provide the answers to my questions. It would be great help to me.
Question
Varad
Respected Team,
I am using ZC702 Board in my project. I have connected the Output of my RF front end EMIO pins. RF front end giving me output (ADC samples) at 30MHz. I have connected the Output of RF front end to PL using EMIO. I have used PMOD JA on ZC702 board to connect the output of RF front end. Then I have configured EMIO pins as (54,55,56,57.58) as external pins. Then I tried to read the value of pin using GPIO drivers in Xilinix SDK.
My task is to collect read the samples from RF front end and write the data into text file and store it in SD card. Right now I have written code in Xilinx SDK using available drivers. In that I am reading the EMIO pins for 1 sec and writing a data to CSV file. (Please find attached code)
Question:
1. As I mentioned earlier, sampling frequency of ADC in the RF front end is 30MHz. So is it possible that I can accurately read 30M samples in one seconds using the code I have written. Because when I checked using my code, I could get 0.75 Million samples in 1 sec. I have used count variable in the code which will give me last count of sample when it is coming out of while loop where I am reading the EMIO pins. So when I print the value of count then value is around
2. Also what could be the efficient way to read the huge data and store it to SD card.
It would be very kind of you if you could point out the errors in the code, and provide the answers to my questions. It would be great help to me.
Thanks
test.txt
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now