Hi,
I have built a system with a DSK6416 + 5/6 Interface Card + ADS1174EVM + DAC8554EVM. I am now able to input values with the ADS1174 and output them with the DAC8554. I set up the receive and write interruptions of the McSBP ports and create a couple of functions that read the values and output them. The code is like this:
void getMCSBPData(void){ /*function to execute when reading interrupt McBSP port 0*/
data=MCBSP_read(hMcbspADS1274);
}
void writeMCSBPData(void){ /*function to execute when writing interrupt McBSP port 2*/
MCBSP_write(hMcbspDAC8554,data);
}
This is the basic code I am using now (some control flags for synchronization are used but the should not interfere).
I would like to be able to do this operation in Real Time. Right now, I have a minimum delay between the input and the output of 1.5 ms.
If the ADS samples at 50000 samples/s and with 4 channels, i should be able to get a delay of just 1/12500 s (considering that it samples the 4 channels and there is only one sample delay).
Is there a way to improve this and make it shorter (closer to Real Time)?.
Thanks,