EEPROM Sapce
eoinsy
Posts: 8
Ive run out of code space on my BS2p,·is there is another stamp that will have about 32Kb, 8000 instructions?
Or can external EEPROM be used·to store lines of code? I'll try and tidy me·code up·but that still wont make it small enough
thanks for any help
Post Edited By Moderator (Jon Williams) : 1/20/2005 6:12:47 PM GMT
Or can external EEPROM be used·to store lines of code? I'll try and tidy me·code up·but that still wont make it small enough
thanks for any help
Post Edited By Moderator (Jon Williams) : 1/20/2005 6:12:47 PM GMT
Comments
2. Are you using multiple eeprom partitions yet?
3. How do you KNOW you'll need 32 KBytes? That's a LOT of PBasic code.
4. What are you trying to do? There's usually more than one way to do something. Some ways take WAY more code space than others.
SEROUT pin, baud, [noparse]/noparse][color=red]"BASIC "[/color
SEROUT pin, baud, [noparse][[/noparse]"Stamp", CR]
is best incorporated into a single line, and when they're very long you can use the comma as a line-continuation character:
SEROUT pin, baud, [noparse][[/noparse]"BASIC ",
·················· "Stamp", CR]
This takes less code space.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 1/20/2005 6:22:21 PM GMT
Dave