Hi
I don't recommend enter into lower power mode in interrupt service routine.
It could set a flag in interrupt service routine and after exit the interrupt service routine check the flag to determine if enter into lower power mode or not.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------