writing to dac working however too slow and interrupt requires refactor