Try making the pin INPUT right after each soundgenerating command.
You might also get away with connecting it PortA.1-capacitor-piezo-PortA.1(on other pic). This will only work if both pins are outputs and it has the potential to make very interesting sounds if both pics try to beep at the same time.
Bookmarks