This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430FR6989: Constant voltage reference on physical pin for NTC sensor

Part Number: MSP430FR6989

Tool/software: TI C/C++ Compiler

Hello,

please visit my old TI forum post related to same topic :

https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/696279

Please refer below schematic :

I'm use Energia IDE.I want a static Vref constant internal voltage for NTC and NTC working on coin cell.

I refer link : energia.nu/.../ . But on physical P1.1 pin didn't get any reference voltages.

So,How could I generate Internal reference and check physically on reference pin P1.1(Vref+) ?

and Internal reference means it generate internal reference for ADC or we can check voltage physically on respective pin P1.1? Please clarify this confusion.

Thank you.

Regards,

Pratik

  • Hi Pratik,

    From your schematic, REF1.2V is connected to P1.4 which is not correct and it should be connected to P1.1.

    Ling
  • Hi Ling,

    Thanks for responce.

    Yes, I use P1.1 pin(MSP430FR6989) for Vref+ but schematic MSP430FR4331 use for reference only.

    Now, on pin P1.1 I got a 1.19V through code part but I got an one issue here :

    void Vref_ON()
    
    {
    
     while(REFCTL0 & REFGENBUSY);                                     // If ref generator busy, WAIT
    
     REFCTL0 |= REFVSEL_0 + REFON + REFOUT;             // Enable internal 1.2V reference
    
     while(!(REFCTL0 & REFGENRDY));            // Wait for reference generator
    
                                                                                    // to settle
    
    }
    
    void Vref_Off()
    
    {
    
     REFCTL0=1;
    
    }
    
    void setup()
    
    {
    
    Vref_ON();
    
    Serial.begin(9600);
    
    }
    
    void loop()
    
    {
    
      // int val = analogRead(A11);    //*****  When I uncomment this portion then on P1.1 Vref+ not get (0.0V) otherwise got (1.19V) *****
    
     // float voltage = val * (1.2 / 1023);
    
     // Serial.println(voltage*1000);
    
     delay(500);
    
    }

    Please mention above comment and code.

    Why this issue happen ?

    Regards,

    Pratik

  • Hello,

    Anybody please reply me on my last post.

    Thanks in advance.

    Regards,

    Pratik

  • Hi Pratik,

    What is the ADC reference setting?

    Regards,
    Ling

**Attention** This is a public forum