....hum, sorry for my silly question :o
Just measured the ports and they need to be reset.
Thanks for noticing Ioannis ;)
When the souder is not used, I set CCP1CON register to 0.
Is this okay?
Thanks Mr.Flotulopex and Mr.Ioannis !
It's verry usefull.
Just as a precaution I would recommend to have the outputs at the same logic level when you do not want the sounder work. Thats because piezo do not like DC voltage.