PIC16f877-20 to a PIC16f877A I/P Disaster


Closed Thread
Results 1 to 18 of 18
  1. #1
    andyf's Avatar
    andyf Guest

    Default PIC16f877-20 to a PIC16f877A I/P Disaster

    Just changed my PIC16f877-20 to a PIC16f877A I/P

    Epic 2.45 fails to verify the programming of the PIC16f877A I/P.

    I use In circuit serial programming.

    I get code verify errors at 0000 and so on.

    I have re-compiled my code using Pic Basic Pro 2.45

    I have sellected PIC16f877A in Epic

    Any Idea's?

  2. #2
    Join Date
    Feb 2003
    Location
    Delaware
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    If you use in circuit serial programming then you need to load the bootloader file for the 16F877A -20 as well as selecting the 16F877A.

    Hope this helps.

    Joe

  3. #3
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default PIC16f877-20 to a PIC16f877A I/P Disaster

    Hi Joe,

    I have to load a what?

    :-)

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Have you tried programming this 877A in an EPIC zif socket?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default

    I dont have a zif, its sitting in a solderless breadboard directly in the place where the 16f877 was, I keep trying idea's, swapping them around, reloading the appropriate hex file but still get the error when I verify.

    I am using conventional In circuit programming, hardly any components on the breadboard and smooth voltages.

    What works perfectly for the 877 does not for the 877A.

    Tried erase before write.

    Made sure I have the low-voltage programming pin (RB3) pulled to
    ground when programming the device.

    Above it was suggested about the bootloader, is a bootloader required if using the older in circuit programming or on the 877A must it be used no matter how, just a thought.

    Its doing my head in, got a project on the go and cant store the code in the chip :-(

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Try to program it in-circuit without the crystal connected.

    Try turning off the EPIC verify option. Then see if your code runs as expected.

    Does either work?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default

    Tried it Bruce and it made no difference, am going to cry soon.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you turn OFF the EPIC verify option you still get a "verify" error?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  9. #9
    Join Date
    Feb 2003
    Location
    Delaware
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by andyf
    Hi Joe,

    I have to load a what?

    :-)
    What program are you using to program your PIC? Is it a bootloader?

    If you are programming your pic onboard thru a serial cable using a bootloader then you need to load the bootloader software onto your pic. This is a file specific to your pic and its osc setting. This file is usually supplied by the programmer company and its usually stored in a folder with the programming software.

    If you are programming your PIC using a serial programmer then the problem may be hardware related. The breadboard could be causing you some problems. I have read of others who said that they had trouble with programming PICs in breadboards.

    Regards,

    Joe.

  10. #10
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default

    Ok, so this is where I got, not far.

    I tried everthing and more but still no joy, waisted a lot of peoples time and ended up back to square one sorry and thanks for your help.

    I feel there is a problem with these PICs or my epic is failing to store the code in the chip, I tried all night going over and over it then threw the towel in and gave up. I think the only sollution I have is to just use pic16f877-20/p which work fine instead of the pic16f877a i/p which give me problems.

    working back using the pic16f877-20/p I have a new problem with ports http://www.picbasic.co.uk/forum/showthread.php?t=1683 any idea's guys

  11. #11
    Join Date
    Apr 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Hello andyf,

    I may have an answer for you. Make sure that you compile your code for the PIC16f877A I/P, and also select this in the epic software. I duplicated your problem with a 16f873a. I compiled the code for a 16f873, then I set my programmer to 16f873a and loaded it into the 16f873a. I got the exact error that you got. So, check to make sure that your program is compiled for the PIC16f877A I/P and see if this helps.

    Regards,

    Greg

  12. #12
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Greg, thanks for the info, I did try that and still the pic didnt except the code.

    I tried lots of things even testing the programming voltage was ok, I am begining to think the chips are duff but cant tell if its my version of epic and picbasic or duff chips. Just out of interest, what versions are you working with. you can reach me better at andyf97 at yahoo dot com.

    Regards

    Andy

  13. #13
    Mark Scotford's Avatar
    Mark Scotford Guest


    Did you find this post helpful? Yes | No

    Cool Epic Software

    I don't know the epic programmer/software, but I did take a quick look at the melabs web site, and it says that the 877A was not added till version 2.41 of the Epic Software, hope this helps.

  14. #14
    andyf's Avatar
    andyf Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Mark, Iam using 2.45 albeit a beta version, I am wondering if beta = faulty

  15. #15
    JoseFausto's Avatar
    JoseFausto Guest


    Did you find this post helpful? Yes | No

    Unhappy Bootloader

    I think the bootloader for PIC16F877A must be diferent, I tried with PIC16F877-20, and that works fine, But when I tried to use the same bootloader with PIC16F877A, I received message "reset required", I donot have harware problems, because is the same circuit, but only change the PIC, and I tried with diferents IC, for that I think the problem is the bootloader,
    My question is: Exist a bootloader for PIC16F877A?

  16. #16
    mytekcontrols's Avatar
    mytekcontrols Guest


    Did you find this post helpful? Yes | No

    Wink ICSP with EPIC not the same as USART programming

    I couldn't help but notice that 2 different people kept talking about bootloaders. Just to set the record straight, I'm pretty sure we are talking about ICSP through the RB6, RB7, and MCLR pins and not about a USART style bootloader which is normally connected through the hardware USART pins RC6 and RC7.


  17. #17
    Join Date
    Aug 2005
    Location
    Denver
    Posts
    25


    Did you find this post helpful? Yes | No

    Default Keep on plugging...

    I think your problem has to be some sort of config issue, Andy. I just spent a whole lot of time scratching my head because a 16F877 will accept an 8 Mhz Xtal as "XT", but a 16F877A will only accept the same clock rate as "HS". With data sheets in 230 page range, it seems like someone at Microchip could have taken the time to compile a short section in the "A" datasheet on the differences between the chips. I guess that would have made it too easy.

  18. #18
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I had a similiar problem with 'A' parts, as against the earlier non-'A's.

    I changed the original pull-ups on the clock and data lines from 10K to 1K.

    Solved the problem, and worked fine with earlier (non-A) Pics as well.

    You migh want to try that; to begin with, dont bother pulling out the 10Ks, just solder 1K resistors in parallel to the 10K on the underside of the PCB. If it works, you could replace the 10Ks.

    Hope this helps.

    Regards,

    Anand Dhuru

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  3. capture/repeat data ?
    By Sam in forum Serial
    Replies: 44
    Last Post: - 27th November 2006, 03:19
  4. A little DTMF help
    By Travin77 in forum mel PIC BASIC Pro
    Replies: 48
    Last Post: - 30th May 2006, 01:31

Members who have read this thread : 1

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

Posting Permissions

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