Extending the Program Memory


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default Extending the Program Memory

    Hi Guys ,

    I was looking for links on how to expand the program memory of 18F PIC , while still using PBP3 as the compiler
    i suspect ill have to also sub divide the code so that it would be able to work ???
    can someone advise

    cheers


    sheldon

  2. #2
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    i suspect this is an adaption of a bootloader requirement , but given i still want to use a majority of the pic program memory , wondering how i would do it to make the program jump to correct external address when needing that code ,

    when compliling would i need 2 hex files , 1 for the main chip and the other for a sudo chip that can be complied ???

    I am sure someone has had this issue , hows it best solved ?

    regards

    Sheldon

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    some pic18's have 128k flash if that's not enough get an arduino mega 2560 clone , less than $20 256k flash 8k ram 4k eprom you'll never look back I love them

  4. #4
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    yes i been looking at those chips and board , am far down the rd with the chip i am on and just thinking i could add a bit of extra flash if need be , the chip have is 128k , and the code uses 50% of that now and have a ways to go

  5. #5
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    if i wanted to put menus and lookup tables , which have some code as subroutines as a separate structure for storage , how would this be done so that i can call from main program

    ???

  6. #6
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    I'm afraid (to the best of my knowledge) you will not be able to run code from external memory or from RAM. Your best bet is to place all the memory heavy arrays/tables into external EEPROM and use the PICs ROM space for code alone. Even so, the extra time needed to store/retrieve entries from the EEPROM will slow down your processes.

  7. #7
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    THANKS JERSON ,

    i could put some of the data into the available sd as hex data tables , but i am sure it will be a speed issue

    i am surprised that data strings for menus are chewing up so much space so quickly
    i still have about 60k left in the pic but i only just getting started on the menu system

    cheers

    Sheldon

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    Hi,
    i am surprised that data strings for menus are chewing up so much space so quickly
    Yeah, that is one of my big "concerns" as well. I have a couple of projects which could benefit from a more "verbose" user interface but each and every byte in a HSEROUT, ARRAYWRITE, LCDOUT etc statement increases the footprint of the generated code by 6 bytes so it eats away available space quickly. The nice thing with these commands is that it's SO easy to mix static strings with variables, formating and so on.

    For static data there are other ways of doing it of course, there's the "strings in codespace" thread from a couple of years ago and someday I need to figure out how to use that.

    /Henrik.

  9. #9
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Extending the Program Memory

    well as space gets tigher i may need to look at the structure closer , when i hit 100k ill be worried

Similar Threads

  1. Program Code and Program Memory
    By DenFrod in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th February 2007, 14:51
  2. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38
  3. using Flash Program Memory ?
    By muskut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th October 2006, 15:17
  4. Writing to program Memory
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th April 2006, 01:51
  5. program memory size
    By volcane in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th October 2005, 19:45

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