PIC microcontroller pin stopped working
The PIC16F877A pins can source or sink no more than 25 mA. 

It may be possible to damage the device by drawing excess current from an IO pin. for example by driving a LED without a current limiting resistor.