16F877A to 16F887 Migration Issues


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2012
    Posts
    4

    Default 16F877A to 16F887 Migration Issues

    I'm attempting to modify a program written for a 16F877A to be used with a 16F887. I am new to programming PICs and I'm running into many issues! Any suggestions are greatly appreciated.

    The program I'm trying to modify was provided in this thread (http://www.picbasic.co.uk/forum/showthread.php?t=12674). I'm attempting to build the same gaming console with the 16F887.

    I did find this page (http://melabs.com/support/887migration.htm) and changed the ADCON1 command to ANSEL and ANSELH to set all pins to digital. The header provided with the program caused errors so I removed it from the program and configured the PIC after it was compiled using the programmer software.

    The program will compile fine but ICD compile shows "argument out of range" errors. If I run the ICD compile for a 16F877A along with the unmodified code it shows the same errors. A search on google shows others with the same issue and modifications to the program header solved their issues. I tried using many of the headers I found but none of them fixed the errors. What other changes need to be made?

    Any advice is greatly appreciated. I'm lost and troubleshooting this circuit but unable to determine whether the problem is the program on the PIC or the circuit itself!

    Attached is the original 16F877 code I'm trying to make work.
    Attached Files Attached Files
    Last edited by tmorgan4; - 25th November 2012 at 16:27.

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: 16F877A to 16F887 Migration Issues

    Darrel has posted this to be placed at the top of the program as PBP takes care of this internally:
    @ ERRORLEVEL -306 ; turn off crossing page boundary message

    I didn't find the answer to the following however:
    Message[305] E:\SOURCE.ASM 588 : Using default destination of 1 (file).

    The upcoming version of FineLineIDE includes an unused button which shows variables "D2", "D3" and the label "error:" as unused.

    Norm

  3. #3
    Join Date
    Nov 2012
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: 16F877A to 16F887 Migration Issues

    Appreciate the hint. I'll give that a try and see where it gets me. If anyone else has suggestions for how to cure the other errors or if I can simply ignore then please post up!

Similar Threads

  1. migration du 16f628 au 18F25J11
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd March 2011, 20:20
  2. Migration 18F452 --> 18F4620
    By NavMicroSystems in forum General
    Replies: 14
    Last Post: - 27th January 2010, 11:58
  3. 16F877A to 16F887 Migration
    By enigma in forum General
    Replies: 3
    Last Post: - 10th May 2008, 22:51
  4. Migration Issues 16F876 to 18F2525
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 17th November 2007, 22:38
  5. Pic12ce519 to Pic12f629 migration
    By ecopcb in forum General
    Replies: 2
    Last Post: - 7th September 2006, 14:40

Members who have read this thread : 0

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