In my application I would like to use the
- ADC based on a reference voltage of 3.3V
- DAC based on a reference voltage of 1.2 V

Using the core library (I guess) I only can select the (internal) reference voltage by the call to
analogReference(1); // for 1.2V, or
analogReference(0); // for 3.3V
but as far as I understood this sets the reference voltages for ADC and DAC in the same way.

The only solution I can imagine is to rewrite "analogWriteDAC0()" and to set the DAC reference voltage by
DAC0_C0 = DAC_C0_DACEN; // 1.2V
DAC0_C0 = DAC_C0_DACEN | DAC_C0_DACRFS; // 3.3V

Is there any possibilty to set different values for DAC and ADC?

Regards,
Peter