Or use a PNP, or invert the signal with another transistor or use an 16F88, 16F819, 16F1826 etc etc.
If buying new, go for the enhanced 16F1xxx series, cheaper and better in all respects I can think of.
Selecting 8-bit chips with 18 pins in the Microchip Advanced Part Selector, gives 17 different parts, pick one and look at the datasheet.
/Henrik.




Bookmarks