I'm using analogWrite(A0, value) and my sinewave output from the lookup table looks great (Vmax = 3.3V) when "value" is no more than 255. However when I put a decimal number larger than 255 I get odd results. The output jumps around randomly between 0 and 3.3V for anything over 255. In other words, I'm not getting a linear voltage output as I increase "value" over 255.
This seems to adhere to the PWM output from boards that don't have a DAC but Tian has a 10-bit DAC and I should be able to use 0 through 1023 for "value".
Any ideas why this is happening? Thank you.