Pic 16 F877 to 18F452...?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27

    Default Pic 16 F877 to 18F452...?

    Hi everyone.
    I wrote a program for Pic16F877 and work fine. But ı want to add some more info to program ı get error message that indicate insufficient memory.
    than ı bought a new pc 18F452 .I bouht it becouse ı red some information regarding F18542 that two pic is same only different is mmemory size .
    I beleive that and ı compile and program 18F452 but my system does not work with 18F452 .
    Do you know what is the problem.
    When ı change pic 16F877 system works fine but with 18F452 not....
    Birbirimize yardım için buradayız.
    We are here to help each other....

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Turkuaz,

    I made a similar move two years ago. You are going to need datasheets on both devices and compare the area that covers analog registers and the comparator. I think but I'm not quite sure, but the problem lies within the configuration for these areas. Someone else will probably comment on this later today. If I get a chance tonight I'll take a look at them. But you should still get the datasheets from www.microchip.com and start comparing them.

    HTH,

    BobK

  3. #3
    Join Date
    May 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Could you tell both PIC's compilation sizes ?

    Maybe you could optimize your code by some labeling repetitive 'procedures' or 'functions'. Almost always something can be done
    I've had that problem and modularization has been my solution
    16F876 is to 18F252 as
    16F877 is to 18F452

  4. #4
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    Thanks for your reply.
    I solve this problem myself.
    Problem was 18F452 enstead 18F4520.
    When ı copile the prog. ı choose Pic 18F452 than program did not work.
    When ı compile as 18F4520 the program work nice.

    But ı want to learn another think.
    I use " OPTION_REG.7 = 0" at 16F877
    but at 18F452 ı getting syntax error for it.
    What can ı use enstead for it.
    Thaks.
    Birbirimize yardım için buradayız.
    We are here to help each other....

Similar Threads

  1. Pic 18f452
    By mamr_r in forum Serial
    Replies: 2
    Last Post: - 7th April 2009, 04:31
  2. Problem accessing keypad on PortB (LabX1, PIC 18F452)
    By scorpion4377 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th January 2009, 03:52
  3. IC2 pic 18f452 program problems
    By MrSafe in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 20th September 2007, 18:55
  4. Help, problems first time with 18F452 PIC
    By MikeTamu in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2005, 20:49
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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