alistairsam
Senior Member
Hi,
I did get the concept of using two bytes to store values upto 65535, but was'nt sure how that worked with interal eeprom storage addressing.
when you say
also, does that mean numbers above 255 have to be broken into their 8 bit msb and lsb and then specified as data?
I'm just not clear about the location which I read is a number between 0 and 255, and the b3,b2, and whether I'll have to then use alternate location numbers in the address if i'm using two bytes.
eg, if
write 1 (b3,b2) uses two bytes, then is the next write possible only at location 3 (as location two would've been used by b2)
so write 1 (msb,lsb)
then write 3 (msb,lsb)
and so on?
how is it done for eeprom memory with the eeprom command?
how many address locations are there for a 28X2 internal eeprom?
I did get the concept of using two bytes to store values upto 65535, but was'nt sure how that worked with interal eeprom storage addressing.
when you say
is'nt that for writing into data memory? Is'nt this different from EEPROM memory?So if you have a value like 32456 in w1 then to save to EEPROM
WRITE <location>, (b3, b2)
also, does that mean numbers above 255 have to be broken into their 8 bit msb and lsb and then specified as data?
I'm just not clear about the location which I read is a number between 0 and 255, and the b3,b2, and whether I'll have to then use alternate location numbers in the address if i'm using two bytes.
eg, if
write 1 (b3,b2) uses two bytes, then is the next write possible only at location 3 (as location two would've been used by b2)
so write 1 (msb,lsb)
then write 3 (msb,lsb)
and so on?
how is it done for eeprom memory with the eeprom command?
how many address locations are there for a 28X2 internal eeprom?