AnsweredAssumed Answered

analog to digital converter MCF52259 with MQX v3.6

Question asked by RICK BOURGEOIS on Feb 17, 2012
Latest reply on Feb 22, 2012 by RICK BOURGEOIS

Does anyone know what, in the ADC_INIT_CHANNEL_STRUCT does "number of samples" and "circular buffer size"

do?

Here is my set - up:

I copied it from the examples given.
 

const ADC_INIT_CHANNEL_STRUCT adc_channel_vinp =
{
ADC_SOURCE_AN7, /* physical ADC channel */
ADC_CHANNEL_MEASURE_ONCE| ADC_CHANNEL_START_TRIGGERED , /* runs continuously after IOCTL trigger */
10, /* number of samples in one run sequence */
0, /* time offset from trigger point in us */
A2D_PERIOD_US, /* period in us (= 0.5 sec) */
0x10000, /* scale range of result (not used now) */
10, /* circular buffer size (sample count) */
ADC_TRIGGER_8, /* logical trigger ID that starts this ADC channel */
#if MQX_USE_LWEVENTS
&evn_vinp
#endif
};

 

I find that my results are "noisy". I was wondering (hoping) if this is some sort of filter.

Outcomes