Setting up the DAC