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

Problems using TWI in slave mode

Hello,

I am using a development board pro nrf52840 mini from Sparkfun. 

I'm trying to use the TWI peripheral on nrf52840 to communicate with an external device (another microcontroller). The nrf52840 is supposed to be a slave on TWI and the external device to be the master. I'm using the example 'nRF5_SDK_15.3.0_59ac345\examples\peripheral\twi_master_with_twis_slave\' with SCL on PIN P0.11 and SDA on PIN P0.8 and I have a problem that the slave does not respond. 

In this example, I do not know which instance of TWIS is activated and I do not find in the documentation which pins correspond to which TWIS instance.

From the external device, I scan for the TWI address in interval [1,127] and nrf52840 does not respond at any address.

Can you, please, tell me how can I modify this example code so the slave answers or can you provide an example to startup the slave and to receive data?

Thank you.