Hi Sylvio. I had a similar problem with the 16F819. It turns out that before I could reuse that port as an output, I had to disable the PWM with
CCP1CON = 0 'TURN OFF PWM
Maybe this will help.