Hi TJF, The IIO ADC can sample at 800K samples per second [1]. You cannot achieve that sampling rate with with PRU and have it do something useful with those samples.
[1] https://patchwork.kernel.org/patch/9391499/ <https://patchwork.kernel.org/patch/9391499/> I don’t see the purpose of having PRU read from /dev/iio:deviceX. This is for ARM only. The OP wanted to do phasor analysis which requires math not easily implemented on the PRU. Since the samples are already available on the ARM side, I suggested that the OP do phasor analysis on the ARM? Regards, John > On Jan 28, 2017, at 8:49 PM, TJF <[email protected]> wrote: > > Hi John! > > Am Sonntag, 29. Januar 2017 03:58:21 UTC+1 schrieb john3909: > The IIO driver is faster and can achieve higher sampling rates. > > The sampling rate limitation is the FiFo buffer in the TSC_ADC_SS. Both > drivers can operate at full speed. iio puts more load on the ARM CPU. > > Also the IIO driver is easier to use because you just read from > /dev/iio:deviceX. > > Can you please provide some PRU example code how to read from > /dev/iio:deviceX? iio is made for ARM side only. In contrast libpruio can > provide the data either for the ARM or for the second PRU. > > Regards > > -- > For more options, visit http://beagleboard.org/discuss > <http://beagleboard.org/discuss> > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/c3607ea4-2f25-41c5-b885-54c920e7a7f2%40googlegroups.com > > <https://groups.google.com/d/msgid/beagleboard/c3607ea4-2f25-41c5-b885-54c920e7a7f2%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2EEAD11F-E727-484B-A797-358A16720757%40gmail.com. For more options, visit https://groups.google.com/d/optout.
