cancel
Showing results for 
Search instead for 
Did you mean: 

I'm working on ADC (12 bit) in NUCLEO-L4P5ZG board. In that the ADC value is correctly showing Upto ADC_IN_10 channel, afterwards it is showing random values for channel 11-15 what might be the reason?

pvall.1
Associate II
 
4 REPLIES 4
Sarra.S
ST Employee

Hello @pvall.1​,

What values/ ranges are you getting?

Could you provide more details about the context, which ADC, ADC clock, using DMA?

You may also need to check if the ADC channels 11-15 are enabled in the code and properly configured

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi Sarra.S,

We are using 12 bit ADC with 3.3v Reference voltage, so the values are in range of 0 to 4095.

Settings of ADC are as follows

ADC mode:Single -ended

Prescalar :Asynchronous clock mode divided by 4.

Yes,ADC channels 11-15 are enabled properly.

Sarra.S
ST Employee

Hello again @pvall.1​ 

Make sure that the ADC clock is running at the correct frequency

Also, are you using your own design ?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It is running at correct frequency as we are getting values for remaining channels,I'm not understanding why is it not working for remaining channels.

Yes,I'm using own design.