Does that tell me the PWM output frequency?For accomplish this resolution arduino has to use the Timer1, that has the 16bit resolution. Arduino clock runs at 16MHz
Does that tell me the PWM output frequency?For accomplish this resolution arduino has to use the Timer1, that has the 16bit resolution. Arduino clock runs at 16MHz
I'm not suggesting using two DACs in interleaved fashion or any other method that will produce non-monotonicity in a single ramp. One generates the 10 mV steps - that's all it ever does. The other generates the offset for the ramp and its output remains fixed for the duration of the ramp. Quad 12 bit DACs don't cost a lot and two sections could be used for fine and coarse offset adjust. Of course the voltage reference is critical in all of this, as are components with good initial tolerance and low drift with time and temperature.If 16 bit PWM takes 16 Mhz clk, and its run at its max period then
f = 16 Mhz / 16 bits = 244 Hz
Problem with using two dacs is it will no longer be monotonic.
