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.

MSP430FR5869 Sawtooth Wave on ADC Sample

Hi team,

We're noticing a sawtooth wave when sampling with the ADC on P3.1. This sawtooth wave only occurs when the sample is taken. However this issue does not occur when we replace 470K with 100K and the 249K with 51K.

What are some reasons as to why this may be occurring with one set of resistor values but not with the other?

I've attached a picture of the waveform below.

Regards,

Akash Patel

  • This is how unbuffered SAR ADC of msp430 works. Try to measure input voltage which is equal to VREF and you will see different kind of sawtooth.

    Sample capacitor have some residual charge after previous conversion. Voltage of ADC sample capacitor depends on voltage sampled at previous conversion, but usually it tends to reach VREF/2. This explains sawtooth when you sample voltages below VREF/2. This also explains why there's chapter in ADC documentation "sample time considerations". By reading particular chapter you also will understand why sawtooth decrease when you decrease impedance of ADC input circuit - in such case sampling capacitor reach input voltage faster,

  • Hello Akash!

    First, thank you for providing a very detailed scope shot and circuit.

    During sample time, an internal switch allows the input capacitance to be charged, which is reflected in the sawtooth wave. The required time to fully charge up the capacitor is dependent on the external analog front-end (AFE) connected to the ADC input pin. However, the sample time is directly impacted by the source resistance. As you observed, using higher-resistance resistors increases the required sample time. With the lower-resistance resistors, the input current is higher and thus charges up the input capacitor more quickly.

    Take a look at Section 2.2 Selecting the Right Sample-and-Hold Time (SHT) in the Designing With MSP430FR58xx/FR59xx/68xx/69xx ADC app note. It shows an analog input equivalent circuit model (including source resistance and source voltage) and also an example calculation of the minimum sample time. For the internal capacitance and resistance, refer to Table 5-22 in the datasheet.

    Hope this helps!

    Regards,

    James

    MSP Customer Applications

  • Hi Akash,

    After looking further into this issue, the sawtooth waveform seems to be generated by a combination of two things here:

    [1] source resistance higher than the limit combined with [2] a decreasing input voltage where the internal sampling capacitor has been charged up to a higher voltage from the previous sample than the input voltage at the time of the present sample.

    When the the internal switch is turned on for the sampling time, the voltage measured at the input starts to rise, which makes sense theoretically (since the internal voltage would be higher than the input voltage, and current would start flowing outward from a higher potential to a lower potential). If the source resistance is low enough, I could see where additional drive strength would prevent this scenario from happening or at least minimize it.

    Regarding the source resistance (Rs) limit, it's mentioned in the app note mentioned above, but surprisingly not in the datasheet. I've requested that this limit (here, it's Rs < 10k Ohms for the minimum sample time equation) be included in the datasheet as well.

    Regards,

    James

**Attention** This is a public forum