We are using AM335x and we have created a WinCE ADC driver for this platform.
Now, I wanted to have a feature that reads all channel (in one shot mode) under a single function.
In this way manner, I wanted to read the value of 8 analog sensors after every 200us.
So each sensor is connected to separate channel.
My questions are:
1.) How should I configure each channel (i.e. open delay, avg, etc.) in order to make sure that execution of a read all channel does not go beyond 200us? Should I set open delay for each channel as 200us? Or should each channel be at 200/8 us open delay?
2.) What Interrupt should I wait that would signal that all 8 channels have data available?
3.) How should I read the fifo and fetch the data for each sensor?
Thanks