This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2540 using uart + low power modes

Other Parts Discussed in Thread: CC2540, CC2530

Hi all,

I have the cc2540 communicating with msp430 device over UART, 

It seems that the cc2540 can't enter low power modes when UART is enabled, I was wondering if there IS a way to have uart active with the ability to enter low power modes, and if not what are the ways to achieve such a thing?

should I enable and disable the uart on the run using an interrupt line the will indicate when the other side wants to communicate over uart ?

Thanks in advance,

Omri.

  • You need an extra GPI on CC2540 as interrupt source to wake up CC2540 when MSP430 want to talk to it through UART.


  • I guess the interrupt should be 2 way to indicate the other side is ready to receive the uart communication as well correct? 

    The initial enable is not the issue but I've noticed it has quit of a power consumption I would like to save so I guess it would be preferable to use the interrupt to enable / disable the uart module as well.

    how can I enable / disable the uart module (USART 0) in real time ? 

  • 1. If my memory is correct, MSP430 can handle UART input as interrupt and it is no need to have one extra line to inform that there is UART message from CC2530 to MSP430. So, you only need one line to inform there is UART message from MSP430 to CC2530.

    2. The UART is disabled when CC2530 is under power saving mode of BLE stack. You don't need to do it by yourself.

  • about the second answer, I thought the whole issue started when when enabling the UART (by using the defines) the cc2540 won't get into PM,

    To make sure, enableing the module once on init, and then just modify the values of the definitions should be enough ?