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

51822 TWI ERROR

I use 51822 HW TWI to become master.when i send the first byte(Address+write or read bit) to sensor,the event TWI-ERROR is set.Who can tell me, what is the cause of this event?

Parents
  • Hi.

    Which nRF51 IC revision do you use? Refer to the Compatibility Matrix.

    Which SDK and driver are you using?

    If you use one of the drivers in the SDKs I believe you should be able to find a description of what the error is about. E.g.

    NRF_TWI_ERROR_ADDRESS_NACK = TWI_ERRORSRC_ANACK_Msk,    /**< NACK received after sending the address. */
    NRF_TWI_ERROR_OVERRUN_NACK = TWI_ERRORSRC_OVERRUN_Msk,  /**< Byte received in RXD register before read of the last received byte (data loss). */
    NRF_TWI_ERROR_DATA_NACK    = TWI_ERRORSRC_DNACK_Msk,    /**< NACK received after sending a data byte. */
    

    Here you can find an TWI example based on the drivers in SDK 9.0.0.

Reply
  • Hi.

    Which nRF51 IC revision do you use? Refer to the Compatibility Matrix.

    Which SDK and driver are you using?

    If you use one of the drivers in the SDKs I believe you should be able to find a description of what the error is about. E.g.

    NRF_TWI_ERROR_ADDRESS_NACK = TWI_ERRORSRC_ANACK_Msk,    /**< NACK received after sending the address. */
    NRF_TWI_ERROR_OVERRUN_NACK = TWI_ERRORSRC_OVERRUN_Msk,  /**< Byte received in RXD register before read of the last received byte (data loss). */
    NRF_TWI_ERROR_DATA_NACK    = TWI_ERRORSRC_DNACK_Msk,    /**< NACK received after sending a data byte. */
    

    Here you can find an TWI example based on the drivers in SDK 9.0.0.

Children
No Data
Related