I am using an XMEGA C3 Xplained board, and ASF, having setup port E pin 0 as a PWM output pin, and run a PWM sequence using pwm_init, pwm_start and pwm_stop; it works fine.
However, after the pwm_stop, the output is random high or low, and I need it to always be high when it stops. I have tried various ways to drive the pin high, but nothing seems to make any difference. It's just random.
What registers do I need to set, or what function call to make, to drive the pin high, after having used it as a PWM-output?
I am a n00b with Atmel. ;)