A piece of good advice...
Whenever you're driving anything external to the PIC, it's a good idea to throw an in-line resistor between that pin and the device. Generally, a PIC's output is limited to about 25mA, therefore, at 5v, you'll want about a 200 ohm resistor on there, just for protection, limits the current to right at 25mA @ 5v. Not only will it protect the pin quite a bit, but it'll help stifle some noise/ringing, that sort of thing.
Of course, it always depends on what you are driving, but, I keep a bunch of 100ohm DIP resistor packs handy just for that purpose alone.
And another thing, if you did fry the output high driver, chances are you can still use that pin if you put a pullup on it, treat that 'dead pin' like an open-drain output. At least you'll get the use out of it again.
Bookmarks