Microcontroller DAC glitch problem