{"id":1008,"date":"2016-04-04T14:51:31","date_gmt":"2016-04-04T13:51:31","guid":{"rendered":"https:\/\/www.kanda.com\/blog\/?p=1008"},"modified":"2018-11-15T12:53:12","modified_gmt":"2018-11-15T11:53:12","slug":"pic16f887a","status":"publish","type":"post","link":"https:\/\/www.kanda.com\/blog\/microcontrollers\/pic16f887a\/","title":{"rendered":"PIC16F877A"},"content":{"rendered":"

The PIC16F877A (and earlier PIC16F877) are microntrollers supplied by Microchip. It is just one device among many PIC microcontrollers and it is a veteran chip compared with many others. There are lots of articles, projects and circuit diagrams available on the web that use the PIC16F877A so it seems to make sense to use it but should you still use this chip?<\/p>\n


\nThe quick answer is an immediate no. For a start, MPLAB, Microchip’s development environment, makes it easy to swap code to a different chip. This is especially true of the latest MPLAB X, including the XC8 C compiler. Next, there are a number of newer PIC’s with the same pin out so that the circuit layout would be the same as in any PIC16F877A diagrams.<\/p>\n

PIC16F877A compared to other 40-pin Microcontrollers<\/strong><\/p>\n

\"pic16f877a<\/p>\n

The code written for PIC16F877A can be easily swapped in MPLAB, the circuit diagrams are the same but what about price? The last time I looked other suitable PIC microcontrollers are a quarter of the price of the PIC16F877A. This is turning in to a no-brainer!<\/p>\n

What PIC could I use instead?<\/strong>
\nThe first obvious answer is the PIC16F887, which is a drop-in replacement. It has the same pin-out with ICSP pins, power and all port pins in the same place. The PIC16F877A has these features that we will want to reproduce for a start<\/p>\n