Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
korneliuszo
Level 1
Level 1
First reply posted First question asked Welcome!

I have problem with waking up from RTC event when I set HIB_IO_0 to high level.

Initialization of HIB_IO_0:

XMC_SCU_HIB_SetPinMode(XMC_SCU_HIB_IO_0, XMC_SCU_HIB_PIN_MODE_OUTPUT_PUSH_PULL_GPIO);
XMC_SCU_HIB_SetPinOutputLevel(XMC_SCU_HIB_IO_0,XMC_SCU_HIB_IO_OUTPUT_LEVEL_HIGH);

Setting up RTC event:

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_SCU_HIB_EnterHibernateStateEx(XMC_SCU_HIB_HIBERNATE_MODE_INTERNAL);

 

Wakeup from hibernation works when I set HIB_IO_0 to low level

 

0 Likes
1 Solution
sujatapatil
Moderator
Moderator
Moderator
10 likes received 100 sign-ins 25 solutions authored

Hi @korneliuszo ,

the hardware takes care to set this pin to low at the time of entering to hibernation and set it to high when leaving hibernation mode . No need to explicitly set it to Low , so please comment second line  in initialization above above and  check.

Thanks

Sujata 

View solution in original post

0 Likes
3 Replies
sujatapatil
Moderator
Moderator
Moderator
10 likes received 100 sign-ins 25 solutions authored

Hi,

Can you check your external voltage regulator whether it is low enabled ?

Thanks

Sujata

 

0 Likes

I use HIB_IO_0 to sustain battery power.

external voltage regulator is always on and I specially use XMC_SCU_HIB_HIBERNATE_MODE_INTERNAL.

0 Likes
sujatapatil
Moderator
Moderator
Moderator
10 likes received 100 sign-ins 25 solutions authored

Hi @korneliuszo ,

the hardware takes care to set this pin to low at the time of entering to hibernation and set it to high when leaving hibernation mode . No need to explicitly set it to Low , so please comment second line  in initialization above above and  check.

Thanks

Sujata 

0 Likes