poikkis wrote:
Hi,
I´m very new with atom micros.
I have basic atom 24 with external 24lc02 eeprom
basic writing and reading from eeprom is working ok
writing like :
i2cout p2, p3, %10100000, [0, 1]
i2cout p2, p3, %10100000, [1, 0]
i2cout p2, p3, %10100000, [2, 0]
i2cout p2, p3, %10100000, [3, 2]
i2cout p2, p3, %10100000, [4, 5]
i2cout p2, p3, %10100000, [5, 6]
reading like:
databyte = 0
address = 0
pause 100
for address = 0 to 5
i2cout p2, p3, %10100000, [address]
i2cin p2,p3, %10100000, [databyte]
next
My problem is that i don´t know how to read the memory
from many locations and form one variable from it.
I mean how to read for example memory locations (0-5) (100256)
and form one variable from them.
Also other way around. If i have variable what is for example
testnumber ="100256" how to write that to external eeprom to memory locations 0-5
one decimal per location.
I guess it has something to do with the arrays,but i don´t know how.
I´m sorry English isn´t my first language. It is quite difficult to explain what i mean.
I hope you understand my problem.
Could someone help, please.
öööh ...where is an edit button. ??
anyway little correction mikro is
atom pro 24 not atom 24