Page 1 of 1

Can UART data wake the pyboard from pyb.stop()?

Posted: Sun Sep 11, 2016 9:02 pm
by nickovs
When the pyboard is put into low power mode using the pyb.stop() call, is the UART hardware still running? If so, is a UART interrupt sufficient to cause the pyb.stop() call to return?

I have a data collection application in which data will arrive at irregular intervals over a serial interface but it would be useful to have the board in a low power state when not processing the data. I know that the counters used for pyb.millis() and pyb.micros() get suspended when I call pyb.stop(). If the UARTs get shut down too then presumably I can use wfi() instead but it looks like this won't save as much power. Any (non-null) pointers would be helpful!

Re: Can UART data wake the pyboard from pyb.stop()?

Posted: Mon Sep 12, 2016 4:03 am
by dhylands
The datasheet says that any peripheral interrupt acknowledged by the NVIC will wake the MCU, so it sounds like it will work.