+ Post New Thread
Results 1 to 7 of 7
  1. #1
    Full Member level 6
    Points: 2,631, Level: 11

    Join Date
    Nov 2010
    Posts
    328
    Helped
    2 / 2
    Points
    2,631
    Level
    11

    pic micro with 90% rom

    my pic controller 18f4620 is loded with 90% rom and 10 % ram . my doubt is 90% rom safe
    kindly advise

    •   Alt30th November 2016, 19:54

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 7,891, Level: 21
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,415
    Helped
    325 / 325
    Points
    7,891
    Level
    21

    Re: pic micro with 90% rom

    Even 99% is ok, who cares?
    Love me or hate me. All infractions will be ignored.


    1 members found this post helpful.

  3. #3
    Super Moderator
    Points: 24,278, Level: 37
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    7,291
    Helped
    909 / 909
    Points
    24,278
    Level
    37
    Blog Entries
    5

    Re: pic micro with 90% rom

    Considering that the compiler that you are using could be already configured to optimize program memory usage ( usually to detriment of speed ), even on this case it is always possible to reduce the code size by better structuring the program, and it is achievable only depending on the inventiveness of the programmer to have creative insights, and also to not oppose to make deep changes in a working code, for example by reusing parts with similar functions. By the way, due to the PIC16 family does not have a large stack, compilers had as default to assemble functions inline, which consumes more "ROM", and it would be not unreasonable to consider that the same treaty would be extended to the 18F family, therefore the first thing, you could check out what the default in the compiler you are using.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )


    1 members found this post helpful.

    •   Alt30th November 2016, 23:41

      advertising

        
       

  4. #4
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    122 / 122
    Points
    5,417
    Level
    17

    Re: pic micro with 90% rom

    Yes, it is safe. Code is executed in RAM. instructions are loaded into RAM from ROM and executed. So, no problem. If possible zip and post the complete project.


    1 members found this post helpful.

  5. #5
    Full Member level 6
    Points: 2,631, Level: 11

    Join Date
    Nov 2010
    Posts
    328
    Helped
    2 / 2
    Points
    2,631
    Level
    11

    Re: pic micro with 90% rom

    i am using pic ccs complier



  6. #6
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    122 / 122
    Points
    5,417
    Level
    17

    Re: pic micro with 90% rom

    Whatever be the Compiler, if you have highly nested functions then there will be a chance of stack overflowing and during this time device may not work as needed or it may reset.

    What is the actual problem you are facing in hardware ?



    •   Alt1st December 2016, 07:02

      advertising

        
       

  7. #7
    Super Moderator
    Points: 24,278, Level: 37
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    7,291
    Helped
    909 / 909
    Points
    24,278
    Level
    37
    Blog Entries
    5

    Re: pic micro with 90% rom

    Quote Originally Posted by raman00084 View Post
    i am using pic ccs complier
    Unless you provide additional information, such as parts or all your code, from here all the tips will stay in the field of assumptions.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



--[[ ]]--