Skip to main content
Scott Dev
Senior
Aug 24, 2018 2:53 PM UTC
Question

Analogue input 40mv out.

Hi

I am using a stm32L433 100 pin with an external 2.5v reference chip connected to vref+. I have tried placing a voltage (tried different values) onto one of the a/d channel, but the result is 40mv low. I then programmed the D/A , which uses the same VREF+ and tied it to the input channel of the A/D. The value on the D/A is what I expect, but the A/D channel is still reading 40mv too low. Anyone any idea what this may be?

Many Thanks

Scott

    This topic has been closed for replies.

    7 replies

    waclawek.jan
    Super User
    Aug 24, 2018 6:39 PM UTC

    Missing or incorrectly performed ADC calibration (e.g. during VREF source startup or violated ADC voltage regulator startup time)? Too high signal impedance plus too short sampling time?

    JW

    Scott Dev
    Scott DevAuthor
    Senior
    Aug 24, 2018 8:04 PM UTC

    As I am using an external VREF (I have connected a 2.5v reference chip), I never done a calibration as I thought it was only for internal VREF?

    Thanks

    Scott

    waclawek.jan
    Super User
    Aug 24, 2018 8:38 PM UTC

    Okay, and if you stop thinking that?

    JW

    Scott Dev
    Scott DevAuthor
    Senior
    Aug 25, 2018 6:50 AM UTC

    "Okay, and if you stop thinking that?" , what does that mean?

    I added the calibration and it worked, I just thought this was for calibrating the internal VREF when not using an external reference.

    Thanks

    Scott

    waclawek.jan
    Super User
    Aug 25, 2018 8:36 AM UTC

    > "Okay, and if you stop thinking that?" , what does that mean?

     That was in reply to your previous:

    >> I never done a calibration as I thought it was only for internal VREF

    trying to suggest to do calibration which you did and it apparently helped. Please mark thread as resolved.

    JW

    Scott Dev
    Scott DevAuthor
    Senior
    Aug 25, 2018 4:29 PM UTC

    It works well, I simply thought when using internal reference voltage this needed but not when using an external reference voltage

    Scott

    Scott Dev
    Scott DevAuthor
    Senior
    Aug 25, 2018 4:31 PM UTC

    How do you mark the thread resolved?