SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 737

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
Notes:
33.10.6
Figure 33-32. Read Write Flowchart in Slave Mode
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
1. In this case, if TWI_THR has not been written at the end of the read command, the clock is automatically stretched before
2. TXCOMP is only set at the end of the transmission because after the repeated start, SADR is detected again.
Read Write Flowcharts
the ACK.
No
No
SADR + MSDIS + SVEN
Set the SLAVE mode:
Read Status Register
EOSACC = 1 ?
TXCOMP = 1 ?
SVACC = 1 ?
No
END
The flowchart shown in
in Slave mode. A polling or interrupt method can be used to check the status bits. The interrupt
method requires that the interrupt enable register (TWI_IER) be configured first.
GACC = 1 ?
Figure 33-32 on page 737
No
programming sequence
Read TWI_RHR
SVREAD = 0 ?
RXRDY= 0 ?
Decoding of the
Change SADR
Prog seq
OK ?
No
gives an example of read and write operations
No
GENERAL CALL TREATMENT
No
Write in TWI_THR
TXRDY= 1 ?
SAM3X/A
SAM3X/A
No
737
737

Related parts for SAM3X8E