BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:42 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Why was the 'data' command removed
PostPosted: Fri Jul 29, 2011 8:15 am 
Offline
Citizen

Joined: Sat May 07, 2011 1:52 pm
Posts: 24
Just curious as to why the data command was removed sometime after IDE2.2. I found the command very handy to pre-load the eeprom during programming. A couple of my projects do a read of the eeprom and then displays the results at power up. Not being able to pre-load some data causes garbage to be displayed every time I re-program the Atom until some new dats is written. This is a data logger so the data changes (and is saved to eeprom periodically), so I can't just do a write at the beginning of the program or is will over-write the saved data.

I can probably work around the problem by doing a read first to see if any of my valid data (maybe a flag of some sort) is in there first, and if not then use the write command to load it, but that is sort of kludgy.

Or am I missing some other way to do this? Thanks.


Top
 Profile  
 
 Post subject: Re: Why was the 'data' command removed
PostPosted: Tue Aug 02, 2011 10:15 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
The atom/nano processors have builtin eeprom which can be written while programming. THe AtomPro does not. So the AtomPro does not have a data compile time directive. The Atom/Nano still do.

For AtomPro uses to preload data into the eeprom I suggest something like this:

value var byte

read 0,value
if value <> mykeyvalue
write 1,##
write 1,##
write 1,##
etc...
endif

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Why was the 'data' command removed
PostPosted: Tue Aug 02, 2011 10:47 am 
Offline
Citizen

Joined: Sat May 07, 2011 1:52 pm
Posts: 24
Ok thanks. That makes sence for the Atom Pro, but I could have sworn I tried it with a regular Atom (several times) with BMS and had it fail. But I just tried it again and it worked. Go figure. :?

But perhaps the BMS manual should still include the command. It doesn't unless I'm blind.


Top
 Profile  
 
 Post subject: Re: Why was the 'data' command removed
PostPosted: Thu Aug 04, 2011 9:52 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Thanks for pointing that out. I'll make a note for the next manual update.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO