i2c eeprom and rtc
mctrivia
Posts: 3,772
is it possible to share scl and sda between 2 ics like an rtc and the eeprom without using enable pins?
Comments
You can also have several EEPROMs, a RTC, and an I/O expander all on the same I2C bus. If you have more than one EEPROM or I/O Expander, you need to wire up different address select lines for them. The RTC is only designed for a single device address since it would be unusual to have more than one on an I2c bus.
·· 1010xxxR - flash ram
·· 1101xxxR - real time clock
The flash ram address conflicts with the eeprom, but the clock does not. It looks like the chip has a separate SCL for the ram and the clock. If you didn't care about the internal flash ram and only wanted to use the clock, then perhaps you could tie the SCL for the ram high (or low), effectively disabling it?
I have clock project currently using a DS1302; this would be an interesting alternative -- free up a few pins, and eliminate the need for an external crystal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
I understand you: if you need high accuracy then the DS32C35 is far better than other solutions. While connected to propeller you can not use the builtin fram on the same bus as it conflicts with the boot eeprom (and could not go without the boot eeprom because the fram size is to small). The solution is to share the SDA and have separate SCL connections (the RTC SCL goes to the boot eeprom one). This solution will give you 8k of unlimited same speed read/write storage
If you do not need such rtc accuracy then the ramtron FM31L278 alone will solve all you needs (RTC, boot eeprom replacement, and security issue from other post). The FM accuracy is up to the external crystal and also it have builtin compensation: of course is not temp compensated.