Hi,
Some PICs have an open drain output (say PORTA.4). This means that it has only the lower side N-Channel MOSFET inside. And according to a Microchip FAE this can tolerate upto 8 volts safely. Hopefully it should not be a problem with your buzzer and 9v battery.
Bookmarks