I'm playing with a new (for me) RTC chip. PCF85263A. It has some nice features, but mostly I need a 3v i2c RTC.
The slave address for this chip is %10100010 (A2h) which is where the problem comes in. The 24LC series of eeproms has a long established slave address of %10100000 (A0h). The RTC chip takes the 'I2CByte' parameter while the eeprom takes the 'I2CWord' parameter. The simulator forces the 'word' parameter for this address and will quit (with a warning) if 'byte' is used.
That's not too big a problem because one can easily fool the simulator. But since I'm having difficulty in accessing this RTC , I'm wondering if the compiler does something funky with this address as well?
My intention is to use both the eeprom and the RTC , and I'm hoping that the slave addresses will be compatible. But for testing purposes, I only have the RTC chip hooked up. No dice, so far. That could be me getting used to the interface which is a bit more complex than the tried and true DS1307. So just to rule this possibility out, can someone confirm for me that the 28x2 should be able to use this slave address with the 'byte' parameter?
The slave address for this chip is %10100010 (A2h) which is where the problem comes in. The 24LC series of eeproms has a long established slave address of %10100000 (A0h). The RTC chip takes the 'I2CByte' parameter while the eeprom takes the 'I2CWord' parameter. The simulator forces the 'word' parameter for this address and will quit (with a warning) if 'byte' is used.
That's not too big a problem because one can easily fool the simulator. But since I'm having difficulty in accessing this RTC , I'm wondering if the compiler does something funky with this address as well?
My intention is to use both the eeprom and the RTC , and I'm hoping that the slave addresses will be compatible. But for testing purposes, I only have the RTC chip hooked up. No dice, so far. That could be me getting used to the interface which is a bit more complex than the tried and true DS1307. So just to rule this possibility out, can someone confirm for me that the 28x2 should be able to use this slave address with the 'byte' parameter?