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

nrf9160 uart Pull-Up and power consumption

hi all,

i'm trying to disable uart for lower power consumption, i've disables it with:

NRF_UARTE1->TASKS_STOPTX = 1;
NRF_UARTE1->TASKS_STOPRX = 1;


but when i measure the voltage on the rx pin i see 1.8V  (this seems to consume current on the device on the other side of the uart interface - which is turned off )
i assume its in pulled up state, so i'm trying to change it's state to no-pull:
nrf_uarte_txrx_pins_disconnect(NRF_UARTE0);
gpio_pin_configure(uart_wifi, 18, GPIO_PUD_PULL_DOWN);
gpio_pin_configure(uart_wifi, 19, GPIO_PUD_PULL_DOWN);
gpio_pin_write(uart_wifi, 18,0);
gpio_pin_write(uart_wifi, 19,0);

 but it doesnt seem to have any effect.

how can i set this pin to 0, and back to 1 when I need it , on runtime?

Thanks

Moshe

Parents Reply
  • If the current consumption does not come from VDD_IO, then it should not be related to the IO settings at all, but more in the program flow.

    Is there any functions running after disabling the uart which tries to use it again? So that the firmware goes into a bad state, causing the high current consumption?

     

    If you're unsure if this comes from VDD_IO, could you try setting it to a input instead of output?

    // Input, connected, with pull-down
    NRF_P0_NS->PIN_CNF[pin_used] = 0x4;

     

    Kind regards,

    Håkon

Children
Related