This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Handling the UART when sleeping

I'm using simple_uart_init to enable UART I/O from my target. This all works fine but I'm not sure what to do with the UART before I sleep (by calling sd_app_event_wait) so that it does not consume power.

I'm especially concerned that the GPIO line associated with TX not leak current into the serial terminator.

I'm also slightly concerned that the UART remains "enabled" during sleep and I'm not sure whether it consumes power in that state, even when the CPU is sleeping.

Whatever I do for sleeping, I presume I can call simple_uart_init again when I wake up to set things up again for operation. Is this correct?

Related