How can I establish what RAM I need...and therefore which PIC.


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You can play around with Darrels CodeSize program to find some answers. I am not sure why, but it looks like each letter you are printing to your serial port is 3 words long. If you can abbreviate, you will be able to save some space.

    Check out his code here: http://www.picbasic.co.uk/forum/cont...odeSize-Update

    Walter
    http://www.scalerobotics.com

  2. #2
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I use MicroCode Studio Plus... I think it tells you the memory used in the Status Bar.

    Where? I don't see it.

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    Where? I don't see it.
    It tells you in the status bar, here. But you have to have it turned on with:
    Code:
    Define Measure 1
    (and include the include file, of course)

    Name:  Test2.JPG
Views: 1350
Size:  66.4 KB
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default

    Bottom left hand corner after you compile.

    Success:blablabla bytes used.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Red face

    Oh, there it is! That's telling you how much flash/program memory you're using, right? Is there a way to see or monitor your RAM useage?

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by circuitpro View Post
    Oh, there it is! That's telling you how much flash/program memory you're using, right? Is there a way to see or monitor your RAM useage?
    That's right, its program data not RAM. Unfortunately I do not know of a clean way to read how much ram you are using. But someone taught me a trick of:
    Code:
    test var byte[96]
    And if it is too big to fit, make it smaller. The size allowed in the program will be the amount of RAM you have left.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/showthread.php?t=10381
    Talks about RAM.
    I never did fix the little program in the thread though
    Dave
    Always wear safety glasses while programming.

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