I seem to reached my personal limit and that of working with 8 bit integers within PICAXE Editor 6.
My problem is that when I read an ADC input (adc_C.1), I get +/- 3 jitter on the value read into the variable (varV). Heavy lowpass filtering 10k/10u has little impact. Layout is relatively good with lots of bypasses and a dedicated 3v3 regulator for the 20M2.
I could use 10 variables to average over 10 ADC samples but I don't have them free to use as they have other functions in the overall program. Can anyone show me how I could use a BASIC command sequence to achieve this without interfering with the operation of the rest of the flowchart function?
cheers
My problem is that when I read an ADC input (adc_C.1), I get +/- 3 jitter on the value read into the variable (varV). Heavy lowpass filtering 10k/10u has little impact. Layout is relatively good with lots of bypasses and a dedicated 3v3 regulator for the 20M2.
I could use 10 variables to average over 10 ADC samples but I don't have them free to use as they have other functions in the overall program. Can anyone show me how I could use a BASIC command sequence to achieve this without interfering with the operation of the rest of the flowchart function?
cheers