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

SDK 15.3.0 TWI disable internal pull-up resistor

Hi.

I want to disable the TWI master's internal pull-ups on SCL and SDA.
So I set it according to the contents of the following URL, but the setting is not reflected as long as I see the signal.
I checked with nothing connected to I2C.
Are there any other settings I need?

https://devzone.nordicsemi.com/f/nordic-qa/40263/sdk-14-2-twi-disable-internal-pull-up-resistor

nrf_drv_twi.c

#define SCL_PIN_INIT_CONF \
( (GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos) \
| (GPIO_PIN_CNF_DRIVE_S0D1 << GPIO_PIN_CNF_DRIVE_Pos) \
| (GPIO_PIN_CNF_PULL_Pullup << GPIO_PIN_CNF_PULL_Pos) \
| (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) \
| (GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos))

this line changed

GPIO_PIN_CNF_PULL_Pullup → GPIO_PIN_CNF_PULL_Disable

Cozy

Parents Reply Children
No Data
Related