PDA

View Full Version : Max Variables



shawn
- 19th January 2008, 02:14
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

Darrel Taylor
- 19th January 2008, 02:45
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>

shawn
- 19th January 2008, 04:05
thanks
Darrel