Hi.
I'm using nRF52832.
There are some NC pins in my schematics.
How to control them to save current consumption?
Making them output and low is the best solution?
Hi.
I'm using nRF52832.
There are some NC pins in my schematics.
How to control them to save current consumption?
Making them output and low is the best solution?
you can use nrf_gpio_cfg_default(x) to set NC-pin with input and disconnect.
__STATIC_INLINE void nrf_gpio_cfg_default(uint32_t pin_number) { nrf_gpio_cfg( pin_number, NRF_GPIO_PIN_DIR_INPUT, NRF_GPIO_PIN_INPUT_DISCONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_NOSENSE); }
Hi Jacksong. thank you very much for your reply.
What if I don't set GPIO for NC-pins, does it make current leakage?
Hi
Actualy, after reset , GPIO default state is that config. I'm not sure what will happen , and in my project, i set all of GPIOs with default config at hardware init, and works well
Hi
Actualy, after reset , GPIO default state is that config. I'm not sure what will happen , and in my project, i set all of GPIOs with default config at hardware init, and works well