LF_LF
Member level 1
HI, everybody.
For my project, i need to create a SPI to interact between DE2 board and ADC(ADS7861). I have created one but i think iy wouldn't work due to busy line and my approach.
My approach is that i use the estimation approach where i use clock cycle to calculate the data conversion process, when it finish and and data arrive. For Example, according to datasheet of ADS7861 ADC, Serial Data A will be available after 2 clock cycles of conversion start. Then after 12 bits of valid data, it has 2 bits flag which is 00 to indicate end of 1 conversion cycle. Therefore, i use this to calculate and design my VHDL code.
Well, another reason for me not using the busy signal is because i really no idea how to use it as it will only trigger to low 3 bits before end of 1 conversion cycle then the valid data has 12 bits to be transfered to my DE2 board. That's mean it need 12 clock cycle for the DE2 board to receive it, right? of course, this 12 clock cycles need to accept 12 bits data is using counter, but i have no idea what else approach to use to receive these 12 bits data if i didn't use counter to loop for receiving.
Now, after tested with hardware, i cant obtain the serial data output from ADC. Maybe due to this estimation method i used that miss the accuracy of clock cycles.
Can anybody let me know the ways to obtain the data using Busy signal from ADC? The serial data valid only up to 1ns after rising edge of next clock. That's mean only has maximum 3 clock cycles + 1ns or even less to attach all 12 bits valid data from ADC.
Please anybody please give me a hand. The due data for this is end of this week.
Thank you in advanced.
For my project, i need to create a SPI to interact between DE2 board and ADC(ADS7861). I have created one but i think iy wouldn't work due to busy line and my approach.
My approach is that i use the estimation approach where i use clock cycle to calculate the data conversion process, when it finish and and data arrive. For Example, according to datasheet of ADS7861 ADC, Serial Data A will be available after 2 clock cycles of conversion start. Then after 12 bits of valid data, it has 2 bits flag which is 00 to indicate end of 1 conversion cycle. Therefore, i use this to calculate and design my VHDL code.
Well, another reason for me not using the busy signal is because i really no idea how to use it as it will only trigger to low 3 bits before end of 1 conversion cycle then the valid data has 12 bits to be transfered to my DE2 board. That's mean it need 12 clock cycle for the DE2 board to receive it, right? of course, this 12 clock cycles need to accept 12 bits data is using counter, but i have no idea what else approach to use to receive these 12 bits data if i didn't use counter to loop for receiving.
Now, after tested with hardware, i cant obtain the serial data output from ADC. Maybe due to this estimation method i used that miss the accuracy of clock cycles.
Can anybody let me know the ways to obtain the data using Busy signal from ADC? The serial data valid only up to 1ns after rising edge of next clock. That's mean only has maximum 3 clock cycles + 1ns or even less to attach all 12 bits valid data from ADC.
Please anybody please give me a hand. The due data for this is end of this week.
Thank you in advanced.