1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

differences between pic16f877a and pic16f887

Discussion in 'Microcontrollers' started by KHAIRUL AMRI, Mar 31, 2014.

  1. KHAIRUL AMRI

    KHAIRUL AMRI New Member

    Joined:
    Feb 24, 2014
    Messages:
    3
    Likes:
    0
    hello there, can somebody tell me about the differences between pic16f877a and pic16f887?? i've read the article on the internet but i actually didnt understand well..

    1) is there any differences regarding the pinout for both microcontroller?
    2) can i go through the C languagecoding between them? In this case i have used the same coding, but can i change the microcontroller between 16f877a and 16f887?
    3) what are the main differences between them?

    somebody please answer me, im newbie here.. :)
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,310
    Likes:
    914
    Location:
    Rochdale UK
    1) No. there is no difference with pinout..
    2) Yes! Code written in C for the pic16f877 will work on the pic16f877a ( only a couple labels need changing, if you use them, they will be identified by the compiler )

    3) I think the only difference was the kind of code memory used...
     
  3. JimB

    JimB Super Moderator Most Helpful Member

    Joined:
    Sep 11, 2004
    Messages:
    6,393
    Likes:
    593
    Location:
    Peterhead, Scotland
    ONLINE
    16F877 33 I/O pins
    16F887 36 I/O pins

    16F877 8 channels ADC
    16F887 11/14 channels ADC

    16F887 has internal 8Mhz oscillator

    And maybe a few other things, if you want more detail download the datasheets from www.microchip.com

    JimB
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. skimask87

    skimask87 Member

    Joined:
    Mar 23, 2014
    Messages:
    128
    Likes:
    10
    Location:
    Logan (Minot), ND

    http://ww1.microchip.com/downloads/en/DeviceDoc/41291D.pdf

    Page 273, differences right there in the datasheet
     
    • Informative Informative x 1
  6. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,310
    Likes:
    914
    Location:
    Rochdale UK
    Ooops again.... I read the post wrong pic16f877a - pic16f887... I did pic16f877 to pic16f877a

    Sorry Still my post is almost correct other than the extra ADC's on port B the Ansel registers need to be set.. Other wise the code is the same...
     
  7. JimB

    JimB Super Moderator Most Helpful Member

    Joined:
    Sep 11, 2004
    Messages:
    6,393
    Likes:
    593
    Location:
    Peterhead, Scotland
    ONLINE
    Well done!
    I looked at the datasheet(s) but missed that.

    JimB
     

Share This Page