Hi!
I participated in writing this external audio capability so I am also interested in knowing if that does work everywhere (except ESP…).
To begin:
Yes, the call is hidden in MozziGuts. If you do it in the updateAudio you have no guarantee that it will actually be at the correct frequency as this function is running as fast as it can as long as the buffer is not full.
You changed mozzi_config.h so normally it should work but I have to tell that I never tried on Duemilanove, but as this is an AVR that should work.
What to try:
To check if you are correctly using the external audio output, try to make it outputting on an analog pin (analogWrite(…) ) just to check if it does work.
Can you successful output things on the DAC without mozzi but using the TWI lib?
A few remarks:
@Staffan: normally, as you are outputting 12 bits (instead of something like 8/10) you should have a great improvement on audio quality. Also, it is analog, meaning that you do not need a low-pass to remove the PWM carrier frequency, there is still a carrier but it should be way less present,
This DAC is an I2C dac… From my last tries, I could not get this protocol to go fast enough (even with tweakings) for outputting at audio rate… SPI is better for this. On this, I am now experimenting with a DAC from the same serie (MCP4822) outputting 24 bits audio. With the noise this level of accuracy is not reached however… This is done via SPI and I saw no clear performance differences with PWM. The sounds seems way better, but I should plug a scop to check that properly (ongoing).
Not much but hope it helps!
Tom