2017-11-28 11:01 PM
Hi.
I'm using STM476 for reading ADC value.
If I try to read ADC ch continuously, I can see some noise at ADC port.
The ADC sampling time is set as 650 cycles at 80MHz clock speed and the noise interval is same with the ADC conversion cycle(8us).
ADC configuration is same as below. Could you give me some advice about this?
AdcHandle.Instance = ADCx;
AdcHandle.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1; /* Asynchronous clock mode, input ADC clock not divided */ AdcHandle.Init.Resolution = ADC_RESOLUTION_12B; /* 12-bit resolution for converted data */ AdcHandle.Init.DataAlign = ADC_DATAALIGN_RIGHT; /* Right-alignment for converted data */ AdcHandle.Init.ScanConvMode = DISABLE; /* Sequencer enabled (for multil channel conversion) */ /* Changed for multi channel */ AdcHandle.Init.EOCSelection = ADC_EOC_SINGLE_CONV; /* EOC flag picked-up to indicate conversion end */ AdcHandle.Init.LowPowerAutoWait = DISABLE; /* Auto-delayed conversion feature disabled */ AdcHandle.Init.ContinuousConvMode = ENABLE; /* Continuous mode enabled */ /* Changed for multi channel */ AdcHandle.Init.NbrOfConversion = 1; /* Changed for multi channel */ AdcHandle.Init.DiscontinuousConvMode = DISABLE; AdcHandle.Init.NbrOfDiscConversion = 1; /* Parameter discarded because sequencer is disabled */ AdcHandle.Init.ExternalTrigConv = ADC_SOFTWARE_START; /* Software start to trig the 1st conversion manually, without external event */ AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; /* Parameter discarded because software trigger chosen */ AdcHandle.Init.DMAContinuousRequests = ENABLE; /* DMA one-shot mode selected (not applied to this example) */ /* Changed for multi channel */ AdcHandle.Init.Overrun = ADC_OVR_DATA_OVERWRITTEN; /* DR register is overwritten with the last conversion result in case of overrun */ AdcHandle.Init.OversamplingMode = DISABLE; /* No oversampling */