Atmel Xplained Evaluation Board AT32UC3A3-XPLD AT32UC3A3-XPLD Data Sheet

Product codes
AT32UC3A3-XPLD
Page of 1021
831
32072H–AVR32–10/2012
AT32UC3A3
Figure 31-10. Read Functional Flow Diagram 
Note:
1. It is assumed that this command has been correctly sent (see 
2. This field is also accessible in the BLKR register.
Write a one in the DMA.DMAEN bit
Write the BlockLenght in the MR.BLKLEN field
(2)
Send SELECT/DESELECT_CARD
Command
(1)
 to select the card
Send SET_BLOCKLEN command
(1)
No
Yes
Read with DMA
Write a zero in the DMA.DMAEN bit
Write the BlockLenght in the MR.BLKLEN field
(2)
Write the block count in the BLKR.BCNT field (if 
necessary) 
Read data in the RDR register
Number of words to read =
Number of words to read -1
Send  READ_SINGLE_BLOCK
 
command
(1)
Configure the DMA channel X
write the Data Adress in the DMA Controller 
write the (MR.BLKLEN)/4 for Transfer Size 
in the DMA Controller  
Number of words to read = (MR.BLKLEN)/4
Number of words to read = 0 ?
Yes
No
Yes
Yes
Read the SR register
SR.XFRDONE = 0 ?
No
RETURN
Read the SR register
SR.RXRDY = 0 ?
No
RETURN
Send  READ_SINGLE_BLOCK
 
command
(1)