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

Disable TWI pull-up resistor in nRF52840 DK

Hi,

I am using the twi_sensor example in the board PCA10056 with SDK v15.2.0. I am trying to disable the internal pull-up resistors of SDA and SCL lines to use external resistors instead, but they are always pulled up. I try to modify the definition of SCL_PIN_INIT_CONF and SCL_PIN_INIT_CONF_CLR in nrf_drv_twi.c, changing the parameters GPIO_PIN_CNF_PULL_Pullup for GPIO_PIN_CNF_PULL_Disabled. I have also set it as pull-down to see if there is any change but SDA and SCL keep pulled up at VDD.

Am I missing any other change needed to disable pull-up resistors?

Thanks!

Related