Hey,
I was wondering if you could help me with an actually really simple project.
I am trying to measure a resistor with the slope A/D technique using Energia (http://www.ti.com/lit/an/slaa129b/slaa129b.pdf) - I added as attachment my very! basic code in order to make my point.
Basically, a capacitor (470uF) builds with a resistor (DC voltage) a classic circuit. The capacitor charges and discharges. The discharge time is once taken with a precise 100 Ohm resistor and afterwards with a random resistor I want to measure with the MSP430.
Although I measure different discharge times, I only get a time factor of around 7 and it should be one around 9.2 since my "random" resistor is 918 Ohm.
I also considered the charging time with 2500ms since 5 tau for 918 Ohm and 470uF are 2.16s. The high capacity affects a considerable measuring time, but I only try to proof the concept and it does not work. Measuring with the factor of 7 and a 100 Ohm resistor -> a 700 Ohm resistor, although I do have a 918 Ohm resistor is not satisfying and does not fulfill my specifications of +-5 Ohm.
Do you have any idea what I missed to consider or might influenced my circuit? I just want to measure accurate a resistor using Energia - a high language. I also tried a resistor bridge.
Best regards
Markus