Behavior of IO buffer relating to the PMU_CTRL_REG[1] PERIPH_SLEEP

6 posts / 0 new
Last post
yterasaki
Offline
Last seen:4 years 8 months ago
加入:2015-05-08 09:28
Behavior of IO buffer relating to the PMU_CTRL_REG[1] PERIPH_SLEEP

Dear Dialog,

I would like to ask a few questions about the PMU_CTRL_REG[1] PERPH_SLEEP,
Q1: Datasheet says that I2C,UART,SPI,ADC goes to power down. Does "power down" mean if the clock of those blocks are
stoppped? or power supply to those blocks is gated and will have power on reset when it wakeup from extended sleep?
Q2: This operation is also applied to the GPIO block?
Q3: How about IO buffer's behavior which are configured as GPIO? IO buffers' level are kept before and after wakeup from
延长睡眠?

Best Regards,
yukio

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
圣aff
加入:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

Q1: Powerdown means that the power on those peripherals is gated and the power will be restored when the da will resume after wakeup.

Q2: Yes the operation is applied to the GPIOs also.

Q3: The GPIO's, if the latch is enabled, will keep the value before entering to sleep else will go in reset state.

Thanks

yterasaki
Offline
Last seen:4 years 8 months ago
加入:2015-05-08 09:28
Thanks Dialog staff,

Thanks Dialog staff,

Please let me allow one more confirmation.
Relating to your answer about Q3, when the retention of IO is not enabled and go to ext sleep, IO will be initialised by
hardware reset everytime after wake up from ext sleep. Correct?

Best Regards,
yukio

yterasaki
Offline
Last seen:4 years 8 months ago
加入:2015-05-08 09:28
对不起,请修改我的

对不起,请修改我的question as following.

Relating to your answer about Q3, when the retention of IO is not enabled and execute WFI() instruction, IO will be initialised by
hardware reset everytime after wake up by internal BLE timer.(I don't use external wake up) Correct?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
圣aff
加入:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

Thats right every time the da wakes up the GPIOs reseted. Every time you wake up from sleep you have to re-configure your GPIO's in the periph_init function in order to set the appropriate function and state. The periph_init function is called in the BLE_WAKEUP_LP_Handler.

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 8 months ago
加入:2015-05-08 09:28
Dear Dialog staff, thank you

Dear Dialog staff, thank you for youe answer. fully understood.

Topic locked