Part Number: MSP430FR2355
Tool/software: Code Composer Studio
Hello,
I have been using the following code below to test the current drawn when in LPM3. When I comment out the functions set_UART_clk and config_UART, I see the current drawn reduces to about 2uA. These functions are used to initialize UART and set the UART clock but having it initialized seems to increase the power consumption in LPM3. I also tried setting the UCDORM bit before going to sleep and resetting it after waking up but that doesn't seem to help either.
This is just the code used to check for the LPM3 current. In the actual implementation, I wake up from LPM3 after a timer interrupt, reset the UCDORM bit and transmit the next packet. Functionally it works fine but the current drawn is still the same during LPM3.
Another labmate is using the SPI protocol and he seems to have the same issue.
Is there any way UART and SPI could be put to sleep before going to LPM3 so that the current consumption could be reduced?
Please let me know if there's any more information I must provide.
Here's the UART code I have been using:
Any help regarding this would be appreciated.
Thanks,
Yaman