[net2-wg] 600 pps, high throughput
Jonathan Hui
jwhui at cs.berkeley.edu
Mon Mar 13 21:41:18 PST 2006
DMA makes it easy to minimize jitter between samples. It would've
taken some of Sukun's headaches away.
If you want to share the DMA, then you have to consider whether its
better off to block until the resource is available, or just send SPI
commands in software without having to block for the DMA. It's
dependent on the app and how it uses its resources. In many apps,
including Moteiv's demo apps, it is generally feasible to share the
SPI as samples are done in bursts with lots of dead time in between.
--
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/
On 3/13/06, Joe Polastre <joe at polastre.com> wrote:
> you don't need DMA for an accelerometer. microphone/sound, yes.
> accelerometer, no.
>
> if (call Resource.inUse()) {
> call SPIInterrupt.enable();
> }
> else {
> call DMA.setupTransfer();
> }
>
> Is that really so complicated?
>
> -Joe
More information about the net2-wg
mailing list