[beagleboard] Re: libpruio adc pruio_config help

2016-03-19 Thread TJF
Hi! This "sample rate too big" is a too rigid error message (a bug). The post you quoted explains how to fix it. Just adapt the *pruio_adc.bas* code and recompile the library. Find further information in this thread. BR

[beagleboard] Re: libpruio adc pruio_config help

2016-03-19 Thread antpersan2
Hi! Forgive me in advance for my english skills. I'm in a project in which i need to read beagle adc with timming accuracy and i don't know how to do it. I've tried the rb_file.c mentioned before but even replacing that code i'm still getting the same error, sample rate too big. Do I have to

[beagleboard] Re: libpruio adc pruio_config help

2015-08-26 Thread 180bob . we . had . a . baby . its . a . boy
Thanks- You have been very helpful. Another question I have is about precise timing; Does the PRU have access to any high precision timers / a way for the cpu to know down to the microsecond how long between 2 data points --- Even if they are very far apart say for example- sampling only

[beagleboard] Re: libpruio adc pruio_config help

2015-08-26 Thread TJF
Hi! The PRUSS have access to various timers. libpruio uses the PRU intern IEP timer (100 MHz, no OCP latency) to start the ADC measurements. It should be possible to achieve the specified accuracy (in MM or RB mode). There is no 64 bit timer for the PRUSS. The IEP timer resets after each

[beagleboard] Re: libpruio adc pruio_config help

2015-08-25 Thread TJF
Hi! Am Dienstag, 25. August 2015 00:44:22 UTC+2 schrieb 180bob.we.had.a...@gmail.com: or is something I using out-of-date? Yes, outdated. In the new (unpublished) code in file src/pruio/pruio_adc.bas at line 128 d *= (Conf-ADC_CLKDIV + 1) * 417 '417 ≈ 100 / 2400 (= 1 GHz / 2.4

[beagleboard] Re: libpruio adc pruio_config help

2015-08-24 Thread 180bob . we . had . a . baby . its . a . boy
Thanks! That code makes is much closer to what I am looking for. Question-- When trying to compile and run it I get root@beaglebone:~/libpruio-0.2/src/c_examples# ./rb_file config failed (sample rate too big) Its failing on the call to config-- if (pruio_config(io, samp, mask, tmr, 0))

[beagleboard] Re: libpruio adc pruio_config help

2015-08-22 Thread TJF
Hi! To sample as fast as possible you've to configure your steps first, using function AdcUdt::setStep: - Avaraging = 0 - SaD = 0 - OpD = 0 Then you call PruIo::config() - Samp is the number of samples to fetch. In MM mode it's the size of the buffer, libpruio stops when the