obviously you don't use Melabs PicBasic.... or the Breaks 10 is part of your comments?
You should have a PAUSE 10-50 after each I2CWRITE
Maybe a copy/paste error... but there shouldn't be any space between % and the ControlByte value in your I2CWRITE lines. I suggest you to use Constant variable instead.
ADDRx variable have to be WORD sized one.
When you say it doesn't work.. you mean? If you remove the first EEPROM, will the second one work? Same thing if you remove the second one, will the first one work? If so, you should reduce the Pull-up resistors. Usually 1.8K work in most cases.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks