完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好团队,
这是Robert BOSCH的Shivananda。我们使用的是SPC584Cx / SPC58ECx 32位MCU系列(Chorus 4M)。 我们需要在系统处于stanbymode时实现一个功能,系统自我唤醒5小时后就应该发生。 希望使用定时器/计数器概念,我们需要实现5小时计数并使用' Smart StandbyWakeupunit (SSWU)我们可以唤醒系统。 根据参考手册,我有这些信息 IRCOSC也是STANDBY期间可用的系统时钟,它被放入 STANDBY电源域。 是否有可能在Pls中实现此功能,任何人都可以帮助我实现此功能。 - 我需要注册细节,这是实现这一目标所必需的 1.如何在stanbymode中运行定时器以及如何启用时钟来运行定时器。 2. 5小时后。时间如何唤醒系统(哪些寄存器需要编程)。 感谢致敬, 湿婆 9739636666 #standbymode #automotive #sleep-wakeup #lowpower-sleep 以上来自于谷歌翻译 以下为原文 Hello Team, This is Shivananda from Robert BOSCH. we are using SPC584Cx/SPC58ECx 32-bit MCU family (Chorus 4M). we need to implement a feature when system in stanbymode, after 5 hours self wakeup of system should happen. Hope using Timer/Counter concept we need to achieve 5 hours count and also using ' Smart Standby Wakeup unit� (SSWU) we can Wakeup the system. As per reference manual I have this information IRCOSC is also the system clock available during the STANDBY and it is placed in STANDBY power domain. Is it possible to implement this feature in Pls can anyone help me in this to implement this feature. - I need Register details which are required to achieve this 1. How to run timer in stanbymode and which and how to enable clock to run the timer. 2. After 5 hrs. of time how can I wakeup the system( which registers need to program). Thanks and Regards, Shiva 9739636666 #standbymode #automotive #sleep-wakeup #lowpower-sleep |
|
相关推荐
6个回答
|
|
|
你好Shivananda,
几小时后唤醒,我会使用RTC Clock来触发唤醒。 即使SSWU比STANDBY SPC56更复杂,我们在SPC56系列中也有一些示例(SPC5Studio) SPC560Dxx用于发现的OS-Less STANDBY SRAM测试应用程序 SPC560Dxx_RLA发现的RTC测试应用程序 无论如何,我要求应用团队就是这样的应用程序存在于Chorus 4M上。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Shivananda , To wakeup after few hours, i would use RTC Clock to trigger a wakeup. Even if SSWU is more complicated than STANDBY SPC56 , we have some Example in SPC56 Family (SPC5Studio) SPC560Dxx OS-Less STANDBY SRAM Test Application for Discovery SPC560Dxx_RLA RTC Test Application for Discovery Anyway, I am asking to the application team is such application is existing on Chorus 4M. Best regards Erwan |
|
|
|
|
|
谢谢你,二万。
请告诉我任何用例(代码)可用于实现上述功能。 要求是系统需要在5小时后自我唤醒。可能吗? 以上来自于谷歌翻译 以下为原文 Thank you Erwan. Pls let me know any use case( code) is available to achieve above functionality. Requirement is System need to self wakeup after 5 hours. Is it possible? |
|
|
|
|
|
是的,使用RTC你可以花5个小时找到好的比较值寄存器
(RTC_APIVAL) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Yes, with RTC you can put 5 hours you have just find the good Compare Value register (RTC_APIVAL) Best regards Erwan |
|
|
|
|
|
Yvin.Erwan.001
?感谢您的投入。 我浏览了RTC章节。通过在RTC中使用寄存器组,我们可以实现这一点。 但我有3个问题。 1.如何在待机模式下启用RTC或默认启用RTC? 2.哪个是RTC的时钟源以及如何配置它(哪些寄存器需要编程)? 3. RTC和SSWU之间是否存在联系? 5小时后系统需要根据此RTC中断唤醒将触发SSWU进行系统唤醒?我附上了显示关系的图像。 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Yvin.Erwan.001 ?Thanks for the input. I gone through the RTC chapter. By using set of registers in RTC we can achieve this. But I have 3 questions. 1. How to enable RTC in Standby mode or default it is enabled ? 2. Which is the clock source for RTC and How to configure it (which are the registers need to program)? 3. Is there link between RTC and SSWU ? After 5 hours system needs to wakeup according to this RTC interrupt will trigger SSWU for system wakeup? I have attached the image which shows the relation. Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
|
|
你好湿婆,
检查RM后,SPC58系列上没有关联的PCTL 我认为在低功耗模式下RTC没有关闭。 (待机或停止模式) 我将在下周一回答你。 请参阅第96章了解RTC的特定寄存器 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Shiva , After checking the RM , there is no PCTL associated on SPC58 Family I think that RTC is not switched off in Low Power Mode. (STANDBY or STOP mode) i will answer you next monday. check the Chapter 96 for the specific registers for RTC Best Regards Erwan |
|
|
|
|
|
Yvin.Erwan.001
“我开始编码我已经把????在我需要支持的地方。请参阅以下代码。 / * MCU注册以启用RTC * / ?????? / * stanbymode中的RTC时钟配置* / / * --------------------------------- STANDBY配置 ------------------------------------ * / PMCDIG.MISC_CTRL_REG.B.SIRC_ENB = 0; //在运行模式下启用SIRC LPRCOSC.CTL.B.LPRCON_STDBY = 1; //在STANDBY中启用SIRC / * WAKEUP注册程序* / WKPU.WRER.R | = 0x02; / *启用连接到RTC模块的Wakeup1 * / / * RTC模块配置* / RTC_API.RTCS.B.RTCF = 1; //通过写1清除RTC标志 RTC_API.RTCC.B.CNTEN = 0; //重置计数器 RTC_API.RTCC.R = 0x80009001; //启动RTC计数器:CNTEN = 1,APIEN = 1,CLKSE = 01,TRIG_EN = 1 已启用,已启用触发器* / RTC_API.RTCVAL.R = 0x0009C400; // T = 5秒 OR / *在这两个寄存器中哪一个我们应该使用?????? * / RTC_API.APIVAL.R = 0x00001000; // API周期= 32.25毫秒 / *中断处理* / ?????????? 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Yvin.Erwan.001 ‌I started coding I have put ???? in where I need support. Pls see the below code. /* MCU registers to enable RTC */ ?????? /* Clock configuration to RTC in stanbymode */ /*--------------------------------- STANDBY configuration ------------------------------------*/ PMCDIG.MISC_CTRL_REG.B.SIRC_ENB = 0; // Enable SIRC in running modes LPRCOSC.CTL.B.LPRCON_STDBY = 1; // Enable SIRC in STANDBY /*WAKEUP registers program */ WKPU.WRER.R |= 0x02; /* Enable Wakeup1 which is connected to RTC module */ /*RTC module configuration */ RTC_API.RTCS.B.RTCF = 1; // Clear the RTC flag by writing 1 RTC_API.RTCC.B.CNTEN = 0; // reset the counter RTC_API.RTCC.R = 0x80009001; //start RTC counter :CNTEN = 1 , APIEN= 1 , CLKSE = 01 , TRIG_EN = 1 used, Trigger enabled */ RTC_API.RTCVAL.R = 0x0009C400; // T=5sec OR /* In these two registers which one we should use ?????? */ RTC_API.APIVAL.R = 0x00001000; // API period =32.25msec /* Interrupt Handling */?????????? Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1465 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1518 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3664 浏览 1 评论
3856 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2475 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
745浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
678浏览 5评论
723浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
962浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
763浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-9 07:01 , Processed in 0.663008 second(s), Total 54, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
409