Part Number: MSP430F2274-EP
Hello,
I am creating a circuit designed to be partially powered down for long periods of time. When it is fully powered, my microcontroller will act as an I2C slave and respond to commands on the bus. However, when the circuit is partially powered down, the microcontroller will continue to be powered off of a battery, but the I2C bus and master will not be powered. In this case, what is the best way to configure the I2C port to minimize power loss? Is it safe to set the pins as GPIO outputs and set them low? Will that cause any problems when the circuit powers back up and needs to use the I2C bus again? Or is it better to set them as inputs and pull them up off of the battery rail? If so, what's the highest resistance I could use? I have provided an image to better explain this.
When fully powered on, VCC = VBAT = 3.3V. When partially powered down, VCC = 0V and VBAT = 3.1-2.5V.