Hello Puiu,
The PWM should be taken care of for you, you don't need a seperate PWM component in your program.
You do however need to use the PWM and TX pins on seperate pins on the MCU.
The pins then need to be connected together using a diode as shown here.

- RC5_TX.jpg (9.18 KiB) Viewed 243 times
Hope this helps.