I was finally successful to drive the clock how I wanted it and now I am going trying to drive a pwm servo. I already got the right frequency and pulse width which I checked with pickit2 logic tool. So when I connect the output pin to a servo the led which is also connected flickers really fast and the servo just spins around until it binds. My guess is that here is some external addon needed. Thanks for the help.