Quote Originally Posted by Melanie View Post
> Has the PIC16F876 been replaced by anything, as I seem to be having trouble buying them.

Yes, the 16F876A replaced it....
You can also migrate to an 18F242, 18F2420 or any of that family as they're all pin compatible but need a litte more code adjustment...
My guess is that the 16F866 is probably going to be the 16F876A replacement--and they are cheaper than either of the older parts. It will possibly require more edits than going to the A part, but not as many as going to the 18F part.

Note that 18F parts, given the same specs, are like having larger code space. They don't have code pages, and they have almost twice as many asm commands. You can expect a 20% savings right off the top. I also believe the 18F2420's are facing impending obsolescence, as the 18F24K20 (I think that's the new part...) has migration instructions to it. And it's cheaper.