SAM3A4C Atmel Corporation, SAM3A4C Datasheet - Page 718

no-image

SAM3A4C

Manufacturer Part Number
SAM3A4C
Description
Manufacturer
Atmel Corporation
Datasheets
Figure 33-8. Master Write with One Byte Internal Address and Multiple Data Bytes
33.8.5
718
718
TXCOMP
TXRDY
TWCK
TWD
Write THR (Data n)
SAM3X/A
SAM3X/A
S
Master Receiver Mode
DADR
W
The read sequence begins by setting the START bit. After the start condition has been sent, the
master sends a 7-bit slave address to notify the slave device. The bit following the slave address
indicates the transfer direction, 1 in this case (MREAD = 1 in TWI_MMR). During the acknowl-
edge clock pulse (9th pulse), the master releases the data line (HIGH), enabling the slave to pull
it down in order to generate the acknowledge. The master polls the data line during this clock
pulse and sets the NACK bit in the status register if the slave does not acknowledge the byte.
If an acknowledge is received, the master is then ready to receive data from the slave. After data
has been received, the master sends an acknowledge condition to notify the slave that the data
has been received except for the last data, after the stop condition. See
RXRDY bit is set in the status register, a character has been received in the receive-holding reg-
ister (TWI_RHR). The RXRDY bit is reset when reading the TWI_RHR.
When a single data byte read is performed, with or without internal address (IADR), the START
and STOP bits must be set at the same time. See
performed, with or without internal address (IADR), the STOP bit must be set after the next-to-
last data received. See
Figure 33-9. Master Read with One Data Byte
A
IADR
TXCOMP
RXRDY
TWD
A
Figure
DATA n
S
Write START &
33-10. For Internal Address usage see
STOP Bit
DADR
A
Write THR (Data n+1)
R
Figure
A
33-9. When a multiple data byte read is
DATA n+1
DATA
STOP command performed
(by writing in the TWI_CR)
Write THR (Data n+2)
Last data sent
Read RHR
A
Section
N
Figure
DATA n+2
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
P
33.8.6.
33-9. When the
A
P

Related parts for SAM3A4C