请问KL28Z512 的SIRC 在STOP mode 下关闭(Slow IRC Stop disable),LPUART如何正常接收数据?
sorry,我没有把问题描述清楚。时钟都是用SIRC。
是这样,我设定到VLPS模式,必须把SIRCCSR设置成“Slow IRC is disabled in Stop modes”,这样功耗才能11.5uA!!
然后设置WFI---中断唤醒;
虽然AD、IIC能使用,但LPUART 出现不能及时唤醒接收数据的情况,只有SICCSR“Slow IRC is enable in Stop modes”打开,才能LPUART正常工作,但此时功耗多了200多uA!
请问我该怎么做才能保证在VLPS模式下LPUART能正常接收
Hi YunYang,
回答你的第一个问题:要查看LPUART是否能在STOP下工作,就看看它的时钟源是否在对于的模式工作:
就算你把SIRC关掉,你还可以选择其他STOP模式下工作的时钟,这样LPUART还是能够工作的。
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
额。能帮忙看下这个问题?
sorry,我没有把问题描述清楚。时钟都是用SIRC。
是这样,我设定到VLPS模式,必须把SIRCCSR设置成“Slow IRC is disabled in Stop modes”,这样功耗才能11.5uA!!
然后设置WFI---中断唤醒;
虽然AD、IIC能使用,但LPUART 出现不能及时唤醒接收数据的情况,只有SICCSR“Slow IRC is enable in Stop modes”打开,才能LPUART正常工作,但此时功耗多了200多uA!
请问我该怎么做才能保证在VLPS模式下LPUART能正常接收
楼主你好!
不好意思,迟回复你了。
如果在低功耗下,关掉SIRC不能唤醒UART, 开启之后,就能唤醒。我觉得你应该把你的LPUART的时钟源配置为SIRC。
你可以查看下你LPUART的时钟源是不是SIRC。
另外,你说如果关闭SIRC,LPUART不能及时唤醒是什么意思?是不能唤醒,还是要多发几次才能唤醒?
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
还有这张图上颜色mark的,
我配置如下: SIRC at 8MHz, SIRC_DIV3 = 4MHz ,DIV 0、1 is disable.
Set mode to RUN mode and VLPS mode
DIVCORE = 4MHz, DIVSLOW = 4MHz
Change to VLPR mode.
然后while(1){
/* VLPS */
}
为何此时平均功耗达到190uA?
Hi YunYang,
你贴出的图片只是模块的时钟,而不是CPU的时钟,你需要看这个图:
你的图片的意思是添加那个对应的模块,要加那么多功耗,真正的基础功耗,要看我上面的图。
希望能帮到你!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------