[net2-wg] 600 pps, high throughput

Joe Polastre joe at polastre.com
Mon Mar 13 21:30:27 PST 2006


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

On 3/13/06, Jonathan Hui <jwhui at cs.berkeley.edu> wrote:
> On 3/13/06, Joe Polastre <joe at polastre.com> wrote:
> > one ADC/DAC and two SPI works just fine.  especially if you put
> > resource arbitration on the ADC/DAC dma channel.  Trust me, I know.
>
> I have heard of people using more than one DMA channel for sampling.
> Ben Greenstein uses more than one DMA channel for the ADC. Structural
> monitoring people use more than one for their n-axis accelerometers.
> But maybe they're just full of it :-)
>
> --
> Jonathan W. Hui
> jwhui at cs.berkeley.edu
> http://www.cs.berkeley.edu/~jwhui/
>




More information about the net2-wg mailing list