Not applicable
Oct 11, 2016
01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 11, 2016
01:39 AM
Hello, I have a XMC4800 Relax kit and I'd like to enter in hibernate mode in order to make power saving, but without success.
My goal is enter in hibernate mode and wakeup the XMC from the alarm of the internal RTC.
Bottom there is a part of my test, there is anything wrong because xmc4800 don't enter in hibernate mode..
can you help me?
Thank You
XMC_SCU_CLOCK_EnableLowPowerOscillator();
XMC_SCU_HIB_SetRtcClockSource(XMC_SCU_HIB_RTCCLKSRC_OSI);
XMC_RTC_Init(&rtc_config); // contains alarm settings
XMC_RTC_SetTime(&rtc_time);
XMC_RTC_EnableHibernationWakeUp(XMC_RTC_WAKEUP_EVENT_ON_ALARM);
XMC_SCU_HIB_ClearEventStatus(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_HIB_EnableEvent(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_RESET_ClearDeviceResetReason();
XMC_SCU_HIB_ClearWakeupEventDetectionStatus();
XMC_RTC_Start();
XMC_SCU_HIB_EnterHibernateState();
while(1);
My goal is enter in hibernate mode and wakeup the XMC from the alarm of the internal RTC.
Bottom there is a part of my test, there is anything wrong because xmc4800 don't enter in hibernate mode..
can you help me?
Thank You
XMC_SCU_CLOCK_EnableLowPowerOscillator();
XMC_SCU_HIB_SetRtcClockSource(XMC_SCU_HIB_RTCCLKSRC_OSI);
XMC_RTC_Init(&rtc_config); // contains alarm settings
XMC_RTC_SetTime(&rtc_time);
XMC_RTC_EnableHibernationWakeUp(XMC_RTC_WAKEUP_EVENT_ON_ALARM);
XMC_SCU_HIB_ClearEventStatus(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_HIB_EnableEvent(XMC_SCU_HIB_EVENT_WAKEUP_ON_RTC);
XMC_SCU_RESET_ClearDeviceResetReason();
XMC_SCU_HIB_ClearWakeupEventDetectionStatus();
XMC_RTC_Start();
XMC_SCU_HIB_EnterHibernateState();
while(1);
3 Replies
Oct 14, 2016
06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 14, 2016
06:03 AM
Hi,
The hibernate functionality (external control of regulator) is not supported by the board you are using.
Regards,
Jesus
The hibernate functionality (external control of regulator) is not supported by the board you are using.
Regards,
Jesus
Not applicable
Oct 18, 2016
04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 18, 2016
04:00 AM
Thank you for reply,
there is a way to put Xmc in Standby/Stop mode whith auto-wakeup (by RTC) without using external control of regulator?
Regards,
Luciano
there is a way to put Xmc in Standby/Stop mode whith auto-wakeup (by RTC) without using external control of regulator?
Regards,
Luciano
Oct 19, 2016
06:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 19, 2016
06:09 AM
Hi,
Using the WFI/WFE you can put the system in SLEEP or DEEP_SLEEP modes.The interrupt generated by RTC will wake up the system.
Regards,
Jesus
Using the WFI/WFE you can put the system in SLEEP or DEEP_SLEEP modes.The interrupt generated by RTC will wake up the system.
Regards,
Jesus