david-vk3jda
New Member
Hi All,
Can any one help with why this stops working above memory address 112?
If you set memmax higher then 112 you get the error led turn on.
This is my first time at using the 24LC256.
I have 4k7 pullup's on sda & scl lines.
Thanks for any help.
David
Can any one help with why this stops working above memory address 112?
If you set memmax higher then 112 you get the error led turn on.
This is my first time at using the 24LC256.
I have 4k7 pullup's on sda & scl lines.
Code:
symbol memmin = 1 'should location 0 work?
symbol memmax = 112 '112 last working address
'113 and above do not work
symbol memadd = w2
i2cslave %10100000, i2cfast, i2cword
high 0
pause 5000
low 0
start:
for memadd = memmin to memmax
b0 = memadd & $FF
writei2c memadd, (b0)
next memadd
for memadd = memmin to memmax
readi2c memadd, (b1)
b0 = memadd & $FF
if b1 = b0 then goto ok
high 0
pause 1000
low 0
ok:
next memadd
goto start
Thanks for any help.
David
Last edited: