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

TWI. RXDREADY event signaled, TXDSENT - not.

I am trying to communicate with DS1307 (RTC) using TWI on nRF51822. I have configured the pins, address (0x68 fixed for DS1307), frequency and enabled TWI.

Now I am about to read the register 0x00 of the slave (DS1307) I suppose I should start transmission task (write 0x01 to STARTTX, 0x40004008), this will cause TWI to clock out address and "write bit" (I should not take care of it), then I should write the value (0x00: register to be read from DS1307) into the TXD, and TWI will clock it out and signal TXDSENT event. But I see in TWI1 debug window, that only the RXDREADY is being signaled, TXDSENT - not. Any idea, please.

Related