Max Variables


Closed Thread
Results 1 to 3 of 3

Thread: Max Variables

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79

    Default Max Variables

    hi,
    Quick question, is the sdram on a pick the area where variables are stored. I would assume so.
    If so, since the pic 18f458 has 1536 bytes of sdram does this mean I could have 1536 variable the size of one byte. Or 768 variables that are word size. I'm starting to write a program and i can see that I'm going to need a couple of hundred variables probably. I was hoping that my assumation is correct. I'm sure this has been asked before but I could not find the answer.


    Thanks
    Shawn

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


    Did you find this post helpful? Yes | No

    Default

    For the most part, yes.

    PBP uses a few locations on it's own, 30-40 bytes, more for PBPL.

    But the rest is yours.
    I'm going to need a couple of hundred variables probably
    No sweat!

    And fortunately, it's SRAM (static), so there aren't any refresh cycles like SDRAM.
    <br>
    DT

  3. #3
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    thanks
    Darrel

Similar Threads

  1. ABS MAX and 6V battery, is it safe?
    By dsicon in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th August 2007, 17:13
  2. Variables not appearing in Watch Window MPLabv7.3
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th June 2006, 14:36
  3. How to tell which PICs can handle 16 bit variables?
    By MikeTamu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st August 2005, 08:44
  4. edit names of variables
    By mischl in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th January 2005, 21:00
  5. Problems with variables
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th December 2004, 18:37

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