I am putting together a datalogger as shown in the attached diagram. There is a battery to backup the real time clock chip so that when the main battery is swapped out for charging the RTC does not reset the time.
The issue I am having is that when the I2C from the RTC is connected to the ATMega but no power is connected, over 1mA is being drawn from the back up battery. If I disconnect the I2C bus the current from the battery drops to below 1uA which is what would be expected.
The question is: is there any way of isolating the I2C bus when the RTC is being driven by the back up battery. I considered transistors driven by the main supply but I assume this would not work because the bus is two way. Any ideas?
The issue I am having is that when the I2C from the RTC is connected to the ATMega but no power is connected, over 1mA is being drawn from the back up battery. If I disconnect the I2C bus the current from the battery drops to below 1uA which is what would be expected.
The question is: is there any way of isolating the I2C bus when the RTC is being driven by the back up battery. I considered transistors driven by the main supply but I assume this would not work because the bus is two way. Any ideas?
Attachments
-
27 KB Views: 68