Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

integers in eeprom

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
hast66

Bascom Member



Joined: 18 Aug 2005
Posts: 28

PostPosted: Fri Feb 01, 2008 8:13 am    Post subject: integers in eeprom Reply with quote

Hi

How are integers words etc saved in internal eeprom. I suppose they use 2 bytes (or more). Does one have to "calculate" the adresses to write read
operations when one usues diifferent datatypes?
What about MSB and LSB?

Thanks
Back to top
View user's profile
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2156

netherlands.gif
PostPosted: Fri Feb 01, 2008 1:23 pm    Post subject: Reply with quote

Hi Kolonel,

If you use
Code:

Dim A As Eram Integer
 

you have everything you want.
No need for index or split your integer up in 4 bytes etc...

_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum