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

NRF91 power save mode with CONFIG_SERIAL=y

Hi,

as I understand (and tried), in order to get low power consumption on the NRF91, I need to to get CONFIG_SERIAL=n.

However , I need the uart to be enabled (for short periods of time every few hours).

Is it possible to Change this flag at runtime ?

Thanks,

Moshe

Parents Reply
  • Hi, Bjorn. Thank you so much! This code works out.

    void disable_uart(){
            NRF_UARTE0->TASKS_STOPTX = 1;
            NRF_UARTE0->TASKS_STOPRX = 1;
    
            NRF_UARTE3->TASKS_STOPTX = 1;
            NRF_UARTE3->TASKS_STOPRX = 1;
    }
    
    void enable_uart(){
            NRF_UARTE0->TASKS_STARTRX = 1;
    
            NRF_UARTE3->TASKS_STARTRX = 1;
    }

    A current around 25uA is consumed on DK v0.8.5 while the UART RX is off. Is this reasonable value? I read datasheet and it doesn't describe current consumption of UART. Let me know the value, if you have measured.

Children
Related