@Gordon thanks the change makes a big difference but..
Previous error rate was 48% now about 5%
There is a consistency with a lot of the errors with & without prefetch most are
41, -40, -81 , -122 to reference
With prefetch off I did 600 readings ever 10 secs for a range of reference voltages
17 times error was 41
15 times error was -40
1 time error was -81
1 time error was -122
This is still to high for some of my projects.
So I might need the addition of Averaging of N-X ADC samples as ST artical?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon thanks the change makes a big difference but..
Previous error rate was 48% now about 5%
There is a consistency with a lot of the errors with & without prefetch most are
41, -40, -81 , -122 to reference
With prefetch off I did 600 readings ever 10 secs for a range of reference voltages
17 times error was 41
15 times error was -40
1 time error was -81
1 time error was -122
This is still to high for some of my projects.
So I might need the addition of Averaging of N-X ADC samples as ST artical?