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

TWI example twi_master_with_twis_slave

Hello,

I'm using the TWI example mentioned in the subject line and I'm trying to get the TWI signals out of my demo board (Rigado BMD-350 Evaluation board).

Am I right that in this example the signals don't come out of the hardware pins because it's a simulated EEEPROM? How can I change the example to bring out the signals, so I can measure these?

Thanks in advance for any help!!!

Kind regards

Sascha Schmidt

Parents Reply
  • When the TWI Master peripheral starts a transmission, it requires an acknowledge from the slave in order to continue. If this ACK is not received, it will set an event in the ERRORSRC register corresponding to the error detected.

    Calling nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STARTTX) is the equivilant to calling NRF_TWIMx->TASKS_STARTTX=1, which will tell the hardware peripheral to start the communication towards the TWI Slave device. The ERRORSRC is set as no one is pulling the line low (creating a ACK) at the end of the transmission.

    I'd recommend that you read up on how the TWI (or I2C as its more commonly named) works on a bus level to get to know the protocol a bit better.

     

    Kind regards,

    Håkon

Children
Related