can peripheral work in extended 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//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
guxiang
Offline
Last seen:6 days 49 min ago
加入:2017-05-12 04:18
can peripheral work in extended sleep mode?

Hi , dialog
1. After the device entered extended sleep mode with using "pm_set_sleep_mode(pm_mode_extended_sleep);" , can we use peripheral (i2c , spi , uart..)to operate external sensor ? and what should pay attention to ?
2. If the device is already in extended sleep mode , what will happen if we use "pm_set_sleep_mode(pm_mode_extended_sleep);" again ? or use "pm_set_sleep_mode(pm_mode_active) while in active mode

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

Hi guixiang,

1) In order to use the peripherals the device has to be active, while sleeping the device switches off the peripherals, that means that you can program the device to wake up via a timer or an external interrupt and then access the peripheral itself. This should be done via the adapters and not the Low Level drivers that are provided with the SDK.

2) You will just reset the sleep status in the same status as before, i suppose that there will be no difference in the behaviour of the application if you just set the same sleep status.

Thanks MT_dialog