AT32UC3C1512C Automotive Atmel Corporation, AT32UC3C1512C Automotive Datasheet - Page 704

no-image

AT32UC3C1512C Automotive

Manufacturer Part Number
AT32UC3C1512C Automotive
Description
Manufacturer
Atmel Corporation
Figure 27-9. Master Read with Multiple Data Bytes
27.8.5
27.8.5.1
9166C–AVR-08/11
SR.IDLE
RXRDY
TWD
Using the Peripheral DMA Controller
NBYTES set to m
Write START +
Data Transmit with the Peripheral DMA Controller
S
STOP bit
DADR
Writing CMDR with START=STOP=1 and NBYTES=0 will generate a transmission with no data
bytes, ie START, DADR+R, STOP
The TWI transfers require the master to acknowledge each received data byte. During the
acknowledge clock pulse (9th pulse), the slave releases the data line (HIGH), enabling the mas-
ter to pull it down in order to generate the acknowledge. All data bytes except the last are
acknowledged by the master. Not acknowledging the last byte informs the slave that the transfer
is finished.
RXRDY is used as Receive Ready for the Peripheral DMA Controller receive channel.
Figure 27-8. Master Read with One Data Byte
The use of the Peripheral DMA Controller significantly reduces the CPU load. The user can set
up ring buffers for the Peripheral DMA Controller, containing data to transmit or free buffer space
to place received data.
To assure correct behavior, respect the following programming sequences:
SR.IDLE
5. Decrement NBYTES
6. If (NBYTES==0) and STOP=1, transmit STOP condition.
1. Initialize the transmit Peripheral DMA Controller (memory pointers, size, etc.).
2. Configure the TWIM (ADR, NBYTES, etc.).
RXRDY
TWD
R
NBYTES set to 1
Write START &
S
STOP bit
A
DADR
DATAn
R
Read RHR
DATAn
A
A
DATAn+1
DATA
DATAn+m-2
Read RHR
DATAn+m-1
N
Read RHR
P
DATAn+m-1
Read RHR
A
DATAn+m
When NBYTES=0
Send STOP
AT32UC3C
N
Read RHR
DATAn+m
P
704

Related parts for AT32UC3C1512C Automotive