Question
Battery status and sleep of stm32 processor
Hi, I am using stm32l0 series. my device will work with battery. I want to put it in sleep mode when it is not working so that the battery does not run out. Then I want to be able to see the battery status. But I have no idea how to do it. What I want to ask are:
1- How can I put my processor to sleep and wake it up?
2- How can I find out the battery status instantly?
Can you guide me?