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

TWI Does not work

Hello, i am trying to develope a I2C  application. 

I am using the twi_sensor example of the SDK 12.3.0

I have configured my pins to SDA 14 and SCL 30 and i just want to send some data with the  nrf_drv_twi_tx funtion... but nothing happens. I am monitoring the gpio 14 and the gpio 30 with my osciloscope and i just see the 3.3v provided by the pull up resistor... nothing else... 

What i am doing wrong ?

Thank you so much in advance 

Best regards 

Parents Reply
  • Ok, now i can see that setting  m_xfer_done to true the system sends a command each 0,8s more or less... What  m_xfer_done does? Does it is set to true when the master receive an ACK? Why if i force this variable to true it sends periodically a command? 

    In my real application i want to use this twi with: 

    Soft device (Timer 0) for BLE_UART
    Timer 1: interruption
    Timer 2: pwm 

    If i copy the twi code to my real app... it does not generate any command even if i force m_xfer_done to true. Is there any conflict with the resources i mention before? 

    Thanks a lot!

Children
No Data
Related