PWM Programming Help

There's nothing in the code that would cause that. How is the LED connected?