BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:11 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Eeprom losing content..??
PostPosted: Sun Nov 21, 2010 10:35 am 
Offline
Citizen

Joined: Wed Mar 13, 2002 11:00 am
Posts: 32
Hi
if I write to the Eeprom: “writedm 0 ,[1,2,3,4,5 ]” and read it
“ readdm 0,[str Saved\5] “ it reads correct.
but if I program the nano again without using the writedm command,
and then read the EEprom, I get: “ 15,15,15,15,15 ”
Should not the Eeprom keep the “1,2,3,4,5”..?

But the main Problem is:
If I switch on and off the Power, sometime the Eeprom keeps the content, but sometimes it gets changed…
Is it my programming mistake, misunderstanding, or is there something wrong..?
Heinz
Code:
   NumberSave   var      nib(5)
      x      var      nib
      
'writedm 0 ,[1,2,3,4,5]   

start:
   readdm 0,[str NumberSave\5]
   for x = 0 to 4
serout s_out,i9600,["Number save = ",dec NumberSave(x)]
         next
serout s_out,i9600,[13]   

   goto start


Top
 Profile  
 
 Post subject: Re: Eeprom losing content..??
PostPosted: Sun Nov 21, 2010 12:42 pm 
Offline
Citizen

Joined: Wed Mar 13, 2002 11:00 am
Posts: 32
Hi
......My mistake....

I jump out of an gosub routine by mistake and got wrong numbers in variables. It happened only in the start-up sequence, so it confused me.

I belive:………..??
Programming the nano change the Eeprom too ??
Programming the AtomPro don’t change the Eeprom…??

Heinz


Top
 Profile  
 
 Post subject: Re: Eeprom losing content..??
PostPosted: Sun Nov 21, 2010 7:15 pm 
Offline
Master

Joined: Sun Aug 17, 2008 5:26 pm
Posts: 798
Location: CA bay Area
As I remember it, all the memories (FLASH, RAM and EEPROM) on the Nano and Atom parts are cleared at time of programming.
I can't say for the Pros.
If you MUST keep collected data intact if you know you're going to be reprogramming the Nano, then use an external EEPROM and write to that.
Later.

_________________
kenjj
http://blog.basicmicro.com/
http://kjennejohn.wordpress.com/


Top
 Profile  
 
 Post subject: Re: Eeprom losing content..??
PostPosted: Mon Dec 20, 2010 11:47 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Atom and Nano chips are completely erased during programming. AtomPro eeprom is not(works like an external eeprom).

_________________
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: No registered users 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO