2Kb code limitation?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2010
    Posts
    37

    Default 2Kb code limitation?

    I use MCS Pro and PicBasic Pro.
    I noticed that there are (probably) a limitation on compiled code when I use PIC16F628 2KB.
    It is indeed a limitation or wrong?
    Thanks.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 2Kb code limitation?

    Yes, the 16F628 only has 2K words of program space.
    It is a physical limitation of that chip.

    The 16F648A has 4K and is very similar to the 628.
    And there are other chips with even more memory
    DT

  3. #3
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: 2Kb code limitation?

    Thank you very much, Darrel.
    My previous error was: [218] address limit of 7ffh exceeded.

    I switched to 16F648A and compiled the source code and now I got a warn: [102] code crosses boundary @ 800h.

    The code will work correctly? I must do something special now?
    Thank you very much.

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


    Did you find this post helpful? Yes | No

    Default Re: 2Kb code limitation?

    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: 2Kb code limitation?

    Thank you very much, mackrackit.
    Well, an old post for an old problem.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 2Kb code limitation?

    In MicroCode Studio, go to ...

    View > Editor Options > General tab, and check the "Disable 'code crosses boundary' ASM warning"
    Then never use the BRANCH statement, use only BRANCHL if needed.
    DT

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