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

nRF9160 GPIO consume higher current when configure as input

Hi,

I am using ncs V1.0.0 

When I configure P0.5 as input it takes 37uA current. (Interface with PCA63548 / LIS2DH Interrupt)

If I not configure the pin as input getting desired current around 7uA.

GPIOTE config as input with below configuration:

#define INT2_PIN    5

gpio_int2 = device_get_binding(DT_GPIO_P0_DEV_NAME);
gpio_pin_configure(gpio_int2, INT2_PIN, (GPIO_DIR_IN | GPIO_INT |  GPIO_INT_EDGE | GPIO_PUD_PULL_DOWN | GPIO_INT_ACTIVE_HIGH ) );
gpio_init_callback(&gpio_cb, lis2dh12_interrupt2_isr, BIT(INT2_PIN));
gpio_add_callback(gpio_int2,&gpio_cb);

error = gpio_pin_enable_callback(gpio_int2,INT2_PIN);

Used below peripheral configuration in overlay file.

&spi3 {
	status = "ok";
	sck-pin = <13>;
	mosi-pin = <11>;
	miso-pin = <12>;
    spi-max-frequency = <4000000>;
};

&uart2 {
	status = "ok";
	current-speed = <9600>;
	tx-pin = <10>;
	rx-pin = <17>;
	rts-pin = <27>;
	cts-pin = <26>;
};

&adc {
	status = "ok";
};

-Nirav Patel

Related