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.

Measure 1.2V at a ADC12 Input Channel

Other Parts Discussed in Thread: MSP430F5419A

Hello,

if i connect a capacitor (2.2uF) to the ADC12 input channel 8 (MSP430F5419A), and if I spend a little time, I measure a voltage of 1.2 at this port. Where does it come?

Listing of the code ADC12 configuration:

void main(void)

  WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
  ADC12CTL0 = ADC12SHT0_8 + ADC12ON;         // Sampling time, ADC12 on
  ADC12CTL1 = ADC12SHP;                     // Use sampling timer
  ADC12IE = 0x01;                           // Enable interrupt
  ADC12MCTL0 = ADC12INCH_8; 
  ADC12CTL0 |= ADC12ENC;
  P5SEL = BIT1;

  while (1)
  {   
     
    ADC12CTL0 |= ADC12SC;                   // Start sampling/conversion   
    while (!(ADC12IFG & BIT0));
  }
}

  • Well, channel 8 is the external reference. This pin is connected to the reference module as well as to the input logic. The input pin has a +-50nA leakage current that averages to zero at VCC/2.The reference module might have additional leakage currents.

    Then there is the input impedance of the ADC, so if no other voltage source is connected, you'll end up with some voltage that is a function of the ADC load and the leakage current functions. In this case 1.2V.

**Attention** This is a public forum