请教关于CC2640进入待机模式的问题
请教TI技术支持;
我在程序中调用 Power_setConstraint(Power_SB_DISALLOW);进入待机模式时候,发现有时候进不去待机模式。请问CC2640在什么情况下进入不了待机模式呢?
第二个问题是我进入待机模式后定时器还会运行吗?如果运行,定时器到时间后会唤醒MCU吗?
If it needs to temporarily prevent a particular power transition, the driver should call Power_setConstraint(). For example, when initiating an un-interruptible I/O transaction, the driver declares a constraint that the STANDBY sleep state cannot be initiated: Power_setConstraint(Power_SB_DISALLOW);
请问您调用Power_setConstraint的目的是什么? 这个函数强制不进入STANDBY。
1、请按照手册步骤操作进入低功耗模式,地址:C:\TI\tirtos_cc13xx_cc26xx_2_20_01_08\docs\Power_Management.pdf
2、待机模式下RTC还在运行,可以定时器唤醒
谢谢您的回答。看了您这个说明,Power_setConstraint(Power_SB_DISALLOW);是临时强制不进入待机模式,这个临时是多久呢,什么时候回结束这个临时强制呢,需要调用什么函数吗?
还有一个问题就是什么时候cc260会进入待机模式呢,需要调用什么函数吗?我想让它强制进入待机模式调用什么函数呢
进入待机模式无需工程师控制,OSAL操作系统会自己在芯片处于 low MCU activity 时,即No radio or peripherals, no flash and no RAM access 进入待机模式。
前提是您有预编译POWER_SAVING
另外建议您参考下 TI-RTOS pinStandby 例程
const PowerCC26XX_Config PowerCC26XX_config = {
.policyInitFxn = NULL,
.policyFxn = &PowerCC26XX_standbyPolicy,
.calibrateFxn = &PowerCC26XX_calibrate,
.enablePolicy = TRUE,
.calibrateRCOSC_LF = TRUE,
.calibrateRCOSC_HF = TRUE,
};
