I am using TimerA1 to generate a PWM output. I am using the timer in up-mode. I am basically using it to make warning beeps to drive a piezo. The frequency is about 2kHz.
In this mode, the counter resets when it reaches the tic count in TA1CCR0. I am using TA1CCR1 as the compare registers. I am getting the waveform and duty cycle that I want. But, curiously, the output is always set to one (1) in between PWM bursts. I was using OUTMOD_7. So, I figured that OUTMOD_3 would reverse the resting state. OUTMOD_3 inverted the waveform BUT, the resting state was still a one. I put it back to OUTMOD_7.
How can I force the resting output state to be zero?
Jim