PWM output and timer works. I finally understand the timer concept!