write and read dac parameters