On the 1281ae, accuracy degrades (and is lower than commanded) as the commanded voltage nears 5V--indicating that the caps can't charge.
There are no other tasks running.
At a 0.8 (4V) desired output, for example, I get 3.7V. With 0.5 (2.5V) I get 2.37V. This obviously is a very large deviation.
At 0.2 (1V) it is okay.
I have 1uF and 220 Ohms, leading to a x2 multiplier for a 0..10V range--thus a proper buffer exists. I'm measuring with a nice Fluke directly after the filter, so the meter is high impedance as well.
Taking down to the purest level, even the following snippet in Main() is not accurate:
Code: Select all
public DACacc as single
DACVout = 0.5
do
putDAC DACpin, DACVout, DACacc, 10
sleep 0.0
loop
Anyone have thoughts on what I might be doing wrong?