DAC reference voltage

Hello,

I new with the arduino Due, I want to use the DAC port using 0-1v. The problem I have is that when I send a 0 to the dac's value I recived 0.5v as output,.
Then, when I sent a 1463 dac's value, I have a 1.5V as a result.
If I use a 4096 value, the out value is 2.8V, I think thats ok because I read it in this forum.

Hope you can help me. Thanks.

The Due DAC outputs voltages from Vcc/6 to 5/6*Vcc, you cannot change this AFAIK.
If definitely cannot do rail-to-rail, its designed primarily for audio I think.

formula for predicting DAC voltage out:
Vout_dac = Vcc/6 + Vcc2/3Digits/4095

Note: Vcc = 3.29 (V) was plugged into the formula above to predict DAC outputs

DAC Digits DAC Vout Measured (V) DAC Vout Predicted (V)
0 0.5535 0.5483
1024 1.1000 1.0968
2048 1.6470 1.6453
3072 2.1932 2.1937
4095 2.7397 2.7417
[/table]

BTW I don't recommend using the built-in DACs on the Due, they are nominally 12 bit
but are really noisy, probably about 8 or 9 bit equivalent. They seem to suffer from
sparkle codes.

Thanks for all you comments... I really appreciate it, ypu help me a lot