Active output in sleep mode

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at计画ps://www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
vincenzo.urbisaglia
Offline
Last seen:1年9个月前
加入:2017-02-24 15:32
Active output in sleep mode

Hello,

I am trying to keep an output active (high) while going into ext sleep mode.
Is this possible?

Greetings Vincenzo

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi vincenzo.

Hi vincenzo.

Yes, when the device is in sleep mode the outputs are automatically latched in the state they had before going to sleep, you should pay attention though when waking up since when the device wakes up the periph_init() function gets executed, so the GPIO_ConfigurePin is executed are will switch the pin back to its previous state, so you will have to be aware of the state of the pin when waking up and configure the pin according to its current state.

Thanks MT_dialog