16F877 vs. 16F877A


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I just searched through my data sheet and I don't see anything specific to the 877A.
    Huh? I thought the PIC16F877A Datasheet is ENTIRELY DEVOTED to the PIC16F877A!!!

    Look at the section on Comparators (section 12), look at the Voltage Reference Module (section 13).

    Datasheet=Dowloaded from Microchip
    Datasheet 877A < > Datasheet 877
    Datasheet < > PBP Manual

    adcon1=7 is essentially the same as ADCON1 = 1110 right?
    Ugh.... no.

    adcon1=7 is the same as ADCON1=%00000111... note the % in the statement specified BINARY, whilst the absence of anything implies DECIMAL.

    ADCON1=1110 is the same as ADCON1=%10001010110... now you might find that the ADCON1 register just doesn't have that many bits...

    I am not a complete loser am I?
    I don't know you well enough to validate that statement! But hey, we've all been there sometime.

  2. #2
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Huh? I thought the PIC16F877A Datasheet is ENTIRELY DEVOTED to the PIC16F877A!!!
    You are correct they look so similiar I am so used to looking at just the 16f877 same thing happened when I was ordering too.

    Quote Originally Posted by Melanie View Post
    Ugh.... no.

    adcon1=7 is the same as ADCON1=%00000111... note the % in the statement specified BINARY, whilst the absence of anything implies DECIMAL.

    ADCON1=1110 is the same as ADCON1=%10001010110... now you might find that the ADCON1 register just doesn't have that many bits...
    Again my lack of posting correctly. I meant to say
    ADCON1=%000001110
    I abbreviated that I was trying to imply a decimal value of 111 my mistake I should have been more concise.

    I want to use RA0 as my analog in thats not a problem with the 877A is it?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Stop messing with ADCON1. If it worked for the 877 it'll work for the 'A'.

    Just deal with CMCON and CVRCON.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    You might have some issue with winpic software. If I remember correctly, there's a slight difference in the programming between 16F877 and 16F877A.

    Make sure winpic support the A version or you select it before programming your PIC, and try to do a programming check.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Stop messing with ADCON1. If it worked for the 877 it'll work for the 'A'.

    Just deal with CMCON and CVRCON.
    Will do I just wanted to double check myself making sure I had that set correctly which it's apparent I do.

    By default it looks like according to the 16F877A (I just downloaded the correct data sheet) that CVCRON by default is off so I need'nt worry about that correct?


    You might have some issue with winpic software. If I remember correctly, there's a slight difference in the programming between 16F877 and 16F877A.

    Make sure winpic support the A version or you select it before programming your PIC, and try to do a programming check.
    I checked to make sure both microstudio and winpic have the 877A listed and made sure they were selected when I compiled and uploaded. FYI. WinPic auto detected the 877A and set itself.

    Thanks all

    David

Similar Threads

  1. 16f877 and ps/2 keyboard error???
    By boraciner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th July 2009, 08:14
  2. help my bluetooth and PIC 16F877A?
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2008, 06:52
  3. Replies: 32
    Last Post: - 23rd March 2007, 04:01
  4. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52
  5. 1st 16F877A program in PICBasic
    By Borisw37 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th January 2005, 04:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts