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连接问题

Other Parts Discussed in Thread: CC2540

您好!

1 .CC2540设成从机,一上电就进入了PM2模式,在PM2模式下主机能和CC2540从机连接上吗?

2 .如果进入睡眠前没有连接,是否从机依据睡眠定时器间隙性的在发送广播?

3.CC2540进入睡眠后设置成io唤醒,从唤醒到串口正式可以接收数据的时间是否需要2mS还是大于3mS

4.在睡眠模式下如果主机主动断开连接,再次连接的时间是否也是2ms左右

 

多谢!

  • 1. 不能,需要退出pm2模式到正常工作模式。

    3. 3mS左右吧,等待外部晶振稳定工作。

    * Wake up from powermode
            * After waking up, the system clock source is HS RCOSC, but since
            * the system clock source was HS XOSC before entering PM1, the CC254x
            * will automatically switch the system clock source over to HS XOSC
            * when it becomes ready. We therefore only need to poll until this
            * system clock source has indeed changed to HS XOSC.
            */
            while(CLKCONSTA & CLKCON_OSC);

            // Program is now in Active Mode.