updated macro to create output dac register