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

Does setting a pin to be TWI SCL or SDA enable its pullup?

I have the nRF52 dev kit, and I hooked up pin 13 to SDA and pin 18 to SCL on an I2C device. There are no external pullups on the SDA or SCL lines.

However, the TWIM module appears to happily communicating with the slave. So does setting an IO to be a TWI line through the NRF_TWIM0->SCL/SDA registers automatically enable that IOs pullup? I couldn't find any information either way in the datasheet, and that seems like an important detail to know.

I'm bare-metal programming. No softdevice. No driver.

Related