Part Number: AM5718
Hi,
I am using AM5718IDK board and processor sdk linux 05.03 version.
I want to send and receive data to ADC and from DAC through SPI.
Kindly tell me how to proceed.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM5718
Hi,
I am using AM5718IDK board and processor sdk linux 05.03 version.
I want to send and receive data to ADC and from DAC through SPI.
Kindly tell me how to proceed.
Hi Khushboo,
for that you would want to have a look at the "IIO" framework in the Kernel. There is already a large library of supported ADC/DACs (via SPI, I2C, etc.). I would see that you can use one of those devices (preferably one from TI:) that already has a driver in your current Kernel (or in the upstream Kernel, so you can backport) to avoid development effort (although ADC/DAC drivers are not too hard to do from scratch, based on leveraging code from existing drivers).
https://www.kernel.org/doc/html/v4.19/driver-api/iio/index.html
There's a wealth of information out there on that topic if you search for it but hopefully this gives you something to start from.
Also please move to Processor SDK v6.x+ to benefit from a larger selection of supported IIO devices (and other improvements).
Regards, Andreas