Malcontent
New Member
I am using a 12F683 to log a charging capacitor and I am seeing glitches as shown in the attached picture.The code is in Basic as below.main: readadc10 1 ,ADCInput_4 Voltage_1 = ADCInput_4 * 50 Voltage_2 = ADCInput_4 * 3 High1 = Voltage_1 / 10000 Volt1 =High1 * 10000 Low1 = Voltage_1 + Voltage_2 - Volt1 Outputvolts = High1 * 10000 Outputvolts = Outputvolts + Low1 'sertxd(#W1,",",13,10) sertxd(#High1,".",#Low1," ",13,10) goto mainWhat is causing these changes in readings?Any help would be appreciated.Malcontent
Attachments
-
10.6 KB Views: 37