规格书中这么写的:
The 4K EEPROM only uses the A2 and A1 device address bits with the third bit being a memory page address bit. The two device address bits must compare to their corre-sponding hardwired input pins. The A0 pin is no connect.
就是说,24C04的地址线只关心A2和A1,A0不关心。
0XA0+((WriteAddr/256)<<1这种写法真的很美妙。
假如我用两枚24C02挂在一个I2C总线上,只是一个A2~A0编址000另一个编址001那么恰好可以在两个芯片间无缝存贮。
至于你的问题,只有一枚24C04,就不用担心它了。同时挂两枚04,而一个编址000,另一个编址001,那才会出问题。