ezieragabriel / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

DACC: both channels not working on Arduino Due #1092

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Given the following code:

byte value;
void loop() {
  analogWrite(DAC0, value++);
  analogWrite(DAC1, value * 2);
}

The expected signal is available at DACs first channel, on the second channel 
nothing happens.

Attached you will find a patch that fixes the analogWrite() function in 
wiring_analog.c. This will fix the initialisation of the DACC and fix the 
corruption of the DACCs data register when pushing data too fast.

Original issue reported on code.google.com by smay5...@googlemail.com on 2 Nov 2012 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
Merged, thank you.

https://github.com/arduino/Arduino/commit/a72cfc30878969b4feee065f22456e547375a1
32

more details here:
http://arduino.cc/forum/index.php/topic,129765.0.html
C

Original comment by c.mag...@bug.st on 3 Nov 2012 at 7:22