Hi to all,
Once again I have problems with the uC power consumption. I work with MSP430F5438A and a custom board. In these custom boards we have several peripheral, FLASH, temperature sensor, etc communicating by SPI or I2C.
We control the power of the external peripheral with a uC GPIO, that controls the power supply to the external peripheral modules . So, when we want to enter in LPM, we reset this pin, and all external peripherals turn off, not a low power mode. With this situation, we are obtaining a power consumption out of the range, and we are not talking about uA, we are talking about mA.
In the users' guide, it is mentioned that the unused pins have to set to output direction with low values when the code goes to LPM. Are the pins, that go to turned off peripheral, considered as unused pins? I have observed that if I configure the PXSEL register but we turn off or not use the peripheral (I2C communication with the pull up resistor in the lines), the power consumption is reduced, but it maintains out of range. In other hand, if these pin are configured as output with high level during LPM, the power consumption increases.
Until now, I configure as low output all pins that are not inputs, but it seems that does not work.
If we have to work with input with pull-up during LPM, could they produce a power consumption increment? (the lines go to particular signals, not floating)
What is the correct pin configuration for low power mode if we work with SPI and I2C devices and input with pull-ups? Any help or guide?
Thanks in advance.