One other item. You have this comment: '$A0 does the same as $A1
I'm assuming this is a reference to the "Control" byte in the command.
The reason for this, is that the control byte for the EEPROM is $1010XXXR
The high nibble is $A
The low nibble is dependent of how the phyical chip select pins are wired. I'm pretty sure you have those either wired to GND or floating. This leaves the two possible values of $A0 or $A1, depending on the last bit. However, the last bit is dependent on whether you are reading or writing, and is controlled by PBP. So, it won't matter what you use there, as long as the 7 MSBs are correct.




Bookmarks