added Code for spi dac