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.

MSP-EXP430FR5994: Driverlib - ADC Reference Voltage Selection to 2.5 Volt (MCU Internal)

Part Number: MSP-EXP430FR5994

Hi,

  I am trying to set the ADC reference voltage to 2.5V (MCU internal) using driverlib for MSP430. I see that in function ADC12_B_configureMemory() the parameter 'ADC12_B_configureMemoryParam' is having one member 'refVoltageSourceSelect'. I believe that this is the variable to be set to have different configurations of the reference voltage settings. The possible values I find (from file adc12_b.h) are:

ADC12_B_VREFPOS_AVCC_VREFNEG_VSS [Default]
ADC12_B_VREFPOS_INTBUF_VREFNEG_VSS
ADC12_B_VREFPOS_EXTNEG_VREFNEG_VSS
ADC12_B_VREFPOS_EXTBUF_VREFNEG_VSS
ADC12_B_VREFPOS_EXTPOS_VREFNEG_VSS
ADC12_B_VREFPOS_AVCC_VREFNEG_EXTBUF
ADC12_B_VREFPOS_AVCC_VREFNEG_EXTPOS
ADC12_B_VREFPOS_INTBUF_VREFNEG_EXTPOS
ADC12_B_VREFPOS_AVCC_VREFNEG_INTBUF
ADC12_B_VREFPOS_EXTPOS_VREFNEG_INTBUF
ADC12_B_VREFPOS_AVCC_VREFNEG_EXTNEG
ADC12_B_VREFPOS_INTBUF_VREFNEG_EXTNEG
ADC12_B_VREFPOS_EXTPOS_VREFNEG_EXTNEG
ADC12_B_VREFPOS_EXTBUF_VREFNEG_EXTNEG

  From this, I am unable to figure out which one is for what reference voltage selection. I need to set 0 volt (VSS) as ADC Negetive Reference & 2.5 V (MCU internal) as ADC Positive Reference. I have tried finding the solution/info in MCU datasheet as well as MCU user guide (Chapter 7), but unable to figure out the exact location of the details. Could anyone point me to the section of datasheet or user guide detailing into the matter?

-

Thanks

-

Regards

Soumyajit

**Attention** This is a public forum