Am Montag, 30. Januar 2017 18:36:37 UTC+1 schrieb john3909:
>
> Well, again it depends on what you mean by realtime. To most developers, 
> it means deterministic 
>

Yes, deterministic:

   1. steady latency
   2. the lowest possible steady latency

and since the AM335x ADC uses a sequencer to do the sampling, it is 
> deterministic,
>

The sequencer garanties a deterministic process from analog line to the 
FiFo buffer. You know that you cannot compute inside the FiFo. The data has 
to get to a processor register first. And the complete process, from analog 
line up to the processor register, has to be deterministic.
 

> and hence there is no difference between the PRU and ARM with DMA.
>

There is a big difference, since the ARM gets loaded by other kernel tasks. 
On Beaglebone hardware under LINUX, the PRU is the only system that can 
garanty deterministic sampling (when bus access is unlimited).
 

> This shouldn’t be a pissing match as to how fast you can sample, but 
> rather focus on what the OP application was. In this case, since the PRU 
> doesn’t have the required math functions, 
>

The math in the original post contains simple table lookups, additions and 
multiplications. It's easy to implement that on the PRU (, but not 
necessary for 6 kSps).
 

> the PRU is only doing what the DMA is doing, moving samples from the FIFO 
> to DDR memory. Hence, why waste the PRU on such a trivial function. Rather 
> save it for something more useful.
>

Yes, don't waste the PRUSS! That's why I didn't propose any customized 
firmware, but libpruio. Even if Fabián doesn't need the digital features 
(GPIO, PWM, CAP, QEP), he might use the trigger features to start the 
measurement at the same phasing, in order to make results better comparable.

Regards

-- 
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/91f0dff0-4d11-460b-bec9-f3ffb785387f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to