[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] ADC setup question

From: Stephen Dwyer
Subject: Re: [Paparazzi-devel] ADC setup question
Date: Sun, 2 Dec 2012 15:50:07 -0700

Hello Sergey,

I think one of the main reasons the injected channels are used is
because there is a data register for 4 channels in the injected mode,
so you can trigger the sampling with a timer, then wait till all four
channels are sampled and use a single interrupt (JEOC) at the end to
then copy all four samples into memory. With continuous I think you
need to copy over after every interrupt, unless you use a DMA (which
might have its own problems, there was some discussion on libopencm3

Hope that makes sense. Could be completely wrong, since I did not
write/design the code :).

-Stephen Dwyer

On Sun, Dec 2, 2012 at 6:37 AM, Sergey Krukowski <address@hidden> wrote:
> Hi!
> I'm wondering why there is on STM architecture the ADC is configured to work
> with injected channels and timer triggering, rather than using regular
> channels in continuous mode?
> Is there a big reason of doing so?
> Regards,
> Sergey
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]