Arduino DUE Dac Speed


hello,

i use arduino dac function.

but wonder, have max. speed change of 500 hz, mean, if have value 255 (bit), takes minimum 2ms until can change value.

is possible change speed of dac ?

my code is:

 analogwrite(dac0,255);
  delay(1);
  analogwrite(dac0,0);
  delay(1);

this works fine, when use delay under 1ms, dont works.

the due datasheet doesn't specify "settle time" dac.   other arm processors have dac settle time of few microseconds.  not fast usb scope, drove dac0  high , low in loop 5us delay between analogwrite()  (12-bit resolution).  on scope rise , fall lines pretty straight, assume settle time on order of few microseconds due dac.  might accurately drive due dac 500khz.
the scope shows dac output clipped range of 560 mv 2.78v described in documentation.


Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > Arduino DUE Dac Speed


arduino

Comments