Go Down

Topic: DAC support (Read 15 times) previous topic - next topic

smay4finger

I made a bug report here: http://code.google.com/p/arduino/issues/detail?id=1092

Please use the patch attached to the ticket. There is also a bugfix regarding corruption of the data register, when writing too fast.
--
member of Attraktor e.V. in Hamburg, Germany
the largest makerspace in northern Germany
come in and join us

cmaglie

C.

parasound



"I tried the DACC on the Arduino Due, but it doesn't work as expected. I used the function analogWrite() for setting a new DAC value. The following code will work as expected:"

Code: [Select]
byte value;
void loop() {
  analogWrite(DAC0, value++);
}


Hello, when i test the DAC on the DUE i measured an Outputvoltage from 0,55V (value 0) to 2,77V (value 255). I thought the DAC has a range from 0V to 3,3V?! Do anybody knows more or can help me?

greets
parasound

andy_g

"Hello, when i test the DAC on the DUE i measured an Outputvoltage from 0,55V (value 0) to 2,77V (value 255). I thought the DAC has a range from 0V to 3,3V?! Do anybody knows more or can help me?"

Hi all!
I would be interested in this too. Could not figure out yet why DAC range ist approx. 0,54V - 2.74V (both channels).
andy_G

wibauxl

Hi parasound and andy_g,

I could find no information about the DAC range in the SAM3X datasheet.
But on page 1059 of SAM3S datasheet, it is said that the voltage range of the DAC is from (1/6) x VADVREF to (5/6) x VADVREF.
So I suspect, the same applies to SAM3U, and range is 1/6 x 3.3V = 0.55V to 5/6 x 3.3V = 2.75V, which is verified by your measures.

wibauxl

Go Up