When a pin is connected to a signal a write to the data register will be overwritten by the signal.
Are you trying to connect an LED to a PWM? That will work. Just connect the LED to the PWM output pin.
No, i am using this pin in temperature controller for drive pwm or relay output.
can i use this pin alternatively as pwm and relay output??