Skip to main content
sadeghie_milad
Associate
July 12, 2016
Question

Vrefint _Cal on stm32f103

  • July 12, 2016
  • 4 replies
  • 2393 views
Posted on July 12, 2016 at 11:42

Hi 

I faced with a problem for read the Vrefint_Cal in stm32f103

I dont find  Its address  in flash,I read  datasheet and also I searched in the internet but I cant find it

can you help me for sovling this problem???

thank you very much   
    This topic has been closed for replies.

    4 replies

    Amel NASRI
    ST Technical Moderator
    July 12, 2016
    Posted on July 12, 2016 at 16:27

    Hi poursadeghi.milad,

    VREFINT_CAL is defined for STM32F0 and STM32F3, but not for STM32F1 (and STM32F4...).

    What do you need to do exactly?

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    slimen
    Visitor II
    July 12, 2016
    sadeghie_milad
    Associate
    July 13, 2016
    Posted on July 13, 2016 at 07:21

    Hi

    I use Stm32f103 64 pin, the Vref for this microcontroler connect internally to VADC

    VADC in my board has tolerance in difference times

    I need calibrate my vref with use the Vrefint

    in block diagram in datasheet there is a Vrefint , datasheet says you can read this voltage in channel 17 also the datasheet  is not given the value of Vrefint

    I want know what is usage the Vrefint that comes in datasheet

    and I know how can I do calibrate my vref????

    Regards

    Tesla DeLorean
    Guru
    July 13, 2016
    Posted on July 13, 2016 at 13:52

    The data sheet also says Vrefint should be 1.20V

    You'd sample this, get a value and then extrapolate that for a 4095 value, which would reflect the VREF being used. Simple math, right?

    VREF = (1.20 / (double)VrefintSample) * 4095.0;

    You'd then use this VREF value when doing your other ADC conversions.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..