16f877 to 18f4620 need help


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Location
    sao paulo - brasil
    Posts
    23

    Default 16f877 to 18f4620 need help

    Dear Friends,

    I use 16f877 there are many years with pbp 2.47 and mcs 2.3.0.0 with this configuration

    @ device pic16F877,xt_osc, wdt_on, pwrt_on, bod_on, lvp_off, protect_on,wrt_off
    OPTION_REG = $7F; ENABLE PORTB PULLUPS
    HE/SHE/YOU DEFINES OSC 04

    I need to migrate for the 18f4620

    how to configure the 4620 equal to the 877 and how to compile?

    I need an example

    in advance thankful,

    vicce

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    To start with you need to have MPASM, PM will not do now.

    Then look at the 18f4620.inc in your PBP directory and see how the fuses are set there.
    Then to find all of the options for your chip goto the MPASM directory in program files/microchip. There you will find another *.inc file for your chip. Do not make changes to it but look near the end and ALL of the config options will be there.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default 16F877 to 16F4620

    I made the same transition a couple of years back.

    PBP 2.47 supports the 18F4620 but has some bank switching issues that may affect you. PBP 2.60+ is worth the upgrade because you get signed LONGs which are very handy for high precision arithmetic and saves a lot of checking to make sure a PIC16F877 results never goes negative.

    You will need to open the MPASM file P18F4620.inc and search for the first occurrence of the word DEBUG. Comment this out by placing
    ;
    in the first column followed by a space. Otherwise the PBP reserved word DEBUG gets confused with the MPASM reserved word DEBUG and everything falls apart.

    HTH
    BrianT

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. 18F4620 and SHT11 problems
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th June 2009, 10:26
  3. 16F877 upgrade to 18F4620
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th January 2008, 06:28
  4. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  5. 4 Quadrant dc drive with 16F877
    By mns45 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 23rd February 2006, 13:05

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