GPIOs in Hibernate Mode

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

cross mob
irfu_4758601
Level 1
Level 1
5 sign-ins First reply posted First question asked

Is it possible to set GPIOs to HIGH-Z state during Hibernate Mode?
If yes, how can I do this?
I supposed setting 'Freeze' bit in PWR_HIBERNATE register to 0 leads to non frozen GPIOs, but there was no effect. In configuration tool, I have selection 'McuHibernateFreezeIoEnable'.
But outputs are frozen in Hibernate Mode, even though option is deselected.
In CYT2B9 Datasheet I found in chapter 3.2.6 Power Modes:

....
■ Hibernate – The device and I/Os are in High-Z state and the
device resets on wakeup

 

0 Likes
2 Replies
Kavya_B
Moderator
Moderator
Moderator
100 replies posted 10 likes given 25 solutions authored

Hi,

 

PWR_HIBERNATE.UNLOCK byte must be set to 0x3A for FREEZE or HIBERNATE fields of the same register to operate.

Did you write 0x3A to UNLOCK filed before writing to FREEZE bit?

 

Thanks,

Kavya

0 Likes

Hi Kavya

yes I set PWR_HIBERNATE.UNLOCK byte to 0x3A.

Register PWR_HIBERNATE is written 3 times subsequentielly:

First write with content 0x02003AFF

second write with same content 0x02003AFF and

third write with content 0x82003AFF.

After that, a dummy read of this register is executed.

Best regards

Iris

 

0 Likes