Atmel ARM-Based Evaluation Kit AT91SAM9N12-EK AT91SAM9N12-EK Data Sheet

Product codes
AT91SAM9N12-EK
Page of 1104
730
SAM9N12/SAM9CN11/SAM9CN12 [DATASHEET]
11063K–ATARM–05-Nov-13
Clock Synchronization in Write Mode
The clock is tied low if the shift register and the TWI_RHR is full. If a STOP or REPEATED_START condition was not
detected, it is tied low until TWI_RHR is read.
 describes the clock synchronization in Read mode.
Figure 39-30. Clock Synchronization in Write Mode
Notes: 1. At the end of the read sequence, TXCOMP is set after a STOP or after a REPEATED_START + an address different 
from SADR.
2. SCLWS is automatically set when the clock synchronization mechanism is started and automatically reset when the 
mechanism is finished.
39.10.5.5 Reversal after a Repeated Start
Reversal of Read to Write
The master initiates the communication by a read command and finishes it by a write command.
 describes the repeated start + reversal from Read to Write mode.
Figure 39-31. Repeated Start + Reversal from Read to Write Mode
Note:
1.
TXCOMP is only set at the end of the transmission because after the repeated start, SADR is detected 
again.
Rd DATA0
Rd DATA1
Rd DATA2
SVACC
SVREAD
RXRDY
SCLWS
TXCOMP
DATA1
DATA2
SCL is stretched on the last bit of DATA1
As soon as a START is detected
TWCK
TWD
TWI_RHR
CLOCK is tied low by the TWI as long as RHR is full
DATA0 is not read in the RHR
ADR
S
SADR
W
A
DATA0
A
A
DATA2
DATA1
S
NA
S
SADR
R
A
DATA0
A
DATA1
SADR
Sr
NA
W
A
DATA2
A
DATA3
A
P
Cleared after read
DATA0
DATA1
DATA2
DATA3
SVACC
SVREAD
TWD
TWI_THR
TWI_RHR
EOSACC
TXRDY
RXRDY
TXCOMP
As soon as a START is detected