The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > GPS

Reply
 
LinkBack Thread Tools Display Modes
Old 10-21-2002, 04:06 PM   #16
Registered User
 
Join Date: Jul 2002
Location: Downey, California
Posts: 50
Quote:
Originally posted by Ohgary
If its variables he ran out of then ram doesnt help that. It might be the way the variables are being used. He might be saving Bitwize variables as bytes. Adding memory is pretty easy but its serial memory and you have to write code to save to memory.

You just load and unload the variables needed at any given time. The Basic Stamp IIsx has 8 pages of program memory which allows you to block your variable groups much more easily. I've successfully used up to 64 double word variables at one time. You just have to get creative and use your imagination.

When you change a page have it load all the variables from your serial (there are other types you CAN use) RAM to your chips registers, and when you leave that page have it load all the variables back to the serial RAM. As a bonus, this makes it all easily accessable from the other pages without having to tie up your 'scratchpad memory'.

The reason you use external RAM instead of internal EEROM memory space for variable use is that you can only write so many times to any address. If you exceed this limit, you'll end up with a dead byte (which sucks). RAM on the other hand allows practically limitless writes. But you knew that already!
__________________
[------------------|--] 90% Completed
Not installed, yet.
Developing Completely DirectX shell.
P4 1.7GHz, 256MB RAM, 40GB-7200RPM HD
Krazy Nemesis is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 12:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics