{"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 <\/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> and this pin-out<\/p>\n <\/p>\n How does PIC887 Compare?<\/strong><\/p>\n The PIC16F887 has all these features, including the same code size and pin-outs but also has these improvements<\/p>\n PIC16F887 Pin-out<\/strong><\/p>\n <\/p>\n The pin layout is the same but the 16F887 also has extra features on some ports, for example pin 37 on 877A is just RB4, on 887 it is also an extra ADC pin, AN11.<\/p>\n It is easy to swap from PIC16F877A to PIC16F887, with no changes to circuits and schematics, it is simple to change device in MPLAB and it is much cheaper. This is such an obvious update that trying to use a 16F877 or 16F877A does not make any sense.<\/p>\n Buy PIC16F887 Microcontroller Other PIC Devices<\/strong><\/p>\n I hope you agree that we have proved that moving to a 16F887 is a sensible idea on cost grounds alone but can we go further and get even more bang for our buck without lots of redesign? Microchip have not stood still and have produced lots of new PIC16F families with the designation PIC16F1xxx. The best contender in 40-pin layout is probably the PIC16F1789, which costs the same as a PIC16F887 and has the same pinout.<\/p>\n It has these advantages<\/p>\n Ok, it has the same pin-out, 4 times the code space, lots more SRAM, better ADC, faster clock, wider voltage range and it costs the same money. Must be worth a look. The code space and SRAM size are important if you want to program in C. The C compiler eats SRAM and 384 bytes on 16F887 is not enough for a really serious project. With the advance of more battery applications, power consumption is more important than ever and PIC16F1789 (or even better PIC16LF1789) are far more efficient than older PIC microcontrollers.<\/p>\n Conclusion<\/strong><\/p>\n It does not make sense to use a PIC16F887A on cost grounds alone. The PIC16F887 is a better choice immediately.\u00a0 With very little more work, you can update to a PIC16F1789 that has even more advantages. Incidentally, the same applies to PIC16F84 or PIC16F84A, another older chip with many code examples. You are much better off moving to a newer 18-pin chip, such as the PIC16F1827 for the same reasons described here, lower price, more features, lower power consumption and more code space.<\/p>\n Our latest PIC training kit uses the PIC16F1789 and is packed with tutorials and example projects in assembler and C to get you going with this latest PIC microcontroller<\/a>. It includes latest PICkit4 debugger and programmer.<\/p>\n PIC Microcontrollers for Beginners Related Information<\/strong><\/p>\n PIC Programmer Choices<\/a><\/p>\n Which PIC Microcontroller to Choose?<\/a><\/p>\n Is MPLAB X any Good?<\/a><\/p>\n <\/p>\n PIC Programmer Range<\/a><\/p>\n","protected":false},"excerpt":{"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 … Continue reading PIC16F877A<\/span>
\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\n
\n
\n
\n<\/a><\/p>\n\n
\nConverters (DAC)<\/li>\n
\nBuy PIC16F1789 Microcontroller<\/a><\/p>\n
\n<\/a><\/p>\n