Setting up DAC