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 do 
anything else after replace it?

Thanks!!

El martes, 25 de agosto de 2015, 8:02:20 (UTC+2), TJF escribió:
>
> 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 ≈ 1000000 / 2400 (= 1 GHz / 
> 2.4 MHz)
>        d += 30 '                             PRU cycles for restart [GHz]
>
>        IF Tmr <= d THEN     .Errr = @"sample rate too big" : RETURN .Errr
>
> is replaced by
>
>       d = (d * (Conf->ADC_CLKDIV + 1) * 1000) \ 24
>       IF Tmr <= d ORELSE Tmr < 5000 THEN _
>                            .Errr = @"sample rate too big" : RETURN .Errr
>
> BTW: The example triggers.bas 
> <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/_cha_examples.html#SubSecExaTriggers>
>  
> may give you an idea how to use MM mode.
>
> BR
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to