cancel
Showing results for 
Search instead for 
Did you mean: 

ADC conversion is not stable

Fabio Malatesta
Associate II
Posted on October 10, 2017 at 16:26

Hello!

I'm using XPC56xL minimodule on the XPC56XX motherboard.

I slightly modified the SPC56ELxx OS-Less ADC Test Application to print the ADC conversion values on the UART

The issue I noticed is that the value of the conversion is not stable: for example if I print 15 measures (all of them done without changing the trimmer position) I get the following result (in hexadecimal):

ADC Value:

278

279

274

278

277

274

272

272

275

278

276

274

276

276

278

276

So it seems that the 4 least significant bits are given only by the noise. Since i read on the reference manual that the ADC has 12 bits resolution, i would like to know if there is a strategy to keep those bits stable.

Thank you in advance!

kind regards,

Fabio
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on October 13, 2017 at 10:28

Hello Fabio ,

I have checked with ADC Experts on 12 bits conversion

the results below are good.

ADC Value: (4095 max)

278

279

274

278

277

274

272

272

275

278

276

274

276

276

278

276

    Best Regards

       Erwan

View solution in original post

5 REPLIES 5
Erwan YVIN
ST Employee
Posted on October 11, 2017 at 08:55

Hello Fabio ,

For a normal conversion , you have to increase PSAMP it is more stable.

0690X00000608ZDQAY.png

Could you increase it ?

Sorry, The RM is not accurate for this point.

       Best regards

             

                       Erwan

Posted on October 11, 2017 at 16:18

Hello Erwan,

Thank you for your help but the situation hasn't changed: i tried several values for PSAMP (also the maximum) but those 4 LSB are still unstable.

The value should be stable, because it simply depends on the value of the trimmer resistance.

Do you have any further suggestion?

Thank you in advance for your support!

Kind regards,

Fabio

Posted on October 11, 2017 at 17:15

Hello Fabio ,

I am checking with ADC experts.

         Best regards

                    Erwan

Posted on October 13, 2017 at 10:28

Hello Fabio ,

I have checked with ADC Experts on 12 bits conversion

the results below are good.

ADC Value: (4095 max)

278

279

274

278

277

274

272

272

275

278

276

274

276

276

278

276

    Best Regards

       Erwan

Posted on October 13, 2017 at 11:15

OK thank you Erwan!

Best regards,

Fabio