added DAC code with offset clock
added DAC code with offset clock